diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6505179..238b568 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,3 +32,15 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage/apps/yggdrasil-core-engine/lcov.info,./coverage/apps/yggdrasil-discord-client/lcov.info,./coverage/libs/nest-openai-client/lcov.info,./coverage/libs/nest-winston/lcov.info,./coverage/libs/utils/lcov.info + push_to_gitlab: + # if branch is develop, push to gitlab develop branch + if: github.ref == 'refs/heads/develop' + runs-on: ubuntu-latest + needs: main + steps: + - name: Push to GitLab + uses: actions/checkout@v3 + - name: Push to GitLab + run: | + git fetch --unshallow + git push https://yasuoyuhao:${{secrets.GITLAB_TOKEN}}@gitlab.com/welfree-studio/asgard-hub.git develop -f diff --git a/.gitignore b/.gitignore index 37282eb..720bf12 100644 --- a/.gitignore +++ b/.gitignore @@ -42,3 +42,6 @@ Thumbs.db # local env files .env.local + +#docker file +docker-data/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..5a09d6e --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,144 @@ +stages: + - build-image + - cloud-deploy + +variables: + LANG: "en_US.UTF-8" + LC_ALL: "en_US.UTF-8" + GIT_DEPTH: 0 + GIT_SUBMODULE_STRATEGY: normal + # Use TLS https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#tls-enabled + DOCKER_HOST: tcp://docker:2376 + DOCKER_TLS_CERTDIR: "/certs" + # These are usually specified by the entrypoint, however the + # Kubernetes executor doesn't run entrypoints + # https://gitlab.com/gitlab-org/gitlab-runner/-/issues/4125 + DOCKER_TLS_VERIFY: 1 + DOCKER_CERT_PATH: "$DOCKER_TLS_CERTDIR/client" + DOCKER_DRIVER: overlay2 + +build-and-push: &build-and-push + image: + name: gcr.io/kaniko-project/executor:debug + entrypoint: [""] + tags: + - self-docker + stage: build-image + needs: [] + script: + - mkdir -p /kaniko/.docker + - echo "{\"auths\":{\"${CI_REGISTRY}\":{\"auth\":\"$(printf "%s:%s" "${CI_REGISTRY_USER}" "${CI_REGISTRY_PASSWORD}" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json + - chmod +x ./tools/shell-script/package.sh + - sh ./tools/shell-script/package.sh + rules: + - when: never + retry: + max: 2 + when: + - stuck_or_timeout_failure + - runner_system_failure + +build-and-push:staging: + <<: *build-and-push + stage: build-image + needs: [] + variables: + PROJECT_NAME: yggdrasil-core-engine + rules: + - if: '$CI_COMMIT_BRANCH == "develop"' + retry: + max: 2 + when: + - stuck_or_timeout_failure + - runner_system_failure + +build-and-push-discord-client:staging: + <<: *build-and-push + stage: build-image + needs: [] + variables: + PROJECT_NAME: yggdrasil-discord-client + rules: + - if: '$CI_COMMIT_BRANCH == "develop"' + retry: + max: 2 + when: + - stuck_or_timeout_failure + - runner_system_failure + +cloud-deploy: &cloud-deploy + image: alpine:3.14 + stage: cloud-deploy + tags: + - self-docker + before_script: + - apk update && apk add --no-cache curl nodejs npm + - curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl + - chmod +x ./kubectl && mv ./kubectl /usr/local/bin/kubectl + - mkdir -p $HOME/.kube + - echo -n $KUBE_CONFIG | base64 -d > $HOME/.kube/config + - kubectl config view + script: + - echo $NODE_ENV + - echo $KUBE_NAME_SPACE + - echo $PROJECT_NAME + - kubectl delete jobs --all -n $KUBE_NAME_SPACE + - kubectl delete cronjobs --all -n $KUBE_NAME_SPACE + - chmod +x ./tools/shell-script/build-cdk8s.sh + - sh ./tools/shell-script/build-cdk8s.sh + - kubectl create secret docker-registry gitlab-registry --docker-server="$CI_REGISTRY" --docker-username="$CI_DEPLOY_USER" --docker-password="$CI_DEPLOY_PASSWORD" --docker-email="$GITLAB_USER_EMAIL" -n $KUBE_NAME_SPACE -o yaml --dry-run=client | kubectl apply -f - + - kubectl apply -f ./tools/cdk8s/${PROJECT_NAME}/dist/*.yaml -n $KUBE_NAME_SPACE + rules: + - when: never + artifacts: + name: "${PROJECT_NAME}-$CI_JOB_NAME-$CI_COMMIT_REF_NAME" + paths: + - ./tools/cdk8s/${PROJECT_NAME}/dist/* + expire_in: 3 days + retry: + max: 2 + when: + - stuck_or_timeout_failure + - runner_system_failure + +cloud-deploy:staging: + <<: *cloud-deploy + stage: cloud-deploy + needs: [ + 'build-and-push:staging' + ] + variables: + NODE_ENV: staging + KUBE_NAME_SPACE: yggdrasil-core-engine-staging + PROJECT_NAME: yggdrasil-core-engine + rules: + - if: '$CI_COMMIT_BRANCH == "develop"' + environment: + name: staging + action: prepare + retry: + max: 2 + when: + - stuck_or_timeout_failure + - runner_system_failure + +cloud-deploy-discord-client:staging: + <<: *cloud-deploy + stage: cloud-deploy + needs: [ + 'build-and-push-discord-client:staging' + ] + variables: + NODE_ENV: staging + KUBE_NAME_SPACE: yggdrasil-discord-client-staging + PROJECT_NAME: yggdrasil-discord-client + rules: + - if: '$CI_COMMIT_BRANCH == "develop"' + environment: + name: staging + action: prepare + retry: + max: 2 + when: + - stuck_or_timeout_failure + - runner_system_failure diff --git a/CHANGELOG.md b/CHANGELOG.md index 83e33ab..834d5a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.0.11] - 2023/08/17 + +### Added + +- `.github/workflows/main.yml`: Added a new job `push_to_gitlab` that pushes the code to the GitLab repository's develop branch if the current branch is `develop`. This job runs on Ubuntu and uses the `actions/checkout` action to fetch the latest code and then pushes it to GitLab using the provided GitLab token. + +- `.gitignore`: Added `docker-data/` to the `.gitignore` file to exclude the `docker-data` directory from version control. + +- `.gitlab-ci.yml`: Added a new GitLab CI configuration file with multiple stages and jobs for building and deploying the code. These jobs use various tags, scripts, and variables to determine the build and deployment steps. The stages include `build-image` and `cloud-deploy`, and the jobs include `build-and-push` and `cloud-deploy` with different variables and rules. + +### Fixed + +- `apps/yggdrasil-core-engine/.env.local.example`: Updated the environment variables in the example `.env.local` file. The variables `OPENAI_API_KEY`, `AZURE_OPENAI_API_KEY`, `AZURE_OPENAI_ENDPOINT`, `AZURE_OPENAI_DEPLOYMENT_NAME`, and `AZURE_OPENAI_MODEL_NAME` were replaced with `CORE_ENGINE_API_KEY`, `CHATGPT_API_KEY`, `CHATGPT_ORG`, `OPENAI_API_TYPE`, `AZURE_API_BASE_PATH`, `AZURE_CHATGPT_API_KEY`, `AZURE_DEPLOYMENT_NAME`, `AZURE_API_VERSION`, `RPC_API_KEY`, and `MONGO_DB_URI`. + +- `apps/yggdrasil-core-engine/Dockerfile`: Added a Dockerfile for the `yggdrasil-core-engine` application. This Dockerfile includes multiple stages (`development`, `build`, and `production`) and sets up the necessary environment for building and running the application. + ## [0.0.10] - 2023/06/16 ### Added diff --git a/apps/yggdrasil-core-engine/.env.local.example b/apps/yggdrasil-core-engine/.env.local.example index 32931ac..1ece7ec 100644 --- a/apps/yggdrasil-core-engine/.env.local.example +++ b/apps/yggdrasil-core-engine/.env.local.example @@ -1,7 +1,12 @@ PACKAGE_NAME=Yggdrasil Core Engine SERVICE_NAME=yggdrasil-core-engine -OPENAI_API_KEY= -AZURE_OPENAI_API_KEY= -AZURE_OPENAI_ENDPOINT= -AZURE_OPENAI_DEPLOYMENT_NAME= -AZURE_OPENAI_MODEL_NAME= +CORE_ENGINE_API_KEY= +CHATGPT_API_KEY= +CHATGPT_ORG= +OPENAI_API_TYPE= +AZURE_API_BASE_PATH= +AZURE_CHATGPT_API_KEY= +AZURE_DEPLOYMENT_NAME= +AZURE_API_VERSION='2023-03-15-preview' +RPC_API_KEY= +MONGO_DB_URI= diff --git a/apps/yggdrasil-core-engine/Dockerfile b/apps/yggdrasil-core-engine/Dockerfile new file mode 100644 index 0000000..0cad6b4 --- /dev/null +++ b/apps/yggdrasil-core-engine/Dockerfile @@ -0,0 +1,34 @@ +FROM docker.io/node:18.16 AS development + +WORKDIR /usr/src/app + +COPY --chown=node:node package*.json ./ + +RUN npm ci + +COPY --chown=node:node . . + +USER node + +FROM node:lts-slim As build + +WORKDIR /usr/src/app + +COPY --chown=node:node package*.json ./ +COPY --chown=node:node --from=development /usr/src/app/node_modules ./node_modules +COPY --chown=node:node . . + +RUN npx nx run yggdrasil-core-engine:build +RUN npm cache clean --force + +USER node + +FROM docker.io/node:18.16-alpine AS production + +COPY --chown=node:node --from=build /usr/src/app/dist/apps/yggdrasil-core-engine ./yggdrasil-core-engine +COPY --chown=node:node --from=development /usr/src/app/node_modules ./node_modules + +ARG SERVER_VERSION +ENV SERVER_VERSION=${SERVER_VERSION} + +CMD [ "node", "yggdrasil-core-engine" ] diff --git a/apps/yggdrasil-core-engine/src/app/__mocks__/logger-helper.service.spec.ts b/apps/yggdrasil-core-engine/src/app/__mocks__/logger-helper.service.spec.ts index 191574e..60932ea 100755 --- a/apps/yggdrasil-core-engine/src/app/__mocks__/logger-helper.service.spec.ts +++ b/apps/yggdrasil-core-engine/src/app/__mocks__/logger-helper.service.spec.ts @@ -3,17 +3,6 @@ import { LoggerService } from '@nestjs/common'; export function mockClearAll() { // Reset mockedLogger Object.values(innerMockedLogger).forEach((m) => m.mockClear()); - - // Reset LoggerHelperService - mockedLoggerHelperServiceMakeCreator.mockClear(); - MockLoggerHelperService.mockClear(); - - // Reset TrackerLoggerCreator - mockedTrackerLoggerCreatorCreate.mockClear(); - TrackerLoggerCreator.mockClear(); - - // Reset TrackerLogger - TrackerLogger.mockClear(); } // Default mocked Logger @@ -25,76 +14,13 @@ const innerMockedLogger = { verbose: jest.fn(), }; -export const mockedLogger: LoggerService = innerMockedLogger; - -// class LoggerHelperService -export const mockedLoggerHelperServiceMakeCreator = jest.fn(function ( - name: string -) { - return new TrackerLoggerCreator(mockedLogger, name); -}); - -export const MockLoggerHelperService = jest.fn().mockImplementation(() => { - return { - create: mockedLoggerHelperServiceMakeCreator, - }; -}); - -// class TrackerLoggerCreator -export const mockedTrackerLoggerCreatorCreate = jest.fn(function ( - trackingId: string -) { - return new TrackerLogger(this.loggerService, this.name, trackingId); -}); - -export const TrackerLoggerCreator = jest - .fn() - .mockImplementation((logger: LoggerService, name: string) => { - return { - name, - loggerService: logger, - create: mockedTrackerLoggerCreatorCreate, - }; - }); - -// class TrackerLogger -export const TrackerLogger = jest - .fn() - .mockImplementation( - (loggerService: LoggerService, name: string, _trackingId: string) => { - function createMessage(message: any) { - return { - trackingId: _trackingId, - message: `${name}: ${message}`, - }; - } - - const mocked = { - name, - loggerService, - _trackingId, - createMessage, - log: (message: any, context?: string) => - loggerService.log(createMessage(message), context), - error: (message: any, context?: string) => - loggerService.error(createMessage(message), context), - warn: (message: any, context?: string) => - loggerService.warn(createMessage(message), context), - debug: (message: any, context?: string) => - loggerService.debug(createMessage(message), context), - verbose: (message: any, context?: string) => - loggerService.verbose(createMessage(message), context), - }; - - Object.defineProperty(mocked, 'trackingId', { - get: function () { - return this._trackingId; - }, - }); - - return mocked; - } - ); +export class mockedLogger implements LoggerService { + log = innerMockedLogger.log; + error = innerMockedLogger.error; + warn = innerMockedLogger.warn; + debug = innerMockedLogger.debug; + verbose = innerMockedLogger.verbose; +} it('should be defined', () => { expect(mockedLogger).toBeDefined(); diff --git a/apps/yggdrasil-core-engine/src/app/auth/auth.guard.ts b/apps/yggdrasil-core-engine/src/app/auth/auth.guard.ts index 6216ec9..36ba377 100644 --- a/apps/yggdrasil-core-engine/src/app/auth/auth.guard.ts +++ b/apps/yggdrasil-core-engine/src/app/auth/auth.guard.ts @@ -1,29 +1,21 @@ import { CanActivate, ExecutionContext, Injectable } from '@nestjs/common'; import { Observable } from 'rxjs'; -import { AppService } from '../app.service'; -import { - TrackerLoggerCreator, - LoggerHelperService, -} from '@asgard-hub/nest-winston'; +import { AsgardLogger } from '@asgard-hub/nest-winston'; import { ConfigService } from '@nestjs/config'; import { ConfigPath, IAppConfig } from '../config/app.config'; @Injectable() export class AuthGuard implements CanActivate { - private readonly trackerLoggerCreator: TrackerLoggerCreator; constructor( - loggerHelperService: LoggerHelperService, + private readonly asgardLogger: AsgardLogger, private readonly configService: ConfigService - ) { - this.trackerLoggerCreator = loggerHelperService.create(AppService.name); - } + ) {} canActivate( context: ExecutionContext ): boolean | Promise | Observable { - const trackerLogger = this.trackerLoggerCreator.create('auth-guard'); const metadata = context.getArgByIndex(1); // metadata if (!metadata) { - trackerLogger.warn('metadata is undefined'); + this.asgardLogger.warn('metadata is undefined'); return false; } const apiKey = metadata.get('authorization')[0]; diff --git a/apps/yggdrasil-core-engine/src/app/chatgpt/service/audio-chat-gpt/audio-chat-gpt.service.spec.ts b/apps/yggdrasil-core-engine/src/app/chatgpt/service/audio-chat-gpt/audio-chat-gpt.service.spec.ts index 908319b..cb9c0c0 100644 --- a/apps/yggdrasil-core-engine/src/app/chatgpt/service/audio-chat-gpt/audio-chat-gpt.service.spec.ts +++ b/apps/yggdrasil-core-engine/src/app/chatgpt/service/audio-chat-gpt/audio-chat-gpt.service.spec.ts @@ -3,8 +3,8 @@ import { AudioChatGPTService } from './audio-chat-gpt.service'; import { DataSourceAdapterService } from '../../../data-source-adapter/data-source-adapter.service'; import { EventEmitter2 } from '@nestjs/event-emitter'; import { YAudioTranscriptionService } from '../../../services/y-audio-transcription/youtube-record.service'; -import { LoggerHelperService } from '@asgard-hub/nest-winston'; -import { MockLoggerHelperService } from '../../../__mocks__/logger-helper.service.spec'; +import { AsgardLogger } from '@asgard-hub/nest-winston'; +import { mockedLogger } from '../../../__mocks__/logger-helper.service.spec'; describe('AudioChatGptService', () => { let service: AudioChatGPTService; @@ -12,8 +12,8 @@ describe('AudioChatGptService', () => { const module: TestingModule = await Test.createTestingModule({ providers: [ { - provide: LoggerHelperService, - useClass: MockLoggerHelperService, + provide: AsgardLogger, + useClass: mockedLogger, }, { provide: DataSourceAdapterService, diff --git a/apps/yggdrasil-core-engine/src/app/chatgpt/service/audio-chat-gpt/audio-chat-gpt.service.ts b/apps/yggdrasil-core-engine/src/app/chatgpt/service/audio-chat-gpt/audio-chat-gpt.service.ts index 4cbd718..146160e 100644 --- a/apps/yggdrasil-core-engine/src/app/chatgpt/service/audio-chat-gpt/audio-chat-gpt.service.ts +++ b/apps/yggdrasil-core-engine/src/app/chatgpt/service/audio-chat-gpt/audio-chat-gpt.service.ts @@ -2,7 +2,7 @@ import { Injectable } from '@nestjs/common'; import { DataSourceType } from '../../../data-source-adapter/adapter/interface/data-source-type.enum'; import { BaseFeatureChatGPTService } from '../base-feature-chat-gpt.service'; import { DataSourceAdapterService } from '../../../data-source-adapter/data-source-adapter.service'; -import { LoggerHelperService } from '@asgard-hub/nest-winston'; +import { AsgardLogger } from '@asgard-hub/nest-winston'; import { PDFChatGPTService } from '../pdf-chat-gpt/pdf-chat-gpt.service'; import { PartCreateTranscriptionResponse } from '../../interface/create.completion.response.usage.for.rpc.interface'; import { AudioAdapter } from '../../../data-source-adapter/adapter/audio-adapter'; @@ -26,13 +26,12 @@ export class AudioChatGPTService extends BaseFeatureChatGPTService private readonly maxParts = 30; constructor( - loggerHelperService: LoggerHelperService, + private readonly asgardLogger: AsgardLogger, protected readonly dataSourceAdapterService: DataSourceAdapterService, protected readonly eventEmitter: EventEmitter2, protected readonly yAudioTranscriptionService: YAudioTranscriptionService ) { super( - loggerHelperService, dataSourceAdapterService, DataSourceType.AUDIO, PDFChatGPTService.name @@ -42,10 +41,6 @@ export class AudioChatGPTService extends BaseFeatureChatGPTService async fetchDataByDataSourceUrl( data: AudioChatOptions ): Promise { - const { log, error } = this.trackerLoggerCreator.create( - 'fetchDataByDataSourceUrl' - ); - const { url, fileExtension } = data; // check cache by url @@ -57,11 +52,11 @@ export class AudioChatGPTService extends BaseFeatureChatGPTService cachedTranscriptions && cachedTranscriptions.data?.length > 0 ) { - log(`cached ${url}`); + this.asgardLogger.log(`cached ${url}`); return cachedTranscriptions.data; } - log(`called ${url}`); + this.asgardLogger.log(`called ${url}`); const transcriptions = await this.setupTranscription(url, fileExtension); @@ -81,17 +76,14 @@ export class AudioChatGPTService extends BaseFeatureChatGPTService } private async setupTranscription(url: string, fileExtension: string) { - const { log, error } = - this.trackerLoggerCreator.create('setupTranscription'); - - log('audio download start...'); + this.asgardLogger.log('audio download start...'); // download file from url and save to path const audioFilePath = await this.getAdapter().getDataFormUrlSaveAsPath( url, DownloadFileType[fileExtension] ); - log('audio download end...'); + this.asgardLogger.log('audio download end...'); // need to split audio file to 180 seconds const paths = (await splitAudioFile(audioFilePath, 180)).slice( @@ -108,7 +100,7 @@ export class AudioChatGPTService extends BaseFeatureChatGPTService minimumFractionDigits: 2, maximumFractionDigits: 2, }) + '%'; - log(`percentage: ${formatted}`); + this.asgardLogger.log(`percentage: ${formatted}`); await delay(Math.random() * 500 + 256); }) .process(async (path, index, pool) => { @@ -124,7 +116,7 @@ export class AudioChatGPTService extends BaseFeatureChatGPTService }); promisePool.errors?.length > 0 && - promisePool.errors.forEach((e) => error(e.raw, e.stack, e)); + promisePool.errors.forEach((e) => this.asgardLogger.error(e.raw, e.stack, e)); const results = promisePool.results.filter( (r) => r !== undefined && (r as any) !== Symbol.for('failed') ); diff --git a/apps/yggdrasil-core-engine/src/app/chatgpt/service/base-feature-chat-gpt.service.ts b/apps/yggdrasil-core-engine/src/app/chatgpt/service/base-feature-chat-gpt.service.ts index f751655..2bffb63 100644 --- a/apps/yggdrasil-core-engine/src/app/chatgpt/service/base-feature-chat-gpt.service.ts +++ b/apps/yggdrasil-core-engine/src/app/chatgpt/service/base-feature-chat-gpt.service.ts @@ -2,10 +2,7 @@ import { DataSourceType } from '../../data-source-adapter/adapter/interface/data import { DataSourceAdapterService } from '../../data-source-adapter/data-source-adapter.service'; import { PartCreateChatCompletionResponse } from '../interface/create.completion.response.usage.for.rpc.interface'; import { BaseDataSourceAdapter } from '../../data-source-adapter/adapter/interface/data-source-adapter.interface'; -import { - TrackerLoggerCreator, - LoggerHelperService, -} from '@asgard-hub/nest-winston'; +import {} from '@asgard-hub/nest-winston'; import { splitString } from '@asgard-hub/utils'; export interface BaseFeatureChatGPTServiceInterface { @@ -15,16 +12,12 @@ export interface BaseFeatureChatGPTServiceInterface { export abstract class BaseFeatureChatGPTService implements BaseFeatureChatGPTServiceInterface { - protected trackerLoggerCreator: TrackerLoggerCreator; protected temperature = 0.5; constructor( - loggerHelperService: LoggerHelperService, protected readonly dataSourceAdapterService: DataSourceAdapterService, protected readonly dataSourceType: string, - name: string - ) { - this.trackerLoggerCreator = loggerHelperService.create(name); - } + protected readonly name: string + ) {} fetchDataByDataSourceUrl(data: any): Promise { throw new Error('Method not implemented.'); diff --git a/apps/yggdrasil-core-engine/src/app/chatgpt/service/image-chat-gpt/image-chat-gpt.service.spec.ts b/apps/yggdrasil-core-engine/src/app/chatgpt/service/image-chat-gpt/image-chat-gpt.service.spec.ts index 74d390b..8ad23f3 100644 --- a/apps/yggdrasil-core-engine/src/app/chatgpt/service/image-chat-gpt/image-chat-gpt.service.spec.ts +++ b/apps/yggdrasil-core-engine/src/app/chatgpt/service/image-chat-gpt/image-chat-gpt.service.spec.ts @@ -2,8 +2,8 @@ import { Test, TestingModule } from '@nestjs/testing'; import { ImageChatGptService } from './image-chat-gpt.service'; import { DataSourceAdapterService } from '../../../data-source-adapter/data-source-adapter.service'; import { ChatGPTGateWayService } from '../../../services/chatgpt-gateway-service/chatgpt.service'; -import { LoggerHelperService } from '@asgard-hub/nest-winston'; -import { MockLoggerHelperService } from '../../../__mocks__/logger-helper.service.spec'; +import { AsgardLogger } from '@asgard-hub/nest-winston'; +import { mockedLogger } from '../../../__mocks__/logger-helper.service.spec'; describe('ImageChatGptService', () => { let service: ImageChatGptService; @@ -12,8 +12,8 @@ describe('ImageChatGptService', () => { const module: TestingModule = await Test.createTestingModule({ providers: [ { - provide: LoggerHelperService, - useClass: MockLoggerHelperService, + provide: AsgardLogger, + useClass: mockedLogger, }, { provide: DataSourceAdapterService, diff --git a/apps/yggdrasil-core-engine/src/app/chatgpt/service/image-chat-gpt/image-chat-gpt.service.ts b/apps/yggdrasil-core-engine/src/app/chatgpt/service/image-chat-gpt/image-chat-gpt.service.ts index caacd9b..dfdf10c 100644 --- a/apps/yggdrasil-core-engine/src/app/chatgpt/service/image-chat-gpt/image-chat-gpt.service.ts +++ b/apps/yggdrasil-core-engine/src/app/chatgpt/service/image-chat-gpt/image-chat-gpt.service.ts @@ -2,7 +2,7 @@ import { Injectable } from '@nestjs/common'; import PromisePool from '@supercharge/promise-pool/dist'; import { DataSourceAdapterService } from '../../../data-source-adapter/data-source-adapter.service'; import { DataSourceType } from '../../../data-source-adapter/adapter/interface/data-source-type.enum'; -import { LoggerHelperService } from '@asgard-hub/nest-winston'; +import { AsgardLogger } from '@asgard-hub/nest-winston'; import { ChatGPTChant } from '@asgard-hub/utils'; import { URLDocSummaryOptions } from '../../interface/chatgpt.service.interface'; import { PartCreateChatCompletionResponse } from '../../interface/create.completion.response.usage.for.rpc.interface'; @@ -17,12 +17,11 @@ export class ImageChatGptService extends BaseFeatureChatGPTService private readonly maxParts = 10; constructor( - loggerHelperService: LoggerHelperService, + private readonly asgardLogger: AsgardLogger, protected readonly chatGPTService: ChatGPTGateWayService, protected readonly dataSourceAdapterService: DataSourceAdapterService ) { super( - loggerHelperService, dataSourceAdapterService, DataSourceType.IMAGE, ImageChatGptService.name @@ -32,10 +31,6 @@ export class ImageChatGptService extends BaseFeatureChatGPTService async fetchSummaryWithGPT( data: URLDocSummaryOptions ): Promise { - const { log, error } = this.trackerLoggerCreator.create( - 'fetchImageSummaryWithGPT' - ); - // read txt from url // convert txt to text const { url, user } = data; @@ -50,7 +45,7 @@ export class ImageChatGptService extends BaseFeatureChatGPTService ).slice(0, this.maxParts); // call get TXT Summary for each part - const { results, errors } = await PromisePool.withConcurrency(3) + const pool = await PromisePool.withConcurrency(3) .for(textContentArray) .useCorrespondingResults() .onTaskFinished(async (item, pool) => { @@ -59,7 +54,7 @@ export class ImageChatGptService extends BaseFeatureChatGPTService minimumFractionDigits: 2, maximumFractionDigits: 2, }) + '%'; - log(`percentage: ${formatted}`); + this.asgardLogger.log(`percentage: ${formatted}`); await delay(Math.random() * 500 + 256); }) .process(async (content, index, pool) => { @@ -72,10 +67,13 @@ export class ImageChatGptService extends BaseFeatureChatGPTService return summary; }); - errors?.length > 0 && errors.forEach((e) => error(e.raw, e.stack, e)); - const summaries = results - .filter((r) => r !== undefined) - .sort((a, b) => a.partNumber - b.partNumber); + pool.errors?.length > 0 && + pool.errors.forEach((e) => this.asgardLogger.error(e.raw, e.stack, e)); + const results = pool.results.filter( + (r) => r !== undefined && (r as any) !== Symbol.for('failed') + ); + + const summaries = results.sort((a, b) => a.partNumber - b.partNumber); return summaries; } @@ -88,11 +86,7 @@ export class ImageChatGptService extends BaseFeatureChatGPTService userExpectation?: string; } ): Promise { - const { log } = this.trackerLoggerCreator.create( - `getTXTSummary: Part: ${info.partNumber}` - ); - - log('transcription start...'); + this.asgardLogger.log('transcription start...'); // call chatgpt service to general messages const generalMessages = this.chatGPTService.generalMessages( @@ -107,7 +101,7 @@ export class ImageChatGptService extends BaseFeatureChatGPTService role: 'user', }); - log('get summary start...'); + this.asgardLogger.log('get summary start...'); // call chatgpt service to get summary const summary = await this.chatGPTService.getGPTResponse( generalMessages, @@ -117,7 +111,7 @@ export class ImageChatGptService extends BaseFeatureChatGPTService temperature: this.temperature, } ); - log('get summary end...'); + this.asgardLogger.log('get summary end...'); return { ...summary, diff --git a/apps/yggdrasil-core-engine/src/app/chatgpt/service/pdf-chat-gpt/pdf-chat-gpt.service.spec.ts b/apps/yggdrasil-core-engine/src/app/chatgpt/service/pdf-chat-gpt/pdf-chat-gpt.service.spec.ts index 452f4c0..1438301 100644 --- a/apps/yggdrasil-core-engine/src/app/chatgpt/service/pdf-chat-gpt/pdf-chat-gpt.service.spec.ts +++ b/apps/yggdrasil-core-engine/src/app/chatgpt/service/pdf-chat-gpt/pdf-chat-gpt.service.spec.ts @@ -2,8 +2,8 @@ import { Test, TestingModule } from '@nestjs/testing'; import { PDFChatGPTService } from './pdf-chat-gpt.service'; import { DataSourceAdapterService } from '../../../data-source-adapter/data-source-adapter.service'; import { ChatGPTGateWayService } from '../../../services/chatgpt-gateway-service/chatgpt.service'; -import { LoggerHelperService } from '@asgard-hub/nest-winston'; -import { MockLoggerHelperService } from '../../../__mocks__/logger-helper.service.spec'; +import { AsgardLogger } from '@asgard-hub/nest-winston'; +import { mockedLogger } from '../../../__mocks__/logger-helper.service.spec'; describe('PdfChatGptService', () => { let service: PDFChatGPTService; @@ -12,8 +12,8 @@ describe('PdfChatGptService', () => { const module: TestingModule = await Test.createTestingModule({ providers: [ { - provide: LoggerHelperService, - useClass: MockLoggerHelperService, + provide: AsgardLogger, + useClass: mockedLogger, }, { provide: DataSourceAdapterService, diff --git a/apps/yggdrasil-core-engine/src/app/chatgpt/service/pdf-chat-gpt/pdf-chat-gpt.service.ts b/apps/yggdrasil-core-engine/src/app/chatgpt/service/pdf-chat-gpt/pdf-chat-gpt.service.ts index 2b1be6a..419b9fb 100644 --- a/apps/yggdrasil-core-engine/src/app/chatgpt/service/pdf-chat-gpt/pdf-chat-gpt.service.ts +++ b/apps/yggdrasil-core-engine/src/app/chatgpt/service/pdf-chat-gpt/pdf-chat-gpt.service.ts @@ -1,6 +1,6 @@ import { Injectable } from '@nestjs/common'; import { ChatGPTGateWayService } from '../../../services/chatgpt-gateway-service/chatgpt.service'; -import { LoggerHelperService } from '@asgard-hub/nest-winston'; +import { AsgardLogger } from '@asgard-hub/nest-winston'; import { BaseFeatureChatGPTService } from '../base-feature-chat-gpt.service'; import { URLDocSummaryOptions } from '../../interface/chatgpt.service.interface'; import { PartCreateChatCompletionResponse } from '../../interface/create.completion.response.usage.for.rpc.interface'; @@ -17,25 +17,16 @@ export class PDFChatGPTService extends BaseFeatureChatGPTService { private readonly maxParts = 25; constructor( - loggerHelperService: LoggerHelperService, + private readonly asgardLogger: AsgardLogger, protected readonly chatGPTService: ChatGPTGateWayService, protected readonly dataSourceAdapterService: DataSourceAdapterService ) { - super( - loggerHelperService, - dataSourceAdapterService, - DataSourceType.PDF, - PDFChatGPTService.name - ); + super(dataSourceAdapterService, DataSourceType.PDF, PDFChatGPTService.name); } async fetchSummaryWithGPT( data: URLDocSummaryOptions ): Promise { - const { log, error } = this.trackerLoggerCreator.create( - 'fetchPDFSummaryWithGPT' - ); - // read pdf from url // convert pdf to text const { url, user } = data; @@ -48,7 +39,7 @@ export class PDFChatGPTService extends BaseFeatureChatGPTService { ).slice(0, this.maxParts); // call get PDF Summary for each part - const { results, errors } = await PromisePool.withConcurrency(3) + const pool = await PromisePool.withConcurrency(3) .for(pdfContentArray) .useCorrespondingResults() .onTaskFinished(async (item, pool) => { @@ -57,7 +48,7 @@ export class PDFChatGPTService extends BaseFeatureChatGPTService { minimumFractionDigits: 2, maximumFractionDigits: 2, }) + '%'; - log(`percentage: ${formatted}`); + this.asgardLogger.log(`percentage: ${formatted}`); await delay(Math.random() * 500 + 256); }) .process(async (content, index, pool) => { @@ -69,10 +60,13 @@ export class PDFChatGPTService extends BaseFeatureChatGPTService { return summary; }); - errors?.length > 0 && errors.forEach((e) => error(e.raw, e.stack, e)); - const summaries = results - .filter((r) => r !== undefined) - .sort((a, b) => a.partNumber - b.partNumber); + pool.errors?.length > 0 && + pool.errors.forEach((e) => this.asgardLogger.error(e.raw, e.stack, e)); + const results = pool.results.filter( + (r) => r !== undefined && (r as any) !== Symbol.for('failed') + ); + + const summaries = results.sort((a, b) => a.partNumber - b.partNumber); return summaries; } @@ -85,15 +79,11 @@ export class PDFChatGPTService extends BaseFeatureChatGPTService { userExpectation?: string; } ): Promise { - const { log } = this.trackerLoggerCreator.create( - `getPDFSummary: Part: ${info.partNumber}` - ); - - log('transcription start...'); + this.asgardLogger.log('transcription start...'); // call chatgpt service to general messages const generalMessages = this.chatGPTService.generalMessages( - ChatGPTChant.pdfSunmmary + ChatGPTChant.pdfSummary ); generalMessages.push({ @@ -103,7 +93,7 @@ export class PDFChatGPTService extends BaseFeatureChatGPTService { role: 'user', }); - log('get summary start...'); + this.asgardLogger.log('get summary start...'); // call chatgpt service to get summary const summary = await this.chatGPTService.getGPTResponse( generalMessages, @@ -113,7 +103,7 @@ export class PDFChatGPTService extends BaseFeatureChatGPTService { temperature: this.temperature, } ); - log('get summary end...'); + this.asgardLogger.log('get summary end...'); return { ...summary, diff --git a/apps/yggdrasil-core-engine/src/app/chatgpt/service/txt-chat-gpt/txt-chat-gpt.service.spec.ts b/apps/yggdrasil-core-engine/src/app/chatgpt/service/txt-chat-gpt/txt-chat-gpt.service.spec.ts index e7b766d..19f85bb 100644 --- a/apps/yggdrasil-core-engine/src/app/chatgpt/service/txt-chat-gpt/txt-chat-gpt.service.spec.ts +++ b/apps/yggdrasil-core-engine/src/app/chatgpt/service/txt-chat-gpt/txt-chat-gpt.service.spec.ts @@ -2,8 +2,8 @@ import { Test, TestingModule } from '@nestjs/testing'; import { TXTChatGptService } from './txt-chat-gpt.service'; import { DataSourceAdapterService } from '../../../data-source-adapter/data-source-adapter.service'; import { ChatGPTGateWayService } from '../../../services/chatgpt-gateway-service/chatgpt.service'; -import { LoggerHelperService } from '@asgard-hub/nest-winston'; -import { MockLoggerHelperService } from '../../../__mocks__/logger-helper.service.spec'; +import { AsgardLogger } from '@asgard-hub/nest-winston'; +import { mockedLogger } from '../../../__mocks__/logger-helper.service.spec'; describe('TxtChatGptService', () => { let service: TXTChatGptService; @@ -12,8 +12,8 @@ describe('TxtChatGptService', () => { const module: TestingModule = await Test.createTestingModule({ providers: [ { - provide: LoggerHelperService, - useClass: MockLoggerHelperService, + provide: AsgardLogger, + useClass: mockedLogger, }, { provide: DataSourceAdapterService, diff --git a/apps/yggdrasil-core-engine/src/app/chatgpt/service/txt-chat-gpt/txt-chat-gpt.service.ts b/apps/yggdrasil-core-engine/src/app/chatgpt/service/txt-chat-gpt/txt-chat-gpt.service.ts index 3f5c5cf..dac49df 100644 --- a/apps/yggdrasil-core-engine/src/app/chatgpt/service/txt-chat-gpt/txt-chat-gpt.service.ts +++ b/apps/yggdrasil-core-engine/src/app/chatgpt/service/txt-chat-gpt/txt-chat-gpt.service.ts @@ -1,7 +1,7 @@ import { Injectable } from '@nestjs/common'; import { DataSourceType } from '../../../data-source-adapter/adapter/interface/data-source-type.enum'; import { DataSourceAdapterService } from '../../../data-source-adapter/data-source-adapter.service'; -import { LoggerHelperService } from '@asgard-hub/nest-winston'; +import { AsgardLogger } from '@asgard-hub/nest-winston'; import { ChatGPTGateWayService } from '../../../services/chatgpt-gateway-service/chatgpt.service'; import { BaseFeatureChatGPTService } from '../base-feature-chat-gpt.service'; import PromisePool from '@supercharge/promise-pool/dist'; @@ -17,25 +17,16 @@ export class TXTChatGptService extends BaseFeatureChatGPTService { private readonly maxParts = 25; constructor( - loggerHelperService: LoggerHelperService, + private readonly asgardLogger: AsgardLogger, protected readonly chatGPTService: ChatGPTGateWayService, protected readonly dataSourceAdapterService: DataSourceAdapterService ) { - super( - loggerHelperService, - dataSourceAdapterService, - DataSourceType.TXT, - TXTChatGptService.name - ); + super(dataSourceAdapterService, DataSourceType.TXT, TXTChatGptService.name); } async fetchSummaryWithGPT( data: URLDocSummaryOptions ): Promise { - const { log, error } = this.trackerLoggerCreator.create( - 'fetchTXTSummaryWithGPT' - ); - // read txt from url // convert txt to text const { url, user } = data; @@ -48,7 +39,7 @@ export class TXTChatGptService extends BaseFeatureChatGPTService { ).slice(0, this.maxParts); // call get TXT Summary for each part - const { results, errors } = await PromisePool.withConcurrency(3) + const pool = await PromisePool.withConcurrency(3) .for(txtContentArray) .useCorrespondingResults() .onTaskFinished(async (item, pool) => { @@ -57,7 +48,7 @@ export class TXTChatGptService extends BaseFeatureChatGPTService { minimumFractionDigits: 2, maximumFractionDigits: 2, }) + '%'; - log(`percentage: ${formatted}`); + this.asgardLogger.log(`percentage: ${formatted}`); await delay(Math.random() * 500 + 256); }) .process(async (content, index, pool) => { @@ -69,10 +60,13 @@ export class TXTChatGptService extends BaseFeatureChatGPTService { return summary; }); - errors?.length > 0 && errors.forEach((e) => error(e.raw, e.stack, e)); - const summaries = results - .filter((r) => r !== undefined) - .sort((a, b) => a.partNumber - b.partNumber); + pool.errors?.length > 0 && + pool.errors.forEach((e) => this.asgardLogger.error(e.raw, e.stack, e)); + const results = pool.results.filter( + (r) => r !== undefined && (r as any) !== Symbol.for('failed') + ); + + const summaries = results.sort((a, b) => a.partNumber - b.partNumber); return summaries; } @@ -85,11 +79,7 @@ export class TXTChatGptService extends BaseFeatureChatGPTService { userExpectation?: string; } ): Promise { - const { log } = this.trackerLoggerCreator.create( - `getTXTSummary: Part: ${info.partNumber}` - ); - - log('transcription start...'); + this.asgardLogger.log('transcription start...'); // call chatgpt service to general messages const generalMessages = this.chatGPTService.generalMessages( @@ -103,7 +93,7 @@ export class TXTChatGptService extends BaseFeatureChatGPTService { role: 'user', }); - log('get summary start...'); + this.asgardLogger.log('get summary start...'); // call chatgpt service to get summary const summary = await this.chatGPTService.getGPTResponse( generalMessages, @@ -113,7 +103,7 @@ export class TXTChatGptService extends BaseFeatureChatGPTService { temperature: this.temperature, } ); - log('get summary end...'); + this.asgardLogger.log('get summary end...'); return { ...summary, diff --git a/apps/yggdrasil-core-engine/src/app/chatgpt/service/url-chat-gpt/url-chat-gpt.service.spec.ts b/apps/yggdrasil-core-engine/src/app/chatgpt/service/url-chat-gpt/url-chat-gpt.service.spec.ts index 1b31234..537ca0b 100644 --- a/apps/yggdrasil-core-engine/src/app/chatgpt/service/url-chat-gpt/url-chat-gpt.service.spec.ts +++ b/apps/yggdrasil-core-engine/src/app/chatgpt/service/url-chat-gpt/url-chat-gpt.service.spec.ts @@ -2,8 +2,8 @@ import { Test, TestingModule } from '@nestjs/testing'; import { URLChatGPTService } from './url-chat-gpt.service'; import { DataSourceAdapterService } from '../../../data-source-adapter/data-source-adapter.service'; import { ChatGPTGateWayService } from '../../../services/chatgpt-gateway-service/chatgpt.service'; -import { LoggerHelperService } from '@asgard-hub/nest-winston'; -import { MockLoggerHelperService } from '../../../__mocks__/logger-helper.service.spec'; +import { AsgardLogger } from '@asgard-hub/nest-winston'; +import { mockedLogger } from '../../../__mocks__/logger-helper.service.spec'; describe('UrlChatGptService', () => { let service: URLChatGPTService; @@ -12,8 +12,8 @@ describe('UrlChatGptService', () => { const module: TestingModule = await Test.createTestingModule({ providers: [ { - provide: LoggerHelperService, - useClass: MockLoggerHelperService, + provide: AsgardLogger, + useClass: mockedLogger, }, { provide: DataSourceAdapterService, diff --git a/apps/yggdrasil-core-engine/src/app/chatgpt/service/url-chat-gpt/url-chat-gpt.service.ts b/apps/yggdrasil-core-engine/src/app/chatgpt/service/url-chat-gpt/url-chat-gpt.service.ts index 568367d..6d29de1 100644 --- a/apps/yggdrasil-core-engine/src/app/chatgpt/service/url-chat-gpt/url-chat-gpt.service.ts +++ b/apps/yggdrasil-core-engine/src/app/chatgpt/service/url-chat-gpt/url-chat-gpt.service.ts @@ -1,7 +1,7 @@ import { Injectable } from '@nestjs/common'; import { DataSourceAdapterService } from '../../../data-source-adapter/data-source-adapter.service'; import { DataSourceType } from '../../../data-source-adapter/adapter/interface/data-source-type.enum'; -import { LoggerHelperService } from '@asgard-hub/nest-winston'; +import { AsgardLogger } from '@asgard-hub/nest-winston'; import { BaseFeatureChatGPTService } from '../base-feature-chat-gpt.service'; import { ChatGPTGateWayService } from '../../../services/chatgpt-gateway-service/chatgpt.service'; import { URLAdapter } from '../../../data-source-adapter/adapter/url-adapter'; @@ -16,25 +16,16 @@ export class URLChatGPTService extends BaseFeatureChatGPTService { private readonly textSplitSize = 2560; constructor( - loggerHelperService: LoggerHelperService, + private readonly asgardLogger: AsgardLogger, protected readonly chatGPTService: ChatGPTGateWayService, protected readonly dataSourceAdapterService: DataSourceAdapterService ) { - super( - loggerHelperService, - dataSourceAdapterService, - DataSourceType.URL, - URLChatGPTService.name - ); + super(dataSourceAdapterService, DataSourceType.URL, URLChatGPTService.name); } async fetchSummaryWithGPT( data: URLDocSummaryOptions ): Promise { - const { log, error } = this.trackerLoggerCreator.create( - 'fetchURLSummaryWithGPT' - ); - // read txt from url // convert txt to text const { url, user } = data; @@ -47,7 +38,7 @@ export class URLChatGPTService extends BaseFeatureChatGPTService { ).slice(0, 25); // call get TXT Summary for each part - const { results, errors } = await PromisePool.withConcurrency(3) + const pool = await PromisePool.withConcurrency(3) .for(txtContentArray) .useCorrespondingResults() .onTaskFinished(async (item, pool) => { @@ -56,7 +47,7 @@ export class URLChatGPTService extends BaseFeatureChatGPTService { minimumFractionDigits: 2, maximumFractionDigits: 2, }) + '%'; - log(`percentage: ${formatted}`); + this.asgardLogger.log(`percentage: ${formatted}`); await delay(Math.random() * 500 + 256); }) .process(async (content, index, pool) => { @@ -69,10 +60,13 @@ export class URLChatGPTService extends BaseFeatureChatGPTService { return summary; }); - errors?.length > 0 && errors.forEach((e) => error(e.raw, e.stack, e)); - const summaries = results - .filter((r) => r !== undefined) - .sort((a, b) => a.partNumber - b.partNumber); + pool.errors?.length > 0 && + pool.errors.forEach((e) => this.asgardLogger.error(e.raw, e.stack, e)); + const results = pool.results.filter( + (r) => r !== undefined && (r as any) !== Symbol.for('failed') + ); + + const summaries = results.sort((a, b) => a.partNumber - b.partNumber); return summaries; } @@ -86,11 +80,7 @@ export class URLChatGPTService extends BaseFeatureChatGPTService { userExpectation?: string; } ): Promise { - const { log } = this.trackerLoggerCreator.create( - `getTXTSummary: Part: ${info.partNumber}` - ); - - log('transcription start...'); + this.asgardLogger.log('transcription start...'); // call chatgpt service to general messages const generalMessages = this.chatGPTService.generalMessages( @@ -105,7 +95,7 @@ export class URLChatGPTService extends BaseFeatureChatGPTService { role: 'user', }); - log('get summary start...'); + this.asgardLogger.log('get summary start...'); // call chatgpt service to get summary const summary = await this.chatGPTService.getGPTResponse( generalMessages, @@ -115,7 +105,7 @@ export class URLChatGPTService extends BaseFeatureChatGPTService { temperature: this.temperature, } ); - log('get summary end...'); + this.asgardLogger.log('get summary end...'); return { ...summary, diff --git a/apps/yggdrasil-core-engine/src/app/chatgpt/service/yt-chat-gpt/yt-chat-gpt.service.spec.ts b/apps/yggdrasil-core-engine/src/app/chatgpt/service/yt-chat-gpt/yt-chat-gpt.service.spec.ts index ababe52..b5c8c7a 100644 --- a/apps/yggdrasil-core-engine/src/app/chatgpt/service/yt-chat-gpt/yt-chat-gpt.service.spec.ts +++ b/apps/yggdrasil-core-engine/src/app/chatgpt/service/yt-chat-gpt/yt-chat-gpt.service.spec.ts @@ -4,8 +4,8 @@ import { DataSourceAdapterService } from '../../../data-source-adapter/data-sour import { ChatGPTGateWayService } from '../../../services/chatgpt-gateway-service/chatgpt.service'; import { EventEmitter2 } from '@nestjs/event-emitter'; import { YoutubeRecordService } from '../../../services/youtube-record/youtube-record.service'; -import { LoggerHelperService } from '@asgard-hub/nest-winston'; -import { MockLoggerHelperService } from '../../../__mocks__/logger-helper.service.spec'; +import { AsgardLogger } from '@asgard-hub/nest-winston'; +import { mockedLogger } from '../../../__mocks__/logger-helper.service.spec'; describe('YtChatGptService', () => { let service: YTChatGPTService; @@ -14,8 +14,8 @@ describe('YtChatGptService', () => { const module: TestingModule = await Test.createTestingModule({ providers: [ { - provide: LoggerHelperService, - useClass: MockLoggerHelperService, + provide: AsgardLogger, + useClass: mockedLogger, }, { provide: DataSourceAdapterService, diff --git a/apps/yggdrasil-core-engine/src/app/chatgpt/service/yt-chat-gpt/yt-chat-gpt.service.ts b/apps/yggdrasil-core-engine/src/app/chatgpt/service/yt-chat-gpt/yt-chat-gpt.service.ts index e11f524..9a8e384 100644 --- a/apps/yggdrasil-core-engine/src/app/chatgpt/service/yt-chat-gpt/yt-chat-gpt.service.ts +++ b/apps/yggdrasil-core-engine/src/app/chatgpt/service/yt-chat-gpt/yt-chat-gpt.service.ts @@ -10,7 +10,7 @@ import { } from '../../interface/create.completion.response.usage.for.rpc.interface'; import { EventEmitter2 } from '@nestjs/event-emitter'; import { YoutubeRecordService } from '../../../services/youtube-record/youtube-record.service'; -import { LoggerHelperService } from '@asgard-hub/nest-winston'; +import { AsgardLogger } from '@asgard-hub/nest-winston'; import { BaseFeatureChatGPTService } from '../base-feature-chat-gpt.service'; import { delay } from '@asgard-hub/utils'; import { DataSourceAdapterService } from '../../../data-source-adapter/data-source-adapter.service'; @@ -22,14 +22,13 @@ import { DownloadAudioEvent } from '../../../services/youtube-dl/youtube-dl.serv @Injectable() export class YTChatGPTService extends BaseFeatureChatGPTService { constructor( - loggerHelperService: LoggerHelperService, + private readonly asgardLogger: AsgardLogger, protected readonly chatGPTService: ChatGPTGateWayService, protected readonly dataSourceAdapterService: DataSourceAdapterService, protected eventEmitter: EventEmitter2, protected readonly youtubeRecordService: YoutubeRecordService ) { super( - loggerHelperService, dataSourceAdapterService, DataSourceType.YOUTUBE, YTChatGPTService.name @@ -39,10 +38,7 @@ export class YTChatGPTService extends BaseFeatureChatGPTService async fetchSummaryWithGPT( data: YTSummaryOptions ): Promise { - const { log, error } = this.trackerLoggerCreator.create( - 'fetchYoutubeSummaryWithGPT' - ); - log(`called ${data.url}`); + this.asgardLogger.log(`called ${data.url}`); const { url, user } = data; @@ -52,11 +48,11 @@ export class YTChatGPTService extends BaseFeatureChatGPTService // find record by url const record = await this.youtubeRecordService.findRecordByYtId(id); - data.isForced && log('isForced is true'); + data.isForced && this.asgardLogger.log('isForced is true'); if (record && !data.isForced) { // if record exists, return the record - log('record exists, return the record'); + this.asgardLogger.log('record exists, return the record'); return record.response; } @@ -64,13 +60,13 @@ export class YTChatGPTService extends BaseFeatureChatGPTService let transcriptions: PartCreateTranscriptionResponse[]; try { - log('audio download start...'); + this.asgardLogger.log('audio download start...'); // call youtube-dl service to download audio const { audioFilePath, title, channel, metaData } = await this.getAdapter().getDataFormUrlSaveAsPath( url ); - log('audio download end...'); + this.asgardLogger.log('audio download end...'); // need to split audio file to 180 seconds const paths = await splitAudioFile(audioFilePath, 180); @@ -84,7 +80,7 @@ export class YTChatGPTService extends BaseFeatureChatGPTService minimumFractionDigits: 2, maximumFractionDigits: 2, }) + '%'; - log(`percentage: ${formatted}`); + this.asgardLogger.log(`percentage: ${formatted}`); await delay(Math.random() * 500 + 256); }) .process(async (path, index, pool) => { @@ -105,7 +101,9 @@ export class YTChatGPTService extends BaseFeatureChatGPTService }); promisePool.errors?.length > 0 && - promisePool.errors.forEach((e) => error(e.raw, e.stack, e)); + promisePool.errors.forEach((e) => + this.asgardLogger.error(e.raw, e.stack, e) + ); const results = promisePool.results.filter( (r) => r !== undefined && (r as any) !== Symbol.for('failed') ); @@ -147,7 +145,7 @@ export class YTChatGPTService extends BaseFeatureChatGPTService channelId: metaData.channelId, }); } catch (e) { - error(e?.message, e.stack, e); + this.asgardLogger.error(e?.message, e.stack, e); } return summaries; @@ -166,20 +164,16 @@ export class YTChatGPTService extends BaseFeatureChatGPTService summary: PartCreateChatCompletionResponse; transcription: PartCreateTranscriptionResponse; }> { - const { log } = this.trackerLoggerCreator.create( - `getYoutubeSummary: Title: ${info.title}, Part: ${info.partNumber}` - ); - - log('transcription start...'); + this.asgardLogger.log('transcription start...'); const transcription = await this.getAdapter().getDataFromPath( audioFilePath ); - log('transcription end...'); + this.asgardLogger.log('transcription end...'); // call chatgpt service to general messages const generalMessages = this.chatGPTService.generalMessages( - ChatGPTChant.youtubeSunmmary + ChatGPTChant.youtubeSummary ); generalMessages.push({ @@ -191,7 +185,7 @@ export class YTChatGPTService extends BaseFeatureChatGPTService role: 'user', }); - log('get summary start...'); + this.asgardLogger.log('get summary start...'); // call chatgpt service to get summary const summary = await this.chatGPTService.getGPTResponse( generalMessages, @@ -201,7 +195,7 @@ export class YTChatGPTService extends BaseFeatureChatGPTService temperature: this.temperature, } ); - log('get summary end...'); + this.asgardLogger.log('get summary end...'); return { summary: { diff --git a/apps/yggdrasil-core-engine/src/app/services/chatgpt-gateway-service/chatgpt.service.spec.ts b/apps/yggdrasil-core-engine/src/app/services/chatgpt-gateway-service/chatgpt.service.spec.ts index df0b197..3b7d228 100644 --- a/apps/yggdrasil-core-engine/src/app/services/chatgpt-gateway-service/chatgpt.service.spec.ts +++ b/apps/yggdrasil-core-engine/src/app/services/chatgpt-gateway-service/chatgpt.service.spec.ts @@ -1,11 +1,11 @@ import { Test, TestingModule } from '@nestjs/testing'; import { ChatGPTGateWayService } from './chatgpt.service'; -import { LoggerHelperService } from '@asgard-hub/nest-winston'; -import { MockLoggerHelperService } from '../../__mocks__/logger-helper.service.spec'; import { ConfigService } from '@nestjs/config'; import { NestOpenAIClientService } from '@sd0x/nest-openai-client'; import { mockOpenAIClient } from '../../__mocks__/mock-openai-client.spec'; import { ChatGPTChant } from '@asgard-hub/utils'; +import { AsgardLogger } from '@asgard-hub/nest-winston'; +import { mockedLogger } from '../../__mocks__/logger-helper.service.spec'; describe('ChatGPTGateWayService', () => { let service: ChatGPTGateWayService; @@ -13,8 +13,8 @@ describe('ChatGPTGateWayService', () => { const module: TestingModule = await Test.createTestingModule({ providers: [ { - provide: LoggerHelperService, - useClass: MockLoggerHelperService, + provide: AsgardLogger, + useClass: mockedLogger, }, { provide: ConfigService, diff --git a/apps/yggdrasil-core-engine/src/app/services/chatgpt-gateway-service/chatgpt.service.ts b/apps/yggdrasil-core-engine/src/app/services/chatgpt-gateway-service/chatgpt.service.ts index a076eb1..c5a6409 100644 --- a/apps/yggdrasil-core-engine/src/app/services/chatgpt-gateway-service/chatgpt.service.ts +++ b/apps/yggdrasil-core-engine/src/app/services/chatgpt-gateway-service/chatgpt.service.ts @@ -3,7 +3,6 @@ import { ChatGPTChant } from '@asgard-hub/utils'; import { ChatCompletionRequestMessage, CreateChatCompletionResponse, - OpenAIApi, } from 'openai'; import { CreateCompletionResponseUsageForRPC } from '../../chatgpt/interface/create.completion.response.usage.for.rpc.interface'; import { createReadStream } from 'fs'; @@ -11,32 +10,23 @@ import { setupRequestMessage } from '@asgard-hub/utils'; import { Observable } from 'rxjs'; import { IncomingMessage } from 'node:http'; import { ConfigService } from '@nestjs/config'; -import { - LoggerHelperService, - TrackerLoggerCreator, -} from '@asgard-hub/nest-winston'; import { NestOpenAIClientService } from '@sd0x/nest-openai-client'; +import { AsgardLogger } from '@asgard-hub/nest-winston'; @Injectable() export class ChatGPTGateWayService { - protected trackerLoggerCreator: TrackerLoggerCreator; - constructor( - loggerHelperService: LoggerHelperService, + private readonly asgardLogger: AsgardLogger, protected readonly configService: ConfigService, private readonly nestOpenAIClientService: NestOpenAIClientService - ) { - this.trackerLoggerCreator = loggerHelperService.create( - ChatGPTGateWayService.name - ); - } + ) {} generalMessages( chant: ChatGPTChant, customPrompt?: { title: string; linguisticFraming: string } ): ChatCompletionRequestMessage[] { - const { log, error } = this.trackerLoggerCreator.create('GeneralMessages'); - log(`called ${chant}`); + ('GeneralMessages'); + this.asgardLogger.log(`called ${chant}`); const messageChant = setupRequestMessage(chant, customPrompt); return messageChant.messages; @@ -52,14 +42,14 @@ export class ChatGPTGateWayService { maxTokens?: number; } ): Promise { - const { log, verbose, error } = - this.trackerLoggerCreator.create('GeneralMessages'); - log(`getGPTResponse: user: ${user}`); - log(`getGPTResponse: messages:`); + this.asgardLogger.log(`getGPTResponse: user: ${user}`); + this.asgardLogger.log(`getGPTResponse: messages:`); messages?.forEach((m) => - verbose(`${m.role}: ${m.content}, ${m?.name ?? 'unknown'}`) + this.asgardLogger.verbose( + `${m.role}: ${m.content}, ${m?.name ?? 'unknown'}` + ) ); - log(`temperature: ${options?.temperature}`); + this.asgardLogger.log(`temperature: ${options?.temperature}`); if (!messages) { return undefined; @@ -78,10 +68,10 @@ export class ChatGPTGateWayService { temperature: options?.temperature, }); - log(`id: ${response.data?.id}`); - log(`model: ${response.data?.model}`); - log(`created: ${response.data?.created}`); - log(`total token: ${response.data?.usage?.total_tokens}`); + this.asgardLogger.log(`id: ${response.data?.id}`); + this.asgardLogger.log(`model: ${response.data?.model}`); + this.asgardLogger.log(`created: ${response.data?.created}`); + this.asgardLogger.log(`total token: ${response.data?.usage?.total_tokens}`); const data = response.data; @@ -110,11 +100,10 @@ export class ChatGPTGateWayService { responses: CreateChatCompletionResponse[]; }> > { - const { log, error } = this.trackerLoggerCreator.create('GeneralMessages'); - log(`getGPTResponse: user: ${user}`); - log(`getGPTResponse: messages:`); - log(messages); - log(`temperature: ${options?.temperature}`); + this.asgardLogger.log(`getGPTResponse: user: ${user}`); + this.asgardLogger.log(`getGPTResponse: messages:`); + this.asgardLogger.log(messages); + this.asgardLogger.log(`temperature: ${options?.temperature}`); const openai = isUseAzure ? this.nestOpenAIClientService.getAzureOpenAIApiClient() @@ -151,7 +140,9 @@ export class ChatGPTGateWayService { ); deltas.push(delta); } catch (e) { - error(`Error with JSON.parse and ${payload}.\n${e}`); + this.asgardLogger.error( + `Error with JSON.parse and ${payload}.\n${e}` + ); } } } diff --git a/apps/yggdrasil-core-engine/src/app/services/cloud-error-reporting/cloud-error-reporting.service.ts b/apps/yggdrasil-core-engine/src/app/services/cloud-error-reporting/cloud-error-reporting.service.ts deleted file mode 100644 index d0f0bc1..0000000 --- a/apps/yggdrasil-core-engine/src/app/services/cloud-error-reporting/cloud-error-reporting.service.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { ErrorReporting } from '@google-cloud/error-reporting'; -import { Injectable, OnApplicationBootstrap } from '@nestjs/common'; -import { resolve } from 'path'; - -@Injectable() -export class CloudErrorReportingService implements OnApplicationBootstrap { - private client: ErrorReporting; - - onApplicationBootstrap() { - this.client = new ErrorReporting({ - keyFilename: resolve( - __dirname, - '..', - '..', - 'static', - 'key-files', - 'general-382514-77d9e50805af.json' - ), - reportMode: - process.env.NODE_ENV === 'production' ? 'production' : 'always', - serviceContext: { - service: `yu-gpt-core-${process.env.NODE_ENV}`, - version: process.env.SERVER_VERSION || 'unknown', - }, - }); - } - - report(err: Error) { - try { - this.client.report(err); - } catch (err) { - console.error(err); - } - } -} diff --git a/apps/yggdrasil-core-engine/src/app/services/cloud-storage/cloud-storage.service.ts b/apps/yggdrasil-core-engine/src/app/services/cloud-storage/cloud-storage.service.ts deleted file mode 100644 index 2ef0053..0000000 --- a/apps/yggdrasil-core-engine/src/app/services/cloud-storage/cloud-storage.service.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { Injectable } from '@nestjs/common'; - -@Injectable() -export class CloudStorageService {} diff --git a/apps/yggdrasil-core-engine/src/app/services/service.module.ts b/apps/yggdrasil-core-engine/src/app/services/service.module.ts index d724c5d..d3b50a8 100644 --- a/apps/yggdrasil-core-engine/src/app/services/service.module.ts +++ b/apps/yggdrasil-core-engine/src/app/services/service.module.ts @@ -5,9 +5,7 @@ import { YoutubeDlService } from './youtube-dl/youtube-dl.service'; import { MongoModule } from '../mongo/mongo.module'; import { YoutubeRecordService } from './youtube-record/youtube-record.service'; import { YoutubeDataService } from './youtube-data/youtube-data.service'; -import { CloudStorageService } from './cloud-storage/cloud-storage.service'; import { YAudioTranscriptionService } from './y-audio-transcription/youtube-record.service'; -import { CloudErrorReportingService } from './cloud-error-reporting/cloud-error-reporting.service'; import { ChatGPTGateWayService } from './chatgpt-gateway-service/chatgpt.service'; import { ConfigService } from '@nestjs/config'; import { NestWinstonModule } from '@asgard-hub/nest-winston'; @@ -61,8 +59,6 @@ import { IOpenAIConfig } from '../config/open.ai.config'; YoutubeRecordService, YoutubeDataService, YAudioTranscriptionService, - CloudStorageService, - CloudErrorReportingService, ], exports: [ ChatGPTGateWayService, diff --git a/apps/yggdrasil-discord-client/Dockerfile b/apps/yggdrasil-discord-client/Dockerfile new file mode 100644 index 0000000..2505d90 --- /dev/null +++ b/apps/yggdrasil-discord-client/Dockerfile @@ -0,0 +1,34 @@ +FROM docker.io/node:18.16 AS development + +WORKDIR /usr/src/app + +COPY --chown=node:node package*.json ./ + +RUN npm ci + +COPY --chown=node:node . . + +USER node + +FROM node:lts-slim As build + +WORKDIR /usr/src/app + +COPY --chown=node:node package*.json ./ +COPY --chown=node:node --from=development /usr/src/app/node_modules ./node_modules +COPY --chown=node:node . . + +RUN npx nx run yggdrasil-discord-client:build +RUN npm cache clean --force + +USER node + +FROM docker.io/node:18.16-alpine AS production + +COPY --chown=node:node --from=build /usr/src/app/dist/apps/yggdrasil-discord-client ./yggdrasil-discord-client +COPY --chown=node:node --from=development /usr/src/app/node_modules ./node_modules + +ARG SERVER_VERSION +ENV SERVER_VERSION=${SERVER_VERSION} + +CMD [ "node", "yggdrasil-discord-client" ] diff --git a/apps/yggdrasil-discord-client/src/.env.local.example b/apps/yggdrasil-discord-client/src/.env.local.example new file mode 100644 index 0000000..88c84dc --- /dev/null +++ b/apps/yggdrasil-discord-client/src/.env.local.example @@ -0,0 +1,13 @@ +PACKAGE_NAME='yggdrasil-discord-client' + +CORE_ENGINE_PACKAGE=chatgpt +CORE_ENGINE_URL='localhost:5000' +CORE_ENGINE_API_KEY= + +# Bot 1 +DISCORD_TOKEN= +DISCORD_BOT_CLIENT_ID= +DISCORD_DEVELOP_CHANNEL_ID= +DISCORD_DISABLE_BOT_CHANNEL_IDS= +DISCORD_PERMANENT_CHANNEL_ID= +DISCORD_PERMANENT_CHANNEL_IDS=[] diff --git a/apps/yggdrasil-discord-client/src/app/__mocks__/logger-helper.service.spec.ts b/apps/yggdrasil-discord-client/src/app/__mocks__/logger-helper.service.spec.ts index 191574e..60932ea 100755 --- a/apps/yggdrasil-discord-client/src/app/__mocks__/logger-helper.service.spec.ts +++ b/apps/yggdrasil-discord-client/src/app/__mocks__/logger-helper.service.spec.ts @@ -3,17 +3,6 @@ import { LoggerService } from '@nestjs/common'; export function mockClearAll() { // Reset mockedLogger Object.values(innerMockedLogger).forEach((m) => m.mockClear()); - - // Reset LoggerHelperService - mockedLoggerHelperServiceMakeCreator.mockClear(); - MockLoggerHelperService.mockClear(); - - // Reset TrackerLoggerCreator - mockedTrackerLoggerCreatorCreate.mockClear(); - TrackerLoggerCreator.mockClear(); - - // Reset TrackerLogger - TrackerLogger.mockClear(); } // Default mocked Logger @@ -25,76 +14,13 @@ const innerMockedLogger = { verbose: jest.fn(), }; -export const mockedLogger: LoggerService = innerMockedLogger; - -// class LoggerHelperService -export const mockedLoggerHelperServiceMakeCreator = jest.fn(function ( - name: string -) { - return new TrackerLoggerCreator(mockedLogger, name); -}); - -export const MockLoggerHelperService = jest.fn().mockImplementation(() => { - return { - create: mockedLoggerHelperServiceMakeCreator, - }; -}); - -// class TrackerLoggerCreator -export const mockedTrackerLoggerCreatorCreate = jest.fn(function ( - trackingId: string -) { - return new TrackerLogger(this.loggerService, this.name, trackingId); -}); - -export const TrackerLoggerCreator = jest - .fn() - .mockImplementation((logger: LoggerService, name: string) => { - return { - name, - loggerService: logger, - create: mockedTrackerLoggerCreatorCreate, - }; - }); - -// class TrackerLogger -export const TrackerLogger = jest - .fn() - .mockImplementation( - (loggerService: LoggerService, name: string, _trackingId: string) => { - function createMessage(message: any) { - return { - trackingId: _trackingId, - message: `${name}: ${message}`, - }; - } - - const mocked = { - name, - loggerService, - _trackingId, - createMessage, - log: (message: any, context?: string) => - loggerService.log(createMessage(message), context), - error: (message: any, context?: string) => - loggerService.error(createMessage(message), context), - warn: (message: any, context?: string) => - loggerService.warn(createMessage(message), context), - debug: (message: any, context?: string) => - loggerService.debug(createMessage(message), context), - verbose: (message: any, context?: string) => - loggerService.verbose(createMessage(message), context), - }; - - Object.defineProperty(mocked, 'trackingId', { - get: function () { - return this._trackingId; - }, - }); - - return mocked; - } - ); +export class mockedLogger implements LoggerService { + log = innerMockedLogger.log; + error = innerMockedLogger.error; + warn = innerMockedLogger.warn; + debug = innerMockedLogger.debug; + verbose = innerMockedLogger.verbose; +} it('should be defined', () => { expect(mockedLogger).toBeDefined(); diff --git a/apps/yggdrasil-discord-client/src/app/app.module.ts b/apps/yggdrasil-discord-client/src/app/app.module.ts index 96a83a7..5842758 100644 --- a/apps/yggdrasil-discord-client/src/app/app.module.ts +++ b/apps/yggdrasil-discord-client/src/app/app.module.ts @@ -16,7 +16,6 @@ import { isTest, } from './discord-bot/constants/common.constant'; import { ClientsModule, Transport } from '@nestjs/microservices'; -import { resolve } from 'path'; import { IRedisConfig, redisConfig } from './config/redis.config'; import { ICoreEngineConfig, diff --git a/apps/yggdrasil-discord-client/src/app/discord-bot/discord-bot.service.ts b/apps/yggdrasil-discord-client/src/app/discord-bot/discord-bot.service.ts index 6c098b9..9524c35 100644 --- a/apps/yggdrasil-discord-client/src/app/discord-bot/discord-bot.service.ts +++ b/apps/yggdrasil-discord-client/src/app/discord-bot/discord-bot.service.ts @@ -1,49 +1,26 @@ -import { - Inject, - Injectable, - OnApplicationBootstrap, - OnModuleDestroy, -} from '@nestjs/common'; +import { Inject, Injectable, OnApplicationBootstrap } from '@nestjs/common'; import fs = require('fs'); -import { - TrackerLoggerCreator, - LoggerHelperService, -} from '@asgard-hub/nest-winston'; -import { - Client, - Events, - GatewayIntentBits, - Message, - Partials, - TextChannel, - ActivityType, -} from 'discord.js'; +import { AsgardLogger } from '@asgard-hub/nest-winston'; +import { Events, Message, TextChannel, ActivityType } from 'discord.js'; import { DISCORD_BOT_MODULE_OPTIONS } from './constants/discord-bot.constants'; import { DiscordBotModuleOptions } from './interface/discord-bot-module'; import { validateYoutubeUrl } from './utils/validate-youtube-url'; -import { MessageService } from './services/message/message.service'; import { DataSourceType } from './interface/data-source-type.enum'; import { ClientProxy } from '@nestjs/microservices'; import { DiscordClientService } from './services/discord-client/discord-client.service'; import { lastValueFrom } from 'rxjs'; @Injectable() -export class DiscordBotService { - private readonly trackerLoggerCreator: TrackerLoggerCreator; - +export class DiscordBotService implements OnApplicationBootstrap { constructor( - loggerHelperService: LoggerHelperService, + private readonly asgardLogger: AsgardLogger, @Inject(DISCORD_BOT_MODULE_OPTIONS) private readonly options: DiscordBotModuleOptions, @Inject('BOT_SERVICE') private botClient: ClientProxy, private readonly discordClientService: DiscordClientService - ) { - this.trackerLoggerCreator = loggerHelperService.create( - DiscordBotService.name - ); - } + ) {} async onApplicationBootstrap() { await this.botClient.connect(); @@ -52,29 +29,26 @@ export class DiscordBotService { return; } - const { log, error } = this.trackerLoggerCreator.create('EVENTS'); - - log('setup listener'); + this.asgardLogger.log('setup listener'); try { - this.discordClientService.discordClient.on( + this.discordClientService.dClient.on( Events.ClientReady, this.clientReadyListeners ); - this.discordClientService.discordClient.on( + this.discordClientService.dClient.on( Events.MessageCreate, this.messageCreateListeners ); } catch (e) { - error(e); + this.asgardLogger.error(e); } } private clientReadyListeners = async (): Promise => { - const { log, error } = this.trackerLoggerCreator.create('EVENTS'); - log( + this.asgardLogger.log( `${this.options.discordOptions.discordBotClientId} Discord Bot is ready!` ); - this.discordClientService.discordClient.user.setActivity( + this.discordClientService.dClient.user.setActivity( this.options.config.runtime.isProd ? '🏮 有什麼想跟我說嗎?' : `🏮 我是基於開發版本 ${process.env.SERVER_VERSION},請不要跟我說話`, @@ -92,33 +66,33 @@ export class DiscordBotService { ): Promise => { if (message.author.bot) return; - const { log, verbose, error } = this.trackerLoggerCreator.create('EVENTS'); - const isNotNeedToResponse = this.isNotNeedToResponse(message); if (isNotNeedToResponse) { - log('not prod and not develop channel, so no response'); + this.asgardLogger.log('not prod and not develop channel, so no response'); return; } const isDisableBotChannel = this.isDisableBotChannel(message); if (isDisableBotChannel) { - log('this channel is disable bot channel'); + this.asgardLogger.log('this channel is disable bot channel'); return; } const isNeedToResponse = this.isNeedToResponse(message); - verbose(`isUserCreateMessage: ${isNeedToResponse}`); + this.asgardLogger.verbose(`isUserCreateMessage: ${isNeedToResponse}`); // if message is a reply - log(`message is a reply: ${message?.reference ? true : false}`); + this.asgardLogger.log( + `message is a reply: ${message?.reference ? true : false}` + ); if (await this.isReferenceAndNeedToResponse(message)) { - verbose('is a reply message'); + this.asgardLogger.verbose('is a reply message'); this.botClient.emit('chatbot:discord:chat', message); return; } if (!isNeedToResponse) { - log('not user create message, so no response'); + this.asgardLogger.log('not user create message, so no response'); return; } @@ -130,7 +104,7 @@ export class DiscordBotService { //validate youtube url const isYtRequest = validateYoutubeUrl(messageContent); if (isYtRequest) { - log(`message is a youtube url: ${isYtRequest}`); + this.asgardLogger.log(`message is a youtube url: ${isYtRequest}`); if ( !this.options.discordOptions?.alphaWhitelistedUserIds?.includes( message.author.id @@ -193,7 +167,7 @@ export class DiscordBotService { ); if (!this.isPermanentChannel(message)) { - log('not in permanent channel, so no response'); + this.asgardLogger.log('not in permanent channel, so no response'); return; } @@ -201,7 +175,7 @@ export class DiscordBotService { } if (this.isEmptyMessage(message)) { - log('message is empty, so no response'); + this.asgardLogger.log('message is empty, so no response'); return; } @@ -210,9 +184,6 @@ export class DiscordBotService { }; private isNeedToResponse(message: Message) { - const { log, verbose, error } = - this.trackerLoggerCreator.create('isNeedToResponse'); - const atBot = `<@${this.options.discordOptions.discordBotClientId}>`; const haveAttachment = message.attachments.size > 0; @@ -221,8 +192,8 @@ export class DiscordBotService { message.content.startsWith(atBot) && (message.content.replace(atBot, '').trim().length > 0 || haveAttachment); - verbose(`message.channelId: ${message.channelId}`); - verbose(`haveAtBotMessage: ${haveAtBotMessage}`); + this.asgardLogger.verbose(`message.channelId: ${message.channelId}`); + this.asgardLogger.verbose(`haveAtBotMessage: ${haveAtBotMessage}`); return ( haveAtBotMessage || @@ -261,10 +232,6 @@ export class DiscordBotService { } private async isReferenceAndNeedToResponse(message: Message) { - const { log, verbose, error } = this.trackerLoggerCreator.create( - 'isReferenceAndNeedToResponse' - ); - // if not reference if ( !message?.reference || @@ -282,7 +249,9 @@ export class DiscordBotService { !replyMessage?.author || replyMessage.author.id !== this.options.discordOptions.discordBotClientId ) { - verbose('reply message is not bot message, so no response'); + this.asgardLogger.verbose( + 'reply message is not bot message, so no response' + ); return false; } diff --git a/apps/yggdrasil-discord-client/src/app/discord-bot/services/discord-client/discord-client.service.spec.ts b/apps/yggdrasil-discord-client/src/app/discord-bot/services/discord-client/discord-client.service.spec.ts index cc20551..5d06910 100644 --- a/apps/yggdrasil-discord-client/src/app/discord-bot/services/discord-client/discord-client.service.spec.ts +++ b/apps/yggdrasil-discord-client/src/app/discord-bot/services/discord-client/discord-client.service.spec.ts @@ -1,8 +1,8 @@ import { Test, TestingModule } from '@nestjs/testing'; import { DiscordClientService } from './discord-client.service'; -import { LoggerHelperService } from '@asgard-hub/nest-winston'; -import { MockLoggerHelperService } from '../../../__mocks__/logger-helper.service.spec'; import { DISCORD_BOT_MODULE_OPTIONS } from '../../constants/discord-bot.constants'; +import { AsgardLogger } from '@asgard-hub/nest-winston'; +import { mockedLogger } from '../../../__mocks__/logger-helper.service.spec'; describe('DiscordClientService', () => { let service: DiscordClientService; @@ -11,8 +11,8 @@ describe('DiscordClientService', () => { const module: TestingModule = await Test.createTestingModule({ providers: [ { - provide: LoggerHelperService, - useClass: MockLoggerHelperService, + provide: AsgardLogger, + useClass: mockedLogger, }, { provide: DISCORD_BOT_MODULE_OPTIONS, diff --git a/apps/yggdrasil-discord-client/src/app/discord-bot/services/discord-client/discord-client.service.ts b/apps/yggdrasil-discord-client/src/app/discord-bot/services/discord-client/discord-client.service.ts index 6ca8a52..b27e55b 100644 --- a/apps/yggdrasil-discord-client/src/app/discord-bot/services/discord-client/discord-client.service.ts +++ b/apps/yggdrasil-discord-client/src/app/discord-bot/services/discord-client/discord-client.service.ts @@ -1,27 +1,19 @@ -import { Inject, Injectable } from '@nestjs/common'; +import { Inject, Injectable, OnApplicationShutdown } from '@nestjs/common'; import { Client, Events, GatewayIntentBits, Partials } from 'discord.js'; -import { - LoggerHelperService, - TrackerLoggerCreator, -} from '@asgard-hub/nest-winston'; +import { AsgardLogger } from '@asgard-hub/nest-winston'; import { DISCORD_BOT_MODULE_OPTIONS } from '../../constants/discord-bot.constants'; import { DiscordBotModuleOptions } from '../../interface/discord-bot-module'; @Injectable() -export class DiscordClientService { - private readonly trackerLoggerCreator: TrackerLoggerCreator; +export class DiscordClientService implements OnApplicationShutdown { private client: Client; private token: string; constructor( - loggerHelperService: LoggerHelperService, + private readonly asgardLogger: AsgardLogger, @Inject(DISCORD_BOT_MODULE_OPTIONS) private readonly options: DiscordBotModuleOptions - ) { - this.trackerLoggerCreator = loggerHelperService.create( - DiscordClientService.name - ); - } + ) {} private async setupClient() { this.client = new Client({ @@ -45,15 +37,16 @@ export class DiscordClientService { await this.client.login(this.token); } - get discordClient(): Client { + get dClient(): Client { if (!this.client) { + this.asgardLogger.log('setup client'); this.setupClient(); } return this.client; } - onModuleDestroy() { + onApplicationShutdown() { this.client.removeAllListeners(); this.client.destroy(); this.client = null; diff --git a/apps/yggdrasil-discord-client/src/app/discord-bot/services/message/message.service.spec.ts b/apps/yggdrasil-discord-client/src/app/discord-bot/services/message/message.service.spec.ts index 9630623..b0485b6 100644 --- a/apps/yggdrasil-discord-client/src/app/discord-bot/services/message/message.service.spec.ts +++ b/apps/yggdrasil-discord-client/src/app/discord-bot/services/message/message.service.spec.ts @@ -1,8 +1,8 @@ import { Test, TestingModule } from '@nestjs/testing'; import { MessageService } from './message.service'; import { SetupKeywordService } from '../setup-keyword/setup-keyword.service'; -import { LoggerHelperService } from '@asgard-hub/nest-winston'; -import { MockLoggerHelperService } from '../../../__mocks__/logger-helper.service.spec'; +import { AsgardLogger } from '@asgard-hub/nest-winston'; +import { mockedLogger } from '../../../__mocks__/logger-helper.service.spec'; import { DiscordClientService } from '../discord-client/discord-client.service'; describe('MessageService', () => { @@ -12,8 +12,8 @@ describe('MessageService', () => { const module: TestingModule = await Test.createTestingModule({ providers: [ { - provide: LoggerHelperService, - useClass: MockLoggerHelperService, + provide: AsgardLogger, + useClass: mockedLogger, }, { provide: DiscordClientService, diff --git a/apps/yggdrasil-discord-client/src/app/discord-bot/services/message/message.service.ts b/apps/yggdrasil-discord-client/src/app/discord-bot/services/message/message.service.ts index 3b1d3f9..939adb9 100644 --- a/apps/yggdrasil-discord-client/src/app/discord-bot/services/message/message.service.ts +++ b/apps/yggdrasil-discord-client/src/app/discord-bot/services/message/message.service.ts @@ -1,9 +1,4 @@ -import { - Inject, - Injectable, - OnApplicationBootstrap, - OnModuleInit, -} from '@nestjs/common'; +import { Inject, Injectable, OnModuleInit } from '@nestjs/common'; import { Message, MessagePayload, @@ -14,10 +9,6 @@ import { } from 'discord.js'; import { List, Stack } from 'immutable'; import { lastValueFrom } from 'rxjs'; -import { - LoggerHelperService, - TrackerLoggerCreator, -} from '@asgard-hub/nest-winston'; import { DISCORD_BOT_MODULE_OPTIONS, DiSCORD_SPLIT_MESSAGE_TARGET, @@ -26,7 +17,7 @@ import { import { ChatCompletionRequestMessage, CreateCompletionResponse } from 'openai'; import { DiscordBotModuleOptions } from '../../interface/discord-bot-module'; import { SetupKeywordService } from '../setup-keyword/setup-keyword.service'; -import { ClientGrpc, ClientProxy } from '@nestjs/microservices'; +import { ClientGrpc } from '@nestjs/microservices'; import { Metadata } from '@grpc/grpc-js'; import { splitString } from '../../utils/split-string'; import { delay } from '../../utils/delay'; @@ -35,24 +26,22 @@ import { DiscordClientService } from '../discord-client/discord-client.service'; import { ChatGPTChant } from '../../interface/chatgpt-chant.enum'; import { DataSourceType } from '../../interface/data-source-type.enum'; import { CreateCompletionResponseUsageForRPC } from '../../interface/create.completion.response.usage.for.rpc.interface'; +import { AsgardLogger } from '@asgard-hub/nest-winston'; @Injectable() export class MessageService implements OnModuleInit { - private readonly trackerLoggerCreator: TrackerLoggerCreator; private chatGPTService: ChatGPTService; private metadata = new Metadata(); constructor( - loggerHelperService: LoggerHelperService, + private readonly asgardLogger: AsgardLogger, @Inject(DISCORD_BOT_MODULE_OPTIONS) private readonly options: DiscordBotModuleOptions, @Inject('CHATGPT_PACKAGE') private readonly grpcClient: ClientGrpc, private readonly keywordService: SetupKeywordService, private readonly discordClientService: DiscordClientService - ) { - this.trackerLoggerCreator = loggerHelperService.create(MessageService.name); - } + ) {} async onModuleInit() { this.chatGPTService = @@ -63,8 +52,6 @@ export class MessageService implements OnModuleInit { } async createYoutubeResponse(message: Message) { - const { log, error } = this.trackerLoggerCreator.create('EVENTS'); - // validate youtube url const messageContent = this.trimDiscordBotClientId(message); @@ -72,7 +59,7 @@ export class MessageService implements OnModuleInit { const urls = messageContent.match(urlRegex); const url = urls[0]; - log(`youtube url: ${url}`); + this.asgardLogger.log(`youtube url: ${url}`); let currentMessage = message; await this.sendMessageReply( @@ -115,7 +102,7 @@ export class MessageService implements OnModuleInit { currentMessage = await this.sendMessageReply(content, currentMessage); } } catch (e) { - error(e); + this.asgardLogger.error(e); await this.sendMessageReply( '相關核心依賴發生錯誤,可能需要檢查 🎏', currentMessage @@ -127,8 +114,6 @@ export class MessageService implements OnModuleInit { message: Message, dataSourceType: DataSourceType ) { - const { log, error } = this.trackerLoggerCreator.create('EVENTS'); - // validate url const urlContent = this.trimDiscordBotClientId(message).replace('url', ''); @@ -153,7 +138,7 @@ export class MessageService implements OnModuleInit { const url = urls[0]; - log(`url: ${url}`); + this.asgardLogger.log(`url: ${url}`); let currentMessage = message; await this.sendMessageReply( @@ -200,7 +185,7 @@ export class MessageService implements OnModuleInit { currentMessage = await this.sendMessageReply(content, currentMessage); } } catch (e) { - error(e); + this.asgardLogger.error(e); await this.sendMessageReply( '相關核心依賴發生錯誤,可能需要檢查 🎏', currentMessage @@ -212,8 +197,6 @@ export class MessageService implements OnModuleInit { message: Message, dataSourceType: DataSourceType ) { - const { log, error } = this.trackerLoggerCreator.create('EVENTS'); - // validate youtube url const docURL = message.attachments.first()?.url; const userMessageContent = this.trimDiscordBotClientId(message).replace( @@ -242,7 +225,7 @@ export class MessageService implements OnModuleInit { const url = urls[0]; - log(`docs url: ${url}`); + this.asgardLogger.log(`docs url: ${url}`); let currentMessage = message; await this.sendMessageReply( @@ -292,7 +275,7 @@ export class MessageService implements OnModuleInit { currentMessage = await this.sendMessageReply(content, currentMessage); } } catch (e) { - error(e); + this.asgardLogger.error(e); await this.sendMessageReply( '相關核心依賴發生錯誤,可能需要檢查 🎏', currentMessage @@ -301,10 +284,6 @@ export class MessageService implements OnModuleInit { } async createResponse(message: Message) { - const { log, error } = this.trackerLoggerCreator.create( - `EVENT: createResponse` - ); - message = await this.getRefreshedMessage(message); try { @@ -319,24 +298,26 @@ export class MessageService implements OnModuleInit { messageStack = await this.setupOggSpeech(messageStack); } - log(`setting up request...`); + this.asgardLogger.log(`setting up request...`); const request = await this.setupGeneralHistoryMessages(messageStack); - request.forEach((r) => log(`${r.role}, ${r.name}: ${r.content}`)); - log(`setting up response...`); + request.forEach((r) => + this.asgardLogger.log(`${r.role}, ${r.name}: ${r.content}`) + ); + this.asgardLogger.log(`setting up response...`); const result = await this.responseUser(request, message.author.id); const response = result.response; - log(`successfully get response`); + this.asgardLogger.log(`successfully get response`); - log(`prepare to send message...`); + this.asgardLogger.log(`prepare to send message...`); await (message.channel as TextChannel).sendTyping(); await this.sendMessageReply(response, message, result.tokens); - log(`successfully send message: ${response}`); - log(`successfully send message`); + this.asgardLogger.log(`successfully send message: ${response}`); + this.asgardLogger.log(`successfully send message`); } catch (e) { - error(e); + this.asgardLogger.error(e); await this.sendMessageReply( `很遺憾,目前暫時無法服務您。請稍後再試, Message: ${e?.message}`, message @@ -345,7 +326,7 @@ export class MessageService implements OnModuleInit { } private async getRefreshedMessage(message: Message) { - const client = this.discordClientService.discordClient; + const client = this.discordClientService.dClient; const refreshedChannel: TextChannel = (await client.channels.fetch( message.channelId, { @@ -367,10 +348,6 @@ export class MessageService implements OnModuleInit { } async createAudioTranscriptionResponse(message: Message) { - const { log, error } = this.trackerLoggerCreator.create( - `EVENT: createAudioTranscriptionResponse` - ); - try { // show typing await (message.channel as TextChannel).sendTyping(); @@ -382,7 +359,7 @@ export class MessageService implements OnModuleInit { return; } - log(`setting up request...`); + this.asgardLogger.log(`setting up request...`); const response = await lastValueFrom( this.chatGPTService.fetchAudioTranscription( { @@ -392,18 +369,18 @@ export class MessageService implements OnModuleInit { this.metadata ) ); - log(`setting up response...`); + this.asgardLogger.log(`setting up response...`); let currentMessage = message; for (const r of response.responses) { currentMessage = await this.sendMessageReply(r.text, message); // show typing await (message.channel as TextChannel).sendTyping(); } - log(`successfully get response`); + this.asgardLogger.log(`successfully get response`); return currentMessage; } catch (e) { - error(e); + this.asgardLogger.error(e); await this.sendMessageReply( `很遺憾,目前暫時無法服務您。請稍後再試, Message: ${e?.message}`, message @@ -490,10 +467,6 @@ export class MessageService implements OnModuleInit { // setup history messages async setupGeneralHistoryMessages(messageStack: Stack>) { - const { log } = this.trackerLoggerCreator.create( - `EVENT: setupGeneralHistoryMessages` - ); - let conversation: ChatCompletionRequestMessage[] = []; const totalSize = messageStack.size; let conversationChant = undefined; @@ -549,7 +522,7 @@ export class MessageService implements OnModuleInit { } if (!messages) { - log(`no prefix message, skip this message...`); + this.asgardLogger.log(`no prefix message, skip this message...`); messageStack = messageStack.pop(); continue; } @@ -570,7 +543,7 @@ export class MessageService implements OnModuleInit { GPT_3_5_CHAR_COUNT && messageStack.size > 1 ) { - log(`message is too long, skip this message...`); + this.asgardLogger.log(`message is too long, skip this message...`); messageStack = messageStack.pop(); continue; } @@ -611,10 +584,6 @@ export class MessageService implements OnModuleInit { tokens = 0, isCode = false ) { - const { log, error } = this.trackerLoggerCreator.create( - 'EVENTS: sendMessageReply' - ); - let messageQueue = this.setupMessageQueue( response, DiSCORD_SPLIT_MESSAGE_TARGET @@ -622,10 +591,10 @@ export class MessageService implements OnModuleInit { let currentMessage: Message = message; - log(`start to send ${messageQueue.size} messages...`); + this.asgardLogger.log(`start to send ${messageQueue.size} messages...`); while (messageQueue.size > 0) { try { - log(`total message queue: ${messageQueue.size}`); + this.asgardLogger.log(`total message queue: ${messageQueue.size}`); const content = messageQueue.first(); if (!content) continue; messageQueue = messageQueue.shift(); @@ -650,7 +619,7 @@ export class MessageService implements OnModuleInit { // delay 256ms, to avoid rate limit await delay(256); } catch (e) { - error(e); + this.asgardLogger.error(e); await currentMessage.reply({ content: `System error, please try again later. ${e.message}`, }); @@ -659,7 +628,7 @@ export class MessageService implements OnModuleInit { } } - log(`successfully send message...`); + this.asgardLogger.log(`successfully send message...`); return currentMessage; } @@ -669,9 +638,6 @@ export class MessageService implements OnModuleInit { // respond user from chatgpt async responseUser(contents: ChatCompletionRequestMessage[], user: string) { - const { log, error } = this.trackerLoggerCreator.create( - 'EVENT: responseUser' - ); try { let retryCount = 0; let shouldRetry = true; @@ -696,7 +662,7 @@ export class MessageService implements OnModuleInit { shouldRetry = true; } shouldRetry = false; - error(e); + this.asgardLogger.error(e); throw new Error(`System Error: ${e.message} ${e.response?.data}`); } retryCount += 1; @@ -704,9 +670,11 @@ export class MessageService implements OnModuleInit { const usage: CreateCompletionResponseUsageForRPC = result?.usage; - log(`use completion tokens: ${usage?.completionTokens}`); - log(`use prompt tokens: ${usage?.promptTokens}`); - log(`use tokens: ${usage?.totalTokens}`); + this.asgardLogger.log( + `use completion tokens: ${usage?.completionTokens}` + ); + this.asgardLogger.log(`use prompt tokens: ${usage?.promptTokens}`); + this.asgardLogger.log(`use tokens: ${usage?.totalTokens}`); return { response: result?.choices[0]?.message?.content, @@ -714,8 +682,8 @@ export class MessageService implements OnModuleInit { }; } catch (e) { const eResponse = e.response?.data; - error(eResponse); - error(e, 'responseUser', e.message); + this.asgardLogger.error(eResponse); + this.asgardLogger.error(e, 'responseUser', e.message); return { response: `Sorry, System Error. Please try again later. ${ eResponse?.error?.message ?? e.message @@ -741,12 +709,8 @@ export class MessageService implements OnModuleInit { // response user from completions private async responseUserFromCompletions(prompt: string) { - const { log, error } = this.trackerLoggerCreator.create( - 'EVENT: responseUserFromCompletions' - ); - - log(`prompt code...`); - log(prompt); + this.asgardLogger.log(`prompt code...`); + this.asgardLogger.log(prompt); try { const result: CreateCompletionResponse | any = await lastValueFrom( @@ -761,9 +725,11 @@ export class MessageService implements OnModuleInit { const usage: CreateCompletionResponseUsageForRPC = result?.usage; - log(`use completion tokens: ${usage?.completionTokens}`); - log(`use prompt tokens: ${usage?.promptTokens}`); - log(`use tokens: ${usage?.totalTokens}`); + this.asgardLogger.log( + `use completion tokens: ${usage?.completionTokens}` + ); + this.asgardLogger.log(`use prompt tokens: ${usage?.promptTokens}`); + this.asgardLogger.log(`use tokens: ${usage?.totalTokens}`); return { response: result?.choices[0]?.text, @@ -771,8 +737,8 @@ export class MessageService implements OnModuleInit { }; } catch (e) { const eResponse = e.response?.data; - error(eResponse); - error(e, 'responseUserFromCompletions', e.message); + this.asgardLogger.error(eResponse); + this.asgardLogger.error(e, 'responseUserFromCompletions', e.message); return { response: `Sorry, System Error. Please try again later. ${ eResponse?.error?.message ?? e.message @@ -789,9 +755,7 @@ export class MessageService implements OnModuleInit { } private async setupOggSpeech(messageStack: Stack>) { - const { log, error } = this.trackerLoggerCreator.create('EVENT: setupOgg'); - - log(`start to setup ogg...`); + this.asgardLogger.log(`start to setup ogg...`); for (const message of messageStack) { try { const url = message.attachments.first()?.url; @@ -810,11 +774,11 @@ export class MessageService implements OnModuleInit { const content = response.responses.map((r) => r.text).join('\n'); message.content = content; } catch (e) { - error(e); + this.asgardLogger.error(e); } } - log(`successfully setup ogg...`); + this.asgardLogger.log(`successfully setup ogg...`); return messageStack; } } diff --git a/apps/yggdrasil-discord-client/src/app/discord-bot/services/setup-keyword/setup-keyword.service.spec.ts b/apps/yggdrasil-discord-client/src/app/discord-bot/services/setup-keyword/setup-keyword.service.spec.ts index 1a24d22..7879029 100644 --- a/apps/yggdrasil-discord-client/src/app/discord-bot/services/setup-keyword/setup-keyword.service.spec.ts +++ b/apps/yggdrasil-discord-client/src/app/discord-bot/services/setup-keyword/setup-keyword.service.spec.ts @@ -1,7 +1,7 @@ import { Test, TestingModule } from '@nestjs/testing'; import { SetupKeywordService } from './setup-keyword.service'; -import { LoggerHelperService } from '@asgard-hub/nest-winston'; -import { MockLoggerHelperService } from '../../../__mocks__/logger-helper.service.spec'; +import { AsgardLogger } from '@asgard-hub/nest-winston'; +import { mockedLogger } from '../../../__mocks__/logger-helper.service.spec'; import { DISCORD_BOT_MODULE_OPTIONS } from '../../constants/discord-bot.constants'; import { HttpService } from '@nestjs/axios'; describe('SetupKeywordService', () => { @@ -11,8 +11,8 @@ describe('SetupKeywordService', () => { const module: TestingModule = await Test.createTestingModule({ providers: [ { - provide: LoggerHelperService, - useClass: MockLoggerHelperService, + provide: AsgardLogger, + useClass: mockedLogger, }, { provide: 'CHATGPT_PACKAGE', diff --git a/apps/yggdrasil-discord-client/src/app/discord-bot/services/setup-keyword/setup-keyword.service.ts b/apps/yggdrasil-discord-client/src/app/discord-bot/services/setup-keyword/setup-keyword.service.ts index 9e649e0..b2bf31a 100644 --- a/apps/yggdrasil-discord-client/src/app/discord-bot/services/setup-keyword/setup-keyword.service.ts +++ b/apps/yggdrasil-discord-client/src/app/discord-bot/services/setup-keyword/setup-keyword.service.ts @@ -3,10 +3,6 @@ import { Message } from 'discord.js'; import { CreateChatCompletionResponse } from 'openai'; import pdfParse from 'pdf-parse'; import { lastValueFrom } from 'rxjs'; -import { - TrackerLoggerCreator, - LoggerHelperService, -} from '@asgard-hub/nest-winston'; import { DISCORD_BOT_MODULE_OPTIONS, GPT_3_5_CHAR_URL_COUNT, @@ -18,25 +14,21 @@ import * as cheerio from 'cheerio'; import { DiscordBotModuleOptions } from '../../interface/discord-bot-module'; import { ChatGPTChant } from '../../interface/chatgpt-chant.enum'; import { ChatGPTService } from '../../interface/chatgpt.service.interface'; +import { AsgardLogger } from '@asgard-hub/nest-winston'; @Injectable() export class SetupKeywordService implements OnModuleInit { - private readonly trackerLoggerCreator: TrackerLoggerCreator; private chatGPTService: ChatGPTService; private metadata = new Metadata(); constructor( - loggerHelperService: LoggerHelperService, + private readonly asgardLogger: AsgardLogger, @Inject(DISCORD_BOT_MODULE_OPTIONS) private readonly options: DiscordBotModuleOptions, @Inject('CHATGPT_PACKAGE') private readonly grpcClient: ClientGrpc, private readonly httpService: HttpService - ) { - this.trackerLoggerCreator = loggerHelperService.create( - SetupKeywordService.name - ); - } + ) {} async onModuleInit() { this.chatGPTService = await this.grpcClient.getService( @@ -51,9 +43,7 @@ export class SetupKeywordService implements OnModuleInit { chant: ChatGPTChant, message: Message ) { - const { log } = this.trackerLoggerCreator.create(`EVENT: setupKeyword`); - - log(`----- start -----`); + this.asgardLogger.log(`----- start -----`); // url Helper if (content.startsWith('http')) { @@ -423,15 +413,13 @@ export class SetupKeywordService implements OnModuleInit { content = `優化: ${content.replace('coe', '').trim()}\n\n建議:`; } - log(`----- End -----`); + this.asgardLogger.log(`----- End -----`); return { content, chant, prefixTitle }; } // create url message async createUrlMessage(url: string) { - const { log } = this.trackerLoggerCreator.create(`EVENT: createUrlMessage`); - - log(`start to read url: ${url}`); + this.asgardLogger.log(`start to read url: ${url}`); const response = this.httpService.get(url, { responseType: 'arraybuffer', }); diff --git a/libs/nest-winston/src/index.ts b/libs/nest-winston/src/index.ts index c46c672..cfac54d 100644 --- a/libs/nest-winston/src/index.ts +++ b/libs/nest-winston/src/index.ts @@ -1,2 +1,2 @@ export * from './lib/nest-winston.module'; -export * from './lib/logger-helper.service'; +export * from './lib/logger.service'; diff --git a/libs/nest-winston/src/lib/logger-helper.service.ts b/libs/nest-winston/src/lib/logger-helper.service.ts deleted file mode 100644 index 3b283e7..0000000 --- a/libs/nest-winston/src/lib/logger-helper.service.ts +++ /dev/null @@ -1,119 +0,0 @@ -import { Inject, Injectable, LoggerService } from '@nestjs/common'; -import { NestWinstonModuleOptions } from '../interface/nest-winston-module'; -import { WINSTON_MODULE_NEST_PROVIDER } from 'nest-winston'; -import { NEST_WINSTON_MODULE_OPTIONS } from '../constants/nest-winston.constants'; - -@Injectable() -export class LoggerHelperService { - constructor( - @Inject(WINSTON_MODULE_NEST_PROVIDER) - private readonly loggerService: LoggerService, - @Inject(NEST_WINSTON_MODULE_OPTIONS) - private readonly options: NestWinstonModuleOptions - ) {} - - /** - * 建立有冠上領域名稱的 `Logger` - * @param name 領域名稱,如:CopAccount、Image 等等 - */ - create(name?: string): TrackerLoggerCreator { - return new TrackerLoggerCreator(this.loggerService, name); - } -} - -/** - * 封裝 `trackingId` 的建立者。 - * 此類別會先初步封裝來自外部的 `LoggerService` 以及領域名稱 - */ -export class TrackerLoggerCreator { - /** - * @param loggerService 來自外部的 `LoggerService` - * @param name 領域名稱,如:CopAccount、Image 等等 - */ - constructor( - private readonly loggerService: LoggerService, - private readonly name?: string - ) {} - - create(trackingId: string) { - return new TrackerLogger( - this.loggerService, - this.name ?? 'general', - trackingId - ); - } -} - -/** - * 原則上經由 `TrackerLoggerCreator` 帶入 `trackingId` 並建成可用的 `Logger` - */ -export class TrackerLogger implements LoggerService { - /** - * @param loggerService 來自外部的 LoggerService - * @param name 領域名稱,如:CopAccount、Image 等等 - */ - constructor( - private readonly loggerService: LoggerService, - private readonly name: string, - private readonly _trackingId: string - ) {} - - get trackingId(): string { - return this._trackingId; - } - - /** - * 為訊息冠上領域名稱前綴與追蹤 Id - * @param message 訊息 - */ - private createMessage = (message: unknown) => { - if (message?.constructor == Object || message?.constructor == Array) { - message = JSON.stringify(message, null, 4); - } - - return message; - }; - - log = (message: unknown, context?: string) => { - this.loggerService.log( - this.createMessage(message), - this.trackingId, - context - ); - }; - - error = (message: unknown, trace?: string, context?: Error) => { - this.loggerService.error( - this.createMessage(message), - this.trackingId, - trace, - context - ); - }; - - warn = (message: unknown, context?: string) => { - this.loggerService.warn( - this.createMessage(message), - this.trackingId, - context - ); - }; - - debug? = (message: unknown, context?: string) => { - this.loggerService.debug && - this.loggerService.debug( - this.createMessage(message), - this.trackingId, - context - ); - }; - - verbose? = (message: unknown, context?: string) => { - this.loggerService.verbose && - this.loggerService.verbose( - this.createMessage(message), - this.trackingId, - context - ); - }; -} diff --git a/libs/nest-winston/src/lib/logger-helper.service.spec.ts b/libs/nest-winston/src/lib/logger.service.spec.ts similarity index 59% rename from libs/nest-winston/src/lib/logger-helper.service.spec.ts rename to libs/nest-winston/src/lib/logger.service.spec.ts index d5d435d..e496d12 100644 --- a/libs/nest-winston/src/lib/logger-helper.service.spec.ts +++ b/libs/nest-winston/src/lib/logger.service.spec.ts @@ -1,11 +1,11 @@ import { Test } from '@nestjs/testing'; -import { LoggerHelperService } from './logger-helper.service'; +import { AsgardLogger } from './logger.service'; import { WINSTON_MODULE_NEST_PROVIDER } from 'nest-winston'; import { NEST_WINSTON_MODULE_OPTIONS } from '../constants/nest-winston.constants'; describe('LoggerHelperService', () => { - let service: LoggerHelperService; + let service: AsgardLogger; beforeAll(async () => { const app = await Test.createTestingModule({ @@ -24,62 +24,56 @@ describe('LoggerHelperService', () => { provide: NEST_WINSTON_MODULE_OPTIONS, useValue: jest.fn(), }, - LoggerHelperService, + AsgardLogger, ], }).compile(); - service = app.get(LoggerHelperService); + service = app.get(AsgardLogger); }); describe('create', () => { it('should return TrackerLoggerCreator', () => { - expect(service.create()).toBeInstanceOf(Object); + expect(service).toBeInstanceOf(Object); }); it('should return TrackerLoggerCreator with name', () => { - expect(service.create('test')).toBeInstanceOf(Object); + expect(service).toBeInstanceOf(Object); }); }); describe('TrackerLoggerCreator', () => { it('should return TrackerLogger', () => { - expect(service.create().create('test')).toBeInstanceOf(Object); - }); - }); - - describe('TrackerLogger', () => { - it('should return trackingId', () => { - expect(service.create().create('test').trackingId).toBe('test'); + expect(service).toBeInstanceOf(Object); }); }); describe('log', () => { it('should return void', () => { - expect(service.create().create('test').log('test')).toBeUndefined(); + expect(service.log('test')).toBeUndefined(); }); }); describe('error', () => { it('should return void', () => { - expect(service.create().create('test').error('test')).toBeUndefined(); + expect(service.error('test')).toBeUndefined(); }); }); describe('warn', () => { it('should return void', () => { - expect(service.create().create('test').warn('test')).toBeUndefined(); + expect(service.warn('test')).toBeUndefined(); }); }); describe('debug', () => { it('should return void', () => { - expect(service.create().create('test').debug?.('test')).toBeUndefined(); + expect(service.debug?.('test')).toBeUndefined(); }); }); describe('verbose', () => { it('should return void', () => { - expect(service.create().create('test').verbose?.('test')).toBeUndefined(); + expect(service.verbose?.('test')).toBeUndefined(); }); }); }); diff --git a/libs/nest-winston/src/lib/logger.service.ts b/libs/nest-winston/src/lib/logger.service.ts new file mode 100644 index 0000000..21c68c2 --- /dev/null +++ b/libs/nest-winston/src/lib/logger.service.ts @@ -0,0 +1,48 @@ +import { Inject, Injectable, LoggerService } from '@nestjs/common'; +import { NestWinstonModuleOptions } from '../interface/nest-winston-module'; +import { WINSTON_MODULE_NEST_PROVIDER } from 'nest-winston'; +import { NEST_WINSTON_MODULE_OPTIONS } from '../constants/nest-winston.constants'; + +@Injectable() +export class AsgardLogger implements LoggerService { + constructor( + @Inject(WINSTON_MODULE_NEST_PROVIDER) + private readonly loggerService: LoggerService, + @Inject(NEST_WINSTON_MODULE_OPTIONS) + private readonly options: NestWinstonModuleOptions + ) {} + + /** + * 為訊息冠上領域名稱前綴與追蹤 Id + * @param message 訊息 + */ + private createMessage = (message: unknown) => { + if (message?.constructor == Object || message?.constructor == Array) { + message = JSON.stringify(message, null, 4); + } + + return message; + }; + + log = (message: unknown, context?: string) => { + this.loggerService.log(this.createMessage(message), context); + }; + + error = (message: unknown, trace?: string, context?: Error) => { + this.loggerService.error(this.createMessage(message), trace, context); + }; + + warn = (message: unknown, context?: string) => { + this.loggerService.warn(this.createMessage(message), context); + }; + + debug? = (message: unknown, context?: string) => { + this.loggerService.debug && + this.loggerService.debug(this.createMessage(message), context); + }; + + verbose? = (message: unknown, context?: string) => { + this.loggerService.verbose && + this.loggerService.verbose(this.createMessage(message), context); + }; +} diff --git a/libs/nest-winston/src/lib/nest-winston.module.ts b/libs/nest-winston/src/lib/nest-winston.module.ts index 8515cf9..65f9650 100644 --- a/libs/nest-winston/src/lib/nest-winston.module.ts +++ b/libs/nest-winston/src/lib/nest-winston.module.ts @@ -4,7 +4,7 @@ import { utilities as nestWinstonModuleUtilities, WinstonModule, } from 'nest-winston'; -import { LoggerHelperService } from './logger-helper.service'; +import { AsgardLogger } from './logger.service'; import { NestWinstonOptionsSupplement } from '../interface/nest-winston-options.interface'; import { NestWinstonModuleAsyncOptions, @@ -18,8 +18,8 @@ import { @Module({ imports: [], - providers: [LoggerHelperService], - exports: [LoggerHelperService], + providers: [AsgardLogger], + exports: [AsgardLogger], }) export class NestWinstonModule { static async registerAsync( @@ -64,7 +64,7 @@ export class NestWinstonModule { }, { provide: NestWinstonOptionsSupplement.LOGGER_HELPER_SERVICE, - useClass: LoggerHelperService, + useClass: AsgardLogger, }, ], exports: [ diff --git a/libs/utils/src/lib/chatgpt-chant.enum.ts b/libs/utils/src/lib/chatgpt-chant.enum.ts index 11d017d..08eaa47 100644 --- a/libs/utils/src/lib/chatgpt-chant.enum.ts +++ b/libs/utils/src/lib/chatgpt-chant.enum.ts @@ -22,8 +22,8 @@ export enum ChatGPTChant { relationalDatabaseProfessor = 'relationalDatabaseProfessor', discordExpert = 'discordExpert', dddExpert = 'dddExpert', - youtubeSunmmary = 'youtubeSunmmary', - pdfSunmmary = 'pdfSunmmary', + youtubeSummary = 'youtubeSunmmary', + pdfSummary = 'pdfSunmmary', txtSunmmary = 'txtSunmmary', urlSummary = 'urlSunmmary', imageSummary = 'imageSummary', diff --git a/libs/utils/src/lib/setup.request.message.ts b/libs/utils/src/lib/setup.request.message.ts index 79bb092..93f3bfa 100644 --- a/libs/utils/src/lib/setup.request.message.ts +++ b/libs/utils/src/lib/setup.request.message.ts @@ -125,9 +125,9 @@ export function setupRequestMessage( return new DiscordExpertChant(chant); case ChatGPTChant.dddExpert: return new DddExpertChant(chant); - case ChatGPTChant.youtubeSunmmary: + case ChatGPTChant.youtubeSummary: return new YoutubeSummaryChant(chant); - case ChatGPTChant.pdfSunmmary: + case ChatGPTChant.pdfSummary: return new PDFSummaryChant(chant); case ChatGPTChant.txtSunmmary: return new TXTSummaryChant(chant); diff --git a/package-lock.json b/package-lock.json index 683514e..7c2f744 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,26 +10,26 @@ "license": "MIT", "dependencies": { "@google-cloud/error-reporting": "^3.0.5", - "@google-cloud/vision": "^3.1.3", - "@grpc/grpc-js": "^1.8.15", - "@grpc/proto-loader": "^0.7.7", + "@google-cloud/vision": "^3.1.4", + "@grpc/grpc-js": "^1.9.0", + "@grpc/proto-loader": "^0.7.8", "@nestjs/axios": "^2.0.0", - "@nestjs/common": "^9.4.2", - "@nestjs/config": "^2.3.2", - "@nestjs/core": "9.4.2", + "@nestjs/common": "^9.4.3", + "@nestjs/config": "^2.3.4", + "@nestjs/core": "^9.4.3", "@nestjs/event-emitter": "^1.4.1", - "@nestjs/microservices": "^9.4.2", + "@nestjs/microservices": "^9.4.3", "@nestjs/mongoose": "^9.2.2", - "@nestjs/platform-express": "^9.4.2", - "@sd0x/nest-openai-client": "^0.0.9", + "@nestjs/platform-express": "^9.4.3", + "@sd0x/nest-openai-client": "^0.0.10", "@supercharge/promise-pool": "^2.4.0", "axios": "^1.4.0", "cheerio": "^1.0.0-rc.12", - "discord.js": "^14.11.0", + "discord.js": "^14.12.1", "fluent-ffmpeg": "^2.1.2", "form-data": "^4.0.0", "ioredis": "^5.3.2", - "langchain": "^0.0.92", + "langchain": "^0.0.129", "mongoose": "^7.2.3", "nest-winston": "^1.9.2", "nodejieba": "^2.6.0", @@ -40,12 +40,12 @@ "rxjs": "^7.8.1", "tslib": "^2.3.0", "uid": "^2.0.2", - "winston": "^3.9.0", - "youtube-dl-exec": "^2.4.4" + "winston": "^3.10.0", + "youtube-dl-exec": "^2.4.7" }, "devDependencies": { "@nestjs/schematics": "^9.2.0", - "@nestjs/testing": "^9.4.2", + "@nestjs/testing": "^9.4.3", "@nx/eslint-plugin": "16.3.2", "@nx/jest": "16.3.2", "@nx/js": "16.3.2", @@ -54,7 +54,7 @@ "@nx/node": "16.3.2", "@nx/webpack": "16.3.2", "@nx/workspace": "16.3.2", - "@types/jest": "^29.5.2", + "@types/jest": "^29.5.3", "@types/node": "~18.7.23", "@typescript-eslint/eslint-plugin": "^5.59.9", "@typescript-eslint/parser": "^5.59.9", @@ -127,14 +127,25 @@ } }, "node_modules/@anthropic-ai/sdk": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-0.4.3.tgz", - "integrity": "sha512-SZrlXvjUUYT9rPmSzlTtmVk1OjVNpkCzILRluhiYwNcxXfQyvPJDi0CI6PyymygcgtqEF5EVqhKmC/PtPsNEIw==", + "version": "0.5.10", + "resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-0.5.10.tgz", + "integrity": "sha512-P8xrIuTUO/6wDzcjQRUROXp4WSqtngbXaE4GpEu0PhEmnq/1Q8vbF1s0o7W07EV3j8zzRoyJxAKovUJtNXH7ew==", "dependencies": { - "@fortaine/fetch-event-source": "^3.0.6", - "cross-fetch": "^3.1.5" + "@types/node": "^18.11.18", + "@types/node-fetch": "^2.6.4", + "abort-controller": "^3.0.0", + "agentkeepalive": "^4.2.1", + "digest-fetch": "^1.3.0", + "form-data-encoder": "1.7.2", + "formdata-node": "^4.3.2", + "node-fetch": "^2.6.7" } }, + "node_modules/@anthropic-ai/sdk/node_modules/@types/node": { + "version": "18.17.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.17.5.tgz", + "integrity": "sha512-xNbS75FxH6P4UXTPUJp/zNPq6/xsfdJKussCWNOnz4aULWIRwMgP1LgaB5RiBnMX1DPCYenuqGZfnIAx5mbFLA==" + }, "node_modules/@babel/code-frame": { "version": "7.21.4", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.21.4.tgz", @@ -2036,26 +2047,26 @@ } }, "node_modules/@discordjs/builders": { - "version": "1.6.3", - "resolved": "https://registry.npmjs.org/@discordjs/builders/-/builders-1.6.3.tgz", - "integrity": "sha512-CTCh8NqED3iecTNuiz49mwSsrc2iQb4d0MjMdmS/8pb69Y4IlzJ/DIy/p5GFlgOrFbNO2WzMHkWKQSiJ3VNXaw==", + "version": "1.6.4", + "resolved": "https://registry.npmjs.org/@discordjs/builders/-/builders-1.6.4.tgz", + "integrity": "sha512-ARFKvmAkLhfkQQiNxqi0YIWqwUExvBRtvdtMFVJXvJoibsGkFrB/DWTf9byU7BTVUfsmW8w7NM55tYXR5S/iSg==", "dependencies": { "@discordjs/formatters": "^0.3.1", - "@discordjs/util": "^0.3.1", - "@sapphire/shapeshift": "^3.8.2", - "discord-api-types": "^0.37.41", + "@discordjs/util": "^1.0.0", + "@sapphire/shapeshift": "^3.9.2", + "discord-api-types": "^0.37.50", "fast-deep-equal": "^3.1.3", "ts-mixer": "^6.0.3", - "tslib": "^2.5.0" + "tslib": "^2.6.1" }, "engines": { "node": ">=16.9.0" } }, "node_modules/@discordjs/collection": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/@discordjs/collection/-/collection-1.5.1.tgz", - "integrity": "sha512-aWEc9DCf3TMDe9iaJoOnO2+JVAjeRNuRxPZQA6GVvBf+Z3gqUuWYBy2NWh4+5CLYq5uoc3MOvUQ5H5m8CJBqOA==", + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/@discordjs/collection/-/collection-1.5.2.tgz", + "integrity": "sha512-LDplPy8SPbc8MYkuCdnLRGWqygAX97E8NH7gA9uz+NZ/hXknUKJHuxsOmhC6pmHnF9Zmg0kvfwrDjGsRIljt9g==", "engines": { "node": ">=16.9.0" } @@ -2072,44 +2083,45 @@ } }, "node_modules/@discordjs/rest": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/@discordjs/rest/-/rest-1.7.1.tgz", - "integrity": "sha512-Ofa9UqT0U45G/eX86cURQnX7gzOJLG2oC28VhIk/G6IliYgQF7jFByBJEykPSHE4MxPhqCleYvmsrtfKh1nYmQ==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@discordjs/rest/-/rest-2.0.0.tgz", + "integrity": "sha512-CW9ldfzsRzUbHcS4Oqu5+Moo+yrQ5qQ9groKNxPOzcoq2nuXa/fXOXkuQtQHcTeSVXsC9cmJ56M8gBDBUyLgGA==", "dependencies": { - "@discordjs/collection": "^1.5.1", - "@discordjs/util": "^0.3.0", + "@discordjs/collection": "^1.5.2", + "@discordjs/util": "^1.0.0", "@sapphire/async-queue": "^1.5.0", - "@sapphire/snowflake": "^3.4.2", - "discord-api-types": "^0.37.41", - "file-type": "^18.3.0", - "tslib": "^2.5.0", - "undici": "^5.22.0" + "@sapphire/snowflake": "^3.5.1", + "@vladfrangu/async_event_emitter": "^2.2.2", + "discord-api-types": "^0.37.50", + "magic-bytes.js": "^1.0.15", + "tslib": "^2.6.1", + "undici": "^5.22.1" }, "engines": { "node": ">=16.9.0" } }, "node_modules/@discordjs/util": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@discordjs/util/-/util-0.3.1.tgz", - "integrity": "sha512-HxXKYKg7vohx2/OupUN/4Sd02Ev3PBJ5q0gtjdcvXb0ErCva8jNHWfe/v5sU3UKjIB/uxOhc+TDOnhqffj9pRA==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@discordjs/util/-/util-1.0.0.tgz", + "integrity": "sha512-U2Iiab0mo8cFe+o4ZY4GROoAetGjFYA1PhhxiXEW82LuPUjOU/seHZDtVjDpOf6n3rz4IRm84wNtgHdpqRY5CA==", "engines": { "node": ">=16.9.0" } }, "node_modules/@discordjs/ws": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/@discordjs/ws/-/ws-0.8.3.tgz", - "integrity": "sha512-hcYtppanjHecbdNyCKQNH2I4RP9UrphDgmRgLYrATEQF1oo4sYSve7ZmGsBEXSzH72MO2tBPdWSThunbxUVk0g==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@discordjs/ws/-/ws-1.0.0.tgz", + "integrity": "sha512-POiImjuQJzwCxjJs4JCtDcTjzvjVsVQbnsaoW/F03yTVdrj/xSpmgv4383AnpNEYXI+CA6ggkz37phZDsZQ1NQ==", "dependencies": { - "@discordjs/collection": "^1.5.1", - "@discordjs/rest": "^1.7.1", - "@discordjs/util": "^0.3.1", + "@discordjs/collection": "^1.5.2", + "@discordjs/rest": "^2.0.0", + "@discordjs/util": "^1.0.0", "@sapphire/async-queue": "^1.5.0", - "@types/ws": "^8.5.4", - "@vladfrangu/async_event_emitter": "^2.2.1", - "discord-api-types": "^0.37.41", - "tslib": "^2.5.0", + "@types/ws": "^8.5.5", + "@vladfrangu/async_event_emitter": "^2.2.2", + "discord-api-types": "^0.37.50", + "tslib": "^2.6.1", "ws": "^8.13.0" }, "engines": { @@ -2242,14 +2254,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@fortaine/fetch-event-source": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/@fortaine/fetch-event-source/-/fetch-event-source-3.0.6.tgz", - "integrity": "sha512-621GAuLMvKtyZQ3IA6nlDWhV1V/7PGOTNIGLUifxt0KzM+dZIweJ6F3XvQF3QnqeNfS1N7WQ0Kil1Di/lhChEw==", - "engines": { - "node": ">=16.15" - } - }, "node_modules/@google-cloud/common": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/@google-cloud/common/-/common-4.0.3.tgz", @@ -2298,9 +2302,9 @@ } }, "node_modules/@google-cloud/vision": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/@google-cloud/vision/-/vision-3.1.3.tgz", - "integrity": "sha512-FczP82gYg7Tv0fF8F+b6MuwKb31DKdIpbKx7oqHMDKnAwEVAj8regSJvrJ8ftKkQ+5yd6weq3vcUEFoLGt9qFw==", + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/@google-cloud/vision/-/vision-3.1.4.tgz", + "integrity": "sha512-mho94LjIFiFjdLRxSjw+AI8tj3xGSmdCbPVNTjdg+a0sp2YRizAy8WhtfF7bTmVqPwG9ItVbFLgQvKQBXmiyXQ==", "dependencies": { "@google-cloud/promisify": "^3.0.0", "google-gax": "^3.5.8", @@ -2311,9 +2315,9 @@ } }, "node_modules/@grpc/grpc-js": { - "version": "1.8.15", - "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.8.15.tgz", - "integrity": "sha512-H2Bu/w6+oQ58DsRbQol66ERBk3V5ZIak/z/MDx0T4EgDnJWps807I6BvTjq0v6UvZtOcLO+ur+Q9wvniqu3OJA==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.9.0.tgz", + "integrity": "sha512-H8+iZh+kCE6VR/Krj6W28Y/ZlxoZ1fOzsNt77nrdE3knkbSelW1Uus192xOFCxHyeszLj8i4APQkSIXjAoOxXg==", "dependencies": { "@grpc/proto-loader": "^0.7.0", "@types/node": ">=12.12.47" @@ -2323,14 +2327,14 @@ } }, "node_modules/@grpc/proto-loader": { - "version": "0.7.7", - "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.7.tgz", - "integrity": "sha512-1TIeXOi8TuSCQprPItwoMymZXxWT0CPxUhkrkeCUH+D8U7QDwQ6b7SUz2MaLuWM2llT+J/TVFLmQI5KtML3BhQ==", + "version": "0.7.8", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.8.tgz", + "integrity": "sha512-GU12e2c8dmdXb7XUlOgYWZ2o2i+z9/VeACkxTA/zzAe2IjclC5PnVL0lpgjhrqfpDYHzM8B1TF6pqWegMYAzlA==", "dependencies": { "@types/long": "^4.0.1", "lodash.camelcase": "^4.3.0", "long": "^4.0.0", - "protobufjs": "^7.0.0", + "protobufjs": "^7.2.4", "yargs": "^17.7.2" }, "bin": { @@ -2340,6 +2344,34 @@ "node": ">=6" } }, + "node_modules/@grpc/proto-loader/node_modules/protobufjs": { + "version": "7.2.4", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.4.tgz", + "integrity": "sha512-AT+RJgD2sH8phPmCf7OUZR8xGdcJRga4+1cOaXJ64hvcSkVhNcRHOwIxUatPH15+nj59WAGTDv3LSGZPEQbJaQ==", + "hasInstallScript": true, + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/node": ">=13.7.0", + "long": "^5.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/@grpc/proto-loader/node_modules/protobufjs/node_modules/long": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", + "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" + }, "node_modules/@humanwhocodes/config-array": { "version": "0.9.5", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.9.5.tgz", @@ -2806,6 +2838,15 @@ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, + "node_modules/@mozilla/readability": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/@mozilla/readability/-/readability-0.4.4.tgz", + "integrity": "sha512-MCgZyANpJ6msfvVMi6+A0UAsvZj//4OHREYUB9f2087uXHVoU+H+SWhuihvb1beKpM323bReQPRio0WNk2+V6g==", + "peer": true, + "engines": { + "node": ">=14.0.0" + } + }, "node_modules/@nestjs/axios": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/@nestjs/axios/-/axios-2.0.0.tgz", @@ -2818,12 +2859,12 @@ } }, "node_modules/@nestjs/common": { - "version": "9.4.2", - "resolved": "https://registry.npmjs.org/@nestjs/common/-/common-9.4.2.tgz", - "integrity": "sha512-sea+qZnbD5x3YWZDVQT/wbVJ2NiABaM1tyZTLuW9hpkcM2KFA96xKtK3VaCxyz49zoXIgSOefsyK7HuUMCe27Q==", + "version": "9.4.3", + "resolved": "https://registry.npmjs.org/@nestjs/common/-/common-9.4.3.tgz", + "integrity": "sha512-Gd6D4IaYj01o14Bwv81ukidn4w3bPHCblMUq+SmUmWLyosK+XQmInCS09SbDDZyL8jy86PngtBLTdhJ2bXSUig==", "dependencies": { "iterare": "1.2.1", - "tslib": "2.5.2", + "tslib": "2.5.3", "uid": "2.0.2" }, "funding": { @@ -2849,12 +2890,17 @@ } } }, + "node_modules/@nestjs/common/node_modules/tslib": { + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.3.tgz", + "integrity": "sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w==" + }, "node_modules/@nestjs/config": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/@nestjs/config/-/config-2.3.2.tgz", - "integrity": "sha512-VtGV8PBpxzMzz68kdxTWqPm9v7SYCSZXQ0tC72AMNnjdmU+CVjUSLpEpdnm0XcWHxE1nV6wSI3HZxsATIV4ZxA==", + "version": "2.3.4", + "resolved": "https://registry.npmjs.org/@nestjs/config/-/config-2.3.4.tgz", + "integrity": "sha512-IGdSF+0F9MJO6dCRTEahdxPz4iVijjtolcFBxnY+2QYM3bXYQvAgzskGZi+WkAFJN/VzR3TEp60gN5sI74GxPA==", "dependencies": { - "dotenv": "16.0.3", + "dotenv": "16.1.4", "dotenv-expand": "10.0.0", "lodash": "4.17.21", "uuid": "9.0.0" @@ -2866,16 +2912,16 @@ } }, "node_modules/@nestjs/core": { - "version": "9.4.2", - "resolved": "https://registry.npmjs.org/@nestjs/core/-/core-9.4.2.tgz", - "integrity": "sha512-S5K9GTpjBqEJtu5VxRsVaaGEBZ1bkY+Ht4+2hqZSKsI+rzcEB5hcvR+5KiMsMY1VGYvlZ99lxYz72p4h8B0mKw==", + "version": "9.4.3", + "resolved": "https://registry.npmjs.org/@nestjs/core/-/core-9.4.3.tgz", + "integrity": "sha512-Qi63+wi55Jh4sDyaj5Hhx2jOpKqT386aeo+VOKsxnd+Ql9VvkO/FjmuwBGUyzkJt29ENYc+P0Sx/k5LtstNpPQ==", "hasInstallScript": true, "dependencies": { "@nuxtjs/opencollective": "0.3.2", "fast-safe-stringify": "2.1.1", "iterare": "1.2.1", "path-to-regexp": "3.2.0", - "tslib": "2.5.2", + "tslib": "2.5.3", "uid": "2.0.2" }, "funding": { @@ -2902,6 +2948,11 @@ } } }, + "node_modules/@nestjs/core/node_modules/tslib": { + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.3.tgz", + "integrity": "sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w==" + }, "node_modules/@nestjs/event-emitter": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/@nestjs/event-emitter/-/event-emitter-1.4.1.tgz", @@ -2916,12 +2967,12 @@ } }, "node_modules/@nestjs/microservices": { - "version": "9.4.2", - "resolved": "https://registry.npmjs.org/@nestjs/microservices/-/microservices-9.4.2.tgz", - "integrity": "sha512-06VlJJS+QyyF5rS6WnMi6POdlGoEHEyvaOuySUm7QKfRILVUOqxcB6ANsKNNv2VPmRSLab/pYTpaQiEGazzRYA==", + "version": "9.4.3", + "resolved": "https://registry.npmjs.org/@nestjs/microservices/-/microservices-9.4.3.tgz", + "integrity": "sha512-piMw8d3C4ppc5St5AhQEtecMhyeBK2Q1VYk4AL3NKtG6U0fzz/6KLiETpWdKXmazeI/m7qac2upOvwmRzle0aA==", "dependencies": { "iterare": "1.2.1", - "tslib": "2.5.2" + "tslib": "2.5.3" }, "funding": { "type": "opencollective", @@ -2972,6 +3023,11 @@ } } }, + "node_modules/@nestjs/microservices/node_modules/tslib": { + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.3.tgz", + "integrity": "sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w==" + }, "node_modules/@nestjs/mongoose": { "version": "9.2.2", "resolved": "https://registry.npmjs.org/@nestjs/mongoose/-/mongoose-9.2.2.tgz", @@ -2985,15 +3041,15 @@ } }, "node_modules/@nestjs/platform-express": { - "version": "9.4.2", - "resolved": "https://registry.npmjs.org/@nestjs/platform-express/-/platform-express-9.4.2.tgz", - "integrity": "sha512-FVSJmVH+kndcDjvUK7xUzE3AmtQwlcXKN2hwJolyyIS7WXs6Awyb78cJGr0w27ESKoVQeSKPVbom0sLJFG153A==", + "version": "9.4.3", + "resolved": "https://registry.npmjs.org/@nestjs/platform-express/-/platform-express-9.4.3.tgz", + "integrity": "sha512-FpdczWoRSC0zz2dNL9u2AQLXKXRVtq4HgHklAhbL59X0uy+mcxhlSThG7DHzDMkoSnuuHY8ojDVf7mDxk+GtCw==", "dependencies": { "body-parser": "1.20.2", "cors": "2.8.5", "express": "4.18.2", "multer": "1.4.4-lts.1", - "tslib": "2.5.2" + "tslib": "2.5.3" }, "funding": { "type": "opencollective", @@ -3004,6 +3060,11 @@ "@nestjs/core": "^9.0.0" } }, + "node_modules/@nestjs/platform-express/node_modules/tslib": { + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.3.tgz", + "integrity": "sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w==" + }, "node_modules/@nestjs/schematics": { "version": "9.2.0", "resolved": "https://registry.npmjs.org/@nestjs/schematics/-/schematics-9.2.0.tgz", @@ -3020,12 +3081,12 @@ } }, "node_modules/@nestjs/testing": { - "version": "9.4.2", - "resolved": "https://registry.npmjs.org/@nestjs/testing/-/testing-9.4.2.tgz", - "integrity": "sha512-4WZPJz85zLVZkhmWYq+Unr43MixISelg/TyuX1YFZYOeukIN+O6fRtAAPIKLqRQsiY0rE/h8FAEbYGWhNrRfSA==", + "version": "9.4.3", + "resolved": "https://registry.npmjs.org/@nestjs/testing/-/testing-9.4.3.tgz", + "integrity": "sha512-LDT8Ai2eKnTzvnPaJwWOK03qTaFap5uHHsJCv6dL0uKWk6hyF9jms8DjyVaGsaujCaXDG8izl1mDEER0OmxaZA==", "dev": true, "dependencies": { - "tslib": "2.5.2" + "tslib": "2.5.3" }, "funding": { "type": "opencollective", @@ -3046,6 +3107,12 @@ } } }, + "node_modules/@nestjs/testing/node_modules/tslib": { + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.3.tgz", + "integrity": "sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w==", + "dev": true + }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -3784,14 +3851,14 @@ } }, "node_modules/@sd0x/nest-openai-client": { - "version": "0.0.9", - "resolved": "https://registry.npmjs.org/@sd0x/nest-openai-client/-/nest-openai-client-0.0.9.tgz", - "integrity": "sha512-6gzy4MbXh+QC/SoN161xlPru9MXM2+S2mP1pcbaV9NiKV0u4SQCZ6wPb0jBFgbPYFHRzz32sTJ8odD0rlzDFeA==", + "version": "0.0.10", + "resolved": "https://registry.npmjs.org/@sd0x/nest-openai-client/-/nest-openai-client-0.0.10.tgz", + "integrity": "sha512-hK7Mtg0zxzfD40iKxlEZww4zyblSrGMHxWiApXUIRo8zdoVv1aXtRau+RBWvgZTLyE3zA5oR2LCq8fBSlgBE0A==", "dependencies": { - "@nestjs/common": "^9.4.1", + "@nestjs/common": "^9.4.2", "axios": "^1.4.0", "form-data": "^4.0.0", - "openai": "^3.2.1", + "openai": "^3.3.0", "tslib": "^2.0.0", "uid": "^2.0.2" } @@ -3828,11 +3895,6 @@ "node": ">=8" } }, - "node_modules/@tokenizer/token": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@tokenizer/token/-/token-0.3.0.tgz", - "integrity": "sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A==" - }, "node_modules/@tootallnate/once": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz", @@ -4055,9 +4117,9 @@ } }, "node_modules/@types/jest": { - "version": "29.5.2", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.2.tgz", - "integrity": "sha512-mSoZVJF5YzGVCk+FsDxzDuH7s+SCkzrgKZzf0Z0T2WudhBUPoF6ktoTPC4R0ZoCPCV5xUvuU6ias5NvxcBcMMg==", + "version": "29.5.3", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.3.tgz", + "integrity": "sha512-1Nq7YrO/vJE/FYnqYyw0FS8LdrjExSgIiHyKg7xPpn+yi8Q4huZryKnkJatN1ZRH89Kw2v33/8ZMB7DuZeSLlA==", "dev": true, "dependencies": { "expect": "^29.0.0", @@ -4110,6 +4172,28 @@ "resolved": "https://registry.npmjs.org/@types/node/-/node-18.7.23.tgz", "integrity": "sha512-DWNcCHolDq0ZKGizjx2DZjR/PqsYwAcYUJmfMWqtVU2MBMG5Mo+xFZrhGId5r/O5HOuMPyQEcM6KUBp5lBZZBg==" }, + "node_modules/@types/node-fetch": { + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.4.tgz", + "integrity": "sha512-1ZX9fcN4Rvkvgv4E6PAY5WXUFWFcRWxZa3EW83UjycOB9ljJCedb2CupIP4RZMEwF/M3eTcCihbBRgwtGbg5Rg==", + "dependencies": { + "@types/node": "*", + "form-data": "^3.0.0" + } + }, + "node_modules/@types/node-fetch/node_modules/form-data": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", + "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/@types/parse-json": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", @@ -4203,6 +4287,11 @@ "resolved": "https://registry.npmjs.org/@types/triple-beam/-/triple-beam-1.3.2.tgz", "integrity": "sha512-txGIh+0eDFzKGC25zORnswy+br1Ha7hj5cMVwKIU7+s0U2AxxJru/jZSMU6OC9MJWP6+pc/hc6ZjyZShpsyY2g==" }, + "node_modules/@types/uuid": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.2.tgz", + "integrity": "sha512-kNnC1GFBLuhImSnV7w4njQkUiJi0ZXUycu1rUaouPqiKlXkh77JKgdRnTAp1x5eBwcIwbtI+3otwzuIDEuDoxQ==" + }, "node_modules/@types/webidl-conversions": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-7.0.0.tgz", @@ -4218,9 +4307,9 @@ } }, "node_modules/@types/ws": { - "version": "8.5.4", - "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.4.tgz", - "integrity": "sha512-zdQDHKUgcX/zBc4GrwsE/7dVdAD8JR4EuiAXiiUhhfyIJXXb2+PrGshFyeXWQPMmmZ2XxgaqclgpIC7eTXc1mg==", + "version": "8.5.5", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.5.tgz", + "integrity": "sha512-lwhs8hktwxSjf9UaZ9tG5M03PGogvFaH8gUgLNbN9HKIg0dvv6q+gkSuJ8HN4/VbyxkuLzCjlN7GquQ0gUJfIg==", "dependencies": { "@types/node": "*" } @@ -4734,8 +4823,7 @@ "node_modules/abab": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", - "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==", - "dev": true + "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==" }, "node_modules/abbrev": { "version": "1.1.1", @@ -4813,6 +4901,17 @@ "node": ">= 6.0.0" } }, + "node_modules/agentkeepalive": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.5.0.tgz", + "integrity": "sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew==", + "dependencies": { + "humanize-ms": "^1.2.1" + }, + "engines": { + "node": ">= 8.0.0" + } + }, "node_modules/ajv": { "version": "8.12.0", "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", @@ -5261,6 +5360,11 @@ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" }, + "node_modules/base-64": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/base-64/-/base-64-0.1.0.tgz", + "integrity": "sha512-Y5gU45svrR5tI2Vt/X9GPd3L0HNIKzGu202EjxrXMpuc2V2CiKgemAbUUsqYmZJvPtCXoUKjNZwBJzsNScUbXA==" + }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -5319,13 +5423,13 @@ } }, "node_modules/bin-version-check": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/bin-version-check/-/bin-version-check-5.0.0.tgz", - "integrity": "sha512-Q3FMQnS5eZmrBGqmDXLs4dbAn/f+52voP6ykJYmweSA60t6DyH4UTSwZhtbK5UH+LBoWvDljILUQMLRUtsynsA==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/bin-version-check/-/bin-version-check-5.1.0.tgz", + "integrity": "sha512-bYsvMqJ8yNGILLz1KP9zKLzQ6YpljV3ln1gqhuLkUtyfGi3qXKGuK2p+U4NAvjVFzDFiBBtOpCOSFNuYYEGZ5g==", "dependencies": { "bin-version": "^6.0.0", - "semver": "^7.3.5", - "semver-truncate": "^2.0.0" + "semver": "^7.5.3", + "semver-truncate": "^3.0.0" }, "engines": { "node": ">=12" @@ -5346,9 +5450,9 @@ } }, "node_modules/bin-version-check/node_modules/semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dependencies": { "lru-cache": "^6.0.0" }, @@ -5694,6 +5798,14 @@ "node": ">=10" } }, + "node_modules/charenc": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/charenc/-/charenc-0.0.2.tgz", + "integrity": "sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==", + "engines": { + "node": "*" + } + }, "node_modules/cheerio": { "version": "1.0.0-rc.12", "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0-rc.12.tgz", @@ -6384,14 +6496,6 @@ "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", "dev": true }, - "node_modules/cross-fetch": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.6.tgz", - "integrity": "sha512-riRvo06crlE8HiqOwIpQhxwdOk4fOeR7FVM/wXoxchFEqMNUjvbs3bfo4OTgMEMHzppd4DxFBDbyySj8Cv781g==", - "dependencies": { - "node-fetch": "^2.6.11" - } - }, "node_modules/cross-spawn": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", @@ -6405,6 +6509,14 @@ "node": ">= 8" } }, + "node_modules/crypt": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz", + "integrity": "sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==", + "engines": { + "node": "*" + } + }, "node_modules/css": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/css/-/css-3.0.0.tgz", @@ -6721,6 +6833,18 @@ "node": ">=8.0.0" } }, + "node_modules/cssstyle": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-3.0.0.tgz", + "integrity": "sha512-N4u2ABATi3Qplzf0hWbVCdjenim8F3ojEXpBDF5hBpjzW182MjNGLqfmQ0SkSPeQ+V86ZXgeH8aXj6kayd4jgg==", + "peer": true, + "dependencies": { + "rrweb-cssom": "^0.6.0" + }, + "engines": { + "node": ">=14" + } + }, "node_modules/dargs": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/dargs/-/dargs-7.0.0.tgz", @@ -6729,6 +6853,54 @@ "node": ">=8" } }, + "node_modules/data-urls": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-4.0.0.tgz", + "integrity": "sha512-/mMTei/JXPqvFqQtfyTowxmJVwr2PVAeCcDxyFf6LhoOu/09TX2OX3kb2wzi4DMXcfj4OItwDOnhl5oziPnT6g==", + "peer": true, + "dependencies": { + "abab": "^2.0.6", + "whatwg-mimetype": "^3.0.0", + "whatwg-url": "^12.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/data-urls/node_modules/tr46": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-4.1.1.tgz", + "integrity": "sha512-2lv/66T7e5yNyhAAC4NaKe5nVavzuGJQVVtRYLyQ2OI8tsJ61PMLlelehb0wi2Hx6+hT/OJUWZcw8MjlSRnxvw==", + "peer": true, + "dependencies": { + "punycode": "^2.3.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/data-urls/node_modules/webidl-conversions": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", + "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/data-urls/node_modules/whatwg-url": { + "version": "12.0.1", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-12.0.1.tgz", + "integrity": "sha512-Ed/LrqB8EPlGxjS+TrsXcpUond1mhccS3pchLhzSgPCnTimUCKj3IZE75pAs5m6heB2U2TMerKFUXheyHY+VDQ==", + "peer": true, + "dependencies": { + "tr46": "^4.1.1", + "webidl-conversions": "^7.0.0" + }, + "engines": { + "node": ">=14" + } + }, "node_modules/debug": { "version": "4.3.4", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", @@ -6745,6 +6917,20 @@ } } }, + "node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/decimal.js": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz", + "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==", + "peer": true + }, "node_modules/decode-uri-component": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz", @@ -6900,6 +7086,15 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, + "node_modules/digest-fetch": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/digest-fetch/-/digest-fetch-1.3.0.tgz", + "integrity": "sha512-CGJuv6iKNM7QyZlM2T3sPAdZWd/p9zQiRNS9G+9COUCwzWFTs0Xp8NF5iePx7wtvhDykReiRRrSeNb4oMmB8lA==", + "dependencies": { + "base-64": "^0.1.0", + "md5": "^2.3.0" + } + }, "node_modules/dir-glob": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", @@ -6913,28 +7108,28 @@ } }, "node_modules/discord-api-types": { - "version": "0.37.43", - "resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.37.43.tgz", - "integrity": "sha512-bBhDWU3TF9KADxR/mHp1K4Bvu/LRtFQdGyBjADu4e66F3ZnD4kp12W/SJCttIaCcMXzPV3sfty6eDGRNRph51Q==" + "version": "0.37.53", + "resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.37.53.tgz", + "integrity": "sha512-N6uUgv50OyP981Mfxrrt0uxcqiaNr0BDaQIoqfk+3zM2JpZtwU9v7ce1uaFAP53b2xSDvcbrk80Kneui6XJgGg==" }, "node_modules/discord.js": { - "version": "14.11.0", - "resolved": "https://registry.npmjs.org/discord.js/-/discord.js-14.11.0.tgz", - "integrity": "sha512-CkueWYFQ28U38YPR8HgsBR/QT35oPpMbEsTNM30Fs8loBIhnA4s70AwQEoy6JvLcpWWJO7GY0y2BUzZmuBMepQ==", + "version": "14.12.1", + "resolved": "https://registry.npmjs.org/discord.js/-/discord.js-14.12.1.tgz", + "integrity": "sha512-gGjhTkauIPgFXxpBl0UZgyehrKhDe90cIS8Hn1xFBYQ63EuUAkKoUqRNmc/pcla6DD16s4cUz5tAbdSpXivnxw==", "dependencies": { - "@discordjs/builders": "^1.6.3", - "@discordjs/collection": "^1.5.1", + "@discordjs/builders": "^1.6.4", + "@discordjs/collection": "^1.5.2", "@discordjs/formatters": "^0.3.1", - "@discordjs/rest": "^1.7.1", - "@discordjs/util": "^0.3.1", - "@discordjs/ws": "^0.8.3", - "@sapphire/snowflake": "^3.4.2", - "@types/ws": "^8.5.4", - "discord-api-types": "^0.37.41", + "@discordjs/rest": "^2.0.0", + "@discordjs/util": "^1.0.0", + "@discordjs/ws": "^1.0.0", + "@sapphire/snowflake": "^3.5.1", + "@types/ws": "^8.5.5", + "discord-api-types": "^0.37.50", "fast-deep-equal": "^3.1.3", "lodash.snakecase": "^4.1.1", - "tslib": "^2.5.0", - "undici": "^5.22.0", + "tslib": "^2.6.1", + "undici": "^5.22.1", "ws": "^8.13.0" }, "engines": { @@ -6996,6 +7191,27 @@ } ] }, + "node_modules/domexception": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/domexception/-/domexception-4.0.0.tgz", + "integrity": "sha512-A2is4PLG+eeSfoTMA95/s4pvAoSo2mKtiM5jlHkAVewmiO8ISFTFKZjH7UAM1Atli/OT/7JHOrJRJiMKUZKYBw==", + "peer": true, + "dependencies": { + "webidl-conversions": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/domexception/node_modules/webidl-conversions": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", + "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", + "peer": true, + "engines": { + "node": ">=12" + } + }, "node_modules/domhandler": { "version": "4.3.1", "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", @@ -7026,11 +7242,14 @@ } }, "node_modules/dotenv": { - "version": "16.0.3", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.0.3.tgz", - "integrity": "sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ==", + "version": "16.1.4", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.1.4.tgz", + "integrity": "sha512-m55RtE8AsPeJBpOIFKihEmqUcoVncQIwo7x9U8ZwLEZw9ZpXboz2c+rvog+jUaJvVrZ5kBOeYQBX5+8Aa/OZQw==", "engines": { "node": ">=12" + }, + "funding": { + "url": "https://github.com/motdotla/dotenv?sponsor=1" } }, "node_modules/dotenv-expand": { @@ -8008,22 +8227,6 @@ "url": "https://opencollective.com/webpack" } }, - "node_modules/file-type": { - "version": "18.5.0", - "resolved": "https://registry.npmjs.org/file-type/-/file-type-18.5.0.tgz", - "integrity": "sha512-yvpl5U868+V6PqXHMmsESpg6unQ5GfnPssl4dxdJudBrr9qy7Fddt7EVX1VLlddFfe8Gj9N7goCZH22FXuSQXQ==", - "dependencies": { - "readable-web-to-node-stream": "^3.0.2", - "strtok3": "^7.0.0", - "token-types": "^5.0.1" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sindresorhus/file-type?sponsor=1" - } - }, "node_modules/filelist": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", @@ -8373,6 +8576,23 @@ "node": ">= 6" } }, + "node_modules/form-data-encoder": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-1.7.2.tgz", + "integrity": "sha512-qfqtYan3rxrnCk1VYaA4H+Ms9xdpPqvLZa6xmMgFvhO32x7/3J/ExcTd6qpxM0vH2GdMI+poehyBZvqfMTto8A==" + }, + "node_modules/formdata-node": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/formdata-node/-/formdata-node-4.4.1.tgz", + "integrity": "sha512-0iirZp3uVDjVGt9p49aTaqjk84TrglENEDuqfdlZQ1roC9CWlPk6Avf8EEnZNcAqPonwkG35x4n3ww/1THYAeQ==", + "dependencies": { + "node-domexception": "1.0.0", + "web-streams-polyfill": "4.0.0-beta.3" + }, + "engines": { + "node": ">= 12.20" + } + }, "node_modules/forwarded": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", @@ -8519,9 +8739,9 @@ } }, "node_modules/gcp-metadata": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-5.2.0.tgz", - "integrity": "sha512-aFhhvvNycky2QyhG+dcfEdHBF0FRbYcf39s6WNHUDysKSrbJ5vuFbjydxBcmewtXeV248GP8dWT3ByPNxsyHCw==", + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-5.3.0.tgz", + "integrity": "sha512-FNTkdNEnBdlqF2oatizolQqNANMrcqJt6AAYt99B3y1aLLC8Hc5IOBb+ZnnzllodEEf6xMBp6wRcBbc16fa65w==", "dependencies": { "gaxios": "^5.0.0", "json-bigint": "^1.0.0" @@ -8683,16 +8903,16 @@ } }, "node_modules/google-auth-library": { - "version": "8.8.0", - "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-8.8.0.tgz", - "integrity": "sha512-0iJn7IDqObDG5Tu9Tn2WemmJ31ksEa96IyK0J0OZCpTh6CrC6FrattwKX87h3qKVuprCJpdOGKc1Xi8V0kMh8Q==", + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-8.9.0.tgz", + "integrity": "sha512-f7aQCJODJFmYWN6PeNKzgvy9LI2tYmXnzpNDHEjG5sDNPgGb2FXQyTBnXeSH+PAtpKESFD+LmHw3Ox3mN7e1Fg==", "dependencies": { "arrify": "^2.0.0", "base64-js": "^1.3.0", "ecdsa-sig-formatter": "^1.0.11", "fast-text-encoding": "^1.0.0", "gaxios": "^5.0.0", - "gcp-metadata": "^5.2.0", + "gcp-metadata": "^5.3.0", "gtoken": "^6.1.0", "jws": "^4.0.0", "lru-cache": "^6.0.0" @@ -8746,6 +8966,18 @@ "node": ">=12" } }, + "node_modules/google-gax/node_modules/@grpc/grpc-js": { + "version": "1.8.21", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.8.21.tgz", + "integrity": "sha512-KeyQeZpxeEBSqFVTi3q2K7PiPXmgBfECc4updA1ejCLjYmoAlvvM3ZMp5ztTDUCUQmoY3CpDxvchjO1+rFkoHg==", + "dependencies": { + "@grpc/proto-loader": "^0.7.0", + "@types/node": ">=12.12.47" + }, + "engines": { + "node": "^8.13.0 || >=10.10.0" + } + }, "node_modules/google-p12-pem": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/google-p12-pem/-/google-p12-pem-4.0.1.tgz", @@ -8854,6 +9086,18 @@ "wbuf": "^1.1.0" } }, + "node_modules/html-encoding-sniffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-3.0.0.tgz", + "integrity": "sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA==", + "peer": true, + "dependencies": { + "whatwg-encoding": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/html-entities": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.3.3.tgz", @@ -9033,6 +9277,14 @@ "node": ">=10.17.0" } }, + "node_modules/humanize-ms": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz", + "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==", + "dependencies": { + "ms": "^2.0.0" + } + }, "node_modules/iconv-lite": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", @@ -9072,6 +9324,7 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "dev": true, "funding": [ { "type": "github", @@ -9249,6 +9502,11 @@ "node": ">=8" } }, + "node_modules/is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" + }, "node_modules/is-core-module": { "version": "2.12.1", "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz", @@ -9344,6 +9602,12 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/is-potential-custom-element-name": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", + "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", + "peer": true + }, "node_modules/is-stream": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", @@ -10150,9 +10414,9 @@ } }, "node_modules/js-tiktoken": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/js-tiktoken/-/js-tiktoken-1.0.6.tgz", - "integrity": "sha512-lxHntEupgjWvSh37WxpAW4XN6UBXBtFJOpZZq5HN5oNjDfN7L/iJhHOKjyL/DFtuYXUwn5jfTciLtOWpgQmHjQ==", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/js-tiktoken/-/js-tiktoken-1.0.7.tgz", + "integrity": "sha512-biba8u/clw7iesNEWLOLwrNGoBP2lA+hTaBLs/D45pJdUPFXyxD6nhcDVtADChghv4GgyAiMKYMiRx7x6h7Biw==", "dependencies": { "base64-js": "^1.5.1" } @@ -10231,6 +10495,106 @@ "node": ">=10" } }, + "node_modules/jsdom": { + "version": "22.1.0", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-22.1.0.tgz", + "integrity": "sha512-/9AVW7xNbsBv6GfWho4TTNjEo9fe6Zhf9O7s0Fhhr3u+awPwAJMKwAMXnkk5vBxflqLW9hTHX/0cs+P3gW+cQw==", + "peer": true, + "dependencies": { + "abab": "^2.0.6", + "cssstyle": "^3.0.0", + "data-urls": "^4.0.0", + "decimal.js": "^10.4.3", + "domexception": "^4.0.0", + "form-data": "^4.0.0", + "html-encoding-sniffer": "^3.0.0", + "http-proxy-agent": "^5.0.0", + "https-proxy-agent": "^5.0.1", + "is-potential-custom-element-name": "^1.0.1", + "nwsapi": "^2.2.4", + "parse5": "^7.1.2", + "rrweb-cssom": "^0.6.0", + "saxes": "^6.0.0", + "symbol-tree": "^3.2.4", + "tough-cookie": "^4.1.2", + "w3c-xmlserializer": "^4.0.0", + "webidl-conversions": "^7.0.0", + "whatwg-encoding": "^2.0.0", + "whatwg-mimetype": "^3.0.0", + "whatwg-url": "^12.0.1", + "ws": "^8.13.0", + "xml-name-validator": "^4.0.0" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "canvas": "^2.5.0" + }, + "peerDependenciesMeta": { + "canvas": { + "optional": true + } + } + }, + "node_modules/jsdom/node_modules/entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "peer": true, + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/jsdom/node_modules/parse5": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", + "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", + "peer": true, + "dependencies": { + "entities": "^4.4.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "node_modules/jsdom/node_modules/tr46": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-4.1.1.tgz", + "integrity": "sha512-2lv/66T7e5yNyhAAC4NaKe5nVavzuGJQVVtRYLyQ2OI8tsJ61PMLlelehb0wi2Hx6+hT/OJUWZcw8MjlSRnxvw==", + "peer": true, + "dependencies": { + "punycode": "^2.3.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/jsdom/node_modules/webidl-conversions": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", + "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/jsdom/node_modules/whatwg-url": { + "version": "12.0.1", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-12.0.1.tgz", + "integrity": "sha512-Ed/LrqB8EPlGxjS+TrsXcpUond1mhccS3pchLhzSgPCnTimUCKj3IZE75pAs5m6heB2U2TMerKFUXheyHY+VDQ==", + "peer": true, + "dependencies": { + "tr46": "^4.1.1", + "webidl-conversions": "^7.0.0" + }, + "engines": { + "node": ">=14" + } + }, "node_modules/jsesc": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", @@ -10366,20 +10730,25 @@ "integrity": "sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A==" }, "node_modules/langchain": { - "version": "0.0.92", - "resolved": "https://registry.npmjs.org/langchain/-/langchain-0.0.92.tgz", - "integrity": "sha512-77528kXJu9C391qV1a5jDzZLEjIblq/VtpH7xd4BwavgvhRmeSXR9WkrHHmih/Phpae4Ss3dtb7pcyd78rp/YA==", + "version": "0.0.129", + "resolved": "https://registry.npmjs.org/langchain/-/langchain-0.0.129.tgz", + "integrity": "sha512-KHJANXuwaq4CJ23HbLfp4c23S75UsI4Mh5yXIZT5bdsivLN4YmMphIudPMf27Y+5gZbiJzjlZFeM116M0RQ52Q==", "dependencies": { - "@anthropic-ai/sdk": "^0.4.3", + "@anthropic-ai/sdk": "^0.5.7", "ansi-styles": "^5.0.0", "binary-extensions": "^2.2.0", + "camelcase": "6", + "decamelize": "^1.2.0", "expr-eval": "^2.0.2", "flat": "^5.0.2", - "js-tiktoken": "^1.0.6", + "js-tiktoken": "^1.0.7", + "js-yaml": "^4.1.0", "jsonpointer": "^5.0.1", + "langsmith": "~0.0.16", "ml-distance": "^4.0.0", "object-hash": "^3.0.0", - "openai": "^3.2.0", + "openai": "^3.3.0", + "openapi-types": "^12.1.3", "p-queue": "^6.6.2", "p-retry": "4", "uuid": "^9.0.0", @@ -10391,18 +10760,32 @@ "node": ">=18" }, "peerDependencies": { + "@aws-crypto/sha256-js": "^5.0.0", "@aws-sdk/client-dynamodb": "^3.310.0", + "@aws-sdk/client-kendra": "^3.352.0", "@aws-sdk/client-lambda": "^3.310.0", "@aws-sdk/client-s3": "^3.310.0", "@aws-sdk/client-sagemaker-runtime": "^3.310.0", + "@aws-sdk/client-sfn": "^3.310.0", + "@aws-sdk/credential-provider-node": "^3.388.0", + "@aws-sdk/protocol-http": "^3.374.0", + "@aws-sdk/signature-v4": "^3.374.0", + "@azure/storage-blob": "^12.15.0", "@clickhouse/client": "^0.0.14", + "@elastic/elasticsearch": "^8.4.0", "@getmetal/metal-sdk": "*", - "@getzep/zep-js": "^0.3.1", + "@getzep/zep-js": "^0.6.3", "@gomomento/sdk": "^1.23.0", + "@google-ai/generativelanguage": "^0.2.1", + "@google-cloud/storage": "^6.10.1", "@huggingface/inference": "^1.5.1", + "@mozilla/readability": "*", + "@notionhq/client": "^2.2.5", "@opensearch-project/opensearch": "*", "@pinecone-database/pinecone": "*", + "@planetscale/database": "^1.8.0", "@qdrant/js-client-rest": "^1.2.0", + "@raycast/api": "^1.55.2", "@supabase/postgrest-js": "^1.1.1", "@supabase/supabase-js": "^2.10.0", "@tensorflow-models/universal-sentence-encoder": "*", @@ -10410,38 +10793,54 @@ "@tensorflow/tfjs-core": "*", "@tigrisdata/vector": "^1.1.0", "@upstash/redis": "^1.20.6", + "@xata.io/client": "^0.25.1", "@zilliz/milvus2-sdk-node": ">=2.2.7", "apify-client": "^2.7.1", "axios": "*", "cheerio": "^1.0.0-rc.12", - "chromadb": "^1.5.2", + "chromadb": "^1.5.3", "cohere-ai": "^5.0.2", "d3-dsv": "^2.0.0", "epub2": "^3.0.1", - "faiss-node": "^0.2.1", - "google-auth-library": "^8.8.0", + "faiss-node": "^0.3.0", + "firebase-admin": "^11.9.0", + "google-auth-library": "^8.9.0", "hnswlib-node": "^1.4.2", "html-to-text": "^9.0.5", "ignore": "^5.2.0", + "ioredis": "^5.3.2", + "jsdom": "*", "mammoth": "*", "mongodb": "^5.2.0", "mysql2": "^3.3.3", + "notion-to-md": "^3.1.0", "pdf-parse": "1.1.1", "peggy": "^3.0.2", "pg": "^8.11.0", + "pg-copy-streams": "^6.0.5", "pickleparser": "^0.1.0", "playwright": "^1.32.1", "puppeteer": "^19.7.2", "redis": "^4.6.4", - "replicate": "^0.9.0", + "replicate": "^0.12.3", + "sonix-speech-recognition": "^2.1.1", "srt-parser-2": "^1.2.2", "typeorm": "^0.3.12", - "weaviate-ts-client": "^1.0.0" + "typesense": "^1.5.3", + "usearch": "^1.1.1", + "vectordb": "^0.1.4", + "weaviate-ts-client": "^1.4.0" }, "peerDependenciesMeta": { + "@aws-crypto/sha256-js": { + "optional": true + }, "@aws-sdk/client-dynamodb": { "optional": true }, + "@aws-sdk/client-kendra": { + "optional": true + }, "@aws-sdk/client-lambda": { "optional": true }, @@ -10451,9 +10850,27 @@ "@aws-sdk/client-sagemaker-runtime": { "optional": true }, + "@aws-sdk/client-sfn": { + "optional": true + }, + "@aws-sdk/credential-provider-node": { + "optional": true + }, + "@aws-sdk/protocol-http": { + "optional": true + }, + "@aws-sdk/signature-v4": { + "optional": true + }, + "@azure/storage-blob": { + "optional": true + }, "@clickhouse/client": { "optional": true }, + "@elastic/elasticsearch": { + "optional": true + }, "@getmetal/metal-sdk": { "optional": true }, @@ -10463,18 +10880,33 @@ "@gomomento/sdk": { "optional": true }, + "@google-ai/generativelanguage": { + "optional": true + }, + "@google-cloud/storage": { + "optional": true + }, "@huggingface/inference": { "optional": true }, + "@notionhq/client": { + "optional": true + }, "@opensearch-project/opensearch": { "optional": true }, "@pinecone-database/pinecone": { "optional": true }, + "@planetscale/database": { + "optional": true + }, "@qdrant/js-client-rest": { "optional": true }, + "@raycast/api": { + "optional": true + }, "@supabase/postgrest-js": { "optional": true }, @@ -10496,6 +10928,9 @@ "@upstash/redis": { "optional": true }, + "@xata.io/client": { + "optional": true + }, "@zilliz/milvus2-sdk-node": { "optional": true }, @@ -10523,6 +10958,9 @@ "faiss-node": { "optional": true }, + "firebase-admin": { + "optional": true + }, "google-auth-library": { "optional": true }, @@ -10535,6 +10973,9 @@ "ignore": { "optional": true }, + "ioredis": { + "optional": true + }, "mammoth": { "optional": true }, @@ -10544,6 +10985,9 @@ "mysql2": { "optional": true }, + "notion-to-md": { + "optional": true + }, "pdf-parse": { "optional": true }, @@ -10553,6 +10997,9 @@ "pg": { "optional": true }, + "pg-copy-streams": { + "optional": true + }, "pickleparser": { "optional": true }, @@ -10568,12 +11015,24 @@ "replicate": { "optional": true }, + "sonix-speech-recognition": { + "optional": true + }, "srt-parser-2": { "optional": true }, "typeorm": { "optional": true }, + "typesense": { + "optional": true + }, + "usearch": { + "optional": true + }, + "vectordb": { + "optional": true + }, "weaviate-ts-client": { "optional": true } @@ -10590,6 +11049,33 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/langchain/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" + }, + "node_modules/langchain/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/langchain/node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, "node_modules/langchain/node_modules/yaml": { "version": "2.2.2", "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.2.2.tgz", @@ -10598,6 +11084,29 @@ "node": ">= 14" } }, + "node_modules/langsmith": { + "version": "0.0.23", + "resolved": "https://registry.npmjs.org/langsmith/-/langsmith-0.0.23.tgz", + "integrity": "sha512-0PI09dIZpZZphwaMIH8X2rxey40bP5GyBwtA2Vz/M5/o1p1je4JElS1xuWqY109zV7aRqoSD3QC9C5VB7h3orA==", + "dependencies": { + "@types/uuid": "^9.0.1", + "commander": "^10.0.1", + "p-queue": "^6.6.2", + "p-retry": "4", + "uuid": "^9.0.0" + }, + "bin": { + "langsmith": "dist/cli/main.cjs" + } + }, + "node_modules/langsmith/node_modules/commander": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz", + "integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==", + "engines": { + "node": ">=14" + } + }, "node_modules/launch-editor": { "version": "2.6.0", "resolved": "https://registry.npmjs.org/launch-editor/-/launch-editor-2.6.0.tgz", @@ -10890,6 +11399,11 @@ "yallist": "^3.0.2" } }, + "node_modules/magic-bytes.js": { + "version": "1.0.15", + "resolved": "https://registry.npmjs.org/magic-bytes.js/-/magic-bytes.js-1.0.15.tgz", + "integrity": "sha512-bpRmwbRHqongRhA+mXzbLWjVy7ylqmfMBYaQkSs6pac0z6hBTvsgrH0r4FBYd/UYVJBmS6Rp/O+oCCQVLzKV1g==" + }, "node_modules/magic-string": { "version": "0.30.0", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.0.tgz", @@ -10987,6 +11501,16 @@ "node": ">= 12" } }, + "node_modules/md5": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/md5/-/md5-2.3.0.tgz", + "integrity": "sha512-T1GITYmFaKuO91vxyoQMFETst+O71VUPEU3ze5GNzDm0OWdP8v1ziTaAEPUr/3kLsY3Sftgz242A1SetQiDL7g==", + "dependencies": { + "charenc": "0.0.2", + "crypt": "0.0.2", + "is-buffer": "~1.1.6" + } + }, "node_modules/mdn-data": { "version": "2.0.14", "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", @@ -11505,6 +12029,24 @@ "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-3.2.1.tgz", "integrity": "sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A==" }, + "node_modules/node-domexception": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", + "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "github", + "url": "https://paypal.me/jimmywarting" + } + ], + "engines": { + "node": ">=10.5.0" + } + }, "node_modules/node-ensure": { "version": "0.0.0", "resolved": "https://registry.npmjs.org/node-ensure/-/node-ensure-0.0.0.tgz", @@ -11661,6 +12203,12 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/nwsapi": { + "version": "2.2.7", + "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.7.tgz", + "integrity": "sha512-ub5E4+FBPKwAZx0UwIQOjYWGHTEq5sPqHQNRN8Z9e4A7u3Tj1weLJsL59yH9vmvqEtBHaOmT6cYQKIZOxp35FQ==", + "peer": true + }, "node_modules/nx": { "version": "16.3.2", "resolved": "https://registry.npmjs.org/nx/-/nx-16.3.2.tgz", @@ -11889,6 +12437,11 @@ "follow-redirects": "^1.14.8" } }, + "node_modules/openapi-types": { + "version": "12.1.3", + "resolved": "https://registry.npmjs.org/openapi-types/-/openapi-types-12.1.3.tgz", + "integrity": "sha512-N4YtSYJqghVu4iek2ZUvcN/0aqH1kRDuNqzcycDxhOUpg7GdvLa2F3DgS6yBNhInhv2r/6I0Flkn7CqL8+nIcw==" + }, "node_modules/optionator": { "version": "0.9.1", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", @@ -12198,18 +12751,6 @@ "ms": "^2.1.1" } }, - "node_modules/peek-readable": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/peek-readable/-/peek-readable-5.0.0.tgz", - "integrity": "sha512-YtCKvLUOvwtMGmrniQPdO7MwPjgkFBtFIrmfSbYmYuq3tKDV/mcfAhBth1+C3ru7uXIZasc/pHnb+YDYNkkj4A==", - "engines": { - "node": ">=14.16" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/Borewit" - } - }, "node_modules/picocolors": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", @@ -13069,6 +13610,12 @@ "dev": true, "optional": true }, + "node_modules/psl": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", + "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==", + "peer": true + }, "node_modules/punycode": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", @@ -13107,6 +13654,12 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/querystringify": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", + "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", + "peer": true + }, "node_modules/queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", @@ -13192,34 +13745,6 @@ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" }, - "node_modules/readable-web-to-node-stream": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/readable-web-to-node-stream/-/readable-web-to-node-stream-3.0.2.tgz", - "integrity": "sha512-ePeK6cc1EcKLEhJFt/AebMCLL+GgSKhuygrZ/GLaKZYEecIgIECf4UaUuaByiGtzckwR4ain9VzUh95T1exYGw==", - "dependencies": { - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/Borewit" - } - }, - "node_modules/readable-web-to-node-stream/node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/readdirp": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", @@ -13372,8 +13897,7 @@ "node_modules/requires-port": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", - "dev": true + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==" }, "node_modules/requizzle": { "version": "0.2.4", @@ -13487,6 +14011,12 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/rrweb-cssom": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/rrweb-cssom/-/rrweb-cssom-0.6.0.tgz", + "integrity": "sha512-APM0Gt1KoXBz0iIkkdB/kfvGOwC4UuJFeG/c+yV7wSc7q96cG/kJ0HiYCnzivD9SB53cLV1MlHFNfOuPaadYSw==", + "peer": true + }, "node_modules/run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", @@ -13623,6 +14153,18 @@ "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", "dev": true }, + "node_modules/saxes": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz", + "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==", + "peer": true, + "dependencies": { + "xmlchars": "^2.2.0" + }, + "engines": { + "node": ">=v12.22.7" + } + }, "node_modules/schema-utils": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", @@ -13686,24 +14228,49 @@ } }, "node_modules/semver-truncate": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/semver-truncate/-/semver-truncate-2.0.0.tgz", - "integrity": "sha512-Rh266MLDYNeML5h90ttdMwfXe1+Nc4LAWd9X1KdJe8pPHP4kFmvLZALtsMNHNdvTyQygbEC0D59sIz47DIaq8w==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/semver-truncate/-/semver-truncate-3.0.0.tgz", + "integrity": "sha512-LJWA9kSvMolR51oDE6PN3kALBNaUdkxzAGcexw8gjMA8xr5zUqK0JiR3CgARSqanYF3Z1YHvsErb1KDgh+v7Rg==", "dependencies": { - "semver": "^6.0.0" + "semver": "^7.3.5" }, "engines": { - "node": ">=8" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/semver-truncate/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" } }, "node_modules/semver-truncate/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dependencies": { + "lru-cache": "^6.0.0" + }, "bin": { "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" } }, + "node_modules/semver-truncate/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + }, "node_modules/semver/node_modules/lru-cache": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", @@ -14341,22 +14908,6 @@ "node": ">=4" } }, - "node_modules/strtok3": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/strtok3/-/strtok3-7.0.0.tgz", - "integrity": "sha512-pQ+V+nYQdC5H3Q7qBZAz/MO6lwGhoC2gOAjuouGf/VO0m7vQRh8QNMl2Uf6SwAtzZ9bOw3UIeBukEGNJl5dtXQ==", - "dependencies": { - "@tokenizer/token": "^0.3.0", - "peek-readable": "^5.0.0" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/Borewit" - } - }, "node_modules/stubs": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/stubs/-/stubs-3.0.0.tgz", @@ -14534,6 +15085,12 @@ "node": ">=10.13.0" } }, + "node_modules/symbol-tree": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", + "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", + "peer": true + }, "node_modules/tapable": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", @@ -14858,20 +15415,28 @@ "node": ">=0.6" } }, - "node_modules/token-types": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/token-types/-/token-types-5.0.1.tgz", - "integrity": "sha512-Y2fmSnZjQdDb9W4w4r1tswlMHylzWIeOKpx0aZH9BgGtACHhrk3OkT52AzwcuqTRBZtvvnTjDBh8eynMulu8Vg==", + "node_modules/tough-cookie": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.3.tgz", + "integrity": "sha512-aX/y5pVRkfRnfmuX+OdbSdXvPe6ieKX/G2s7e98f4poJHnqH3281gDPm/metm6E/WRamfx7WC4HUqkWHfQHprw==", + "peer": true, "dependencies": { - "@tokenizer/token": "^0.3.0", - "ieee754": "^1.2.1" + "psl": "^1.1.33", + "punycode": "^2.1.1", + "universalify": "^0.2.0", + "url-parse": "^1.5.3" }, "engines": { - "node": ">=14.16" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/Borewit" + "node": ">=6" + } + }, + "node_modules/tough-cookie/node_modules/universalify": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", + "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", + "peer": true, + "engines": { + "node": ">= 4.0.0" } }, "node_modules/tr46": { @@ -15032,9 +15597,9 @@ } }, "node_modules/tslib": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.2.tgz", - "integrity": "sha512-5svOrSA2w3iGFDs1HibEVBGbDrAY82bFQ3HZ3ixB+88nsbsWQoKqDRb5UBYAUPEzbBn6dAp5gRNXglySbx1MlA==" + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.1.tgz", + "integrity": "sha512-t0hLfiEKfMUoqhG+U1oid7Pva4bbDPHYfJNiB7BiIjRkj1pyC++4N3huJfqY6aRH6VTB0rvtzQwjM4K6qpfOig==" }, "node_modules/tsutils": { "version": "3.21.0", @@ -15159,9 +15724,9 @@ "integrity": "sha512-+A5Sja4HP1M08MaXya7p5LvjuM7K6q/2EaC0+iovj/wOcMsTzMvDFbasi/oSapiwOlt252IqsKqPjCl7huKS0A==" }, "node_modules/undici": { - "version": "5.22.1", - "resolved": "https://registry.npmjs.org/undici/-/undici-5.22.1.tgz", - "integrity": "sha512-Ji2IJhFXZY0x/0tVBXeQwgPlLWw13GVzpsWPQ3rV50IFMMof2I55PZZxtm4P6iNq+L5znYN9nSTAq0ZyE6lSJw==", + "version": "5.23.0", + "resolved": "https://registry.npmjs.org/undici/-/undici-5.23.0.tgz", + "integrity": "sha512-1D7w+fvRsqlQ9GscLBwcAJinqcZGHUKjbOmXdlE/v8BvEGXjeWAax+341q44EuTcHXXnfyKNbKRq4Lg7OzhMmg==", "dependencies": { "busboy": "^1.6.0" }, @@ -15265,6 +15830,16 @@ "punycode": "^2.1.0" } }, + "node_modules/url-parse": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", + "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", + "peer": true, + "dependencies": { + "querystringify": "^2.1.1", + "requires-port": "^1.0.0" + } + }, "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", @@ -15326,6 +15901,18 @@ "node": ">= 0.8" } }, + "node_modules/w3c-xmlserializer": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-4.0.0.tgz", + "integrity": "sha512-d+BFHzbiCx6zGfz0HyQ6Rg69w9k19nviJspaj4yNscGjrHu94sVP+aRm75yEbCh+r2/yR+7q6hux9LVtbuTGBw==", + "peer": true, + "dependencies": { + "xml-name-validator": "^4.0.0" + }, + "engines": { + "node": ">=14" + } + }, "node_modules/walker": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", @@ -15366,6 +15953,14 @@ "defaults": "^1.0.3" } }, + "node_modules/web-streams-polyfill": { + "version": "4.0.0-beta.3", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-4.0.0-beta.3.tgz", + "integrity": "sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug==", + "engines": { + "node": ">= 14" + } + }, "node_modules/webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", @@ -15620,6 +16215,39 @@ "node": ">=0.8.0" } }, + "node_modules/whatwg-encoding": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-2.0.0.tgz", + "integrity": "sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg==", + "peer": true, + "dependencies": { + "iconv-lite": "0.6.3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/whatwg-encoding/node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "peer": true, + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/whatwg-mimetype": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-3.0.0.tgz", + "integrity": "sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==", + "peer": true, + "engines": { + "node": ">=12" + } + }, "node_modules/whatwg-url": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", @@ -15652,9 +16280,9 @@ } }, "node_modules/winston": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/winston/-/winston-3.9.0.tgz", - "integrity": "sha512-jW51iW/X95BCW6MMtZWr2jKQBP4hV5bIDq9QrIjfDk6Q9QuxvTKEAlpUNAzP+HYHFFCeENhph16s0zEunu4uuQ==", + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/winston/-/winston-3.10.0.tgz", + "integrity": "sha512-nT6SIDaE9B7ZRO0u3UvdrimG0HkB7dSTAgInQnNR2SOPJ4bvq5q79+pXLftKmP52lJGW15+H5MCK0nM9D3KB/g==", "dependencies": { "@colors/colors": "1.5.0", "@dabh/diagnostics": "^2.0.2", @@ -15773,6 +16401,21 @@ } } }, + "node_modules/xml-name-validator": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz", + "integrity": "sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==", + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/xmlchars": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", + "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", + "peer": true + }, "node_modules/xmlcreate": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/xmlcreate/-/xmlcreate-2.0.4.tgz", @@ -15869,12 +16512,12 @@ } }, "node_modules/youtube-dl-exec": { - "version": "2.4.4", - "resolved": "https://registry.npmjs.org/youtube-dl-exec/-/youtube-dl-exec-2.4.4.tgz", - "integrity": "sha512-vCBdcY3IK3//wZbJDPOVVufZpYNCylaUSGB/PzgU/5jJqUqJlpVdw8Qt4RA770dT18mN7PfBD7zOOlmkTTEh0A==", + "version": "2.4.7", + "resolved": "https://registry.npmjs.org/youtube-dl-exec/-/youtube-dl-exec-2.4.7.tgz", + "integrity": "sha512-sJ3zV0hlEhznnYkucbRvE5xi5fQ/se+po0LzYd9/TxvNOYD5oBSH/YJ8OPdhgleKdlM4uIPsXOYs6Q5gb2iO8w==", "hasInstallScript": true, "dependencies": { - "bin-version-check": "~5.0.0", + "bin-version-check": "~5.1.0", "dargs": "~7.0.0", "execa": "~5.1.0", "is-unix": "~2.0.1", diff --git a/package.json b/package.json index f77277d..be11c22 100644 --- a/package.json +++ b/package.json @@ -6,26 +6,26 @@ "private": true, "dependencies": { "@google-cloud/error-reporting": "^3.0.5", - "@google-cloud/vision": "^3.1.3", - "@grpc/grpc-js": "^1.8.15", - "@grpc/proto-loader": "^0.7.7", + "@google-cloud/vision": "^3.1.4", + "@grpc/grpc-js": "^1.9.0", + "@grpc/proto-loader": "^0.7.8", "@nestjs/axios": "^2.0.0", - "@nestjs/common": "^9.4.2", - "@nestjs/config": "^2.3.2", - "@nestjs/core": "9.4.2", + "@nestjs/common": "^9.4.3", + "@nestjs/config": "^2.3.4", + "@nestjs/core": "^9.4.3", "@nestjs/event-emitter": "^1.4.1", - "@nestjs/microservices": "^9.4.2", + "@nestjs/microservices": "^9.4.3", "@nestjs/mongoose": "^9.2.2", - "@nestjs/platform-express": "^9.4.2", - "@sd0x/nest-openai-client": "^0.0.9", + "@nestjs/platform-express": "^9.4.3", + "@sd0x/nest-openai-client": "^0.0.10", "@supercharge/promise-pool": "^2.4.0", "axios": "^1.4.0", "cheerio": "^1.0.0-rc.12", - "discord.js": "^14.11.0", + "discord.js": "^14.12.1", "fluent-ffmpeg": "^2.1.2", "form-data": "^4.0.0", "ioredis": "^5.3.2", - "langchain": "^0.0.92", + "langchain": "^0.0.129", "mongoose": "^7.2.3", "nest-winston": "^1.9.2", "nodejieba": "^2.6.0", @@ -36,12 +36,12 @@ "rxjs": "^7.8.1", "tslib": "^2.3.0", "uid": "^2.0.2", - "winston": "^3.9.0", - "youtube-dl-exec": "^2.4.4" + "winston": "^3.10.0", + "youtube-dl-exec": "^2.4.7" }, "devDependencies": { "@nestjs/schematics": "^9.2.0", - "@nestjs/testing": "^9.4.2", + "@nestjs/testing": "^9.4.3", "@nx/eslint-plugin": "16.3.2", "@nx/jest": "16.3.2", "@nx/js": "16.3.2", @@ -50,7 +50,7 @@ "@nx/node": "16.3.2", "@nx/webpack": "16.3.2", "@nx/workspace": "16.3.2", - "@types/jest": "^29.5.2", + "@types/jest": "^29.5.3", "@types/node": "~18.7.23", "@typescript-eslint/eslint-plugin": "^5.59.9", "@typescript-eslint/parser": "^5.59.9", diff --git a/tools/cdk8s/yggdrasil-core-engine/.gitignore b/tools/cdk8s/yggdrasil-core-engine/.gitignore new file mode 100644 index 0000000..cece054 --- /dev/null +++ b/tools/cdk8s/yggdrasil-core-engine/.gitignore @@ -0,0 +1,5 @@ +*.d.ts +*.js +!jest.config.js +node_modules +dist/ diff --git a/tools/cdk8s/yggdrasil-core-engine/__snapshots__/main.test.ts.snap b/tools/cdk8s/yggdrasil-core-engine/__snapshots__/main.test.ts.snap new file mode 100644 index 0000000..18170b9 --- /dev/null +++ b/tools/cdk8s/yggdrasil-core-engine/__snapshots__/main.test.ts.snap @@ -0,0 +1,80 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Placeholder Empty 1`] = ` +Array [ + Object { + "apiVersion": "v1", + "kind": "Namespace", + }, + Object { + "apiVersion": "apps/v1", + "kind": "Deployment", + "spec": Object { + "replicas": 1, + "selector": Object { + "matchLabels": Object {}, + }, + "template": Object { + "metadata": Object { + "labels": Object {}, + }, + "spec": Object { + "containers": Array [ + Object { + "env": Array [ + Object { + "name": "NODE_ENV", + "value": "development", + }, + Object { + "name": "SERVICE_TAGS", + "value": "development", + }, + ], + "image": "asia-east1-docker.pkg.dev/general-382514/yu-gpt-engine/yu-gpt-engine-image:latest", + "imagePullPolicy": "Always", + "livenessProbe": Object { + "httpGet": Object { + "path": "/", + "port": 3000, + }, + "initialDelaySeconds": 10, + }, + "name": "yggdrasil-core-engine", + "resources": Object { + "limits": Object { + "cpu": "0.25", + "memory": "512Mi", + }, + }, + }, + ], + "imagePullSecrets": Array [ + Object { + "name": "registry-credentials", + }, + ], + }, + }, + }, + }, + Object { + "apiVersion": "v1", + "kind": "ServiceAccount", + }, + Object { + "apiVersion": "rbac.authorization.k8s.io/v1", + "kind": "RoleBinding", + "roleRef": Object { + "apiGroup": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "name": "cluster-admin", + }, + "subjects": Array [ + Object { + "kind": "ServiceAccount", + }, + ], + }, +] +`; diff --git a/tools/cdk8s/yggdrasil-core-engine/cdk8s.yaml b/tools/cdk8s/yggdrasil-core-engine/cdk8s.yaml new file mode 100644 index 0000000..b4d1d53 --- /dev/null +++ b/tools/cdk8s/yggdrasil-core-engine/cdk8s.yaml @@ -0,0 +1,4 @@ +language: typescript +app: npx ts-node main.ts +imports: + - k8s diff --git a/tools/cdk8s/yggdrasil-core-engine/env/.env b/tools/cdk8s/yggdrasil-core-engine/env/.env new file mode 100644 index 0000000..fb96a28 --- /dev/null +++ b/tools/cdk8s/yggdrasil-core-engine/env/.env @@ -0,0 +1,5 @@ +SERVICE_TAGS=production +IMAGE_PATH=asia-east1-docker.pkg.dev/general-382514/yggdrasil-core-engine/yggdrasil-core-engine-image: +APP_CLUSTER_PORT=80 +IMAGE_PULL_POLICY=IfNotPresent +IMAGE_PULL_SECRETS=gitlab-registry diff --git a/tools/cdk8s/yggdrasil-core-engine/env/.env.development b/tools/cdk8s/yggdrasil-core-engine/env/.env.development new file mode 100644 index 0000000..6d0f6e0 --- /dev/null +++ b/tools/cdk8s/yggdrasil-core-engine/env/.env.development @@ -0,0 +1,5 @@ +SERVICE_TAGS=development +IMAGE_PATH=asia-east1-docker.pkg.dev/general-382514/yggdrasil-core-engine/yggdrasil-core-engine-image: +APP_CLUSTER_PORT=8080 +IMAGE_PULL_POLICY=Always +IMAGE_PULL_SECRETS=gitlab-registry diff --git a/tools/cdk8s/yggdrasil-core-engine/env/.env.staging b/tools/cdk8s/yggdrasil-core-engine/env/.env.staging new file mode 100644 index 0000000..89a7c70 --- /dev/null +++ b/tools/cdk8s/yggdrasil-core-engine/env/.env.staging @@ -0,0 +1,5 @@ +SERVICE_TAGS=provision +IMAGE_PATH=registry.gitlab.com/welfree-studio/yggdrasil-core-engine/yggdrasil-core-engine-image: +APP_CLUSTER_PORT=80 +IMAGE_PULL_POLICY=IfNotPresent +IMAGE_PULL_SECRETS=gitlab-registry diff --git a/tools/cdk8s/yggdrasil-core-engine/help b/tools/cdk8s/yggdrasil-core-engine/help new file mode 100644 index 0000000..f49cc52 --- /dev/null +++ b/tools/cdk8s/yggdrasil-core-engine/help @@ -0,0 +1,23 @@ +======================================================================================================== + + Your cdk8s typescript project is ready! + + cat help Print this message + + Compile: + npm run compile Compile typescript code to javascript (or "yarn watch") + npm run watch Watch for changes and compile typescript in the background + npm run build Compile + synth + + Synthesize: + npm run synth Synthesize k8s manifests from charts to dist/ (ready for 'kubectl apply -f') + + Deploy: + kubectl apply -f dist/ + + Upgrades: + npm run import Import/update k8s apis (you should check-in this directory) + npm run upgrade Upgrade cdk8s modules to latest version + npm run upgrade:next Upgrade cdk8s modules to latest "@next" version (last commit) + +======================================================================================================== diff --git a/tools/cdk8s/yggdrasil-core-engine/imports/k8s.ts b/tools/cdk8s/yggdrasil-core-engine/imports/k8s.ts new file mode 100644 index 0000000..28a1f3e --- /dev/null +++ b/tools/cdk8s/yggdrasil-core-engine/imports/k8s.ts @@ -0,0 +1,26965 @@ +// generated by cdk8s +import { ApiObject, GroupVersionKind } from 'cdk8s'; +import { Construct } from 'constructs'; + +/** + * MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. + * + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration + */ +export class KubeMutatingWebhookConfiguration extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'admissionregistration.k8s.io/v1', + kind: 'MutatingWebhookConfiguration', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeMutatingWebhookConfigurationProps = {}): any { + return { + ...KubeMutatingWebhookConfiguration.GVK, + ...toJson_KubeMutatingWebhookConfigurationProps(props), + }; + } + + /** + * Defines a "io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeMutatingWebhookConfigurationProps = {}) { + super(scope, id, { + ...KubeMutatingWebhookConfiguration.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeMutatingWebhookConfiguration.GVK, + ...toJson_KubeMutatingWebhookConfigurationProps(resolved), + }; + } +} + +/** + * MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. + * + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList + */ +export class KubeMutatingWebhookConfigurationList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'admissionregistration.k8s.io/v1', + kind: 'MutatingWebhookConfigurationList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeMutatingWebhookConfigurationListProps): any { + return { + ...KubeMutatingWebhookConfigurationList.GVK, + ...toJson_KubeMutatingWebhookConfigurationListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeMutatingWebhookConfigurationListProps) { + super(scope, id, { + ...KubeMutatingWebhookConfigurationList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeMutatingWebhookConfigurationList.GVK, + ...toJson_KubeMutatingWebhookConfigurationListProps(resolved), + }; + } +} + +/** + * ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. + * + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration + */ +export class KubeValidatingWebhookConfiguration extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'admissionregistration.k8s.io/v1', + kind: 'ValidatingWebhookConfiguration', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeValidatingWebhookConfigurationProps = {}): any { + return { + ...KubeValidatingWebhookConfiguration.GVK, + ...toJson_KubeValidatingWebhookConfigurationProps(props), + }; + } + + /** + * Defines a "io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeValidatingWebhookConfigurationProps = {}) { + super(scope, id, { + ...KubeValidatingWebhookConfiguration.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeValidatingWebhookConfiguration.GVK, + ...toJson_KubeValidatingWebhookConfigurationProps(resolved), + }; + } +} + +/** + * ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. + * + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList + */ +export class KubeValidatingWebhookConfigurationList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'admissionregistration.k8s.io/v1', + kind: 'ValidatingWebhookConfigurationList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeValidatingWebhookConfigurationListProps): any { + return { + ...KubeValidatingWebhookConfigurationList.GVK, + ...toJson_KubeValidatingWebhookConfigurationListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeValidatingWebhookConfigurationListProps) { + super(scope, id, { + ...KubeValidatingWebhookConfigurationList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeValidatingWebhookConfigurationList.GVK, + ...toJson_KubeValidatingWebhookConfigurationListProps(resolved), + }; + } +} + +/** + * Storage version of a specific resource. + * + * @schema io.k8s.api.apiserverinternal.v1alpha1.StorageVersion + */ +export class KubeStorageVersionV1Alpha1 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'internal.apiserver.k8s.io/v1alpha1', + kind: 'StorageVersion', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.apiserverinternal.v1alpha1.StorageVersion". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeStorageVersionV1Alpha1Props): any { + return { + ...KubeStorageVersionV1Alpha1.GVK, + ...toJson_KubeStorageVersionV1Alpha1Props(props), + }; + } + + /** + * Defines a "io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeStorageVersionV1Alpha1Props) { + super(scope, id, { + ...KubeStorageVersionV1Alpha1.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeStorageVersionV1Alpha1.GVK, + ...toJson_KubeStorageVersionV1Alpha1Props(resolved), + }; + } +} + +/** + * A list of StorageVersions. + * + * @schema io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList + */ +export class KubeStorageVersionListV1Alpha1 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'internal.apiserver.k8s.io/v1alpha1', + kind: 'StorageVersionList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeStorageVersionListV1Alpha1Props): any { + return { + ...KubeStorageVersionListV1Alpha1.GVK, + ...toJson_KubeStorageVersionListV1Alpha1Props(props), + }; + } + + /** + * Defines a "io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeStorageVersionListV1Alpha1Props) { + super(scope, id, { + ...KubeStorageVersionListV1Alpha1.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeStorageVersionListV1Alpha1.GVK, + ...toJson_KubeStorageVersionListV1Alpha1Props(resolved), + }; + } +} + +/** + * ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. + * + * @schema io.k8s.api.apps.v1.ControllerRevision + */ +export class KubeControllerRevision extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.apps.v1.ControllerRevision" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'apps/v1', + kind: 'ControllerRevision', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.ControllerRevision". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeControllerRevisionProps): any { + return { + ...KubeControllerRevision.GVK, + ...toJson_KubeControllerRevisionProps(props), + }; + } + + /** + * Defines a "io.k8s.api.apps.v1.ControllerRevision" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeControllerRevisionProps) { + super(scope, id, { + ...KubeControllerRevision.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeControllerRevision.GVK, + ...toJson_KubeControllerRevisionProps(resolved), + }; + } +} + +/** + * ControllerRevisionList is a resource containing a list of ControllerRevision objects. + * + * @schema io.k8s.api.apps.v1.ControllerRevisionList + */ +export class KubeControllerRevisionList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.apps.v1.ControllerRevisionList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'apps/v1', + kind: 'ControllerRevisionList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.ControllerRevisionList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeControllerRevisionListProps): any { + return { + ...KubeControllerRevisionList.GVK, + ...toJson_KubeControllerRevisionListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.apps.v1.ControllerRevisionList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeControllerRevisionListProps) { + super(scope, id, { + ...KubeControllerRevisionList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeControllerRevisionList.GVK, + ...toJson_KubeControllerRevisionListProps(resolved), + }; + } +} + +/** + * DaemonSet represents the configuration of a daemon set. + * + * @schema io.k8s.api.apps.v1.DaemonSet + */ +export class KubeDaemonSet extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.apps.v1.DaemonSet" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'apps/v1', + kind: 'DaemonSet', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.DaemonSet". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeDaemonSetProps = {}): any { + return { + ...KubeDaemonSet.GVK, + ...toJson_KubeDaemonSetProps(props), + }; + } + + /** + * Defines a "io.k8s.api.apps.v1.DaemonSet" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeDaemonSetProps = {}) { + super(scope, id, { + ...KubeDaemonSet.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeDaemonSet.GVK, + ...toJson_KubeDaemonSetProps(resolved), + }; + } +} + +/** + * DaemonSetList is a collection of daemon sets. + * + * @schema io.k8s.api.apps.v1.DaemonSetList + */ +export class KubeDaemonSetList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.apps.v1.DaemonSetList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'apps/v1', + kind: 'DaemonSetList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.DaemonSetList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeDaemonSetListProps): any { + return { + ...KubeDaemonSetList.GVK, + ...toJson_KubeDaemonSetListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.apps.v1.DaemonSetList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeDaemonSetListProps) { + super(scope, id, { + ...KubeDaemonSetList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeDaemonSetList.GVK, + ...toJson_KubeDaemonSetListProps(resolved), + }; + } +} + +/** + * Deployment enables declarative updates for Pods and ReplicaSets. + * + * @schema io.k8s.api.apps.v1.Deployment + */ +export class KubeDeployment extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.apps.v1.Deployment" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'apps/v1', + kind: 'Deployment', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.Deployment". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeDeploymentProps = {}): any { + return { + ...KubeDeployment.GVK, + ...toJson_KubeDeploymentProps(props), + }; + } + + /** + * Defines a "io.k8s.api.apps.v1.Deployment" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeDeploymentProps = {}) { + super(scope, id, { + ...KubeDeployment.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeDeployment.GVK, + ...toJson_KubeDeploymentProps(resolved), + }; + } +} + +/** + * DeploymentList is a list of Deployments. + * + * @schema io.k8s.api.apps.v1.DeploymentList + */ +export class KubeDeploymentList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.apps.v1.DeploymentList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'apps/v1', + kind: 'DeploymentList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.DeploymentList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeDeploymentListProps): any { + return { + ...KubeDeploymentList.GVK, + ...toJson_KubeDeploymentListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.apps.v1.DeploymentList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeDeploymentListProps) { + super(scope, id, { + ...KubeDeploymentList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeDeploymentList.GVK, + ...toJson_KubeDeploymentListProps(resolved), + }; + } +} + +/** + * ReplicaSet ensures that a specified number of pod replicas are running at any given time. + * + * @schema io.k8s.api.apps.v1.ReplicaSet + */ +export class KubeReplicaSet extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.apps.v1.ReplicaSet" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'apps/v1', + kind: 'ReplicaSet', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.ReplicaSet". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeReplicaSetProps = {}): any { + return { + ...KubeReplicaSet.GVK, + ...toJson_KubeReplicaSetProps(props), + }; + } + + /** + * Defines a "io.k8s.api.apps.v1.ReplicaSet" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeReplicaSetProps = {}) { + super(scope, id, { + ...KubeReplicaSet.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeReplicaSet.GVK, + ...toJson_KubeReplicaSetProps(resolved), + }; + } +} + +/** + * ReplicaSetList is a collection of ReplicaSets. + * + * @schema io.k8s.api.apps.v1.ReplicaSetList + */ +export class KubeReplicaSetList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.apps.v1.ReplicaSetList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'apps/v1', + kind: 'ReplicaSetList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.ReplicaSetList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeReplicaSetListProps): any { + return { + ...KubeReplicaSetList.GVK, + ...toJson_KubeReplicaSetListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.apps.v1.ReplicaSetList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeReplicaSetListProps) { + super(scope, id, { + ...KubeReplicaSetList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeReplicaSetList.GVK, + ...toJson_KubeReplicaSetListProps(resolved), + }; + } +} + +/** + * StatefulSet represents a set of pods with consistent identities. Identities are defined as: + - Network: A single stable DNS and hostname. + - Storage: As many VolumeClaims as requested. + +The StatefulSet guarantees that a given network identity will always map to the same storage identity. + * + * @schema io.k8s.api.apps.v1.StatefulSet + */ +export class KubeStatefulSet extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.apps.v1.StatefulSet" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'apps/v1', + kind: 'StatefulSet', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.StatefulSet". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeStatefulSetProps = {}): any { + return { + ...KubeStatefulSet.GVK, + ...toJson_KubeStatefulSetProps(props), + }; + } + + /** + * Defines a "io.k8s.api.apps.v1.StatefulSet" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeStatefulSetProps = {}) { + super(scope, id, { + ...KubeStatefulSet.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeStatefulSet.GVK, + ...toJson_KubeStatefulSetProps(resolved), + }; + } +} + +/** + * StatefulSetList is a collection of StatefulSets. + * + * @schema io.k8s.api.apps.v1.StatefulSetList + */ +export class KubeStatefulSetList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.apps.v1.StatefulSetList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'apps/v1', + kind: 'StatefulSetList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.StatefulSetList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeStatefulSetListProps): any { + return { + ...KubeStatefulSetList.GVK, + ...toJson_KubeStatefulSetListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.apps.v1.StatefulSetList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeStatefulSetListProps) { + super(scope, id, { + ...KubeStatefulSetList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeStatefulSetList.GVK, + ...toJson_KubeStatefulSetListProps(resolved), + }; + } +} + +/** + * TokenRequest requests a token for a given service account. + * + * @schema io.k8s.api.authentication.v1.TokenRequest + */ +export class KubeTokenRequest extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.authentication.v1.TokenRequest" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'authentication.k8s.io/v1', + kind: 'TokenRequest', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.authentication.v1.TokenRequest". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeTokenRequestProps): any { + return { + ...KubeTokenRequest.GVK, + ...toJson_KubeTokenRequestProps(props), + }; + } + + /** + * Defines a "io.k8s.api.authentication.v1.TokenRequest" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeTokenRequestProps) { + super(scope, id, { + ...KubeTokenRequest.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeTokenRequest.GVK, + ...toJson_KubeTokenRequestProps(resolved), + }; + } +} + +/** + * TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver. + * + * @schema io.k8s.api.authentication.v1.TokenReview + */ +export class KubeTokenReview extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.authentication.v1.TokenReview" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'authentication.k8s.io/v1', + kind: 'TokenReview', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.authentication.v1.TokenReview". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeTokenReviewProps): any { + return { + ...KubeTokenReview.GVK, + ...toJson_KubeTokenReviewProps(props), + }; + } + + /** + * Defines a "io.k8s.api.authentication.v1.TokenReview" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeTokenReviewProps) { + super(scope, id, { + ...KubeTokenReview.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeTokenReview.GVK, + ...toJson_KubeTokenReviewProps(resolved), + }; + } +} + +/** + * LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking. + * + * @schema io.k8s.api.authorization.v1.LocalSubjectAccessReview + */ +export class KubeLocalSubjectAccessReview extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.authorization.v1.LocalSubjectAccessReview" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'authorization.k8s.io/v1', + kind: 'LocalSubjectAccessReview', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.authorization.v1.LocalSubjectAccessReview". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeLocalSubjectAccessReviewProps): any { + return { + ...KubeLocalSubjectAccessReview.GVK, + ...toJson_KubeLocalSubjectAccessReviewProps(props), + }; + } + + /** + * Defines a "io.k8s.api.authorization.v1.LocalSubjectAccessReview" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeLocalSubjectAccessReviewProps) { + super(scope, id, { + ...KubeLocalSubjectAccessReview.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeLocalSubjectAccessReview.GVK, + ...toJson_KubeLocalSubjectAccessReviewProps(resolved), + }; + } +} + +/** + * 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 + * + * @schema io.k8s.api.authorization.v1.SelfSubjectAccessReview + */ +export class KubeSelfSubjectAccessReview extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.authorization.v1.SelfSubjectAccessReview" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'authorization.k8s.io/v1', + kind: 'SelfSubjectAccessReview', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.authorization.v1.SelfSubjectAccessReview". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeSelfSubjectAccessReviewProps): any { + return { + ...KubeSelfSubjectAccessReview.GVK, + ...toJson_KubeSelfSubjectAccessReviewProps(props), + }; + } + + /** + * Defines a "io.k8s.api.authorization.v1.SelfSubjectAccessReview" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeSelfSubjectAccessReviewProps) { + super(scope, id, { + ...KubeSelfSubjectAccessReview.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeSelfSubjectAccessReview.GVK, + ...toJson_KubeSelfSubjectAccessReviewProps(resolved), + }; + } +} + +/** + * SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. + * + * @schema io.k8s.api.authorization.v1.SelfSubjectRulesReview + */ +export class KubeSelfSubjectRulesReview extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.authorization.v1.SelfSubjectRulesReview" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'authorization.k8s.io/v1', + kind: 'SelfSubjectRulesReview', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.authorization.v1.SelfSubjectRulesReview". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeSelfSubjectRulesReviewProps): any { + return { + ...KubeSelfSubjectRulesReview.GVK, + ...toJson_KubeSelfSubjectRulesReviewProps(props), + }; + } + + /** + * Defines a "io.k8s.api.authorization.v1.SelfSubjectRulesReview" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeSelfSubjectRulesReviewProps) { + super(scope, id, { + ...KubeSelfSubjectRulesReview.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeSelfSubjectRulesReview.GVK, + ...toJson_KubeSelfSubjectRulesReviewProps(resolved), + }; + } +} + +/** + * SubjectAccessReview checks whether or not a user or group can perform an action. + * + * @schema io.k8s.api.authorization.v1.SubjectAccessReview + */ +export class KubeSubjectAccessReview extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.authorization.v1.SubjectAccessReview" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'authorization.k8s.io/v1', + kind: 'SubjectAccessReview', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.authorization.v1.SubjectAccessReview". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeSubjectAccessReviewProps): any { + return { + ...KubeSubjectAccessReview.GVK, + ...toJson_KubeSubjectAccessReviewProps(props), + }; + } + + /** + * Defines a "io.k8s.api.authorization.v1.SubjectAccessReview" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeSubjectAccessReviewProps) { + super(scope, id, { + ...KubeSubjectAccessReview.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeSubjectAccessReview.GVK, + ...toJson_KubeSubjectAccessReviewProps(resolved), + }; + } +} + +/** + * configuration of a horizontal pod autoscaler. + * + * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler + */ +export class KubeHorizontalPodAutoscaler extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'autoscaling/v1', + kind: 'HorizontalPodAutoscaler', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeHorizontalPodAutoscalerProps = {}): any { + return { + ...KubeHorizontalPodAutoscaler.GVK, + ...toJson_KubeHorizontalPodAutoscalerProps(props), + }; + } + + /** + * Defines a "io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeHorizontalPodAutoscalerProps = {}) { + super(scope, id, { + ...KubeHorizontalPodAutoscaler.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeHorizontalPodAutoscaler.GVK, + ...toJson_KubeHorizontalPodAutoscalerProps(resolved), + }; + } +} + +/** + * list of horizontal pod autoscaler objects. + * + * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList + */ +export class KubeHorizontalPodAutoscalerList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'autoscaling/v1', + kind: 'HorizontalPodAutoscalerList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeHorizontalPodAutoscalerListProps): any { + return { + ...KubeHorizontalPodAutoscalerList.GVK, + ...toJson_KubeHorizontalPodAutoscalerListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeHorizontalPodAutoscalerListProps) { + super(scope, id, { + ...KubeHorizontalPodAutoscalerList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeHorizontalPodAutoscalerList.GVK, + ...toJson_KubeHorizontalPodAutoscalerListProps(resolved), + }; + } +} + +/** + * Scale represents a scaling request for a resource. + * + * @schema io.k8s.api.autoscaling.v1.Scale + */ +export class KubeScale extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.autoscaling.v1.Scale" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'autoscaling/v1', + kind: 'Scale', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.autoscaling.v1.Scale". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeScaleProps = {}): any { + return { + ...KubeScale.GVK, + ...toJson_KubeScaleProps(props), + }; + } + + /** + * Defines a "io.k8s.api.autoscaling.v1.Scale" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeScaleProps = {}) { + super(scope, id, { + ...KubeScale.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeScale.GVK, + ...toJson_KubeScaleProps(resolved), + }; + } +} + +/** + * HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. + * + * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler + */ +export class KubeHorizontalPodAutoscalerV2 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'autoscaling/v2', + kind: 'HorizontalPodAutoscaler', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeHorizontalPodAutoscalerV2Props = {}): any { + return { + ...KubeHorizontalPodAutoscalerV2.GVK, + ...toJson_KubeHorizontalPodAutoscalerV2Props(props), + }; + } + + /** + * Defines a "io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeHorizontalPodAutoscalerV2Props = {}) { + super(scope, id, { + ...KubeHorizontalPodAutoscalerV2.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeHorizontalPodAutoscalerV2.GVK, + ...toJson_KubeHorizontalPodAutoscalerV2Props(resolved), + }; + } +} + +/** + * HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. + * + * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerList + */ +export class KubeHorizontalPodAutoscalerListV2 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'autoscaling/v2', + kind: 'HorizontalPodAutoscalerList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeHorizontalPodAutoscalerListV2Props): any { + return { + ...KubeHorizontalPodAutoscalerListV2.GVK, + ...toJson_KubeHorizontalPodAutoscalerListV2Props(props), + }; + } + + /** + * Defines a "io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeHorizontalPodAutoscalerListV2Props) { + super(scope, id, { + ...KubeHorizontalPodAutoscalerListV2.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeHorizontalPodAutoscalerListV2.GVK, + ...toJson_KubeHorizontalPodAutoscalerListV2Props(resolved), + }; + } +} + +/** + * HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. + * + * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler + */ +export class KubeHorizontalPodAutoscalerV2Beta2 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'autoscaling/v2beta2', + kind: 'HorizontalPodAutoscaler', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeHorizontalPodAutoscalerV2Beta2Props = {}): any { + return { + ...KubeHorizontalPodAutoscalerV2Beta2.GVK, + ...toJson_KubeHorizontalPodAutoscalerV2Beta2Props(props), + }; + } + + /** + * Defines a "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeHorizontalPodAutoscalerV2Beta2Props = {}) { + super(scope, id, { + ...KubeHorizontalPodAutoscalerV2Beta2.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeHorizontalPodAutoscalerV2Beta2.GVK, + ...toJson_KubeHorizontalPodAutoscalerV2Beta2Props(resolved), + }; + } +} + +/** + * HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. + * + * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerList + */ +export class KubeHorizontalPodAutoscalerListV2Beta2 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'autoscaling/v2beta2', + kind: 'HorizontalPodAutoscalerList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeHorizontalPodAutoscalerListV2Beta2Props): any { + return { + ...KubeHorizontalPodAutoscalerListV2Beta2.GVK, + ...toJson_KubeHorizontalPodAutoscalerListV2Beta2Props(props), + }; + } + + /** + * Defines a "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeHorizontalPodAutoscalerListV2Beta2Props) { + super(scope, id, { + ...KubeHorizontalPodAutoscalerListV2Beta2.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeHorizontalPodAutoscalerListV2Beta2.GVK, + ...toJson_KubeHorizontalPodAutoscalerListV2Beta2Props(resolved), + }; + } +} + +/** + * CronJob represents the configuration of a single cron job. + * + * @schema io.k8s.api.batch.v1.CronJob + */ +export class KubeCronJob extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.batch.v1.CronJob" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'batch/v1', + kind: 'CronJob', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.batch.v1.CronJob". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeCronJobProps = {}): any { + return { + ...KubeCronJob.GVK, + ...toJson_KubeCronJobProps(props), + }; + } + + /** + * Defines a "io.k8s.api.batch.v1.CronJob" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeCronJobProps = {}) { + super(scope, id, { + ...KubeCronJob.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeCronJob.GVK, + ...toJson_KubeCronJobProps(resolved), + }; + } +} + +/** + * CronJobList is a collection of cron jobs. + * + * @schema io.k8s.api.batch.v1.CronJobList + */ +export class KubeCronJobList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.batch.v1.CronJobList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'batch/v1', + kind: 'CronJobList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.batch.v1.CronJobList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeCronJobListProps): any { + return { + ...KubeCronJobList.GVK, + ...toJson_KubeCronJobListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.batch.v1.CronJobList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeCronJobListProps) { + super(scope, id, { + ...KubeCronJobList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeCronJobList.GVK, + ...toJson_KubeCronJobListProps(resolved), + }; + } +} + +/** + * Job represents the configuration of a single job. + * + * @schema io.k8s.api.batch.v1.Job + */ +export class KubeJob extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.batch.v1.Job" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'batch/v1', + kind: 'Job', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.batch.v1.Job". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeJobProps = {}): any { + return { + ...KubeJob.GVK, + ...toJson_KubeJobProps(props), + }; + } + + /** + * Defines a "io.k8s.api.batch.v1.Job" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeJobProps = {}) { + super(scope, id, { + ...KubeJob.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeJob.GVK, + ...toJson_KubeJobProps(resolved), + }; + } +} + +/** + * JobList is a collection of jobs. + * + * @schema io.k8s.api.batch.v1.JobList + */ +export class KubeJobList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.batch.v1.JobList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'batch/v1', + kind: 'JobList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.batch.v1.JobList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeJobListProps): any { + return { + ...KubeJobList.GVK, + ...toJson_KubeJobListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.batch.v1.JobList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeJobListProps) { + super(scope, id, { + ...KubeJobList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeJobList.GVK, + ...toJson_KubeJobListProps(resolved), + }; + } +} + +/** + * CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued. + +Kubelets use this API to obtain: + 1. client certificates to authenticate to kube-apiserver (with the "kubernetes.io/kube-apiserver-client-kubelet" signerName). + 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the "kubernetes.io/kubelet-serving" signerName). + +This API can be used to request client certificates to authenticate to kube-apiserver (with the "kubernetes.io/kube-apiserver-client" signerName), or to obtain certificates from custom non-Kubernetes signers. + * + * @schema io.k8s.api.certificates.v1.CertificateSigningRequest + */ +export class KubeCertificateSigningRequest extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.certificates.v1.CertificateSigningRequest" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'certificates.k8s.io/v1', + kind: 'CertificateSigningRequest', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.certificates.v1.CertificateSigningRequest". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeCertificateSigningRequestProps): any { + return { + ...KubeCertificateSigningRequest.GVK, + ...toJson_KubeCertificateSigningRequestProps(props), + }; + } + + /** + * Defines a "io.k8s.api.certificates.v1.CertificateSigningRequest" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeCertificateSigningRequestProps) { + super(scope, id, { + ...KubeCertificateSigningRequest.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeCertificateSigningRequest.GVK, + ...toJson_KubeCertificateSigningRequestProps(resolved), + }; + } +} + +/** + * CertificateSigningRequestList is a collection of CertificateSigningRequest objects + * + * @schema io.k8s.api.certificates.v1.CertificateSigningRequestList + */ +export class KubeCertificateSigningRequestList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.certificates.v1.CertificateSigningRequestList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'certificates.k8s.io/v1', + kind: 'CertificateSigningRequestList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.certificates.v1.CertificateSigningRequestList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeCertificateSigningRequestListProps): any { + return { + ...KubeCertificateSigningRequestList.GVK, + ...toJson_KubeCertificateSigningRequestListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.certificates.v1.CertificateSigningRequestList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeCertificateSigningRequestListProps) { + super(scope, id, { + ...KubeCertificateSigningRequestList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeCertificateSigningRequestList.GVK, + ...toJson_KubeCertificateSigningRequestListProps(resolved), + }; + } +} + +/** + * Lease defines a lease concept. + * + * @schema io.k8s.api.coordination.v1.Lease + */ +export class KubeLease extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.coordination.v1.Lease" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'coordination.k8s.io/v1', + kind: 'Lease', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.coordination.v1.Lease". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeLeaseProps = {}): any { + return { + ...KubeLease.GVK, + ...toJson_KubeLeaseProps(props), + }; + } + + /** + * Defines a "io.k8s.api.coordination.v1.Lease" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeLeaseProps = {}) { + super(scope, id, { + ...KubeLease.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeLease.GVK, + ...toJson_KubeLeaseProps(resolved), + }; + } +} + +/** + * LeaseList is a list of Lease objects. + * + * @schema io.k8s.api.coordination.v1.LeaseList + */ +export class KubeLeaseList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.coordination.v1.LeaseList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'coordination.k8s.io/v1', + kind: 'LeaseList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.coordination.v1.LeaseList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeLeaseListProps): any { + return { + ...KubeLeaseList.GVK, + ...toJson_KubeLeaseListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.coordination.v1.LeaseList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeLeaseListProps) { + super(scope, id, { + ...KubeLeaseList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeLeaseList.GVK, + ...toJson_KubeLeaseListProps(resolved), + }; + } +} + +/** + * Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead. + * + * @schema io.k8s.api.core.v1.Binding + */ +export class KubeBinding extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.Binding" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'Binding', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.Binding". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeBindingProps): any { + return { + ...KubeBinding.GVK, + ...toJson_KubeBindingProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.Binding" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeBindingProps) { + super(scope, id, { + ...KubeBinding.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeBinding.GVK, + ...toJson_KubeBindingProps(resolved), + }; + } +} + +/** + * ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+ + * + * @schema io.k8s.api.core.v1.ComponentStatus + */ +export class KubeComponentStatus extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.ComponentStatus" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'ComponentStatus', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ComponentStatus". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeComponentStatusProps = {}): any { + return { + ...KubeComponentStatus.GVK, + ...toJson_KubeComponentStatusProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.ComponentStatus" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeComponentStatusProps = {}) { + super(scope, id, { + ...KubeComponentStatus.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeComponentStatus.GVK, + ...toJson_KubeComponentStatusProps(resolved), + }; + } +} + +/** + * Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+ + * + * @schema io.k8s.api.core.v1.ComponentStatusList + */ +export class KubeComponentStatusList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.ComponentStatusList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'ComponentStatusList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ComponentStatusList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeComponentStatusListProps): any { + return { + ...KubeComponentStatusList.GVK, + ...toJson_KubeComponentStatusListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.ComponentStatusList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeComponentStatusListProps) { + super(scope, id, { + ...KubeComponentStatusList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeComponentStatusList.GVK, + ...toJson_KubeComponentStatusListProps(resolved), + }; + } +} + +/** + * ConfigMap holds configuration data for pods to consume. + * + * @schema io.k8s.api.core.v1.ConfigMap + */ +export class KubeConfigMap extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.ConfigMap" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'ConfigMap', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ConfigMap". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeConfigMapProps = {}): any { + return { + ...KubeConfigMap.GVK, + ...toJson_KubeConfigMapProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.ConfigMap" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeConfigMapProps = {}) { + super(scope, id, { + ...KubeConfigMap.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeConfigMap.GVK, + ...toJson_KubeConfigMapProps(resolved), + }; + } +} + +/** + * ConfigMapList is a resource containing a list of ConfigMap objects. + * + * @schema io.k8s.api.core.v1.ConfigMapList + */ +export class KubeConfigMapList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.ConfigMapList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'ConfigMapList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ConfigMapList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeConfigMapListProps): any { + return { + ...KubeConfigMapList.GVK, + ...toJson_KubeConfigMapListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.ConfigMapList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeConfigMapListProps) { + super(scope, id, { + ...KubeConfigMapList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeConfigMapList.GVK, + ...toJson_KubeConfigMapListProps(resolved), + }; + } +} + +/** + * Endpoints is a collection of endpoints that implement the actual service. Example: + + Name: "mysvc", + Subsets: [ + { + Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], + Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] + }, + { + Addresses: [{"ip": "10.10.3.3"}], + Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}] + }, + ] + * + * @schema io.k8s.api.core.v1.Endpoints + */ +export class KubeEndpoints extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.Endpoints" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'Endpoints', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.Endpoints". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeEndpointsProps = {}): any { + return { + ...KubeEndpoints.GVK, + ...toJson_KubeEndpointsProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.Endpoints" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeEndpointsProps = {}) { + super(scope, id, { + ...KubeEndpoints.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeEndpoints.GVK, + ...toJson_KubeEndpointsProps(resolved), + }; + } +} + +/** + * EndpointsList is a list of endpoints. + * + * @schema io.k8s.api.core.v1.EndpointsList + */ +export class KubeEndpointsList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.EndpointsList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'EndpointsList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.EndpointsList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeEndpointsListProps): any { + return { + ...KubeEndpointsList.GVK, + ...toJson_KubeEndpointsListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.EndpointsList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeEndpointsListProps) { + super(scope, id, { + ...KubeEndpointsList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeEndpointsList.GVK, + ...toJson_KubeEndpointsListProps(resolved), + }; + } +} + +/** + * Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data. + * + * @schema io.k8s.api.events.v1.Event + */ +export class KubeEvent extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.events.v1.Event" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'events.k8s.io/v1', + kind: 'Event', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.events.v1.Event". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeEventProps): any { + return { + ...KubeEvent.GVK, + ...toJson_KubeEventProps(props), + }; + } + + /** + * Defines a "io.k8s.api.events.v1.Event" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeEventProps) { + super(scope, id, { + ...KubeEvent.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeEvent.GVK, + ...toJson_KubeEventProps(resolved), + }; + } +} + +/** + * EventList is a list of Event objects. + * + * @schema io.k8s.api.events.v1.EventList + */ +export class KubeEventList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.events.v1.EventList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'events.k8s.io/v1', + kind: 'EventList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.events.v1.EventList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeEventListProps): any { + return { + ...KubeEventList.GVK, + ...toJson_KubeEventListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.events.v1.EventList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeEventListProps) { + super(scope, id, { + ...KubeEventList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeEventList.GVK, + ...toJson_KubeEventListProps(resolved), + }; + } +} + +/** + * LimitRange sets resource usage limits for each kind of resource in a Namespace. + * + * @schema io.k8s.api.core.v1.LimitRange + */ +export class KubeLimitRange extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.LimitRange" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'LimitRange', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.LimitRange". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeLimitRangeProps = {}): any { + return { + ...KubeLimitRange.GVK, + ...toJson_KubeLimitRangeProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.LimitRange" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeLimitRangeProps = {}) { + super(scope, id, { + ...KubeLimitRange.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeLimitRange.GVK, + ...toJson_KubeLimitRangeProps(resolved), + }; + } +} + +/** + * LimitRangeList is a list of LimitRange items. + * + * @schema io.k8s.api.core.v1.LimitRangeList + */ +export class KubeLimitRangeList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.LimitRangeList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'LimitRangeList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.LimitRangeList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeLimitRangeListProps): any { + return { + ...KubeLimitRangeList.GVK, + ...toJson_KubeLimitRangeListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.LimitRangeList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeLimitRangeListProps) { + super(scope, id, { + ...KubeLimitRangeList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeLimitRangeList.GVK, + ...toJson_KubeLimitRangeListProps(resolved), + }; + } +} + +/** + * Namespace provides a scope for Names. Use of multiple namespaces is optional. + * + * @schema io.k8s.api.core.v1.Namespace + */ +export class KubeNamespace extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.Namespace" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'Namespace', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.Namespace". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeNamespaceProps = {}): any { + return { + ...KubeNamespace.GVK, + ...toJson_KubeNamespaceProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.Namespace" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeNamespaceProps = {}) { + super(scope, id, { + ...KubeNamespace.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeNamespace.GVK, + ...toJson_KubeNamespaceProps(resolved), + }; + } +} + +/** + * NamespaceList is a list of Namespaces. + * + * @schema io.k8s.api.core.v1.NamespaceList + */ +export class KubeNamespaceList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.NamespaceList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'NamespaceList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.NamespaceList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeNamespaceListProps): any { + return { + ...KubeNamespaceList.GVK, + ...toJson_KubeNamespaceListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.NamespaceList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeNamespaceListProps) { + super(scope, id, { + ...KubeNamespaceList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeNamespaceList.GVK, + ...toJson_KubeNamespaceListProps(resolved), + }; + } +} + +/** + * Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd). + * + * @schema io.k8s.api.core.v1.Node + */ +export class KubeNode extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.Node" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'Node', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.Node". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeNodeProps = {}): any { + return { + ...KubeNode.GVK, + ...toJson_KubeNodeProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.Node" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeNodeProps = {}) { + super(scope, id, { + ...KubeNode.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeNode.GVK, + ...toJson_KubeNodeProps(resolved), + }; + } +} + +/** + * NodeList is the whole list of all Nodes which have been registered with master. + * + * @schema io.k8s.api.core.v1.NodeList + */ +export class KubeNodeList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.NodeList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'NodeList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.NodeList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeNodeListProps): any { + return { + ...KubeNodeList.GVK, + ...toJson_KubeNodeListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.NodeList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeNodeListProps) { + super(scope, id, { + ...KubeNodeList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeNodeList.GVK, + ...toJson_KubeNodeListProps(resolved), + }; + } +} + +/** + * PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes + * + * @schema io.k8s.api.core.v1.PersistentVolume + */ +export class KubePersistentVolume extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.PersistentVolume" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'PersistentVolume', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.PersistentVolume". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubePersistentVolumeProps = {}): any { + return { + ...KubePersistentVolume.GVK, + ...toJson_KubePersistentVolumeProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.PersistentVolume" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubePersistentVolumeProps = {}) { + super(scope, id, { + ...KubePersistentVolume.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubePersistentVolume.GVK, + ...toJson_KubePersistentVolumeProps(resolved), + }; + } +} + +/** + * PersistentVolumeClaim is a user's request for and claim to a persistent volume + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaim + */ +export class KubePersistentVolumeClaim extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.PersistentVolumeClaim" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'PersistentVolumeClaim', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.PersistentVolumeClaim". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubePersistentVolumeClaimProps = {}): any { + return { + ...KubePersistentVolumeClaim.GVK, + ...toJson_KubePersistentVolumeClaimProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.PersistentVolumeClaim" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubePersistentVolumeClaimProps = {}) { + super(scope, id, { + ...KubePersistentVolumeClaim.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubePersistentVolumeClaim.GVK, + ...toJson_KubePersistentVolumeClaimProps(resolved), + }; + } +} + +/** + * PersistentVolumeClaimList is a list of PersistentVolumeClaim items. + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimList + */ +export class KubePersistentVolumeClaimList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.PersistentVolumeClaimList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'PersistentVolumeClaimList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.PersistentVolumeClaimList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubePersistentVolumeClaimListProps): any { + return { + ...KubePersistentVolumeClaimList.GVK, + ...toJson_KubePersistentVolumeClaimListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.PersistentVolumeClaimList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubePersistentVolumeClaimListProps) { + super(scope, id, { + ...KubePersistentVolumeClaimList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubePersistentVolumeClaimList.GVK, + ...toJson_KubePersistentVolumeClaimListProps(resolved), + }; + } +} + +/** + * PersistentVolumeList is a list of PersistentVolume items. + * + * @schema io.k8s.api.core.v1.PersistentVolumeList + */ +export class KubePersistentVolumeList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.PersistentVolumeList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'PersistentVolumeList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.PersistentVolumeList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubePersistentVolumeListProps): any { + return { + ...KubePersistentVolumeList.GVK, + ...toJson_KubePersistentVolumeListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.PersistentVolumeList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubePersistentVolumeListProps) { + super(scope, id, { + ...KubePersistentVolumeList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubePersistentVolumeList.GVK, + ...toJson_KubePersistentVolumeListProps(resolved), + }; + } +} + +/** + * Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts. + * + * @schema io.k8s.api.core.v1.Pod + */ +export class KubePod extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.Pod" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'Pod', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.Pod". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubePodProps = {}): any { + return { + ...KubePod.GVK, + ...toJson_KubePodProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.Pod" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubePodProps = {}) { + super(scope, id, { + ...KubePod.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubePod.GVK, + ...toJson_KubePodProps(resolved), + }; + } +} + +/** + * PodList is a list of Pods. + * + * @schema io.k8s.api.core.v1.PodList + */ +export class KubePodList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.PodList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'PodList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.PodList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubePodListProps): any { + return { + ...KubePodList.GVK, + ...toJson_KubePodListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.PodList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubePodListProps) { + super(scope, id, { + ...KubePodList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubePodList.GVK, + ...toJson_KubePodListProps(resolved), + }; + } +} + +/** + * PodTemplate describes a template for creating copies of a predefined pod. + * + * @schema io.k8s.api.core.v1.PodTemplate + */ +export class KubePodTemplate extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.PodTemplate" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'PodTemplate', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.PodTemplate". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubePodTemplateProps = {}): any { + return { + ...KubePodTemplate.GVK, + ...toJson_KubePodTemplateProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.PodTemplate" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubePodTemplateProps = {}) { + super(scope, id, { + ...KubePodTemplate.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubePodTemplate.GVK, + ...toJson_KubePodTemplateProps(resolved), + }; + } +} + +/** + * PodTemplateList is a list of PodTemplates. + * + * @schema io.k8s.api.core.v1.PodTemplateList + */ +export class KubePodTemplateList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.PodTemplateList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'PodTemplateList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.PodTemplateList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubePodTemplateListProps): any { + return { + ...KubePodTemplateList.GVK, + ...toJson_KubePodTemplateListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.PodTemplateList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubePodTemplateListProps) { + super(scope, id, { + ...KubePodTemplateList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubePodTemplateList.GVK, + ...toJson_KubePodTemplateListProps(resolved), + }; + } +} + +/** + * ReplicationController represents the configuration of a replication controller. + * + * @schema io.k8s.api.core.v1.ReplicationController + */ +export class KubeReplicationController extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.ReplicationController" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'ReplicationController', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ReplicationController". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeReplicationControllerProps = {}): any { + return { + ...KubeReplicationController.GVK, + ...toJson_KubeReplicationControllerProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.ReplicationController" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeReplicationControllerProps = {}) { + super(scope, id, { + ...KubeReplicationController.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeReplicationController.GVK, + ...toJson_KubeReplicationControllerProps(resolved), + }; + } +} + +/** + * ReplicationControllerList is a collection of replication controllers. + * + * @schema io.k8s.api.core.v1.ReplicationControllerList + */ +export class KubeReplicationControllerList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.ReplicationControllerList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'ReplicationControllerList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ReplicationControllerList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeReplicationControllerListProps): any { + return { + ...KubeReplicationControllerList.GVK, + ...toJson_KubeReplicationControllerListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.ReplicationControllerList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeReplicationControllerListProps) { + super(scope, id, { + ...KubeReplicationControllerList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeReplicationControllerList.GVK, + ...toJson_KubeReplicationControllerListProps(resolved), + }; + } +} + +/** + * ResourceQuota sets aggregate quota restrictions enforced per namespace + * + * @schema io.k8s.api.core.v1.ResourceQuota + */ +export class KubeResourceQuota extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.ResourceQuota" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'ResourceQuota', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ResourceQuota". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeResourceQuotaProps = {}): any { + return { + ...KubeResourceQuota.GVK, + ...toJson_KubeResourceQuotaProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.ResourceQuota" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeResourceQuotaProps = {}) { + super(scope, id, { + ...KubeResourceQuota.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeResourceQuota.GVK, + ...toJson_KubeResourceQuotaProps(resolved), + }; + } +} + +/** + * ResourceQuotaList is a list of ResourceQuota items. + * + * @schema io.k8s.api.core.v1.ResourceQuotaList + */ +export class KubeResourceQuotaList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.ResourceQuotaList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'ResourceQuotaList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ResourceQuotaList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeResourceQuotaListProps): any { + return { + ...KubeResourceQuotaList.GVK, + ...toJson_KubeResourceQuotaListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.ResourceQuotaList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeResourceQuotaListProps) { + super(scope, id, { + ...KubeResourceQuotaList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeResourceQuotaList.GVK, + ...toJson_KubeResourceQuotaListProps(resolved), + }; + } +} + +/** + * Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes. + * + * @schema io.k8s.api.core.v1.Secret + */ +export class KubeSecret extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.Secret" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'Secret', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.Secret". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeSecretProps = {}): any { + return { + ...KubeSecret.GVK, + ...toJson_KubeSecretProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.Secret" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeSecretProps = {}) { + super(scope, id, { + ...KubeSecret.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeSecret.GVK, + ...toJson_KubeSecretProps(resolved), + }; + } +} + +/** + * SecretList is a list of Secret. + * + * @schema io.k8s.api.core.v1.SecretList + */ +export class KubeSecretList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.SecretList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'SecretList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.SecretList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeSecretListProps): any { + return { + ...KubeSecretList.GVK, + ...toJson_KubeSecretListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.SecretList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeSecretListProps) { + super(scope, id, { + ...KubeSecretList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeSecretList.GVK, + ...toJson_KubeSecretListProps(resolved), + }; + } +} + +/** + * Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy. + * + * @schema io.k8s.api.core.v1.Service + */ +export class KubeService extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.Service" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'Service', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.Service". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeServiceProps = {}): any { + return { + ...KubeService.GVK, + ...toJson_KubeServiceProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.Service" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeServiceProps = {}) { + super(scope, id, { + ...KubeService.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeService.GVK, + ...toJson_KubeServiceProps(resolved), + }; + } +} + +/** + * ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets + * + * @schema io.k8s.api.core.v1.ServiceAccount + */ +export class KubeServiceAccount extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.ServiceAccount" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'ServiceAccount', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ServiceAccount". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeServiceAccountProps = {}): any { + return { + ...KubeServiceAccount.GVK, + ...toJson_KubeServiceAccountProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.ServiceAccount" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeServiceAccountProps = {}) { + super(scope, id, { + ...KubeServiceAccount.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeServiceAccount.GVK, + ...toJson_KubeServiceAccountProps(resolved), + }; + } +} + +/** + * ServiceAccountList is a list of ServiceAccount objects + * + * @schema io.k8s.api.core.v1.ServiceAccountList + */ +export class KubeServiceAccountList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.ServiceAccountList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'ServiceAccountList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ServiceAccountList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeServiceAccountListProps): any { + return { + ...KubeServiceAccountList.GVK, + ...toJson_KubeServiceAccountListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.ServiceAccountList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeServiceAccountListProps) { + super(scope, id, { + ...KubeServiceAccountList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeServiceAccountList.GVK, + ...toJson_KubeServiceAccountListProps(resolved), + }; + } +} + +/** + * ServiceList holds a list of services. + * + * @schema io.k8s.api.core.v1.ServiceList + */ +export class KubeServiceList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.ServiceList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'ServiceList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ServiceList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeServiceListProps): any { + return { + ...KubeServiceList.GVK, + ...toJson_KubeServiceListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.ServiceList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeServiceListProps) { + super(scope, id, { + ...KubeServiceList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeServiceList.GVK, + ...toJson_KubeServiceListProps(resolved), + }; + } +} + +/** + * EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints. + * + * @schema io.k8s.api.discovery.v1.EndpointSlice + */ +export class KubeEndpointSlice extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.discovery.v1.EndpointSlice" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'discovery.k8s.io/v1', + kind: 'EndpointSlice', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.discovery.v1.EndpointSlice". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeEndpointSliceProps): any { + return { + ...KubeEndpointSlice.GVK, + ...toJson_KubeEndpointSliceProps(props), + }; + } + + /** + * Defines a "io.k8s.api.discovery.v1.EndpointSlice" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeEndpointSliceProps) { + super(scope, id, { + ...KubeEndpointSlice.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeEndpointSlice.GVK, + ...toJson_KubeEndpointSliceProps(resolved), + }; + } +} + +/** + * EndpointSliceList represents a list of endpoint slices + * + * @schema io.k8s.api.discovery.v1.EndpointSliceList + */ +export class KubeEndpointSliceList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.discovery.v1.EndpointSliceList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'discovery.k8s.io/v1', + kind: 'EndpointSliceList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.discovery.v1.EndpointSliceList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeEndpointSliceListProps): any { + return { + ...KubeEndpointSliceList.GVK, + ...toJson_KubeEndpointSliceListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.discovery.v1.EndpointSliceList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeEndpointSliceListProps) { + super(scope, id, { + ...KubeEndpointSliceList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeEndpointSliceList.GVK, + ...toJson_KubeEndpointSliceListProps(resolved), + }; + } +} + +/** + * FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". + * + * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchema + */ +export class KubeFlowSchemaV1Beta1 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.flowcontrol.v1beta1.FlowSchema" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'flowcontrol.apiserver.k8s.io/v1beta1', + kind: 'FlowSchema', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.flowcontrol.v1beta1.FlowSchema". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeFlowSchemaV1Beta1Props = {}): any { + return { + ...KubeFlowSchemaV1Beta1.GVK, + ...toJson_KubeFlowSchemaV1Beta1Props(props), + }; + } + + /** + * Defines a "io.k8s.api.flowcontrol.v1beta1.FlowSchema" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeFlowSchemaV1Beta1Props = {}) { + super(scope, id, { + ...KubeFlowSchemaV1Beta1.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeFlowSchemaV1Beta1.GVK, + ...toJson_KubeFlowSchemaV1Beta1Props(resolved), + }; + } +} + +/** + * FlowSchemaList is a list of FlowSchema objects. + * + * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchemaList + */ +export class KubeFlowSchemaListV1Beta1 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.flowcontrol.v1beta1.FlowSchemaList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'flowcontrol.apiserver.k8s.io/v1beta1', + kind: 'FlowSchemaList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.flowcontrol.v1beta1.FlowSchemaList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeFlowSchemaListV1Beta1Props): any { + return { + ...KubeFlowSchemaListV1Beta1.GVK, + ...toJson_KubeFlowSchemaListV1Beta1Props(props), + }; + } + + /** + * Defines a "io.k8s.api.flowcontrol.v1beta1.FlowSchemaList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeFlowSchemaListV1Beta1Props) { + super(scope, id, { + ...KubeFlowSchemaListV1Beta1.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeFlowSchemaListV1Beta1.GVK, + ...toJson_KubeFlowSchemaListV1Beta1Props(resolved), + }; + } +} + +/** + * PriorityLevelConfiguration represents the configuration of a priority level. + * + * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration + */ +export class KubePriorityLevelConfigurationV1Beta1 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'flowcontrol.apiserver.k8s.io/v1beta1', + kind: 'PriorityLevelConfiguration', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubePriorityLevelConfigurationV1Beta1Props = {}): any { + return { + ...KubePriorityLevelConfigurationV1Beta1.GVK, + ...toJson_KubePriorityLevelConfigurationV1Beta1Props(props), + }; + } + + /** + * Defines a "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubePriorityLevelConfigurationV1Beta1Props = {}) { + super(scope, id, { + ...KubePriorityLevelConfigurationV1Beta1.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubePriorityLevelConfigurationV1Beta1.GVK, + ...toJson_KubePriorityLevelConfigurationV1Beta1Props(resolved), + }; + } +} + +/** + * PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. + * + * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationList + */ +export class KubePriorityLevelConfigurationListV1Beta1 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'flowcontrol.apiserver.k8s.io/v1beta1', + kind: 'PriorityLevelConfigurationList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubePriorityLevelConfigurationListV1Beta1Props): any { + return { + ...KubePriorityLevelConfigurationListV1Beta1.GVK, + ...toJson_KubePriorityLevelConfigurationListV1Beta1Props(props), + }; + } + + /** + * Defines a "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubePriorityLevelConfigurationListV1Beta1Props) { + super(scope, id, { + ...KubePriorityLevelConfigurationListV1Beta1.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubePriorityLevelConfigurationListV1Beta1.GVK, + ...toJson_KubePriorityLevelConfigurationListV1Beta1Props(resolved), + }; + } +} + +/** + * FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". + * + * @schema io.k8s.api.flowcontrol.v1beta2.FlowSchema + */ +export class KubeFlowSchemaV1Beta2 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.flowcontrol.v1beta2.FlowSchema" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'flowcontrol.apiserver.k8s.io/v1beta2', + kind: 'FlowSchema', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.flowcontrol.v1beta2.FlowSchema". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeFlowSchemaV1Beta2Props = {}): any { + return { + ...KubeFlowSchemaV1Beta2.GVK, + ...toJson_KubeFlowSchemaV1Beta2Props(props), + }; + } + + /** + * Defines a "io.k8s.api.flowcontrol.v1beta2.FlowSchema" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeFlowSchemaV1Beta2Props = {}) { + super(scope, id, { + ...KubeFlowSchemaV1Beta2.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeFlowSchemaV1Beta2.GVK, + ...toJson_KubeFlowSchemaV1Beta2Props(resolved), + }; + } +} + +/** + * FlowSchemaList is a list of FlowSchema objects. + * + * @schema io.k8s.api.flowcontrol.v1beta2.FlowSchemaList + */ +export class KubeFlowSchemaListV1Beta2 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.flowcontrol.v1beta2.FlowSchemaList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'flowcontrol.apiserver.k8s.io/v1beta2', + kind: 'FlowSchemaList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.flowcontrol.v1beta2.FlowSchemaList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeFlowSchemaListV1Beta2Props): any { + return { + ...KubeFlowSchemaListV1Beta2.GVK, + ...toJson_KubeFlowSchemaListV1Beta2Props(props), + }; + } + + /** + * Defines a "io.k8s.api.flowcontrol.v1beta2.FlowSchemaList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeFlowSchemaListV1Beta2Props) { + super(scope, id, { + ...KubeFlowSchemaListV1Beta2.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeFlowSchemaListV1Beta2.GVK, + ...toJson_KubeFlowSchemaListV1Beta2Props(resolved), + }; + } +} + +/** + * PriorityLevelConfiguration represents the configuration of a priority level. + * + * @schema io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration + */ +export class KubePriorityLevelConfigurationV1Beta2 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'flowcontrol.apiserver.k8s.io/v1beta2', + kind: 'PriorityLevelConfiguration', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubePriorityLevelConfigurationV1Beta2Props = {}): any { + return { + ...KubePriorityLevelConfigurationV1Beta2.GVK, + ...toJson_KubePriorityLevelConfigurationV1Beta2Props(props), + }; + } + + /** + * Defines a "io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubePriorityLevelConfigurationV1Beta2Props = {}) { + super(scope, id, { + ...KubePriorityLevelConfigurationV1Beta2.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubePriorityLevelConfigurationV1Beta2.GVK, + ...toJson_KubePriorityLevelConfigurationV1Beta2Props(resolved), + }; + } +} + +/** + * PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. + * + * @schema io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationList + */ +export class KubePriorityLevelConfigurationListV1Beta2 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'flowcontrol.apiserver.k8s.io/v1beta2', + kind: 'PriorityLevelConfigurationList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubePriorityLevelConfigurationListV1Beta2Props): any { + return { + ...KubePriorityLevelConfigurationListV1Beta2.GVK, + ...toJson_KubePriorityLevelConfigurationListV1Beta2Props(props), + }; + } + + /** + * Defines a "io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubePriorityLevelConfigurationListV1Beta2Props) { + super(scope, id, { + ...KubePriorityLevelConfigurationListV1Beta2.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubePriorityLevelConfigurationListV1Beta2.GVK, + ...toJson_KubePriorityLevelConfigurationListV1Beta2Props(resolved), + }; + } +} + +/** + * Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. + * + * @schema io.k8s.api.networking.v1.Ingress + */ +export class KubeIngress extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.networking.v1.Ingress" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'networking.k8s.io/v1', + kind: 'Ingress', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.networking.v1.Ingress". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeIngressProps = {}): any { + return { + ...KubeIngress.GVK, + ...toJson_KubeIngressProps(props), + }; + } + + /** + * Defines a "io.k8s.api.networking.v1.Ingress" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeIngressProps = {}) { + super(scope, id, { + ...KubeIngress.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeIngress.GVK, + ...toJson_KubeIngressProps(resolved), + }; + } +} + +/** + * IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class. + * + * @schema io.k8s.api.networking.v1.IngressClass + */ +export class KubeIngressClass extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.networking.v1.IngressClass" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'networking.k8s.io/v1', + kind: 'IngressClass', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.networking.v1.IngressClass". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeIngressClassProps = {}): any { + return { + ...KubeIngressClass.GVK, + ...toJson_KubeIngressClassProps(props), + }; + } + + /** + * Defines a "io.k8s.api.networking.v1.IngressClass" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeIngressClassProps = {}) { + super(scope, id, { + ...KubeIngressClass.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeIngressClass.GVK, + ...toJson_KubeIngressClassProps(resolved), + }; + } +} + +/** + * IngressClassList is a collection of IngressClasses. + * + * @schema io.k8s.api.networking.v1.IngressClassList + */ +export class KubeIngressClassList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.networking.v1.IngressClassList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'networking.k8s.io/v1', + kind: 'IngressClassList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.networking.v1.IngressClassList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeIngressClassListProps): any { + return { + ...KubeIngressClassList.GVK, + ...toJson_KubeIngressClassListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.networking.v1.IngressClassList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeIngressClassListProps) { + super(scope, id, { + ...KubeIngressClassList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeIngressClassList.GVK, + ...toJson_KubeIngressClassListProps(resolved), + }; + } +} + +/** + * IngressList is a collection of Ingress. + * + * @schema io.k8s.api.networking.v1.IngressList + */ +export class KubeIngressList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.networking.v1.IngressList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'networking.k8s.io/v1', + kind: 'IngressList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.networking.v1.IngressList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeIngressListProps): any { + return { + ...KubeIngressList.GVK, + ...toJson_KubeIngressListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.networking.v1.IngressList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeIngressListProps) { + super(scope, id, { + ...KubeIngressList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeIngressList.GVK, + ...toJson_KubeIngressListProps(resolved), + }; + } +} + +/** + * NetworkPolicy describes what network traffic is allowed for a set of Pods + * + * @schema io.k8s.api.networking.v1.NetworkPolicy + */ +export class KubeNetworkPolicy extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.networking.v1.NetworkPolicy" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'networking.k8s.io/v1', + kind: 'NetworkPolicy', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.networking.v1.NetworkPolicy". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeNetworkPolicyProps = {}): any { + return { + ...KubeNetworkPolicy.GVK, + ...toJson_KubeNetworkPolicyProps(props), + }; + } + + /** + * Defines a "io.k8s.api.networking.v1.NetworkPolicy" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeNetworkPolicyProps = {}) { + super(scope, id, { + ...KubeNetworkPolicy.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeNetworkPolicy.GVK, + ...toJson_KubeNetworkPolicyProps(resolved), + }; + } +} + +/** + * NetworkPolicyList is a list of NetworkPolicy objects. + * + * @schema io.k8s.api.networking.v1.NetworkPolicyList + */ +export class KubeNetworkPolicyList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.networking.v1.NetworkPolicyList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'networking.k8s.io/v1', + kind: 'NetworkPolicyList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.networking.v1.NetworkPolicyList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeNetworkPolicyListProps): any { + return { + ...KubeNetworkPolicyList.GVK, + ...toJson_KubeNetworkPolicyListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.networking.v1.NetworkPolicyList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeNetworkPolicyListProps) { + super(scope, id, { + ...KubeNetworkPolicyList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeNetworkPolicyList.GVK, + ...toJson_KubeNetworkPolicyListProps(resolved), + }; + } +} + +/** + * ClusterCIDR represents a single configuration for per-Node Pod CIDR allocations when the MultiCIDRRangeAllocator is enabled (see the config for kube-controller-manager). A cluster may have any number of ClusterCIDR resources, all of which will be considered when allocating a CIDR for a Node. A ClusterCIDR is eligible to be used for a given Node when the node selector matches the node in question and has free CIDRs to allocate. In case of multiple matching ClusterCIDR resources, the allocator will attempt to break ties using internal heuristics, but any ClusterCIDR whose node selector matches the Node may be used. + * + * @schema io.k8s.api.networking.v1alpha1.ClusterCIDR + */ +export class KubeClusterCidrv1Alpha1 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.networking.v1alpha1.ClusterCIDR" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'networking.k8s.io/v1alpha1', + kind: 'ClusterCIDR', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.networking.v1alpha1.ClusterCIDR". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeClusterCidrv1Alpha1Props = {}): any { + return { + ...KubeClusterCidrv1Alpha1.GVK, + ...toJson_KubeClusterCidrv1Alpha1Props(props), + }; + } + + /** + * Defines a "io.k8s.api.networking.v1alpha1.ClusterCIDR" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeClusterCidrv1Alpha1Props = {}) { + super(scope, id, { + ...KubeClusterCidrv1Alpha1.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeClusterCidrv1Alpha1.GVK, + ...toJson_KubeClusterCidrv1Alpha1Props(resolved), + }; + } +} + +/** + * ClusterCIDRList contains a list of ClusterCIDR. + * + * @schema io.k8s.api.networking.v1alpha1.ClusterCIDRList + */ +export class KubeClusterCidrListV1Alpha1 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.networking.v1alpha1.ClusterCIDRList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'networking.k8s.io/v1alpha1', + kind: 'ClusterCIDRList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.networking.v1alpha1.ClusterCIDRList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeClusterCidrListV1Alpha1Props): any { + return { + ...KubeClusterCidrListV1Alpha1.GVK, + ...toJson_KubeClusterCidrListV1Alpha1Props(props), + }; + } + + /** + * Defines a "io.k8s.api.networking.v1alpha1.ClusterCIDRList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeClusterCidrListV1Alpha1Props) { + super(scope, id, { + ...KubeClusterCidrListV1Alpha1.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeClusterCidrListV1Alpha1.GVK, + ...toJson_KubeClusterCidrListV1Alpha1Props(resolved), + }; + } +} + +/** + * RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/ + * + * @schema io.k8s.api.node.v1.RuntimeClass + */ +export class KubeRuntimeClass extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.node.v1.RuntimeClass" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'node.k8s.io/v1', + kind: 'RuntimeClass', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.node.v1.RuntimeClass". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeRuntimeClassProps): any { + return { + ...KubeRuntimeClass.GVK, + ...toJson_KubeRuntimeClassProps(props), + }; + } + + /** + * Defines a "io.k8s.api.node.v1.RuntimeClass" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeRuntimeClassProps) { + super(scope, id, { + ...KubeRuntimeClass.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeRuntimeClass.GVK, + ...toJson_KubeRuntimeClassProps(resolved), + }; + } +} + +/** + * RuntimeClassList is a list of RuntimeClass objects. + * + * @schema io.k8s.api.node.v1.RuntimeClassList + */ +export class KubeRuntimeClassList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.node.v1.RuntimeClassList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'node.k8s.io/v1', + kind: 'RuntimeClassList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.node.v1.RuntimeClassList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeRuntimeClassListProps): any { + return { + ...KubeRuntimeClassList.GVK, + ...toJson_KubeRuntimeClassListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.node.v1.RuntimeClassList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeRuntimeClassListProps) { + super(scope, id, { + ...KubeRuntimeClassList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeRuntimeClassList.GVK, + ...toJson_KubeRuntimeClassListProps(resolved), + }; + } +} + +/** + * Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods//evictions. + * + * @schema io.k8s.api.policy.v1.Eviction + */ +export class KubeEviction extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.policy.v1.Eviction" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'policy/v1', + kind: 'Eviction', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.policy.v1.Eviction". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeEvictionProps = {}): any { + return { + ...KubeEviction.GVK, + ...toJson_KubeEvictionProps(props), + }; + } + + /** + * Defines a "io.k8s.api.policy.v1.Eviction" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeEvictionProps = {}) { + super(scope, id, { + ...KubeEviction.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeEviction.GVK, + ...toJson_KubeEvictionProps(resolved), + }; + } +} + +/** + * PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods + * + * @schema io.k8s.api.policy.v1.PodDisruptionBudget + */ +export class KubePodDisruptionBudget extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.policy.v1.PodDisruptionBudget" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'policy/v1', + kind: 'PodDisruptionBudget', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.policy.v1.PodDisruptionBudget". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubePodDisruptionBudgetProps = {}): any { + return { + ...KubePodDisruptionBudget.GVK, + ...toJson_KubePodDisruptionBudgetProps(props), + }; + } + + /** + * Defines a "io.k8s.api.policy.v1.PodDisruptionBudget" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubePodDisruptionBudgetProps = {}) { + super(scope, id, { + ...KubePodDisruptionBudget.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubePodDisruptionBudget.GVK, + ...toJson_KubePodDisruptionBudgetProps(resolved), + }; + } +} + +/** + * PodDisruptionBudgetList is a collection of PodDisruptionBudgets. + * + * @schema io.k8s.api.policy.v1.PodDisruptionBudgetList + */ +export class KubePodDisruptionBudgetList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.policy.v1.PodDisruptionBudgetList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'policy/v1', + kind: 'PodDisruptionBudgetList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.policy.v1.PodDisruptionBudgetList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubePodDisruptionBudgetListProps): any { + return { + ...KubePodDisruptionBudgetList.GVK, + ...toJson_KubePodDisruptionBudgetListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.policy.v1.PodDisruptionBudgetList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubePodDisruptionBudgetListProps) { + super(scope, id, { + ...KubePodDisruptionBudgetList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubePodDisruptionBudgetList.GVK, + ...toJson_KubePodDisruptionBudgetListProps(resolved), + }; + } +} + +/** + * ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. + * + * @schema io.k8s.api.rbac.v1.ClusterRole + */ +export class KubeClusterRole extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.rbac.v1.ClusterRole" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'rbac.authorization.k8s.io/v1', + kind: 'ClusterRole', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1.ClusterRole". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeClusterRoleProps = {}): any { + return { + ...KubeClusterRole.GVK, + ...toJson_KubeClusterRoleProps(props), + }; + } + + /** + * Defines a "io.k8s.api.rbac.v1.ClusterRole" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeClusterRoleProps = {}) { + super(scope, id, { + ...KubeClusterRole.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeClusterRole.GVK, + ...toJson_KubeClusterRoleProps(resolved), + }; + } +} + +/** + * ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. + * + * @schema io.k8s.api.rbac.v1.ClusterRoleBinding + */ +export class KubeClusterRoleBinding extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.rbac.v1.ClusterRoleBinding" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'rbac.authorization.k8s.io/v1', + kind: 'ClusterRoleBinding', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1.ClusterRoleBinding". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeClusterRoleBindingProps): any { + return { + ...KubeClusterRoleBinding.GVK, + ...toJson_KubeClusterRoleBindingProps(props), + }; + } + + /** + * Defines a "io.k8s.api.rbac.v1.ClusterRoleBinding" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeClusterRoleBindingProps) { + super(scope, id, { + ...KubeClusterRoleBinding.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeClusterRoleBinding.GVK, + ...toJson_KubeClusterRoleBindingProps(resolved), + }; + } +} + +/** + * ClusterRoleBindingList is a collection of ClusterRoleBindings + * + * @schema io.k8s.api.rbac.v1.ClusterRoleBindingList + */ +export class KubeClusterRoleBindingList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.rbac.v1.ClusterRoleBindingList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'rbac.authorization.k8s.io/v1', + kind: 'ClusterRoleBindingList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1.ClusterRoleBindingList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeClusterRoleBindingListProps): any { + return { + ...KubeClusterRoleBindingList.GVK, + ...toJson_KubeClusterRoleBindingListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.rbac.v1.ClusterRoleBindingList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeClusterRoleBindingListProps) { + super(scope, id, { + ...KubeClusterRoleBindingList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeClusterRoleBindingList.GVK, + ...toJson_KubeClusterRoleBindingListProps(resolved), + }; + } +} + +/** + * ClusterRoleList is a collection of ClusterRoles + * + * @schema io.k8s.api.rbac.v1.ClusterRoleList + */ +export class KubeClusterRoleList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.rbac.v1.ClusterRoleList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'rbac.authorization.k8s.io/v1', + kind: 'ClusterRoleList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1.ClusterRoleList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeClusterRoleListProps): any { + return { + ...KubeClusterRoleList.GVK, + ...toJson_KubeClusterRoleListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.rbac.v1.ClusterRoleList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeClusterRoleListProps) { + super(scope, id, { + ...KubeClusterRoleList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeClusterRoleList.GVK, + ...toJson_KubeClusterRoleListProps(resolved), + }; + } +} + +/** + * Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. + * + * @schema io.k8s.api.rbac.v1.Role + */ +export class KubeRole extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.rbac.v1.Role" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'rbac.authorization.k8s.io/v1', + kind: 'Role', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1.Role". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeRoleProps = {}): any { + return { + ...KubeRole.GVK, + ...toJson_KubeRoleProps(props), + }; + } + + /** + * Defines a "io.k8s.api.rbac.v1.Role" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeRoleProps = {}) { + super(scope, id, { + ...KubeRole.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeRole.GVK, + ...toJson_KubeRoleProps(resolved), + }; + } +} + +/** + * RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. + * + * @schema io.k8s.api.rbac.v1.RoleBinding + */ +export class KubeRoleBinding extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.rbac.v1.RoleBinding" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'rbac.authorization.k8s.io/v1', + kind: 'RoleBinding', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1.RoleBinding". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeRoleBindingProps): any { + return { + ...KubeRoleBinding.GVK, + ...toJson_KubeRoleBindingProps(props), + }; + } + + /** + * Defines a "io.k8s.api.rbac.v1.RoleBinding" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeRoleBindingProps) { + super(scope, id, { + ...KubeRoleBinding.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeRoleBinding.GVK, + ...toJson_KubeRoleBindingProps(resolved), + }; + } +} + +/** + * RoleBindingList is a collection of RoleBindings + * + * @schema io.k8s.api.rbac.v1.RoleBindingList + */ +export class KubeRoleBindingList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.rbac.v1.RoleBindingList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'rbac.authorization.k8s.io/v1', + kind: 'RoleBindingList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1.RoleBindingList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeRoleBindingListProps): any { + return { + ...KubeRoleBindingList.GVK, + ...toJson_KubeRoleBindingListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.rbac.v1.RoleBindingList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeRoleBindingListProps) { + super(scope, id, { + ...KubeRoleBindingList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeRoleBindingList.GVK, + ...toJson_KubeRoleBindingListProps(resolved), + }; + } +} + +/** + * RoleList is a collection of Roles + * + * @schema io.k8s.api.rbac.v1.RoleList + */ +export class KubeRoleList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.rbac.v1.RoleList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'rbac.authorization.k8s.io/v1', + kind: 'RoleList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1.RoleList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeRoleListProps): any { + return { + ...KubeRoleList.GVK, + ...toJson_KubeRoleListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.rbac.v1.RoleList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeRoleListProps) { + super(scope, id, { + ...KubeRoleList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeRoleList.GVK, + ...toJson_KubeRoleListProps(resolved), + }; + } +} + +/** + * PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. + * + * @schema io.k8s.api.scheduling.v1.PriorityClass + */ +export class KubePriorityClass extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.scheduling.v1.PriorityClass" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'scheduling.k8s.io/v1', + kind: 'PriorityClass', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.scheduling.v1.PriorityClass". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubePriorityClassProps): any { + return { + ...KubePriorityClass.GVK, + ...toJson_KubePriorityClassProps(props), + }; + } + + /** + * Defines a "io.k8s.api.scheduling.v1.PriorityClass" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubePriorityClassProps) { + super(scope, id, { + ...KubePriorityClass.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubePriorityClass.GVK, + ...toJson_KubePriorityClassProps(resolved), + }; + } +} + +/** + * PriorityClassList is a collection of priority classes. + * + * @schema io.k8s.api.scheduling.v1.PriorityClassList + */ +export class KubePriorityClassList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.scheduling.v1.PriorityClassList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'scheduling.k8s.io/v1', + kind: 'PriorityClassList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.scheduling.v1.PriorityClassList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubePriorityClassListProps): any { + return { + ...KubePriorityClassList.GVK, + ...toJson_KubePriorityClassListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.scheduling.v1.PriorityClassList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubePriorityClassListProps) { + super(scope, id, { + ...KubePriorityClassList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubePriorityClassList.GVK, + ...toJson_KubePriorityClassListProps(resolved), + }; + } +} + +/** + * CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced. + * + * @schema io.k8s.api.storage.v1.CSIDriver + */ +export class KubeCsiDriver extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.storage.v1.CSIDriver" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'storage.k8s.io/v1', + kind: 'CSIDriver', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.CSIDriver". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeCsiDriverProps): any { + return { + ...KubeCsiDriver.GVK, + ...toJson_KubeCsiDriverProps(props), + }; + } + + /** + * Defines a "io.k8s.api.storage.v1.CSIDriver" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeCsiDriverProps) { + super(scope, id, { + ...KubeCsiDriver.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeCsiDriver.GVK, + ...toJson_KubeCsiDriverProps(resolved), + }; + } +} + +/** + * CSIDriverList is a collection of CSIDriver objects. + * + * @schema io.k8s.api.storage.v1.CSIDriverList + */ +export class KubeCsiDriverList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.storage.v1.CSIDriverList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'storage.k8s.io/v1', + kind: 'CSIDriverList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.CSIDriverList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeCsiDriverListProps): any { + return { + ...KubeCsiDriverList.GVK, + ...toJson_KubeCsiDriverListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.storage.v1.CSIDriverList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeCsiDriverListProps) { + super(scope, id, { + ...KubeCsiDriverList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeCsiDriverList.GVK, + ...toJson_KubeCsiDriverListProps(resolved), + }; + } +} + +/** + * CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object. + * + * @schema io.k8s.api.storage.v1.CSINode + */ +export class KubeCsiNode extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.storage.v1.CSINode" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'storage.k8s.io/v1', + kind: 'CSINode', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.CSINode". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeCsiNodeProps): any { + return { + ...KubeCsiNode.GVK, + ...toJson_KubeCsiNodeProps(props), + }; + } + + /** + * Defines a "io.k8s.api.storage.v1.CSINode" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeCsiNodeProps) { + super(scope, id, { + ...KubeCsiNode.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeCsiNode.GVK, + ...toJson_KubeCsiNodeProps(resolved), + }; + } +} + +/** + * CSINodeList is a collection of CSINode objects. + * + * @schema io.k8s.api.storage.v1.CSINodeList + */ +export class KubeCsiNodeList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.storage.v1.CSINodeList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'storage.k8s.io/v1', + kind: 'CSINodeList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.CSINodeList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeCsiNodeListProps): any { + return { + ...KubeCsiNodeList.GVK, + ...toJson_KubeCsiNodeListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.storage.v1.CSINodeList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeCsiNodeListProps) { + super(scope, id, { + ...KubeCsiNodeList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeCsiNodeList.GVK, + ...toJson_KubeCsiNodeListProps(resolved), + }; + } +} + +/** + * CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes. + +For example this can express things like: - StorageClass "standard" has "1234 GiB" available in "topology.kubernetes.io/zone=us-east1" - StorageClass "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123" + +The following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero + +The producer of these objects can decide which approach is more suitable. + +They are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node. + * + * @schema io.k8s.api.storage.v1.CSIStorageCapacity + */ +export class KubeCsiStorageCapacity extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.storage.v1.CSIStorageCapacity" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'storage.k8s.io/v1', + kind: 'CSIStorageCapacity', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.CSIStorageCapacity". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeCsiStorageCapacityProps): any { + return { + ...KubeCsiStorageCapacity.GVK, + ...toJson_KubeCsiStorageCapacityProps(props), + }; + } + + /** + * Defines a "io.k8s.api.storage.v1.CSIStorageCapacity" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeCsiStorageCapacityProps) { + super(scope, id, { + ...KubeCsiStorageCapacity.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeCsiStorageCapacity.GVK, + ...toJson_KubeCsiStorageCapacityProps(resolved), + }; + } +} + +/** + * CSIStorageCapacityList is a collection of CSIStorageCapacity objects. + * + * @schema io.k8s.api.storage.v1.CSIStorageCapacityList + */ +export class KubeCsiStorageCapacityList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.storage.v1.CSIStorageCapacityList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'storage.k8s.io/v1', + kind: 'CSIStorageCapacityList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.CSIStorageCapacityList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeCsiStorageCapacityListProps): any { + return { + ...KubeCsiStorageCapacityList.GVK, + ...toJson_KubeCsiStorageCapacityListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.storage.v1.CSIStorageCapacityList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeCsiStorageCapacityListProps) { + super(scope, id, { + ...KubeCsiStorageCapacityList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeCsiStorageCapacityList.GVK, + ...toJson_KubeCsiStorageCapacityListProps(resolved), + }; + } +} + +/** + * StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. + +StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name. + * + * @schema io.k8s.api.storage.v1.StorageClass + */ +export class KubeStorageClass extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.storage.v1.StorageClass" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'storage.k8s.io/v1', + kind: 'StorageClass', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.StorageClass". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeStorageClassProps): any { + return { + ...KubeStorageClass.GVK, + ...toJson_KubeStorageClassProps(props), + }; + } + + /** + * Defines a "io.k8s.api.storage.v1.StorageClass" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeStorageClassProps) { + super(scope, id, { + ...KubeStorageClass.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeStorageClass.GVK, + ...toJson_KubeStorageClassProps(resolved), + }; + } +} + +/** + * StorageClassList is a collection of storage classes. + * + * @schema io.k8s.api.storage.v1.StorageClassList + */ +export class KubeStorageClassList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.storage.v1.StorageClassList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'storage.k8s.io/v1', + kind: 'StorageClassList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.StorageClassList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeStorageClassListProps): any { + return { + ...KubeStorageClassList.GVK, + ...toJson_KubeStorageClassListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.storage.v1.StorageClassList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeStorageClassListProps) { + super(scope, id, { + ...KubeStorageClassList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeStorageClassList.GVK, + ...toJson_KubeStorageClassListProps(resolved), + }; + } +} + +/** + * VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. + +VolumeAttachment objects are non-namespaced. + * + * @schema io.k8s.api.storage.v1.VolumeAttachment + */ +export class KubeVolumeAttachment extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.storage.v1.VolumeAttachment" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'storage.k8s.io/v1', + kind: 'VolumeAttachment', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.VolumeAttachment". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeVolumeAttachmentProps): any { + return { + ...KubeVolumeAttachment.GVK, + ...toJson_KubeVolumeAttachmentProps(props), + }; + } + + /** + * Defines a "io.k8s.api.storage.v1.VolumeAttachment" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeVolumeAttachmentProps) { + super(scope, id, { + ...KubeVolumeAttachment.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeVolumeAttachment.GVK, + ...toJson_KubeVolumeAttachmentProps(resolved), + }; + } +} + +/** + * VolumeAttachmentList is a collection of VolumeAttachment objects. + * + * @schema io.k8s.api.storage.v1.VolumeAttachmentList + */ +export class KubeVolumeAttachmentList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.storage.v1.VolumeAttachmentList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'storage.k8s.io/v1', + kind: 'VolumeAttachmentList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.VolumeAttachmentList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeVolumeAttachmentListProps): any { + return { + ...KubeVolumeAttachmentList.GVK, + ...toJson_KubeVolumeAttachmentListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.storage.v1.VolumeAttachmentList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeVolumeAttachmentListProps) { + super(scope, id, { + ...KubeVolumeAttachmentList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeVolumeAttachmentList.GVK, + ...toJson_KubeVolumeAttachmentListProps(resolved), + }; + } +} + +/** + * CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes. + +For example this can express things like: - StorageClass "standard" has "1234 GiB" available in "topology.kubernetes.io/zone=us-east1" - StorageClass "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123" + +The following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero + +The producer of these objects can decide which approach is more suitable. + +They are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node. + * + * @schema io.k8s.api.storage.v1beta1.CSIStorageCapacity + */ +export class KubeCsiStorageCapacityV1Beta1 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.storage.v1beta1.CSIStorageCapacity" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'storage.k8s.io/v1beta1', + kind: 'CSIStorageCapacity', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.storage.v1beta1.CSIStorageCapacity". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeCsiStorageCapacityV1Beta1Props): any { + return { + ...KubeCsiStorageCapacityV1Beta1.GVK, + ...toJson_KubeCsiStorageCapacityV1Beta1Props(props), + }; + } + + /** + * Defines a "io.k8s.api.storage.v1beta1.CSIStorageCapacity" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeCsiStorageCapacityV1Beta1Props) { + super(scope, id, { + ...KubeCsiStorageCapacityV1Beta1.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeCsiStorageCapacityV1Beta1.GVK, + ...toJson_KubeCsiStorageCapacityV1Beta1Props(resolved), + }; + } +} + +/** + * CSIStorageCapacityList is a collection of CSIStorageCapacity objects. + * + * @schema io.k8s.api.storage.v1beta1.CSIStorageCapacityList + */ +export class KubeCsiStorageCapacityListV1Beta1 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.storage.v1beta1.CSIStorageCapacityList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'storage.k8s.io/v1beta1', + kind: 'CSIStorageCapacityList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.storage.v1beta1.CSIStorageCapacityList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeCsiStorageCapacityListV1Beta1Props): any { + return { + ...KubeCsiStorageCapacityListV1Beta1.GVK, + ...toJson_KubeCsiStorageCapacityListV1Beta1Props(props), + }; + } + + /** + * Defines a "io.k8s.api.storage.v1beta1.CSIStorageCapacityList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeCsiStorageCapacityListV1Beta1Props) { + super(scope, id, { + ...KubeCsiStorageCapacityListV1Beta1.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeCsiStorageCapacityListV1Beta1.GVK, + ...toJson_KubeCsiStorageCapacityListV1Beta1Props(resolved), + }; + } +} + +/** + * CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition + */ +export class KubeCustomResourceDefinition extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'apiextensions.k8s.io/v1', + kind: 'CustomResourceDefinition', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeCustomResourceDefinitionProps): any { + return { + ...KubeCustomResourceDefinition.GVK, + ...toJson_KubeCustomResourceDefinitionProps(props), + }; + } + + /** + * Defines a "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeCustomResourceDefinitionProps) { + super(scope, id, { + ...KubeCustomResourceDefinition.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeCustomResourceDefinition.GVK, + ...toJson_KubeCustomResourceDefinitionProps(resolved), + }; + } +} + +/** + * CustomResourceDefinitionList is a list of CustomResourceDefinition objects. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList + */ +export class KubeCustomResourceDefinitionList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'apiextensions.k8s.io/v1', + kind: 'CustomResourceDefinitionList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeCustomResourceDefinitionListProps): any { + return { + ...KubeCustomResourceDefinitionList.GVK, + ...toJson_KubeCustomResourceDefinitionListProps(props), + }; + } + + /** + * Defines a "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeCustomResourceDefinitionListProps) { + super(scope, id, { + ...KubeCustomResourceDefinitionList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeCustomResourceDefinitionList.GVK, + ...toJson_KubeCustomResourceDefinitionListProps(resolved), + }; + } +} + +/** + * Status is a return value for calls that don't return other objects. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Status + */ +export class KubeStatus extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.apimachinery.pkg.apis.meta.v1.Status" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'Status', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.apimachinery.pkg.apis.meta.v1.Status". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeStatusProps = {}): any { + return { + ...KubeStatus.GVK, + ...toJson_KubeStatusProps(props), + }; + } + + /** + * Defines a "io.k8s.apimachinery.pkg.apis.meta.v1.Status" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeStatusProps = {}) { + super(scope, id, { + ...KubeStatus.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeStatus.GVK, + ...toJson_KubeStatusProps(resolved), + }; + } +} + +/** + * APIService represents a server for a particular GroupVersion. Name must be "version.group". + * + * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService + */ +export class KubeApiService extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'apiregistration.k8s.io/v1', + kind: 'APIService', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeApiServiceProps = {}): any { + return { + ...KubeApiService.GVK, + ...toJson_KubeApiServiceProps(props), + }; + } + + /** + * Defines a "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeApiServiceProps = {}) { + super(scope, id, { + ...KubeApiService.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeApiService.GVK, + ...toJson_KubeApiServiceProps(resolved), + }; + } +} + +/** + * APIServiceList is a list of APIService objects. + * + * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList + */ +export class KubeApiServiceList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'apiregistration.k8s.io/v1', + kind: 'APIServiceList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeApiServiceListProps): any { + return { + ...KubeApiServiceList.GVK, + ...toJson_KubeApiServiceListProps(props), + }; + } + + /** + * Defines a "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeApiServiceListProps) { + super(scope, id, { + ...KubeApiServiceList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeApiServiceList.GVK, + ...toJson_KubeApiServiceListProps(resolved), + }; + } +} + +/** + * MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. + * + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration + */ +export interface KubeMutatingWebhookConfigurationProps { + /** + * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + * + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Webhooks is a list of webhooks and the affected resources and operations. + * + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration#webhooks + */ + readonly webhooks?: MutatingWebhook[]; + +} + +/** + * Converts an object of type 'KubeMutatingWebhookConfigurationProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeMutatingWebhookConfigurationProps(obj: KubeMutatingWebhookConfigurationProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'webhooks': obj.webhooks?.map(y => toJson_MutatingWebhook(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. + * + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList + */ +export interface KubeMutatingWebhookConfigurationListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList#metadata + */ + readonly metadata?: ListMeta; + + /** + * List of MutatingWebhookConfiguration. + * + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList#items + */ + readonly items: KubeMutatingWebhookConfigurationProps[]; + +} + +/** + * Converts an object of type 'KubeMutatingWebhookConfigurationListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeMutatingWebhookConfigurationListProps(obj: KubeMutatingWebhookConfigurationListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeMutatingWebhookConfigurationProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. + * + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration + */ +export interface KubeValidatingWebhookConfigurationProps { + /** + * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + * + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Webhooks is a list of webhooks and the affected resources and operations. + * + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration#webhooks + */ + readonly webhooks?: ValidatingWebhook[]; + +} + +/** + * Converts an object of type 'KubeValidatingWebhookConfigurationProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeValidatingWebhookConfigurationProps(obj: KubeValidatingWebhookConfigurationProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'webhooks': obj.webhooks?.map(y => toJson_ValidatingWebhook(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. + * + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList + */ +export interface KubeValidatingWebhookConfigurationListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList#metadata + */ + readonly metadata?: ListMeta; + + /** + * List of ValidatingWebhookConfiguration. + * + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList#items + */ + readonly items: KubeValidatingWebhookConfigurationProps[]; + +} + +/** + * Converts an object of type 'KubeValidatingWebhookConfigurationListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeValidatingWebhookConfigurationListProps(obj: KubeValidatingWebhookConfigurationListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeValidatingWebhookConfigurationProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Storage version of a specific resource. + * + * @schema io.k8s.api.apiserverinternal.v1alpha1.StorageVersion + */ +export interface KubeStorageVersionV1Alpha1Props { + /** + * The name is .. + * + * @schema io.k8s.api.apiserverinternal.v1alpha1.StorageVersion#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec is an empty spec. It is here to comply with Kubernetes API style. + * + * @schema io.k8s.api.apiserverinternal.v1alpha1.StorageVersion#spec + */ + readonly spec: any; + +} + +/** + * Converts an object of type 'KubeStorageVersionV1Alpha1Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeStorageVersionV1Alpha1Props(obj: KubeStorageVersionV1Alpha1Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': obj.spec, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * A list of StorageVersions. + * + * @schema io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList + */ +export interface KubeStorageVersionListV1Alpha1Props { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items holds a list of StorageVersion + * + * @schema io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList#items + */ + readonly items: KubeStorageVersionV1Alpha1Props[]; + +} + +/** + * Converts an object of type 'KubeStorageVersionListV1Alpha1Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeStorageVersionListV1Alpha1Props(obj: KubeStorageVersionListV1Alpha1Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeStorageVersionV1Alpha1Props(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. + * + * @schema io.k8s.api.apps.v1.ControllerRevision + */ +export interface KubeControllerRevisionProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.apps.v1.ControllerRevision#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Data is the serialized representation of the state. + * + * @schema io.k8s.api.apps.v1.ControllerRevision#data + */ + readonly data?: any; + + /** + * Revision indicates the revision of the state represented by Data. + * + * @schema io.k8s.api.apps.v1.ControllerRevision#revision + */ + readonly revision: number; + +} + +/** + * Converts an object of type 'KubeControllerRevisionProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeControllerRevisionProps(obj: KubeControllerRevisionProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'data': obj.data, + 'revision': obj.revision, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ControllerRevisionList is a resource containing a list of ControllerRevision objects. + * + * @schema io.k8s.api.apps.v1.ControllerRevisionList + */ +export interface KubeControllerRevisionListProps { + /** + * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.apps.v1.ControllerRevisionList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is the list of ControllerRevisions + * + * @schema io.k8s.api.apps.v1.ControllerRevisionList#items + */ + readonly items: KubeControllerRevisionProps[]; + +} + +/** + * Converts an object of type 'KubeControllerRevisionListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeControllerRevisionListProps(obj: KubeControllerRevisionListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeControllerRevisionProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * DaemonSet represents the configuration of a daemon set. + * + * @schema io.k8s.api.apps.v1.DaemonSet + */ +export interface KubeDaemonSetProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.apps.v1.DaemonSet#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.apps.v1.DaemonSet#spec + */ + readonly spec?: DaemonSetSpec; + +} + +/** + * Converts an object of type 'KubeDaemonSetProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeDaemonSetProps(obj: KubeDaemonSetProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_DaemonSetSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * DaemonSetList is a collection of daemon sets. + * + * @schema io.k8s.api.apps.v1.DaemonSetList + */ +export interface KubeDaemonSetListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.apps.v1.DaemonSetList#metadata + */ + readonly metadata?: ListMeta; + + /** + * A list of daemon sets. + * + * @schema io.k8s.api.apps.v1.DaemonSetList#items + */ + readonly items: KubeDaemonSetProps[]; + +} + +/** + * Converts an object of type 'KubeDaemonSetListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeDaemonSetListProps(obj: KubeDaemonSetListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeDaemonSetProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Deployment enables declarative updates for Pods and ReplicaSets. + * + * @schema io.k8s.api.apps.v1.Deployment + */ +export interface KubeDeploymentProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.apps.v1.Deployment#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Specification of the desired behavior of the Deployment. + * + * @schema io.k8s.api.apps.v1.Deployment#spec + */ + readonly spec?: DeploymentSpec; + +} + +/** + * Converts an object of type 'KubeDeploymentProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeDeploymentProps(obj: KubeDeploymentProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_DeploymentSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * DeploymentList is a list of Deployments. + * + * @schema io.k8s.api.apps.v1.DeploymentList + */ +export interface KubeDeploymentListProps { + /** + * Standard list metadata. + * + * @schema io.k8s.api.apps.v1.DeploymentList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is the list of Deployments. + * + * @schema io.k8s.api.apps.v1.DeploymentList#items + */ + readonly items: KubeDeploymentProps[]; + +} + +/** + * Converts an object of type 'KubeDeploymentListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeDeploymentListProps(obj: KubeDeploymentListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeDeploymentProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ReplicaSet ensures that a specified number of pod replicas are running at any given time. + * + * @schema io.k8s.api.apps.v1.ReplicaSet + */ +export interface KubeReplicaSetProps { + /** + * If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.apps.v1.ReplicaSet#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.apps.v1.ReplicaSet#spec + */ + readonly spec?: ReplicaSetSpec; + +} + +/** + * Converts an object of type 'KubeReplicaSetProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeReplicaSetProps(obj: KubeReplicaSetProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_ReplicaSetSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ReplicaSetList is a collection of ReplicaSets. + * + * @schema io.k8s.api.apps.v1.ReplicaSetList + */ +export interface KubeReplicaSetListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.apps.v1.ReplicaSetList#metadata + */ + readonly metadata?: ListMeta; + + /** + * List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + * + * @schema io.k8s.api.apps.v1.ReplicaSetList#items + */ + readonly items: KubeReplicaSetProps[]; + +} + +/** + * Converts an object of type 'KubeReplicaSetListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeReplicaSetListProps(obj: KubeReplicaSetListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeReplicaSetProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * StatefulSet represents a set of pods with consistent identities. Identities are defined as: + * - Network: A single stable DNS and hostname. + * - Storage: As many VolumeClaims as requested. + * + * The StatefulSet guarantees that a given network identity will always map to the same storage identity. + * + * @schema io.k8s.api.apps.v1.StatefulSet + */ +export interface KubeStatefulSetProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.apps.v1.StatefulSet#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec defines the desired identities of pods in this set. + * + * @schema io.k8s.api.apps.v1.StatefulSet#spec + */ + readonly spec?: StatefulSetSpec; + +} + +/** + * Converts an object of type 'KubeStatefulSetProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeStatefulSetProps(obj: KubeStatefulSetProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_StatefulSetSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * StatefulSetList is a collection of StatefulSets. + * + * @schema io.k8s.api.apps.v1.StatefulSetList + */ +export interface KubeStatefulSetListProps { + /** + * Standard list's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.apps.v1.StatefulSetList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is the list of stateful sets. + * + * @schema io.k8s.api.apps.v1.StatefulSetList#items + */ + readonly items: KubeStatefulSetProps[]; + +} + +/** + * Converts an object of type 'KubeStatefulSetListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeStatefulSetListProps(obj: KubeStatefulSetListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeStatefulSetProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * TokenRequest requests a token for a given service account. + * + * @schema io.k8s.api.authentication.v1.TokenRequest + */ +export interface KubeTokenRequestProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.authentication.v1.TokenRequest#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec holds information about the request being evaluated + * + * @schema io.k8s.api.authentication.v1.TokenRequest#spec + */ + readonly spec: TokenRequestSpec; + +} + +/** + * Converts an object of type 'KubeTokenRequestProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeTokenRequestProps(obj: KubeTokenRequestProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_TokenRequestSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver. + * + * @schema io.k8s.api.authentication.v1.TokenReview + */ +export interface KubeTokenReviewProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.authentication.v1.TokenReview#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec holds information about the request being evaluated + * + * @schema io.k8s.api.authentication.v1.TokenReview#spec + */ + readonly spec: TokenReviewSpec; + +} + +/** + * Converts an object of type 'KubeTokenReviewProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeTokenReviewProps(obj: KubeTokenReviewProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_TokenReviewSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking. + * + * @schema io.k8s.api.authorization.v1.LocalSubjectAccessReview + */ +export interface KubeLocalSubjectAccessReviewProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.authorization.v1.LocalSubjectAccessReview#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. + * + * @schema io.k8s.api.authorization.v1.LocalSubjectAccessReview#spec + */ + readonly spec: SubjectAccessReviewSpec; + +} + +/** + * Converts an object of type 'KubeLocalSubjectAccessReviewProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeLocalSubjectAccessReviewProps(obj: KubeLocalSubjectAccessReviewProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_SubjectAccessReviewSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * 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 + * + * @schema io.k8s.api.authorization.v1.SelfSubjectAccessReview + */ +export interface KubeSelfSubjectAccessReviewProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.authorization.v1.SelfSubjectAccessReview#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec holds information about the request being evaluated. user and groups must be empty + * + * @schema io.k8s.api.authorization.v1.SelfSubjectAccessReview#spec + */ + readonly spec: SelfSubjectAccessReviewSpec; + +} + +/** + * Converts an object of type 'KubeSelfSubjectAccessReviewProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeSelfSubjectAccessReviewProps(obj: KubeSelfSubjectAccessReviewProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_SelfSubjectAccessReviewSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. + * + * @schema io.k8s.api.authorization.v1.SelfSubjectRulesReview + */ +export interface KubeSelfSubjectRulesReviewProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.authorization.v1.SelfSubjectRulesReview#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec holds information about the request being evaluated. + * + * @schema io.k8s.api.authorization.v1.SelfSubjectRulesReview#spec + */ + readonly spec: SelfSubjectRulesReviewSpec; + +} + +/** + * Converts an object of type 'KubeSelfSubjectRulesReviewProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeSelfSubjectRulesReviewProps(obj: KubeSelfSubjectRulesReviewProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_SelfSubjectRulesReviewSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * SubjectAccessReview checks whether or not a user or group can perform an action. + * + * @schema io.k8s.api.authorization.v1.SubjectAccessReview + */ +export interface KubeSubjectAccessReviewProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.authorization.v1.SubjectAccessReview#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec holds information about the request being evaluated + * + * @schema io.k8s.api.authorization.v1.SubjectAccessReview#spec + */ + readonly spec: SubjectAccessReviewSpec; + +} + +/** + * Converts an object of type 'KubeSubjectAccessReviewProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeSubjectAccessReviewProps(obj: KubeSubjectAccessReviewProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_SubjectAccessReviewSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * configuration of a horizontal pod autoscaler. + * + * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler + */ +export interface KubeHorizontalPodAutoscalerProps { + /** + * Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + * + * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler#spec + */ + readonly spec?: HorizontalPodAutoscalerSpec; + +} + +/** + * Converts an object of type 'KubeHorizontalPodAutoscalerProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeHorizontalPodAutoscalerProps(obj: KubeHorizontalPodAutoscalerProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_HorizontalPodAutoscalerSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * list of horizontal pod autoscaler objects. + * + * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList + */ +export interface KubeHorizontalPodAutoscalerListProps { + /** + * Standard list metadata. + * + * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList#metadata + */ + readonly metadata?: ListMeta; + + /** + * list of horizontal pod autoscaler objects. + * + * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList#items + */ + readonly items: KubeHorizontalPodAutoscalerProps[]; + +} + +/** + * Converts an object of type 'KubeHorizontalPodAutoscalerListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeHorizontalPodAutoscalerListProps(obj: KubeHorizontalPodAutoscalerListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeHorizontalPodAutoscalerProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Scale represents a scaling request for a resource. + * + * @schema io.k8s.api.autoscaling.v1.Scale + */ +export interface KubeScaleProps { + /** + * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + * + * @schema io.k8s.api.autoscaling.v1.Scale#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + * + * @schema io.k8s.api.autoscaling.v1.Scale#spec + */ + readonly spec?: ScaleSpec; + +} + +/** + * Converts an object of type 'KubeScaleProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeScaleProps(obj: KubeScaleProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_ScaleSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. + * + * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler + */ +export interface KubeHorizontalPodAutoscalerV2Props { + /** + * metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + * + * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler#spec + */ + readonly spec?: HorizontalPodAutoscalerSpecV2; + +} + +/** + * Converts an object of type 'KubeHorizontalPodAutoscalerV2Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeHorizontalPodAutoscalerV2Props(obj: KubeHorizontalPodAutoscalerV2Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_HorizontalPodAutoscalerSpecV2(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. + * + * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerList + */ +export interface KubeHorizontalPodAutoscalerListV2Props { + /** + * metadata is the standard list metadata. + * + * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerList#metadata + */ + readonly metadata?: ListMeta; + + /** + * items is the list of horizontal pod autoscaler objects. + * + * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerList#items + */ + readonly items: KubeHorizontalPodAutoscalerV2Props[]; + +} + +/** + * Converts an object of type 'KubeHorizontalPodAutoscalerListV2Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeHorizontalPodAutoscalerListV2Props(obj: KubeHorizontalPodAutoscalerListV2Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeHorizontalPodAutoscalerV2Props(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. + * + * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler + */ +export interface KubeHorizontalPodAutoscalerV2Beta2Props { + /** + * metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + * + * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler#spec + */ + readonly spec?: HorizontalPodAutoscalerSpecV2Beta2; + +} + +/** + * Converts an object of type 'KubeHorizontalPodAutoscalerV2Beta2Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeHorizontalPodAutoscalerV2Beta2Props(obj: KubeHorizontalPodAutoscalerV2Beta2Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_HorizontalPodAutoscalerSpecV2Beta2(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. + * + * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerList + */ +export interface KubeHorizontalPodAutoscalerListV2Beta2Props { + /** + * metadata is the standard list metadata. + * + * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerList#metadata + */ + readonly metadata?: ListMeta; + + /** + * items is the list of horizontal pod autoscaler objects. + * + * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerList#items + */ + readonly items: KubeHorizontalPodAutoscalerV2Beta2Props[]; + +} + +/** + * Converts an object of type 'KubeHorizontalPodAutoscalerListV2Beta2Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeHorizontalPodAutoscalerListV2Beta2Props(obj: KubeHorizontalPodAutoscalerListV2Beta2Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeHorizontalPodAutoscalerV2Beta2Props(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CronJob represents the configuration of a single cron job. + * + * @schema io.k8s.api.batch.v1.CronJob + */ +export interface KubeCronJobProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.batch.v1.CronJob#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.batch.v1.CronJob#spec + */ + readonly spec?: CronJobSpec; + +} + +/** + * Converts an object of type 'KubeCronJobProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeCronJobProps(obj: KubeCronJobProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_CronJobSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CronJobList is a collection of cron jobs. + * + * @schema io.k8s.api.batch.v1.CronJobList + */ +export interface KubeCronJobListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.batch.v1.CronJobList#metadata + */ + readonly metadata?: ListMeta; + + /** + * items is the list of CronJobs. + * + * @schema io.k8s.api.batch.v1.CronJobList#items + */ + readonly items: KubeCronJobProps[]; + +} + +/** + * Converts an object of type 'KubeCronJobListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeCronJobListProps(obj: KubeCronJobListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeCronJobProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Job represents the configuration of a single job. + * + * @schema io.k8s.api.batch.v1.Job + */ +export interface KubeJobProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.batch.v1.Job#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.batch.v1.Job#spec + */ + readonly spec?: JobSpec; + +} + +/** + * Converts an object of type 'KubeJobProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeJobProps(obj: KubeJobProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_JobSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * JobList is a collection of jobs. + * + * @schema io.k8s.api.batch.v1.JobList + */ +export interface KubeJobListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.batch.v1.JobList#metadata + */ + readonly metadata?: ListMeta; + + /** + * items is the list of Jobs. + * + * @schema io.k8s.api.batch.v1.JobList#items + */ + readonly items: KubeJobProps[]; + +} + +/** + * Converts an object of type 'KubeJobListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeJobListProps(obj: KubeJobListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeJobProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued. + * + * Kubelets use this API to obtain: + * 1. client certificates to authenticate to kube-apiserver (with the "kubernetes.io/kube-apiserver-client-kubelet" signerName). + * 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the "kubernetes.io/kubelet-serving" signerName). + * + * This API can be used to request client certificates to authenticate to kube-apiserver (with the "kubernetes.io/kube-apiserver-client" signerName), or to obtain certificates from custom non-Kubernetes signers. + * + * @schema io.k8s.api.certificates.v1.CertificateSigningRequest + */ +export interface KubeCertificateSigningRequestProps { + /** + * @schema io.k8s.api.certificates.v1.CertificateSigningRequest#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * spec contains the certificate request, and is immutable after creation. Only the request, signerName, expirationSeconds, and usages fields can be set on creation. Other fields are derived by Kubernetes and cannot be modified by users. + * + * @schema io.k8s.api.certificates.v1.CertificateSigningRequest#spec + */ + readonly spec: CertificateSigningRequestSpec; + +} + +/** + * Converts an object of type 'KubeCertificateSigningRequestProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeCertificateSigningRequestProps(obj: KubeCertificateSigningRequestProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_CertificateSigningRequestSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CertificateSigningRequestList is a collection of CertificateSigningRequest objects + * + * @schema io.k8s.api.certificates.v1.CertificateSigningRequestList + */ +export interface KubeCertificateSigningRequestListProps { + /** + * @schema io.k8s.api.certificates.v1.CertificateSigningRequestList#metadata + */ + readonly metadata?: ListMeta; + + /** + * items is a collection of CertificateSigningRequest objects + * + * @schema io.k8s.api.certificates.v1.CertificateSigningRequestList#items + */ + readonly items: KubeCertificateSigningRequestProps[]; + +} + +/** + * Converts an object of type 'KubeCertificateSigningRequestListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeCertificateSigningRequestListProps(obj: KubeCertificateSigningRequestListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeCertificateSigningRequestProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Lease defines a lease concept. + * + * @schema io.k8s.api.coordination.v1.Lease + */ +export interface KubeLeaseProps { + /** + * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.coordination.v1.Lease#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.coordination.v1.Lease#spec + */ + readonly spec?: LeaseSpec; + +} + +/** + * Converts an object of type 'KubeLeaseProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeLeaseProps(obj: KubeLeaseProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_LeaseSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * LeaseList is a list of Lease objects. + * + * @schema io.k8s.api.coordination.v1.LeaseList + */ +export interface KubeLeaseListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.coordination.v1.LeaseList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is a list of schema objects. + * + * @schema io.k8s.api.coordination.v1.LeaseList#items + */ + readonly items: KubeLeaseProps[]; + +} + +/** + * Converts an object of type 'KubeLeaseListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeLeaseListProps(obj: KubeLeaseListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeLeaseProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead. + * + * @schema io.k8s.api.core.v1.Binding + */ +export interface KubeBindingProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.Binding#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * The target object that you want to bind to the standard object. + * + * @schema io.k8s.api.core.v1.Binding#target + */ + readonly target: ObjectReference; + +} + +/** + * Converts an object of type 'KubeBindingProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeBindingProps(obj: KubeBindingProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'target': toJson_ObjectReference(obj.target), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+ + * + * @schema io.k8s.api.core.v1.ComponentStatus + */ +export interface KubeComponentStatusProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.ComponentStatus#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * List of component conditions observed + * + * @schema io.k8s.api.core.v1.ComponentStatus#conditions + */ + readonly conditions?: ComponentCondition[]; + +} + +/** + * Converts an object of type 'KubeComponentStatusProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeComponentStatusProps(obj: KubeComponentStatusProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'conditions': obj.conditions?.map(y => toJson_ComponentCondition(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+ + * + * @schema io.k8s.api.core.v1.ComponentStatusList + */ +export interface KubeComponentStatusListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.core.v1.ComponentStatusList#metadata + */ + readonly metadata?: ListMeta; + + /** + * List of ComponentStatus objects. + * + * @schema io.k8s.api.core.v1.ComponentStatusList#items + */ + readonly items: KubeComponentStatusProps[]; + +} + +/** + * Converts an object of type 'KubeComponentStatusListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeComponentStatusListProps(obj: KubeComponentStatusListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeComponentStatusProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ConfigMap holds configuration data for pods to consume. + * + * @schema io.k8s.api.core.v1.ConfigMap + */ +export interface KubeConfigMapProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.ConfigMap#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. + * + * @schema io.k8s.api.core.v1.ConfigMap#binaryData + */ + readonly binaryData?: { [key: string]: string }; + + /** + * Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process. + * + * @schema io.k8s.api.core.v1.ConfigMap#data + */ + readonly data?: { [key: string]: string }; + + /** + * Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. + * + * @schema io.k8s.api.core.v1.ConfigMap#immutable + */ + readonly immutable?: boolean; + +} + +/** + * Converts an object of type 'KubeConfigMapProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeConfigMapProps(obj: KubeConfigMapProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'binaryData': ((obj.binaryData) === undefined) ? undefined : (Object.entries(obj.binaryData).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + 'data': ((obj.data) === undefined) ? undefined : (Object.entries(obj.data).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + 'immutable': obj.immutable, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ConfigMapList is a resource containing a list of ConfigMap objects. + * + * @schema io.k8s.api.core.v1.ConfigMapList + */ +export interface KubeConfigMapListProps { + /** + * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.ConfigMapList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is the list of ConfigMaps. + * + * @schema io.k8s.api.core.v1.ConfigMapList#items + */ + readonly items: KubeConfigMapProps[]; + +} + +/** + * Converts an object of type 'KubeConfigMapListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeConfigMapListProps(obj: KubeConfigMapListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeConfigMapProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Endpoints is a collection of endpoints that implement the actual service. Example: + * + * Name: "mysvc", + * Subsets: [ + * { + * Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], + * Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] + * }, + * { + * Addresses: [{"ip": "10.10.3.3"}], + * Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}] + * }, + * ] + * + * @schema io.k8s.api.core.v1.Endpoints + */ +export interface KubeEndpointsProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.Endpoints#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. + * + * @schema io.k8s.api.core.v1.Endpoints#subsets + */ + readonly subsets?: EndpointSubset[]; + +} + +/** + * Converts an object of type 'KubeEndpointsProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeEndpointsProps(obj: KubeEndpointsProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'subsets': obj.subsets?.map(y => toJson_EndpointSubset(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * EndpointsList is a list of endpoints. + * + * @schema io.k8s.api.core.v1.EndpointsList + */ +export interface KubeEndpointsListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.core.v1.EndpointsList#metadata + */ + readonly metadata?: ListMeta; + + /** + * List of endpoints. + * + * @schema io.k8s.api.core.v1.EndpointsList#items + */ + readonly items: KubeEndpointsProps[]; + +} + +/** + * Converts an object of type 'KubeEndpointsListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeEndpointsListProps(obj: KubeEndpointsListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeEndpointsProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data. + * + * @schema io.k8s.api.events.v1.Event + */ +export interface KubeEventProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.events.v1.Event#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters. + * + * @schema io.k8s.api.events.v1.Event#action + */ + readonly action?: string; + + /** + * deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type. + * + * @schema io.k8s.api.events.v1.Event#deprecatedCount + */ + readonly deprecatedCount?: number; + + /** + * deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. + * + * @schema io.k8s.api.events.v1.Event#deprecatedFirstTimestamp + */ + readonly deprecatedFirstTimestamp?: Date; + + /** + * deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. + * + * @schema io.k8s.api.events.v1.Event#deprecatedLastTimestamp + */ + readonly deprecatedLastTimestamp?: Date; + + /** + * deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. + * + * @schema io.k8s.api.events.v1.Event#deprecatedSource + */ + readonly deprecatedSource?: EventSource; + + /** + * eventTime is the time when this Event was first observed. It is required. + * + * @schema io.k8s.api.events.v1.Event#eventTime + */ + readonly eventTime: Date; + + /** + * note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. + * + * @schema io.k8s.api.events.v1.Event#note + */ + readonly note?: string; + + /** + * reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters. + * + * @schema io.k8s.api.events.v1.Event#reason + */ + readonly reason?: string; + + /** + * regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. + * + * @schema io.k8s.api.events.v1.Event#regarding + */ + readonly regarding?: ObjectReference; + + /** + * related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. + * + * @schema io.k8s.api.events.v1.Event#related + */ + readonly related?: ObjectReference; + + /** + * reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. + * + * @schema io.k8s.api.events.v1.Event#reportingController + */ + readonly reportingController?: string; + + /** + * reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters. + * + * @schema io.k8s.api.events.v1.Event#reportingInstance + */ + readonly reportingInstance?: string; + + /** + * series is data about the Event series this event represents or nil if it's a singleton Event. + * + * @schema io.k8s.api.events.v1.Event#series + */ + readonly series?: EventSeries; + + /** + * type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events. + * + * @schema io.k8s.api.events.v1.Event#type + */ + readonly type?: string; + +} + +/** + * Converts an object of type 'KubeEventProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeEventProps(obj: KubeEventProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'action': obj.action, + 'deprecatedCount': obj.deprecatedCount, + 'deprecatedFirstTimestamp': obj.deprecatedFirstTimestamp?.toISOString(), + 'deprecatedLastTimestamp': obj.deprecatedLastTimestamp?.toISOString(), + 'deprecatedSource': toJson_EventSource(obj.deprecatedSource), + 'eventTime': obj.eventTime?.toISOString(), + 'note': obj.note, + 'reason': obj.reason, + 'regarding': toJson_ObjectReference(obj.regarding), + 'related': toJson_ObjectReference(obj.related), + 'reportingController': obj.reportingController, + 'reportingInstance': obj.reportingInstance, + 'series': toJson_EventSeries(obj.series), + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * EventList is a list of Event objects. + * + * @schema io.k8s.api.events.v1.EventList + */ +export interface KubeEventListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.events.v1.EventList#metadata + */ + readonly metadata?: ListMeta; + + /** + * items is a list of schema objects. + * + * @schema io.k8s.api.events.v1.EventList#items + */ + readonly items: KubeEventProps[]; + +} + +/** + * Converts an object of type 'KubeEventListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeEventListProps(obj: KubeEventListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeEventProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * LimitRange sets resource usage limits for each kind of resource in a Namespace. + * + * @schema io.k8s.api.core.v1.LimitRange + */ +export interface KubeLimitRangeProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.LimitRange#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.core.v1.LimitRange#spec + */ + readonly spec?: LimitRangeSpec; + +} + +/** + * Converts an object of type 'KubeLimitRangeProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeLimitRangeProps(obj: KubeLimitRangeProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_LimitRangeSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * LimitRangeList is a list of LimitRange items. + * + * @schema io.k8s.api.core.v1.LimitRangeList + */ +export interface KubeLimitRangeListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.core.v1.LimitRangeList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + * + * @schema io.k8s.api.core.v1.LimitRangeList#items + */ + readonly items: KubeLimitRangeProps[]; + +} + +/** + * Converts an object of type 'KubeLimitRangeListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeLimitRangeListProps(obj: KubeLimitRangeListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeLimitRangeProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Namespace provides a scope for Names. Use of multiple namespaces is optional. + * + * @schema io.k8s.api.core.v1.Namespace + */ +export interface KubeNamespaceProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.Namespace#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.core.v1.Namespace#spec + */ + readonly spec?: NamespaceSpec; + +} + +/** + * Converts an object of type 'KubeNamespaceProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeNamespaceProps(obj: KubeNamespaceProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_NamespaceSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * NamespaceList is a list of Namespaces. + * + * @schema io.k8s.api.core.v1.NamespaceList + */ +export interface KubeNamespaceListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.core.v1.NamespaceList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * + * @schema io.k8s.api.core.v1.NamespaceList#items + */ + readonly items: KubeNamespaceProps[]; + +} + +/** + * Converts an object of type 'KubeNamespaceListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeNamespaceListProps(obj: KubeNamespaceListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeNamespaceProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd). + * + * @schema io.k8s.api.core.v1.Node + */ +export interface KubeNodeProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.Node#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.core.v1.Node#spec + */ + readonly spec?: NodeSpec; + +} + +/** + * Converts an object of type 'KubeNodeProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeNodeProps(obj: KubeNodeProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_NodeSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * NodeList is the whole list of all Nodes which have been registered with master. + * + * @schema io.k8s.api.core.v1.NodeList + */ +export interface KubeNodeListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.core.v1.NodeList#metadata + */ + readonly metadata?: ListMeta; + + /** + * List of nodes + * + * @schema io.k8s.api.core.v1.NodeList#items + */ + readonly items: KubeNodeProps[]; + +} + +/** + * Converts an object of type 'KubeNodeListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeNodeListProps(obj: KubeNodeListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeNodeProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes + * + * @schema io.k8s.api.core.v1.PersistentVolume + */ +export interface KubePersistentVolumeProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.PersistentVolume#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes + * + * @schema io.k8s.api.core.v1.PersistentVolume#spec + */ + readonly spec?: PersistentVolumeSpec; + +} + +/** + * Converts an object of type 'KubePersistentVolumeProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubePersistentVolumeProps(obj: KubePersistentVolumeProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_PersistentVolumeSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PersistentVolumeClaim is a user's request for and claim to a persistent volume + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaim + */ +export interface KubePersistentVolumeClaimProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaim#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaim#spec + */ + readonly spec?: PersistentVolumeClaimSpec; + +} + +/** + * Converts an object of type 'KubePersistentVolumeClaimProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubePersistentVolumeClaimProps(obj: KubePersistentVolumeClaimProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_PersistentVolumeClaimSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PersistentVolumeClaimList is a list of PersistentVolumeClaim items. + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimList + */ +export interface KubePersistentVolumeClaimListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimList#metadata + */ + readonly metadata?: ListMeta; + + /** + * items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimList#items + */ + readonly items: KubePersistentVolumeClaimProps[]; + +} + +/** + * Converts an object of type 'KubePersistentVolumeClaimListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubePersistentVolumeClaimListProps(obj: KubePersistentVolumeClaimListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubePersistentVolumeClaimProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PersistentVolumeList is a list of PersistentVolume items. + * + * @schema io.k8s.api.core.v1.PersistentVolumeList + */ +export interface KubePersistentVolumeListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.core.v1.PersistentVolumeList#metadata + */ + readonly metadata?: ListMeta; + + /** + * items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes + * + * @schema io.k8s.api.core.v1.PersistentVolumeList#items + */ + readonly items: KubePersistentVolumeProps[]; + +} + +/** + * Converts an object of type 'KubePersistentVolumeListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubePersistentVolumeListProps(obj: KubePersistentVolumeListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubePersistentVolumeProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts. + * + * @schema io.k8s.api.core.v1.Pod + */ +export interface KubePodProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.Pod#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.core.v1.Pod#spec + */ + readonly spec?: PodSpec; + +} + +/** + * Converts an object of type 'KubePodProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubePodProps(obj: KubePodProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_PodSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodList is a list of Pods. + * + * @schema io.k8s.api.core.v1.PodList + */ +export interface KubePodListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.core.v1.PodList#metadata + */ + readonly metadata?: ListMeta; + + /** + * List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md + * + * @schema io.k8s.api.core.v1.PodList#items + */ + readonly items: KubePodProps[]; + +} + +/** + * Converts an object of type 'KubePodListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubePodListProps(obj: KubePodListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubePodProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodTemplate describes a template for creating copies of a predefined pod. + * + * @schema io.k8s.api.core.v1.PodTemplate + */ +export interface KubePodTemplateProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.PodTemplate#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.core.v1.PodTemplate#template + */ + readonly template?: PodTemplateSpec; + +} + +/** + * Converts an object of type 'KubePodTemplateProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubePodTemplateProps(obj: KubePodTemplateProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'template': toJson_PodTemplateSpec(obj.template), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodTemplateList is a list of PodTemplates. + * + * @schema io.k8s.api.core.v1.PodTemplateList + */ +export interface KubePodTemplateListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.core.v1.PodTemplateList#metadata + */ + readonly metadata?: ListMeta; + + /** + * List of pod templates + * + * @schema io.k8s.api.core.v1.PodTemplateList#items + */ + readonly items: KubePodTemplateProps[]; + +} + +/** + * Converts an object of type 'KubePodTemplateListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubePodTemplateListProps(obj: KubePodTemplateListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubePodTemplateProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ReplicationController represents the configuration of a replication controller. + * + * @schema io.k8s.api.core.v1.ReplicationController + */ +export interface KubeReplicationControllerProps { + /** + * If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.ReplicationController#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.core.v1.ReplicationController#spec + */ + readonly spec?: ReplicationControllerSpec; + +} + +/** + * Converts an object of type 'KubeReplicationControllerProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeReplicationControllerProps(obj: KubeReplicationControllerProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_ReplicationControllerSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ReplicationControllerList is a collection of replication controllers. + * + * @schema io.k8s.api.core.v1.ReplicationControllerList + */ +export interface KubeReplicationControllerListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.core.v1.ReplicationControllerList#metadata + */ + readonly metadata?: ListMeta; + + /** + * List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + * + * @schema io.k8s.api.core.v1.ReplicationControllerList#items + */ + readonly items: KubeReplicationControllerProps[]; + +} + +/** + * Converts an object of type 'KubeReplicationControllerListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeReplicationControllerListProps(obj: KubeReplicationControllerListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeReplicationControllerProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ResourceQuota sets aggregate quota restrictions enforced per namespace + * + * @schema io.k8s.api.core.v1.ResourceQuota + */ +export interface KubeResourceQuotaProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.ResourceQuota#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.core.v1.ResourceQuota#spec + */ + readonly spec?: ResourceQuotaSpec; + +} + +/** + * Converts an object of type 'KubeResourceQuotaProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeResourceQuotaProps(obj: KubeResourceQuotaProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_ResourceQuotaSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ResourceQuotaList is a list of ResourceQuota items. + * + * @schema io.k8s.api.core.v1.ResourceQuotaList + */ +export interface KubeResourceQuotaListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.core.v1.ResourceQuotaList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ + * + * @schema io.k8s.api.core.v1.ResourceQuotaList#items + */ + readonly items: KubeResourceQuotaProps[]; + +} + +/** + * Converts an object of type 'KubeResourceQuotaListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeResourceQuotaListProps(obj: KubeResourceQuotaListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeResourceQuotaProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes. + * + * @schema io.k8s.api.core.v1.Secret + */ +export interface KubeSecretProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.Secret#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 + * + * @schema io.k8s.api.core.v1.Secret#data + */ + readonly data?: { [key: string]: string }; + + /** + * Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. + * + * @schema io.k8s.api.core.v1.Secret#immutable + */ + readonly immutable?: boolean; + + /** + * stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API. + * + * @schema io.k8s.api.core.v1.Secret#stringData + */ + readonly stringData?: { [key: string]: string }; + + /** + * Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types + * + * @schema io.k8s.api.core.v1.Secret#type + */ + readonly type?: string; + +} + +/** + * Converts an object of type 'KubeSecretProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeSecretProps(obj: KubeSecretProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'data': ((obj.data) === undefined) ? undefined : (Object.entries(obj.data).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + 'immutable': obj.immutable, + 'stringData': ((obj.stringData) === undefined) ? undefined : (Object.entries(obj.stringData).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * SecretList is a list of Secret. + * + * @schema io.k8s.api.core.v1.SecretList + */ +export interface KubeSecretListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.core.v1.SecretList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret + * + * @schema io.k8s.api.core.v1.SecretList#items + */ + readonly items: KubeSecretProps[]; + +} + +/** + * Converts an object of type 'KubeSecretListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeSecretListProps(obj: KubeSecretListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeSecretProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy. + * + * @schema io.k8s.api.core.v1.Service + */ +export interface KubeServiceProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.Service#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.core.v1.Service#spec + */ + readonly spec?: ServiceSpec; + +} + +/** + * Converts an object of type 'KubeServiceProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeServiceProps(obj: KubeServiceProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_ServiceSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets + * + * @schema io.k8s.api.core.v1.ServiceAccount + */ +export interface KubeServiceAccountProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.ServiceAccount#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. + * + * @schema io.k8s.api.core.v1.ServiceAccount#automountServiceAccountToken + */ + readonly automountServiceAccountToken?: boolean; + + /** + * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod + * + * @schema io.k8s.api.core.v1.ServiceAccount#imagePullSecrets + */ + readonly imagePullSecrets?: LocalObjectReference[]; + + /** + * Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use. Pods are only limited to this list if this service account has a "kubernetes.io/enforce-mountable-secrets" annotation set to "true". This field should not be used to find auto-generated service account token secrets for use outside of pods. Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created. More info: https://kubernetes.io/docs/concepts/configuration/secret + * + * @schema io.k8s.api.core.v1.ServiceAccount#secrets + */ + readonly secrets?: ObjectReference[]; + +} + +/** + * Converts an object of type 'KubeServiceAccountProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeServiceAccountProps(obj: KubeServiceAccountProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'automountServiceAccountToken': obj.automountServiceAccountToken, + 'imagePullSecrets': obj.imagePullSecrets?.map(y => toJson_LocalObjectReference(y)), + 'secrets': obj.secrets?.map(y => toJson_ObjectReference(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ServiceAccountList is a list of ServiceAccount objects + * + * @schema io.k8s.api.core.v1.ServiceAccountList + */ +export interface KubeServiceAccountListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.core.v1.ServiceAccountList#metadata + */ + readonly metadata?: ListMeta; + + /** + * List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * + * @schema io.k8s.api.core.v1.ServiceAccountList#items + */ + readonly items: KubeServiceAccountProps[]; + +} + +/** + * Converts an object of type 'KubeServiceAccountListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeServiceAccountListProps(obj: KubeServiceAccountListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeServiceAccountProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ServiceList holds a list of services. + * + * @schema io.k8s.api.core.v1.ServiceList + */ +export interface KubeServiceListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.core.v1.ServiceList#metadata + */ + readonly metadata?: ListMeta; + + /** + * List of services + * + * @schema io.k8s.api.core.v1.ServiceList#items + */ + readonly items: KubeServiceProps[]; + +} + +/** + * Converts an object of type 'KubeServiceListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeServiceListProps(obj: KubeServiceListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeServiceProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints. + * + * @schema io.k8s.api.discovery.v1.EndpointSlice + */ +export interface KubeEndpointSliceProps { + /** + * Standard object's metadata. + * + * @schema io.k8s.api.discovery.v1.EndpointSlice#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. + * + * + * + * @schema io.k8s.api.discovery.v1.EndpointSlice#addressType + */ + readonly addressType: string; + + /** + * endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. + * + * @schema io.k8s.api.discovery.v1.EndpointSlice#endpoints + */ + readonly endpoints: Endpoint[]; + + /** + * ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports. + * + * @schema io.k8s.api.discovery.v1.EndpointSlice#ports + */ + readonly ports?: EndpointPort[]; + +} + +/** + * Converts an object of type 'KubeEndpointSliceProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeEndpointSliceProps(obj: KubeEndpointSliceProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'addressType': obj.addressType, + 'endpoints': obj.endpoints?.map(y => toJson_Endpoint(y)), + 'ports': obj.ports?.map(y => toJson_EndpointPort(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * EndpointSliceList represents a list of endpoint slices + * + * @schema io.k8s.api.discovery.v1.EndpointSliceList + */ +export interface KubeEndpointSliceListProps { + /** + * Standard list metadata. + * + * @schema io.k8s.api.discovery.v1.EndpointSliceList#metadata + */ + readonly metadata?: ListMeta; + + /** + * List of endpoint slices + * + * @schema io.k8s.api.discovery.v1.EndpointSliceList#items + */ + readonly items: KubeEndpointSliceProps[]; + +} + +/** + * Converts an object of type 'KubeEndpointSliceListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeEndpointSliceListProps(obj: KubeEndpointSliceListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeEndpointSliceProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". + * + * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchema + */ +export interface KubeFlowSchemaV1Beta1Props { + /** + * `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchema#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * `spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchema#spec + */ + readonly spec?: FlowSchemaSpecV1Beta1; + +} + +/** + * Converts an object of type 'KubeFlowSchemaV1Beta1Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeFlowSchemaV1Beta1Props(obj: KubeFlowSchemaV1Beta1Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_FlowSchemaSpecV1Beta1(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * FlowSchemaList is a list of FlowSchema objects. + * + * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchemaList + */ +export interface KubeFlowSchemaListV1Beta1Props { + /** + * `metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchemaList#metadata + */ + readonly metadata?: ListMeta; + + /** + * `items` is a list of FlowSchemas. + * + * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchemaList#items + */ + readonly items: KubeFlowSchemaV1Beta1Props[]; + +} + +/** + * Converts an object of type 'KubeFlowSchemaListV1Beta1Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeFlowSchemaListV1Beta1Props(obj: KubeFlowSchemaListV1Beta1Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeFlowSchemaV1Beta1Props(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PriorityLevelConfiguration represents the configuration of a priority level. + * + * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration + */ +export interface KubePriorityLevelConfigurationV1Beta1Props { + /** + * `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * `spec` is the specification of the desired behavior of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration#spec + */ + readonly spec?: PriorityLevelConfigurationSpecV1Beta1; + +} + +/** + * Converts an object of type 'KubePriorityLevelConfigurationV1Beta1Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubePriorityLevelConfigurationV1Beta1Props(obj: KubePriorityLevelConfigurationV1Beta1Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_PriorityLevelConfigurationSpecV1Beta1(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. + * + * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationList + */ +export interface KubePriorityLevelConfigurationListV1Beta1Props { + /** + * `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationList#metadata + */ + readonly metadata?: ListMeta; + + /** + * `items` is a list of request-priorities. + * + * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationList#items + */ + readonly items: KubePriorityLevelConfigurationV1Beta1Props[]; + +} + +/** + * Converts an object of type 'KubePriorityLevelConfigurationListV1Beta1Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubePriorityLevelConfigurationListV1Beta1Props(obj: KubePriorityLevelConfigurationListV1Beta1Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubePriorityLevelConfigurationV1Beta1Props(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". + * + * @schema io.k8s.api.flowcontrol.v1beta2.FlowSchema + */ +export interface KubeFlowSchemaV1Beta2Props { + /** + * `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.flowcontrol.v1beta2.FlowSchema#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * `spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.flowcontrol.v1beta2.FlowSchema#spec + */ + readonly spec?: FlowSchemaSpecV1Beta2; + +} + +/** + * Converts an object of type 'KubeFlowSchemaV1Beta2Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeFlowSchemaV1Beta2Props(obj: KubeFlowSchemaV1Beta2Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_FlowSchemaSpecV1Beta2(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * FlowSchemaList is a list of FlowSchema objects. + * + * @schema io.k8s.api.flowcontrol.v1beta2.FlowSchemaList + */ +export interface KubeFlowSchemaListV1Beta2Props { + /** + * `metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.flowcontrol.v1beta2.FlowSchemaList#metadata + */ + readonly metadata?: ListMeta; + + /** + * `items` is a list of FlowSchemas. + * + * @schema io.k8s.api.flowcontrol.v1beta2.FlowSchemaList#items + */ + readonly items: KubeFlowSchemaV1Beta2Props[]; + +} + +/** + * Converts an object of type 'KubeFlowSchemaListV1Beta2Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeFlowSchemaListV1Beta2Props(obj: KubeFlowSchemaListV1Beta2Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeFlowSchemaV1Beta2Props(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PriorityLevelConfiguration represents the configuration of a priority level. + * + * @schema io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration + */ +export interface KubePriorityLevelConfigurationV1Beta2Props { + /** + * `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * `spec` is the specification of the desired behavior of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration#spec + */ + readonly spec?: PriorityLevelConfigurationSpecV1Beta2; + +} + +/** + * Converts an object of type 'KubePriorityLevelConfigurationV1Beta2Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubePriorityLevelConfigurationV1Beta2Props(obj: KubePriorityLevelConfigurationV1Beta2Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_PriorityLevelConfigurationSpecV1Beta2(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. + * + * @schema io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationList + */ +export interface KubePriorityLevelConfigurationListV1Beta2Props { + /** + * `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationList#metadata + */ + readonly metadata?: ListMeta; + + /** + * `items` is a list of request-priorities. + * + * @schema io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationList#items + */ + readonly items: KubePriorityLevelConfigurationV1Beta2Props[]; + +} + +/** + * Converts an object of type 'KubePriorityLevelConfigurationListV1Beta2Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubePriorityLevelConfigurationListV1Beta2Props(obj: KubePriorityLevelConfigurationListV1Beta2Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubePriorityLevelConfigurationV1Beta2Props(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. + * + * @schema io.k8s.api.networking.v1.Ingress + */ +export interface KubeIngressProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.networking.v1.Ingress#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.networking.v1.Ingress#spec + */ + readonly spec?: IngressSpec; + +} + +/** + * Converts an object of type 'KubeIngressProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeIngressProps(obj: KubeIngressProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_IngressSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class. + * + * @schema io.k8s.api.networking.v1.IngressClass + */ +export interface KubeIngressClassProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.networking.v1.IngressClass#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.networking.v1.IngressClass#spec + */ + readonly spec?: IngressClassSpec; + +} + +/** + * Converts an object of type 'KubeIngressClassProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeIngressClassProps(obj: KubeIngressClassProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_IngressClassSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * IngressClassList is a collection of IngressClasses. + * + * @schema io.k8s.api.networking.v1.IngressClassList + */ +export interface KubeIngressClassListProps { + /** + * Standard list metadata. + * + * @schema io.k8s.api.networking.v1.IngressClassList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is the list of IngressClasses. + * + * @schema io.k8s.api.networking.v1.IngressClassList#items + */ + readonly items: KubeIngressClassProps[]; + +} + +/** + * Converts an object of type 'KubeIngressClassListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeIngressClassListProps(obj: KubeIngressClassListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeIngressClassProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * IngressList is a collection of Ingress. + * + * @schema io.k8s.api.networking.v1.IngressList + */ +export interface KubeIngressListProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.networking.v1.IngressList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is the list of Ingress. + * + * @schema io.k8s.api.networking.v1.IngressList#items + */ + readonly items: KubeIngressProps[]; + +} + +/** + * Converts an object of type 'KubeIngressListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeIngressListProps(obj: KubeIngressListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeIngressProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * NetworkPolicy describes what network traffic is allowed for a set of Pods + * + * @schema io.k8s.api.networking.v1.NetworkPolicy + */ +export interface KubeNetworkPolicyProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.networking.v1.NetworkPolicy#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Specification of the desired behavior for this NetworkPolicy. + * + * @schema io.k8s.api.networking.v1.NetworkPolicy#spec + */ + readonly spec?: NetworkPolicySpec; + +} + +/** + * Converts an object of type 'KubeNetworkPolicyProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeNetworkPolicyProps(obj: KubeNetworkPolicyProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_NetworkPolicySpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * NetworkPolicyList is a list of NetworkPolicy objects. + * + * @schema io.k8s.api.networking.v1.NetworkPolicyList + */ +export interface KubeNetworkPolicyListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.networking.v1.NetworkPolicyList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is a list of schema objects. + * + * @schema io.k8s.api.networking.v1.NetworkPolicyList#items + */ + readonly items: KubeNetworkPolicyProps[]; + +} + +/** + * Converts an object of type 'KubeNetworkPolicyListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeNetworkPolicyListProps(obj: KubeNetworkPolicyListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeNetworkPolicyProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ClusterCIDR represents a single configuration for per-Node Pod CIDR allocations when the MultiCIDRRangeAllocator is enabled (see the config for kube-controller-manager). A cluster may have any number of ClusterCIDR resources, all of which will be considered when allocating a CIDR for a Node. A ClusterCIDR is eligible to be used for a given Node when the node selector matches the node in question and has free CIDRs to allocate. In case of multiple matching ClusterCIDR resources, the allocator will attempt to break ties using internal heuristics, but any ClusterCIDR whose node selector matches the Node may be used. + * + * @schema io.k8s.api.networking.v1alpha1.ClusterCIDR + */ +export interface KubeClusterCidrv1Alpha1Props { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.networking.v1alpha1.ClusterCIDR#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec is the desired state of the ClusterCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.networking.v1alpha1.ClusterCIDR#spec + */ + readonly spec?: ClusterCidrSpecV1Alpha1; + +} + +/** + * Converts an object of type 'KubeClusterCidrv1Alpha1Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeClusterCidrv1Alpha1Props(obj: KubeClusterCidrv1Alpha1Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_ClusterCidrSpecV1Alpha1(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ClusterCIDRList contains a list of ClusterCIDR. + * + * @schema io.k8s.api.networking.v1alpha1.ClusterCIDRList + */ +export interface KubeClusterCidrListV1Alpha1Props { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.networking.v1alpha1.ClusterCIDRList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is the list of ClusterCIDRs. + * + * @schema io.k8s.api.networking.v1alpha1.ClusterCIDRList#items + */ + readonly items: KubeClusterCidrv1Alpha1Props[]; + +} + +/** + * Converts an object of type 'KubeClusterCidrListV1Alpha1Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeClusterCidrListV1Alpha1Props(obj: KubeClusterCidrListV1Alpha1Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeClusterCidrv1Alpha1Props(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/ + * + * @schema io.k8s.api.node.v1.RuntimeClass + */ +export interface KubeRuntimeClassProps { + /** + * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.node.v1.RuntimeClass#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable. + * + * @schema io.k8s.api.node.v1.RuntimeClass#handler + */ + readonly handler: string; + + /** + * Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see + * https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/ + * + * @schema io.k8s.api.node.v1.RuntimeClass#overhead + */ + readonly overhead?: Overhead; + + /** + * Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes. + * + * @schema io.k8s.api.node.v1.RuntimeClass#scheduling + */ + readonly scheduling?: Scheduling; + +} + +/** + * Converts an object of type 'KubeRuntimeClassProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeRuntimeClassProps(obj: KubeRuntimeClassProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'handler': obj.handler, + 'overhead': toJson_Overhead(obj.overhead), + 'scheduling': toJson_Scheduling(obj.scheduling), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * RuntimeClassList is a list of RuntimeClass objects. + * + * @schema io.k8s.api.node.v1.RuntimeClassList + */ +export interface KubeRuntimeClassListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.node.v1.RuntimeClassList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is a list of schema objects. + * + * @schema io.k8s.api.node.v1.RuntimeClassList#items + */ + readonly items: KubeRuntimeClassProps[]; + +} + +/** + * Converts an object of type 'KubeRuntimeClassListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeRuntimeClassListProps(obj: KubeRuntimeClassListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeRuntimeClassProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods//evictions. + * + * @schema io.k8s.api.policy.v1.Eviction + */ +export interface KubeEvictionProps { + /** + * ObjectMeta describes the pod that is being evicted. + * + * @schema io.k8s.api.policy.v1.Eviction#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * DeleteOptions may be provided + * + * @schema io.k8s.api.policy.v1.Eviction#deleteOptions + */ + readonly deleteOptions?: DeleteOptions; + +} + +/** + * Converts an object of type 'KubeEvictionProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeEvictionProps(obj: KubeEvictionProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'deleteOptions': toJson_DeleteOptions(obj.deleteOptions), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods + * + * @schema io.k8s.api.policy.v1.PodDisruptionBudget + */ +export interface KubePodDisruptionBudgetProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.policy.v1.PodDisruptionBudget#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Specification of the desired behavior of the PodDisruptionBudget. + * + * @schema io.k8s.api.policy.v1.PodDisruptionBudget#spec + */ + readonly spec?: PodDisruptionBudgetSpec; + +} + +/** + * Converts an object of type 'KubePodDisruptionBudgetProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubePodDisruptionBudgetProps(obj: KubePodDisruptionBudgetProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_PodDisruptionBudgetSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodDisruptionBudgetList is a collection of PodDisruptionBudgets. + * + * @schema io.k8s.api.policy.v1.PodDisruptionBudgetList + */ +export interface KubePodDisruptionBudgetListProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.policy.v1.PodDisruptionBudgetList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is a list of PodDisruptionBudgets + * + * @schema io.k8s.api.policy.v1.PodDisruptionBudgetList#items + */ + readonly items: KubePodDisruptionBudgetProps[]; + +} + +/** + * Converts an object of type 'KubePodDisruptionBudgetListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubePodDisruptionBudgetListProps(obj: KubePodDisruptionBudgetListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubePodDisruptionBudgetProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. + * + * @schema io.k8s.api.rbac.v1.ClusterRole + */ +export interface KubeClusterRoleProps { + /** + * Standard object's metadata. + * + * @schema io.k8s.api.rbac.v1.ClusterRole#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + * + * @schema io.k8s.api.rbac.v1.ClusterRole#aggregationRule + */ + readonly aggregationRule?: AggregationRule; + + /** + * Rules holds all the PolicyRules for this ClusterRole + * + * @schema io.k8s.api.rbac.v1.ClusterRole#rules + */ + readonly rules?: PolicyRule[]; + +} + +/** + * Converts an object of type 'KubeClusterRoleProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeClusterRoleProps(obj: KubeClusterRoleProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'aggregationRule': toJson_AggregationRule(obj.aggregationRule), + 'rules': obj.rules?.map(y => toJson_PolicyRule(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. + * + * @schema io.k8s.api.rbac.v1.ClusterRoleBinding + */ +export interface KubeClusterRoleBindingProps { + /** + * Standard object's metadata. + * + * @schema io.k8s.api.rbac.v1.ClusterRoleBinding#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + * + * @schema io.k8s.api.rbac.v1.ClusterRoleBinding#roleRef + */ + readonly roleRef: RoleRef; + + /** + * Subjects holds references to the objects the role applies to. + * + * @schema io.k8s.api.rbac.v1.ClusterRoleBinding#subjects + */ + readonly subjects?: Subject[]; + +} + +/** + * Converts an object of type 'KubeClusterRoleBindingProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeClusterRoleBindingProps(obj: KubeClusterRoleBindingProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'roleRef': toJson_RoleRef(obj.roleRef), + 'subjects': obj.subjects?.map(y => toJson_Subject(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ClusterRoleBindingList is a collection of ClusterRoleBindings + * + * @schema io.k8s.api.rbac.v1.ClusterRoleBindingList + */ +export interface KubeClusterRoleBindingListProps { + /** + * Standard object's metadata. + * + * @schema io.k8s.api.rbac.v1.ClusterRoleBindingList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is a list of ClusterRoleBindings + * + * @schema io.k8s.api.rbac.v1.ClusterRoleBindingList#items + */ + readonly items: KubeClusterRoleBindingProps[]; + +} + +/** + * Converts an object of type 'KubeClusterRoleBindingListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeClusterRoleBindingListProps(obj: KubeClusterRoleBindingListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeClusterRoleBindingProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ClusterRoleList is a collection of ClusterRoles + * + * @schema io.k8s.api.rbac.v1.ClusterRoleList + */ +export interface KubeClusterRoleListProps { + /** + * Standard object's metadata. + * + * @schema io.k8s.api.rbac.v1.ClusterRoleList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is a list of ClusterRoles + * + * @schema io.k8s.api.rbac.v1.ClusterRoleList#items + */ + readonly items: KubeClusterRoleProps[]; + +} + +/** + * Converts an object of type 'KubeClusterRoleListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeClusterRoleListProps(obj: KubeClusterRoleListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeClusterRoleProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. + * + * @schema io.k8s.api.rbac.v1.Role + */ +export interface KubeRoleProps { + /** + * Standard object's metadata. + * + * @schema io.k8s.api.rbac.v1.Role#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Rules holds all the PolicyRules for this Role + * + * @schema io.k8s.api.rbac.v1.Role#rules + */ + readonly rules?: PolicyRule[]; + +} + +/** + * Converts an object of type 'KubeRoleProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeRoleProps(obj: KubeRoleProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'rules': obj.rules?.map(y => toJson_PolicyRule(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. + * + * @schema io.k8s.api.rbac.v1.RoleBinding + */ +export interface KubeRoleBindingProps { + /** + * Standard object's metadata. + * + * @schema io.k8s.api.rbac.v1.RoleBinding#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + * + * @schema io.k8s.api.rbac.v1.RoleBinding#roleRef + */ + readonly roleRef: RoleRef; + + /** + * Subjects holds references to the objects the role applies to. + * + * @schema io.k8s.api.rbac.v1.RoleBinding#subjects + */ + readonly subjects?: Subject[]; + +} + +/** + * Converts an object of type 'KubeRoleBindingProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeRoleBindingProps(obj: KubeRoleBindingProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'roleRef': toJson_RoleRef(obj.roleRef), + 'subjects': obj.subjects?.map(y => toJson_Subject(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * RoleBindingList is a collection of RoleBindings + * + * @schema io.k8s.api.rbac.v1.RoleBindingList + */ +export interface KubeRoleBindingListProps { + /** + * Standard object's metadata. + * + * @schema io.k8s.api.rbac.v1.RoleBindingList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is a list of RoleBindings + * + * @schema io.k8s.api.rbac.v1.RoleBindingList#items + */ + readonly items: KubeRoleBindingProps[]; + +} + +/** + * Converts an object of type 'KubeRoleBindingListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeRoleBindingListProps(obj: KubeRoleBindingListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeRoleBindingProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * RoleList is a collection of Roles + * + * @schema io.k8s.api.rbac.v1.RoleList + */ +export interface KubeRoleListProps { + /** + * Standard object's metadata. + * + * @schema io.k8s.api.rbac.v1.RoleList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is a list of Roles + * + * @schema io.k8s.api.rbac.v1.RoleList#items + */ + readonly items: KubeRoleProps[]; + +} + +/** + * Converts an object of type 'KubeRoleListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeRoleListProps(obj: KubeRoleListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeRoleProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. + * + * @schema io.k8s.api.scheduling.v1.PriorityClass + */ +export interface KubePriorityClassProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.scheduling.v1.PriorityClass#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * description is an arbitrary string that usually provides guidelines on when this priority class should be used. + * + * @schema io.k8s.api.scheduling.v1.PriorityClass#description + */ + readonly description?: string; + + /** + * globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. + * + * @schema io.k8s.api.scheduling.v1.PriorityClass#globalDefault + */ + readonly globalDefault?: boolean; + + /** + * PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. + * + * @default PreemptLowerPriority if unset. + * @schema io.k8s.api.scheduling.v1.PriorityClass#preemptionPolicy + */ + readonly preemptionPolicy?: string; + + /** + * The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + * + * @schema io.k8s.api.scheduling.v1.PriorityClass#value + */ + readonly value: number; + +} + +/** + * Converts an object of type 'KubePriorityClassProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubePriorityClassProps(obj: KubePriorityClassProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'description': obj.description, + 'globalDefault': obj.globalDefault, + 'preemptionPolicy': obj.preemptionPolicy, + 'value': obj.value, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PriorityClassList is a collection of priority classes. + * + * @schema io.k8s.api.scheduling.v1.PriorityClassList + */ +export interface KubePriorityClassListProps { + /** + * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.scheduling.v1.PriorityClassList#metadata + */ + readonly metadata?: ListMeta; + + /** + * items is the list of PriorityClasses + * + * @schema io.k8s.api.scheduling.v1.PriorityClassList#items + */ + readonly items: KubePriorityClassProps[]; + +} + +/** + * Converts an object of type 'KubePriorityClassListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubePriorityClassListProps(obj: KubePriorityClassListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubePriorityClassProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced. + * + * @schema io.k8s.api.storage.v1.CSIDriver + */ +export interface KubeCsiDriverProps { + /** + * Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.storage.v1.CSIDriver#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Specification of the CSI Driver. + * + * @schema io.k8s.api.storage.v1.CSIDriver#spec + */ + readonly spec: CsiDriverSpec; + +} + +/** + * Converts an object of type 'KubeCsiDriverProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeCsiDriverProps(obj: KubeCsiDriverProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_CsiDriverSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CSIDriverList is a collection of CSIDriver objects. + * + * @schema io.k8s.api.storage.v1.CSIDriverList + */ +export interface KubeCsiDriverListProps { + /** + * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.storage.v1.CSIDriverList#metadata + */ + readonly metadata?: ListMeta; + + /** + * items is the list of CSIDriver + * + * @schema io.k8s.api.storage.v1.CSIDriverList#items + */ + readonly items: KubeCsiDriverProps[]; + +} + +/** + * Converts an object of type 'KubeCsiDriverListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeCsiDriverListProps(obj: KubeCsiDriverListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeCsiDriverProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object. + * + * @schema io.k8s.api.storage.v1.CSINode + */ +export interface KubeCsiNodeProps { + /** + * metadata.name must be the Kubernetes node name. + * + * @schema io.k8s.api.storage.v1.CSINode#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * spec is the specification of CSINode + * + * @schema io.k8s.api.storage.v1.CSINode#spec + */ + readonly spec: CsiNodeSpec; + +} + +/** + * Converts an object of type 'KubeCsiNodeProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeCsiNodeProps(obj: KubeCsiNodeProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_CsiNodeSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CSINodeList is a collection of CSINode objects. + * + * @schema io.k8s.api.storage.v1.CSINodeList + */ +export interface KubeCsiNodeListProps { + /** + * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.storage.v1.CSINodeList#metadata + */ + readonly metadata?: ListMeta; + + /** + * items is the list of CSINode + * + * @schema io.k8s.api.storage.v1.CSINodeList#items + */ + readonly items: KubeCsiNodeProps[]; + +} + +/** + * Converts an object of type 'KubeCsiNodeListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeCsiNodeListProps(obj: KubeCsiNodeListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeCsiNodeProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes. + * + * For example this can express things like: - StorageClass "standard" has "1234 GiB" available in "topology.kubernetes.io/zone=us-east1" - StorageClass "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123" + * + * The following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero + * + * The producer of these objects can decide which approach is more suitable. + * + * They are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node. + * + * @schema io.k8s.api.storage.v1.CSIStorageCapacity + */ +export interface KubeCsiStorageCapacityProps { + /** + * Standard object's metadata. The name has no particular meaning. It must be be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name. + * + * Objects are namespaced. + * + * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.storage.v1.CSIStorageCapacity#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields. + * + * The semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable. + * + * @schema io.k8s.api.storage.v1.CSIStorageCapacity#capacity + */ + readonly capacity?: Quantity; + + /** + * MaximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields. + * + * This is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim. + * + * @schema io.k8s.api.storage.v1.CSIStorageCapacity#maximumVolumeSize + */ + readonly maximumVolumeSize?: Quantity; + + /** + * NodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable. + * + * @schema io.k8s.api.storage.v1.CSIStorageCapacity#nodeTopology + */ + readonly nodeTopology?: LabelSelector; + + /** + * The name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable. + * + * @schema io.k8s.api.storage.v1.CSIStorageCapacity#storageClassName + */ + readonly storageClassName: string; + +} + +/** + * Converts an object of type 'KubeCsiStorageCapacityProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeCsiStorageCapacityProps(obj: KubeCsiStorageCapacityProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'capacity': obj.capacity?.value, + 'maximumVolumeSize': obj.maximumVolumeSize?.value, + 'nodeTopology': toJson_LabelSelector(obj.nodeTopology), + 'storageClassName': obj.storageClassName, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CSIStorageCapacityList is a collection of CSIStorageCapacity objects. + * + * @schema io.k8s.api.storage.v1.CSIStorageCapacityList + */ +export interface KubeCsiStorageCapacityListProps { + /** + * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.storage.v1.CSIStorageCapacityList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is the list of CSIStorageCapacity objects. + * + * @schema io.k8s.api.storage.v1.CSIStorageCapacityList#items + */ + readonly items: KubeCsiStorageCapacityProps[]; + +} + +/** + * Converts an object of type 'KubeCsiStorageCapacityListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeCsiStorageCapacityListProps(obj: KubeCsiStorageCapacityListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeCsiStorageCapacityProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. + * + * StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name. + * + * @schema io.k8s.api.storage.v1.StorageClass + */ +export interface KubeStorageClassProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.storage.v1.StorageClass#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * AllowVolumeExpansion shows whether the storage class allow volume expand + * + * @schema io.k8s.api.storage.v1.StorageClass#allowVolumeExpansion + */ + readonly allowVolumeExpansion?: boolean; + + /** + * Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. + * + * @schema io.k8s.api.storage.v1.StorageClass#allowedTopologies + */ + readonly allowedTopologies?: TopologySelectorTerm[]; + + /** + * Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. + * + * @schema io.k8s.api.storage.v1.StorageClass#mountOptions + */ + readonly mountOptions?: string[]; + + /** + * Parameters holds the parameters for the provisioner that should create volumes of this storage class. + * + * @schema io.k8s.api.storage.v1.StorageClass#parameters + */ + readonly parameters?: { [key: string]: string }; + + /** + * Provisioner indicates the type of the provisioner. + * + * @schema io.k8s.api.storage.v1.StorageClass#provisioner + */ + readonly provisioner: string; + + /** + * Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. + * + * @default Delete. + * @schema io.k8s.api.storage.v1.StorageClass#reclaimPolicy + */ + readonly reclaimPolicy?: string; + + /** + * VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. + * + * @schema io.k8s.api.storage.v1.StorageClass#volumeBindingMode + */ + readonly volumeBindingMode?: string; + +} + +/** + * Converts an object of type 'KubeStorageClassProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeStorageClassProps(obj: KubeStorageClassProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'allowVolumeExpansion': obj.allowVolumeExpansion, + 'allowedTopologies': obj.allowedTopologies?.map(y => toJson_TopologySelectorTerm(y)), + 'mountOptions': obj.mountOptions?.map(y => y), + 'parameters': ((obj.parameters) === undefined) ? undefined : (Object.entries(obj.parameters).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + 'provisioner': obj.provisioner, + 'reclaimPolicy': obj.reclaimPolicy, + 'volumeBindingMode': obj.volumeBindingMode, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * StorageClassList is a collection of storage classes. + * + * @schema io.k8s.api.storage.v1.StorageClassList + */ +export interface KubeStorageClassListProps { + /** + * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.storage.v1.StorageClassList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is the list of StorageClasses + * + * @schema io.k8s.api.storage.v1.StorageClassList#items + */ + readonly items: KubeStorageClassProps[]; + +} + +/** + * Converts an object of type 'KubeStorageClassListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeStorageClassListProps(obj: KubeStorageClassListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeStorageClassProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. + * + * VolumeAttachment objects are non-namespaced. + * + * @schema io.k8s.api.storage.v1.VolumeAttachment + */ +export interface KubeVolumeAttachmentProps { + /** + * Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.storage.v1.VolumeAttachment#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + * + * @schema io.k8s.api.storage.v1.VolumeAttachment#spec + */ + readonly spec: VolumeAttachmentSpec; + +} + +/** + * Converts an object of type 'KubeVolumeAttachmentProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeVolumeAttachmentProps(obj: KubeVolumeAttachmentProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_VolumeAttachmentSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * VolumeAttachmentList is a collection of VolumeAttachment objects. + * + * @schema io.k8s.api.storage.v1.VolumeAttachmentList + */ +export interface KubeVolumeAttachmentListProps { + /** + * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.storage.v1.VolumeAttachmentList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is the list of VolumeAttachments + * + * @schema io.k8s.api.storage.v1.VolumeAttachmentList#items + */ + readonly items: KubeVolumeAttachmentProps[]; + +} + +/** + * Converts an object of type 'KubeVolumeAttachmentListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeVolumeAttachmentListProps(obj: KubeVolumeAttachmentListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeVolumeAttachmentProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes. + * + * For example this can express things like: - StorageClass "standard" has "1234 GiB" available in "topology.kubernetes.io/zone=us-east1" - StorageClass "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123" + * + * The following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero + * + * The producer of these objects can decide which approach is more suitable. + * + * They are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node. + * + * @schema io.k8s.api.storage.v1beta1.CSIStorageCapacity + */ +export interface KubeCsiStorageCapacityV1Beta1Props { + /** + * Standard object's metadata. The name has no particular meaning. It must be be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name. + * + * Objects are namespaced. + * + * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.storage.v1beta1.CSIStorageCapacity#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields. + * + * The semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable. + * + * @schema io.k8s.api.storage.v1beta1.CSIStorageCapacity#capacity + */ + readonly capacity?: Quantity; + + /** + * MaximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields. + * + * This is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim. + * + * @schema io.k8s.api.storage.v1beta1.CSIStorageCapacity#maximumVolumeSize + */ + readonly maximumVolumeSize?: Quantity; + + /** + * NodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable. + * + * @schema io.k8s.api.storage.v1beta1.CSIStorageCapacity#nodeTopology + */ + readonly nodeTopology?: LabelSelector; + + /** + * The name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable. + * + * @schema io.k8s.api.storage.v1beta1.CSIStorageCapacity#storageClassName + */ + readonly storageClassName: string; + +} + +/** + * Converts an object of type 'KubeCsiStorageCapacityV1Beta1Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeCsiStorageCapacityV1Beta1Props(obj: KubeCsiStorageCapacityV1Beta1Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'capacity': obj.capacity?.value, + 'maximumVolumeSize': obj.maximumVolumeSize?.value, + 'nodeTopology': toJson_LabelSelector(obj.nodeTopology), + 'storageClassName': obj.storageClassName, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CSIStorageCapacityList is a collection of CSIStorageCapacity objects. + * + * @schema io.k8s.api.storage.v1beta1.CSIStorageCapacityList + */ +export interface KubeCsiStorageCapacityListV1Beta1Props { + /** + * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.storage.v1beta1.CSIStorageCapacityList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is the list of CSIStorageCapacity objects. + * + * @schema io.k8s.api.storage.v1beta1.CSIStorageCapacityList#items + */ + readonly items: KubeCsiStorageCapacityV1Beta1Props[]; + +} + +/** + * Converts an object of type 'KubeCsiStorageCapacityListV1Beta1Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeCsiStorageCapacityListV1Beta1Props(obj: KubeCsiStorageCapacityListV1Beta1Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeCsiStorageCapacityV1Beta1Props(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition + */ +export interface KubeCustomResourceDefinitionProps { + /** + * Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * spec describes how the user wants the resources to appear + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition#spec + */ + readonly spec: CustomResourceDefinitionSpec; + +} + +/** + * Converts an object of type 'KubeCustomResourceDefinitionProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeCustomResourceDefinitionProps(obj: KubeCustomResourceDefinitionProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_CustomResourceDefinitionSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CustomResourceDefinitionList is a list of CustomResourceDefinition objects. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList + */ +export interface KubeCustomResourceDefinitionListProps { + /** + * Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList#metadata + */ + readonly metadata?: ListMeta; + + /** + * items list individual CustomResourceDefinition objects + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList#items + */ + readonly items: KubeCustomResourceDefinitionProps[]; + +} + +/** + * Converts an object of type 'KubeCustomResourceDefinitionListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeCustomResourceDefinitionListProps(obj: KubeCustomResourceDefinitionListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeCustomResourceDefinitionProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Status is a return value for calls that don't return other objects. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Status + */ +export interface KubeStatusProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Status#metadata + */ + readonly metadata?: ListMeta; + + /** + * Suggested HTTP return code for this status, 0 if not set. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Status#code + */ + readonly code?: number; + + /** + * Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Status#details + */ + readonly details?: StatusDetails; + + /** + * A human-readable description of the status of this operation. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Status#message + */ + readonly message?: string; + + /** + * A machine-readable description of why this operation is in the "Failure" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Status#reason + */ + readonly reason?: string; + +} + +/** + * Converts an object of type 'KubeStatusProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeStatusProps(obj: KubeStatusProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'code': obj.code, + 'details': toJson_StatusDetails(obj.details), + 'message': obj.message, + 'reason': obj.reason, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * APIService represents a server for a particular GroupVersion. Name must be "version.group". + * + * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService + */ +export interface KubeApiServiceProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec contains information for locating and communicating with a server + * + * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService#spec + */ + readonly spec?: ApiServiceSpec; + +} + +/** + * Converts an object of type 'KubeApiServiceProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeApiServiceProps(obj: KubeApiServiceProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_ApiServiceSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * APIServiceList is a list of APIService objects. + * + * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList + */ +export interface KubeApiServiceListProps { + /** + * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is the list of APIService + * + * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList#items + */ + readonly items: KubeApiServiceProps[]; + +} + +/** + * Converts an object of type 'KubeApiServiceListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeApiServiceListProps(obj: KubeApiServiceListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeApiServiceProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta + */ +export interface ObjectMeta { + /** + * Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#annotations + */ + readonly annotations?: { [key: string]: string }; + + /** + * CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + * + * Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#creationTimestamp + */ + readonly creationTimestamp?: Date; + + /** + * Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#deletionGracePeriodSeconds + */ + readonly deletionGracePeriodSeconds?: number; + + /** + * DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + * + * Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#deletionTimestamp + */ + readonly deletionTimestamp?: Date; + + /** + * Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#finalizers + */ + readonly finalizers?: string[]; + + /** + * GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + * + * If this field is specified and the generated name exists, the server will return a 409. + * + * Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#generateName + */ + readonly generateName?: string; + + /** + * A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#generation + */ + readonly generation?: number; + + /** + * Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#labels + */ + readonly labels?: { [key: string]: string }; + + /** + * ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#managedFields + */ + readonly managedFields?: ManagedFieldsEntry[]; + + /** + * Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#name + */ + readonly name?: string; + + /** + * Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + * + * Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#namespace + */ + readonly namespace?: string; + + /** + * List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#ownerReferences + */ + readonly ownerReferences?: OwnerReference[]; + + /** + * An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + * + * Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#resourceVersion + */ + readonly resourceVersion?: string; + + /** + * Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#selfLink + */ + readonly selfLink?: string; + + /** + * UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + * + * Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#uid + */ + readonly uid?: string; + +} + +/** + * Converts an object of type 'ObjectMeta' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ObjectMeta(obj: ObjectMeta | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'annotations': ((obj.annotations) === undefined) ? undefined : (Object.entries(obj.annotations).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + 'creationTimestamp': obj.creationTimestamp?.toISOString(), + 'deletionGracePeriodSeconds': obj.deletionGracePeriodSeconds, + 'deletionTimestamp': obj.deletionTimestamp?.toISOString(), + 'finalizers': obj.finalizers?.map(y => y), + 'generateName': obj.generateName, + 'generation': obj.generation, + 'labels': ((obj.labels) === undefined) ? undefined : (Object.entries(obj.labels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + 'managedFields': obj.managedFields?.map(y => toJson_ManagedFieldsEntry(y)), + 'name': obj.name, + 'namespace': obj.namespace, + 'ownerReferences': obj.ownerReferences?.map(y => toJson_OwnerReference(y)), + 'resourceVersion': obj.resourceVersion, + 'selfLink': obj.selfLink, + 'uid': obj.uid, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * MutatingWebhook describes an admission webhook and the resources and operations it applies to. + * + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook + */ +export interface MutatingWebhook { + /** + * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. + * + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#admissionReviewVersions + */ + readonly admissionReviewVersions: string[]; + + /** + * ClientConfig defines how to communicate with the hook. Required + * + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#clientConfig + */ + readonly clientConfig: WebhookClientConfig; + + /** + * FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. + * + * @default Fail. + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#failurePolicy + */ + readonly failurePolicy?: string; + + /** + * matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + * + * - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. + * + * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. + * + * Defaults to "Equivalent" + * + * @default Equivalent" + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#matchPolicy + */ + readonly matchPolicy?: string; + + /** + * The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. + * + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#name + */ + readonly name: string; + + /** + * NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. + * + * For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { + * "matchExpressions": [ + * { + * "key": "runlevel", + * "operator": "NotIn", + * "values": [ + * "0", + * "1" + * ] + * } + * ] + * } + * + * If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { + * "matchExpressions": [ + * { + * "key": "environment", + * "operator": "In", + * "values": [ + * "prod", + * "staging" + * ] + * } + * ] + * } + * + * See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors. + * + * Default to the empty LabelSelector, which matches everything. + * + * @default the empty LabelSelector, which matches everything. + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#namespaceSelector + */ + readonly namespaceSelector?: LabelSelector; + + /** + * ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. + * + * @default the empty LabelSelector, which matches everything. + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#objectSelector + */ + readonly objectSelector?: LabelSelector; + + /** + * reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". + * + * Never: the webhook will not be called more than once in a single admission evaluation. + * + * IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. + * + * Defaults to "Never". + * + * @default Never". + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#reinvocationPolicy + */ + readonly reinvocationPolicy?: string; + + /** + * Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. + * + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#rules + */ + readonly rules?: RuleWithOperations[]; + + /** + * SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. + * + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#sideEffects + */ + readonly sideEffects: string; + + /** + * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. + * + * @default 10 seconds. + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#timeoutSeconds + */ + readonly timeoutSeconds?: number; + +} + +/** + * Converts an object of type 'MutatingWebhook' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_MutatingWebhook(obj: MutatingWebhook | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'admissionReviewVersions': obj.admissionReviewVersions?.map(y => y), + 'clientConfig': toJson_WebhookClientConfig(obj.clientConfig), + 'failurePolicy': obj.failurePolicy, + 'matchPolicy': obj.matchPolicy, + 'name': obj.name, + 'namespaceSelector': toJson_LabelSelector(obj.namespaceSelector), + 'objectSelector': toJson_LabelSelector(obj.objectSelector), + 'reinvocationPolicy': obj.reinvocationPolicy, + 'rules': obj.rules?.map(y => toJson_RuleWithOperations(y)), + 'sideEffects': obj.sideEffects, + 'timeoutSeconds': obj.timeoutSeconds, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta + */ +export interface ListMeta { + /** + * continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta#continue + */ + readonly continue?: string; + + /** + * remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta#remainingItemCount + */ + readonly remainingItemCount?: number; + + /** + * String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta#resourceVersion + */ + readonly resourceVersion?: string; + + /** + * Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta#selfLink + */ + readonly selfLink?: string; + +} + +/** + * Converts an object of type 'ListMeta' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ListMeta(obj: ListMeta | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'continue': obj.continue, + 'remainingItemCount': obj.remainingItemCount, + 'resourceVersion': obj.resourceVersion, + 'selfLink': obj.selfLink, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ValidatingWebhook describes an admission webhook and the resources and operations it applies to. + * + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook + */ +export interface ValidatingWebhook { + /** + * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. + * + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#admissionReviewVersions + */ + readonly admissionReviewVersions: string[]; + + /** + * ClientConfig defines how to communicate with the hook. Required + * + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#clientConfig + */ + readonly clientConfig: WebhookClientConfig; + + /** + * FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. + * + * @default Fail. + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#failurePolicy + */ + readonly failurePolicy?: string; + + /** + * matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + * + * - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. + * + * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. + * + * Defaults to "Equivalent" + * + * @default Equivalent" + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#matchPolicy + */ + readonly matchPolicy?: string; + + /** + * The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. + * + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#name + */ + readonly name: string; + + /** + * NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. + * + * For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { + * "matchExpressions": [ + * { + * "key": "runlevel", + * "operator": "NotIn", + * "values": [ + * "0", + * "1" + * ] + * } + * ] + * } + * + * If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { + * "matchExpressions": [ + * { + * "key": "environment", + * "operator": "In", + * "values": [ + * "prod", + * "staging" + * ] + * } + * ] + * } + * + * See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors. + * + * Default to the empty LabelSelector, which matches everything. + * + * @default the empty LabelSelector, which matches everything. + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#namespaceSelector + */ + readonly namespaceSelector?: LabelSelector; + + /** + * ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. + * + * @default the empty LabelSelector, which matches everything. + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#objectSelector + */ + readonly objectSelector?: LabelSelector; + + /** + * Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. + * + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#rules + */ + readonly rules?: RuleWithOperations[]; + + /** + * SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. + * + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#sideEffects + */ + readonly sideEffects: string; + + /** + * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. + * + * @default 10 seconds. + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#timeoutSeconds + */ + readonly timeoutSeconds?: number; + +} + +/** + * Converts an object of type 'ValidatingWebhook' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ValidatingWebhook(obj: ValidatingWebhook | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'admissionReviewVersions': obj.admissionReviewVersions?.map(y => y), + 'clientConfig': toJson_WebhookClientConfig(obj.clientConfig), + 'failurePolicy': obj.failurePolicy, + 'matchPolicy': obj.matchPolicy, + 'name': obj.name, + 'namespaceSelector': toJson_LabelSelector(obj.namespaceSelector), + 'objectSelector': toJson_LabelSelector(obj.objectSelector), + 'rules': obj.rules?.map(y => toJson_RuleWithOperations(y)), + 'sideEffects': obj.sideEffects, + 'timeoutSeconds': obj.timeoutSeconds, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * DaemonSetSpec is the specification of a daemon set. + * + * @schema io.k8s.api.apps.v1.DaemonSetSpec + */ +export interface DaemonSetSpec { + /** + * The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). + * + * @default 0 (pod will be considered available as soon as it is ready). + * @schema io.k8s.api.apps.v1.DaemonSetSpec#minReadySeconds + */ + readonly minReadySeconds?: number; + + /** + * The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + * + * @default 10. + * @schema io.k8s.api.apps.v1.DaemonSetSpec#revisionHistoryLimit + */ + readonly revisionHistoryLimit?: number; + + /** + * A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * + * @schema io.k8s.api.apps.v1.DaemonSetSpec#selector + */ + readonly selector: LabelSelector; + + /** + * An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * + * @schema io.k8s.api.apps.v1.DaemonSetSpec#template + */ + readonly template: PodTemplateSpec; + + /** + * An update strategy to replace existing DaemonSet pods with new pods. + * + * @schema io.k8s.api.apps.v1.DaemonSetSpec#updateStrategy + */ + readonly updateStrategy?: DaemonSetUpdateStrategy; + +} + +/** + * Converts an object of type 'DaemonSetSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_DaemonSetSpec(obj: DaemonSetSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'minReadySeconds': obj.minReadySeconds, + 'revisionHistoryLimit': obj.revisionHistoryLimit, + 'selector': toJson_LabelSelector(obj.selector), + 'template': toJson_PodTemplateSpec(obj.template), + 'updateStrategy': toJson_DaemonSetUpdateStrategy(obj.updateStrategy), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * DeploymentSpec is the specification of the desired behavior of the Deployment. + * + * @schema io.k8s.api.apps.v1.DeploymentSpec + */ +export interface DeploymentSpec { + /** + * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * + * @default 0 (pod will be considered available as soon as it is ready) + * @schema io.k8s.api.apps.v1.DeploymentSpec#minReadySeconds + */ + readonly minReadySeconds?: number; + + /** + * Indicates that the deployment is paused. + * + * @schema io.k8s.api.apps.v1.DeploymentSpec#paused + */ + readonly paused?: boolean; + + /** + * The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. + * + * @default 600s. + * @schema io.k8s.api.apps.v1.DeploymentSpec#progressDeadlineSeconds + */ + readonly progressDeadlineSeconds?: number; + + /** + * Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + * + * @default 1. + * @schema io.k8s.api.apps.v1.DeploymentSpec#replicas + */ + readonly replicas?: number; + + /** + * The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + * + * @default 10. + * @schema io.k8s.api.apps.v1.DeploymentSpec#revisionHistoryLimit + */ + readonly revisionHistoryLimit?: number; + + /** + * Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels. + * + * @schema io.k8s.api.apps.v1.DeploymentSpec#selector + */ + readonly selector: LabelSelector; + + /** + * The deployment strategy to use to replace existing pods with new ones. + * + * @schema io.k8s.api.apps.v1.DeploymentSpec#strategy + */ + readonly strategy?: DeploymentStrategy; + + /** + * Template describes the pods that will be created. + * + * @schema io.k8s.api.apps.v1.DeploymentSpec#template + */ + readonly template: PodTemplateSpec; + +} + +/** + * Converts an object of type 'DeploymentSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_DeploymentSpec(obj: DeploymentSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'minReadySeconds': obj.minReadySeconds, + 'paused': obj.paused, + 'progressDeadlineSeconds': obj.progressDeadlineSeconds, + 'replicas': obj.replicas, + 'revisionHistoryLimit': obj.revisionHistoryLimit, + 'selector': toJson_LabelSelector(obj.selector), + 'strategy': toJson_DeploymentStrategy(obj.strategy), + 'template': toJson_PodTemplateSpec(obj.template), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ReplicaSetSpec is the specification of a ReplicaSet. + * + * @schema io.k8s.api.apps.v1.ReplicaSetSpec + */ +export interface ReplicaSetSpec { + /** + * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * + * @default 0 (pod will be considered available as soon as it is ready) + * @schema io.k8s.api.apps.v1.ReplicaSetSpec#minReadySeconds + */ + readonly minReadySeconds?: number; + + /** + * Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + * + * @default 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + * @schema io.k8s.api.apps.v1.ReplicaSetSpec#replicas + */ + readonly replicas?: number; + + /** + * Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * + * @schema io.k8s.api.apps.v1.ReplicaSetSpec#selector + */ + readonly selector: LabelSelector; + + /** + * Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * + * @schema io.k8s.api.apps.v1.ReplicaSetSpec#template + */ + readonly template?: PodTemplateSpec; + +} + +/** + * Converts an object of type 'ReplicaSetSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ReplicaSetSpec(obj: ReplicaSetSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'minReadySeconds': obj.minReadySeconds, + 'replicas': obj.replicas, + 'selector': toJson_LabelSelector(obj.selector), + 'template': toJson_PodTemplateSpec(obj.template), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * A StatefulSetSpec is the specification of a StatefulSet. + * + * @schema io.k8s.api.apps.v1.StatefulSetSpec + */ +export interface StatefulSetSpec { + /** + * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * + * @default 0 (pod will be considered available as soon as it is ready) + * @schema io.k8s.api.apps.v1.StatefulSetSpec#minReadySeconds + */ + readonly minReadySeconds?: number; + + /** + * persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is alpha. +optional + * + * @schema io.k8s.api.apps.v1.StatefulSetSpec#persistentVolumeClaimRetentionPolicy + */ + readonly persistentVolumeClaimRetentionPolicy?: StatefulSetPersistentVolumeClaimRetentionPolicy; + + /** + * podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. + * + * + * + * @schema io.k8s.api.apps.v1.StatefulSetSpec#podManagementPolicy + */ + readonly podManagementPolicy?: string; + + /** + * replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. + * + * @schema io.k8s.api.apps.v1.StatefulSetSpec#replicas + */ + readonly replicas?: number; + + /** + * revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. + * + * @schema io.k8s.api.apps.v1.StatefulSetSpec#revisionHistoryLimit + */ + readonly revisionHistoryLimit?: number; + + /** + * selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * + * @schema io.k8s.api.apps.v1.StatefulSetSpec#selector + */ + readonly selector: LabelSelector; + + /** + * serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where "pod-specific-string" is managed by the StatefulSet controller. + * + * @schema io.k8s.api.apps.v1.StatefulSetSpec#serviceName + */ + readonly serviceName: string; + + /** + * template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. + * + * @schema io.k8s.api.apps.v1.StatefulSetSpec#template + */ + readonly template: PodTemplateSpec; + + /** + * updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. + * + * @schema io.k8s.api.apps.v1.StatefulSetSpec#updateStrategy + */ + readonly updateStrategy?: StatefulSetUpdateStrategy; + + /** + * volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. + * + * @schema io.k8s.api.apps.v1.StatefulSetSpec#volumeClaimTemplates + */ + readonly volumeClaimTemplates?: KubePersistentVolumeClaimProps[]; + +} + +/** + * Converts an object of type 'StatefulSetSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_StatefulSetSpec(obj: StatefulSetSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'minReadySeconds': obj.minReadySeconds, + 'persistentVolumeClaimRetentionPolicy': toJson_StatefulSetPersistentVolumeClaimRetentionPolicy(obj.persistentVolumeClaimRetentionPolicy), + 'podManagementPolicy': obj.podManagementPolicy, + 'replicas': obj.replicas, + 'revisionHistoryLimit': obj.revisionHistoryLimit, + 'selector': toJson_LabelSelector(obj.selector), + 'serviceName': obj.serviceName, + 'template': toJson_PodTemplateSpec(obj.template), + 'updateStrategy': toJson_StatefulSetUpdateStrategy(obj.updateStrategy), + 'volumeClaimTemplates': obj.volumeClaimTemplates?.map(y => toJson_KubePersistentVolumeClaimProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * TokenRequestSpec contains client provided parameters of a token request. + * + * @schema io.k8s.api.authentication.v1.TokenRequestSpec + */ +export interface TokenRequestSpec { + /** + * Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences. + * + * @schema io.k8s.api.authentication.v1.TokenRequestSpec#audiences + */ + readonly audiences: string[]; + + /** + * BoundObjectRef is a reference to an object that the token will be bound to. The token will only be valid for as long as the bound object exists. NOTE: The API server's TokenReview endpoint will validate the BoundObjectRef, but other audiences may not. Keep ExpirationSeconds small if you want prompt revocation. + * + * @schema io.k8s.api.authentication.v1.TokenRequestSpec#boundObjectRef + */ + readonly boundObjectRef?: BoundObjectReference; + + /** + * ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response. + * + * @schema io.k8s.api.authentication.v1.TokenRequestSpec#expirationSeconds + */ + readonly expirationSeconds?: number; + +} + +/** + * Converts an object of type 'TokenRequestSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_TokenRequestSpec(obj: TokenRequestSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'audiences': obj.audiences?.map(y => y), + 'boundObjectRef': toJson_BoundObjectReference(obj.boundObjectRef), + 'expirationSeconds': obj.expirationSeconds, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * TokenReviewSpec is a description of the token authentication request. + * + * @schema io.k8s.api.authentication.v1.TokenReviewSpec + */ +export interface TokenReviewSpec { + /** + * Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. + * + * @schema io.k8s.api.authentication.v1.TokenReviewSpec#audiences + */ + readonly audiences?: string[]; + + /** + * Token is the opaque bearer token. + * + * @schema io.k8s.api.authentication.v1.TokenReviewSpec#token + */ + readonly token?: string; + +} + +/** + * Converts an object of type 'TokenReviewSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_TokenReviewSpec(obj: TokenReviewSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'audiences': obj.audiences?.map(y => y), + 'token': obj.token, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set + * + * @schema io.k8s.api.authorization.v1.SubjectAccessReviewSpec + */ +export interface SubjectAccessReviewSpec { + /** + * Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. + * + * @schema io.k8s.api.authorization.v1.SubjectAccessReviewSpec#extra + */ + readonly extra?: { [key: string]: string[] }; + + /** + * Groups is the groups you're testing for. + * + * @schema io.k8s.api.authorization.v1.SubjectAccessReviewSpec#groups + */ + readonly groups?: string[]; + + /** + * NonResourceAttributes describes information for a non-resource access request + * + * @schema io.k8s.api.authorization.v1.SubjectAccessReviewSpec#nonResourceAttributes + */ + readonly nonResourceAttributes?: NonResourceAttributes; + + /** + * ResourceAuthorizationAttributes describes information for a resource access request + * + * @schema io.k8s.api.authorization.v1.SubjectAccessReviewSpec#resourceAttributes + */ + readonly resourceAttributes?: ResourceAttributes; + + /** + * UID information about the requesting user. + * + * @schema io.k8s.api.authorization.v1.SubjectAccessReviewSpec#uid + */ + readonly uid?: string; + + /** + * User is the user you're testing for. If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups + * + * @schema io.k8s.api.authorization.v1.SubjectAccessReviewSpec#user + */ + readonly user?: string; + +} + +/** + * Converts an object of type 'SubjectAccessReviewSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_SubjectAccessReviewSpec(obj: SubjectAccessReviewSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'extra': ((obj.extra) === undefined) ? undefined : (Object.entries(obj.extra).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.map(y => y) }), {})), + 'groups': obj.groups?.map(y => y), + 'nonResourceAttributes': toJson_NonResourceAttributes(obj.nonResourceAttributes), + 'resourceAttributes': toJson_ResourceAttributes(obj.resourceAttributes), + 'uid': obj.uid, + 'user': obj.user, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set + * + * @schema io.k8s.api.authorization.v1.SelfSubjectAccessReviewSpec + */ +export interface SelfSubjectAccessReviewSpec { + /** + * NonResourceAttributes describes information for a non-resource access request + * + * @schema io.k8s.api.authorization.v1.SelfSubjectAccessReviewSpec#nonResourceAttributes + */ + readonly nonResourceAttributes?: NonResourceAttributes; + + /** + * ResourceAuthorizationAttributes describes information for a resource access request + * + * @schema io.k8s.api.authorization.v1.SelfSubjectAccessReviewSpec#resourceAttributes + */ + readonly resourceAttributes?: ResourceAttributes; + +} + +/** + * Converts an object of type 'SelfSubjectAccessReviewSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_SelfSubjectAccessReviewSpec(obj: SelfSubjectAccessReviewSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'nonResourceAttributes': toJson_NonResourceAttributes(obj.nonResourceAttributes), + 'resourceAttributes': toJson_ResourceAttributes(obj.resourceAttributes), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview. + * + * @schema io.k8s.api.authorization.v1.SelfSubjectRulesReviewSpec + */ +export interface SelfSubjectRulesReviewSpec { + /** + * Namespace to evaluate rules for. Required. + * + * @schema io.k8s.api.authorization.v1.SelfSubjectRulesReviewSpec#namespace + */ + readonly namespace?: string; + +} + +/** + * Converts an object of type 'SelfSubjectRulesReviewSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_SelfSubjectRulesReviewSpec(obj: SelfSubjectRulesReviewSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'namespace': obj.namespace, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * specification of a horizontal pod autoscaler. + * + * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec + */ +export interface HorizontalPodAutoscalerSpec { + /** + * upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. + * + * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec#maxReplicas + */ + readonly maxReplicas: number; + + /** + * minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. + * + * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec#minReplicas + */ + readonly minReplicas?: number; + + /** + * reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource. + * + * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec#scaleTargetRef + */ + readonly scaleTargetRef: CrossVersionObjectReference; + + /** + * target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used. + * + * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec#targetCPUUtilizationPercentage + */ + readonly targetCpuUtilizationPercentage?: number; + +} + +/** + * Converts an object of type 'HorizontalPodAutoscalerSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_HorizontalPodAutoscalerSpec(obj: HorizontalPodAutoscalerSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'maxReplicas': obj.maxReplicas, + 'minReplicas': obj.minReplicas, + 'scaleTargetRef': toJson_CrossVersionObjectReference(obj.scaleTargetRef), + 'targetCPUUtilizationPercentage': obj.targetCpuUtilizationPercentage, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ScaleSpec describes the attributes of a scale subresource. + * + * @schema io.k8s.api.autoscaling.v1.ScaleSpec + */ +export interface ScaleSpec { + /** + * desired number of instances for the scaled object. + * + * @schema io.k8s.api.autoscaling.v1.ScaleSpec#replicas + */ + readonly replicas?: number; + +} + +/** + * Converts an object of type 'ScaleSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ScaleSpec(obj: ScaleSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'replicas': obj.replicas, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler. + * + * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerSpec + */ +export interface HorizontalPodAutoscalerSpecV2 { + /** + * behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). If not set, the default HPAScalingRules for scale up and scale down are used. + * + * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerSpec#behavior + */ + readonly behavior?: HorizontalPodAutoscalerBehaviorV2; + + /** + * maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. + * + * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerSpec#maxReplicas + */ + readonly maxReplicas: number; + + /** + * metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization. + * + * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerSpec#metrics + */ + readonly metrics?: MetricSpecV2[]; + + /** + * minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. + * + * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerSpec#minReplicas + */ + readonly minReplicas?: number; + + /** + * scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. + * + * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerSpec#scaleTargetRef + */ + readonly scaleTargetRef: CrossVersionObjectReferenceV2; + +} + +/** + * Converts an object of type 'HorizontalPodAutoscalerSpecV2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_HorizontalPodAutoscalerSpecV2(obj: HorizontalPodAutoscalerSpecV2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'behavior': toJson_HorizontalPodAutoscalerBehaviorV2(obj.behavior), + 'maxReplicas': obj.maxReplicas, + 'metrics': obj.metrics?.map(y => toJson_MetricSpecV2(y)), + 'minReplicas': obj.minReplicas, + 'scaleTargetRef': toJson_CrossVersionObjectReferenceV2(obj.scaleTargetRef), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler. + * + * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerSpec + */ +export interface HorizontalPodAutoscalerSpecV2Beta2 { + /** + * behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). If not set, the default HPAScalingRules for scale up and scale down are used. + * + * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerSpec#behavior + */ + readonly behavior?: HorizontalPodAutoscalerBehaviorV2Beta2; + + /** + * maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. + * + * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerSpec#maxReplicas + */ + readonly maxReplicas: number; + + /** + * metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization. + * + * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerSpec#metrics + */ + readonly metrics?: MetricSpecV2Beta2[]; + + /** + * minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. + * + * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerSpec#minReplicas + */ + readonly minReplicas?: number; + + /** + * scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. + * + * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerSpec#scaleTargetRef + */ + readonly scaleTargetRef: CrossVersionObjectReferenceV2Beta2; + +} + +/** + * Converts an object of type 'HorizontalPodAutoscalerSpecV2Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_HorizontalPodAutoscalerSpecV2Beta2(obj: HorizontalPodAutoscalerSpecV2Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'behavior': toJson_HorizontalPodAutoscalerBehaviorV2Beta2(obj.behavior), + 'maxReplicas': obj.maxReplicas, + 'metrics': obj.metrics?.map(y => toJson_MetricSpecV2Beta2(y)), + 'minReplicas': obj.minReplicas, + 'scaleTargetRef': toJson_CrossVersionObjectReferenceV2Beta2(obj.scaleTargetRef), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CronJobSpec describes how the job execution will look like and when it will actually run. + * + * @schema io.k8s.api.batch.v1.CronJobSpec + */ +export interface CronJobSpec { + /** + * Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one + * + * + * + * @schema io.k8s.api.batch.v1.CronJobSpec#concurrencyPolicy + */ + readonly concurrencyPolicy?: string; + + /** + * The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1. + * + * @default 1. + * @schema io.k8s.api.batch.v1.CronJobSpec#failedJobsHistoryLimit + */ + readonly failedJobsHistoryLimit?: number; + + /** + * Specifies the job that will be created when executing a CronJob. + * + * @schema io.k8s.api.batch.v1.CronJobSpec#jobTemplate + */ + readonly jobTemplate: JobTemplateSpec; + + /** + * The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. + * + * @schema io.k8s.api.batch.v1.CronJobSpec#schedule + */ + readonly schedule: string; + + /** + * Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. + * + * @schema io.k8s.api.batch.v1.CronJobSpec#startingDeadlineSeconds + */ + readonly startingDeadlineSeconds?: number; + + /** + * The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3. + * + * @default 3. + * @schema io.k8s.api.batch.v1.CronJobSpec#successfulJobsHistoryLimit + */ + readonly successfulJobsHistoryLimit?: number; + + /** + * This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. + * + * @default false. + * @schema io.k8s.api.batch.v1.CronJobSpec#suspend + */ + readonly suspend?: boolean; + + /** + * The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones This is beta field and must be enabled via the `CronJobTimeZone` feature gate. + * + * @schema io.k8s.api.batch.v1.CronJobSpec#timeZone + */ + readonly timeZone?: string; + +} + +/** + * Converts an object of type 'CronJobSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CronJobSpec(obj: CronJobSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'concurrencyPolicy': obj.concurrencyPolicy, + 'failedJobsHistoryLimit': obj.failedJobsHistoryLimit, + 'jobTemplate': toJson_JobTemplateSpec(obj.jobTemplate), + 'schedule': obj.schedule, + 'startingDeadlineSeconds': obj.startingDeadlineSeconds, + 'successfulJobsHistoryLimit': obj.successfulJobsHistoryLimit, + 'suspend': obj.suspend, + 'timeZone': obj.timeZone, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * JobSpec describes how the job execution will look like. + * + * @schema io.k8s.api.batch.v1.JobSpec + */ +export interface JobSpec { + /** + * Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again. + * + * @schema io.k8s.api.batch.v1.JobSpec#activeDeadlineSeconds + */ + readonly activeDeadlineSeconds?: number; + + /** + * Specifies the number of retries before marking this job failed. Defaults to 6 + * + * @default 6 + * @schema io.k8s.api.batch.v1.JobSpec#backoffLimit + */ + readonly backoffLimit?: number; + + /** + * CompletionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`. + * + * `NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other. + * + * `Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`. + * + * More completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job. + * + * @schema io.k8s.api.batch.v1.JobSpec#completionMode + */ + readonly completionMode?: string; + + /** + * Specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + * + * @schema io.k8s.api.batch.v1.JobSpec#completions + */ + readonly completions?: number; + + /** + * manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector + * + * @schema io.k8s.api.batch.v1.JobSpec#manualSelector + */ + readonly manualSelector?: boolean; + + /** + * Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + * + * @schema io.k8s.api.batch.v1.JobSpec#parallelism + */ + readonly parallelism?: number; + + /** + * Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure. + * + * This field is alpha-level. To use this field, you must enable the `JobPodFailurePolicy` feature gate (disabled by default). + * + * @schema io.k8s.api.batch.v1.JobSpec#podFailurePolicy + */ + readonly podFailurePolicy?: PodFailurePolicy; + + /** + * A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * + * @schema io.k8s.api.batch.v1.JobSpec#selector + */ + readonly selector?: LabelSelector; + + /** + * Suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false. + * + * @default false. + * @schema io.k8s.api.batch.v1.JobSpec#suspend + */ + readonly suspend?: boolean; + + /** + * Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + * + * @schema io.k8s.api.batch.v1.JobSpec#template + */ + readonly template: PodTemplateSpec; + + /** + * ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. + * + * @schema io.k8s.api.batch.v1.JobSpec#ttlSecondsAfterFinished + */ + readonly ttlSecondsAfterFinished?: number; + +} + +/** + * Converts an object of type 'JobSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_JobSpec(obj: JobSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'activeDeadlineSeconds': obj.activeDeadlineSeconds, + 'backoffLimit': obj.backoffLimit, + 'completionMode': obj.completionMode, + 'completions': obj.completions, + 'manualSelector': obj.manualSelector, + 'parallelism': obj.parallelism, + 'podFailurePolicy': toJson_PodFailurePolicy(obj.podFailurePolicy), + 'selector': toJson_LabelSelector(obj.selector), + 'suspend': obj.suspend, + 'template': toJson_PodTemplateSpec(obj.template), + 'ttlSecondsAfterFinished': obj.ttlSecondsAfterFinished, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CertificateSigningRequestSpec contains the certificate request. + * + * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec + */ +export interface CertificateSigningRequestSpec { + /** + * expirationSeconds is the requested duration of validity of the issued certificate. The certificate signer may issue a certificate with a different validity duration so a client must check the delta between the notBefore and and notAfter fields in the issued certificate to determine the actual duration. + * + * The v1.22+ in-tree implementations of the well-known Kubernetes signers will honor this field as long as the requested duration is not greater than the maximum duration they will honor per the --cluster-signing-duration CLI flag to the Kubernetes controller manager. + * + * Certificate signers may not honor this field for various reasons: + * + * 1. Old signer that is unaware of the field (such as the in-tree + * implementations prior to v1.22) + * 2. Signer whose configured maximum is shorter than the requested duration + * 3. Signer whose configured minimum is longer than the requested duration + * + * The minimum valid value for expirationSeconds is 600, i.e. 10 minutes. + * + * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec#expirationSeconds + */ + readonly expirationSeconds?: number; + + /** + * extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. + * + * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec#extra + */ + readonly extra?: { [key: string]: string[] }; + + /** + * groups contains group membership of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. + * + * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec#groups + */ + readonly groups?: string[]; + + /** + * request contains an x509 certificate signing request encoded in a "CERTIFICATE REQUEST" PEM block. When serialized as JSON or YAML, the data is additionally base64-encoded. + * + * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec#request + */ + readonly request: string; + + /** + * signerName indicates the requested signer, and is a qualified name. + * + * List/watch requests for CertificateSigningRequests can filter on this field using a "spec.signerName=NAME" fieldSelector. + * + * Well-known Kubernetes signers are: + * 1. "kubernetes.io/kube-apiserver-client": issues client certificates that can be used to authenticate to kube-apiserver. + * Requests for this signer are never auto-approved by kube-controller-manager, can be issued by the "csrsigning" controller in kube-controller-manager. + * 2. "kubernetes.io/kube-apiserver-client-kubelet": issues client certificates that kubelets use to authenticate to kube-apiserver. + * Requests for this signer can be auto-approved by the "csrapproving" controller in kube-controller-manager, and can be issued by the "csrsigning" controller in kube-controller-manager. + * 3. "kubernetes.io/kubelet-serving" issues serving certificates that kubelets use to serve TLS endpoints, which kube-apiserver can connect to securely. + * Requests for this signer are never auto-approved by kube-controller-manager, and can be issued by the "csrsigning" controller in kube-controller-manager. + * + * More details are available at https://k8s.io/docs/reference/access-authn-authz/certificate-signing-requests/#kubernetes-signers + * + * Custom signerNames can also be specified. The signer defines: + * 1. Trust distribution: how trust (CA bundles) are distributed. + * 2. Permitted subjects: and behavior when a disallowed subject is requested. + * 3. Required, permitted, or forbidden x509 extensions in the request (including whether subjectAltNames are allowed, which types, restrictions on allowed values) and behavior when a disallowed extension is requested. + * 4. Required, permitted, or forbidden key usages / extended key usages. + * 5. Expiration/certificate lifetime: whether it is fixed by the signer, configurable by the admin. + * 6. Whether or not requests for CA certificates are allowed. + * + * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec#signerName + */ + readonly signerName: string; + + /** + * uid contains the uid of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. + * + * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec#uid + */ + readonly uid?: string; + + /** + * usages specifies a set of key usages requested in the issued certificate. + * + * Requests for TLS client certificates typically request: "digital signature", "key encipherment", "client auth". + * + * Requests for TLS serving certificates typically request: "key encipherment", "digital signature", "server auth". + * + * Valid values are: + * "signing", "digital signature", "content commitment", + * "key encipherment", "key agreement", "data encipherment", + * "cert sign", "crl sign", "encipher only", "decipher only", "any", + * "server auth", "client auth", + * "code signing", "email protection", "s/mime", + * "ipsec end system", "ipsec tunnel", "ipsec user", + * "timestamping", "ocsp signing", "microsoft sgc", "netscape sgc" + * + * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec#usages + */ + readonly usages?: string[]; + + /** + * username contains the name of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. + * + * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec#username + */ + readonly username?: string; + +} + +/** + * Converts an object of type 'CertificateSigningRequestSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CertificateSigningRequestSpec(obj: CertificateSigningRequestSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'expirationSeconds': obj.expirationSeconds, + 'extra': ((obj.extra) === undefined) ? undefined : (Object.entries(obj.extra).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.map(y => y) }), {})), + 'groups': obj.groups?.map(y => y), + 'request': obj.request, + 'signerName': obj.signerName, + 'uid': obj.uid, + 'usages': obj.usages?.map(y => y), + 'username': obj.username, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * LeaseSpec is a specification of a Lease. + * + * @schema io.k8s.api.coordination.v1.LeaseSpec + */ +export interface LeaseSpec { + /** + * acquireTime is a time when the current lease was acquired. + * + * @schema io.k8s.api.coordination.v1.LeaseSpec#acquireTime + */ + readonly acquireTime?: Date; + + /** + * holderIdentity contains the identity of the holder of a current lease. + * + * @schema io.k8s.api.coordination.v1.LeaseSpec#holderIdentity + */ + readonly holderIdentity?: string; + + /** + * leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime. + * + * @schema io.k8s.api.coordination.v1.LeaseSpec#leaseDurationSeconds + */ + readonly leaseDurationSeconds?: number; + + /** + * leaseTransitions is the number of transitions of a lease between holders. + * + * @schema io.k8s.api.coordination.v1.LeaseSpec#leaseTransitions + */ + readonly leaseTransitions?: number; + + /** + * renewTime is a time when the current holder of a lease has last updated the lease. + * + * @schema io.k8s.api.coordination.v1.LeaseSpec#renewTime + */ + readonly renewTime?: Date; + +} + +/** + * Converts an object of type 'LeaseSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_LeaseSpec(obj: LeaseSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'acquireTime': obj.acquireTime?.toISOString(), + 'holderIdentity': obj.holderIdentity, + 'leaseDurationSeconds': obj.leaseDurationSeconds, + 'leaseTransitions': obj.leaseTransitions, + 'renewTime': obj.renewTime?.toISOString(), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ObjectReference contains enough information to let you inspect or modify the referred object. + * + * @schema io.k8s.api.core.v1.ObjectReference + */ +export interface ObjectReference { + /** + * API version of the referent. + * + * @schema io.k8s.api.core.v1.ObjectReference#apiVersion + */ + readonly apiVersion?: string; + + /** + * If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * + * @schema io.k8s.api.core.v1.ObjectReference#fieldPath + */ + readonly fieldPath?: string; + + /** + * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.core.v1.ObjectReference#kind + */ + readonly kind?: string; + + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * + * @schema io.k8s.api.core.v1.ObjectReference#name + */ + readonly name?: string; + + /** + * Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * + * @schema io.k8s.api.core.v1.ObjectReference#namespace + */ + readonly namespace?: string; + + /** + * Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * + * @schema io.k8s.api.core.v1.ObjectReference#resourceVersion + */ + readonly resourceVersion?: string; + + /** + * UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + * + * @schema io.k8s.api.core.v1.ObjectReference#uid + */ + readonly uid?: string; + +} + +/** + * Converts an object of type 'ObjectReference' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ObjectReference(obj: ObjectReference | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'apiVersion': obj.apiVersion, + 'fieldPath': obj.fieldPath, + 'kind': obj.kind, + 'name': obj.name, + 'namespace': obj.namespace, + 'resourceVersion': obj.resourceVersion, + 'uid': obj.uid, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Information about the condition of a component. + * + * @schema io.k8s.api.core.v1.ComponentCondition + */ +export interface ComponentCondition { + /** + * Condition error code for a component. For example, a health check error code. + * + * @schema io.k8s.api.core.v1.ComponentCondition#error + */ + readonly error?: string; + + /** + * Message about the condition for a component. For example, information about a health check. + * + * @schema io.k8s.api.core.v1.ComponentCondition#message + */ + readonly message?: string; + + /** + * Status of the condition for a component. Valid values for "Healthy": "True", "False", or "Unknown". + * + * @schema io.k8s.api.core.v1.ComponentCondition#status + */ + readonly status: string; + + /** + * Type of condition for a component. Valid value: "Healthy" + * + * @schema io.k8s.api.core.v1.ComponentCondition#type + */ + readonly type: string; + +} + +/** + * Converts an object of type 'ComponentCondition' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ComponentCondition(obj: ComponentCondition | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'error': obj.error, + 'message': obj.message, + 'status': obj.status, + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given: + * + * { + * Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], + * Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] + * } + * + * The resulting set of endpoints can be viewed as: + * + * a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], + * b: [ 10.10.1.1:309, 10.10.2.2:309 ] + * + * @schema io.k8s.api.core.v1.EndpointSubset + */ +export interface EndpointSubset { + /** + * IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize. + * + * @schema io.k8s.api.core.v1.EndpointSubset#addresses + */ + readonly addresses?: EndpointAddress[]; + + /** + * IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check. + * + * @schema io.k8s.api.core.v1.EndpointSubset#notReadyAddresses + */ + readonly notReadyAddresses?: EndpointAddress[]; + + /** + * Port numbers available on the related IP addresses. + * + * @schema io.k8s.api.core.v1.EndpointSubset#ports + */ + readonly ports?: EndpointPort[]; + +} + +/** + * Converts an object of type 'EndpointSubset' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_EndpointSubset(obj: EndpointSubset | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'addresses': obj.addresses?.map(y => toJson_EndpointAddress(y)), + 'notReadyAddresses': obj.notReadyAddresses?.map(y => toJson_EndpointAddress(y)), + 'ports': obj.ports?.map(y => toJson_EndpointPort(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * EventSource contains information for an event. + * + * @schema io.k8s.api.core.v1.EventSource + */ +export interface EventSource { + /** + * Component from which the event is generated. + * + * @schema io.k8s.api.core.v1.EventSource#component + */ + readonly component?: string; + + /** + * Node name on which the event is generated. + * + * @schema io.k8s.api.core.v1.EventSource#host + */ + readonly host?: string; + +} + +/** + * Converts an object of type 'EventSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_EventSource(obj: EventSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'component': obj.component, + 'host': obj.host, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. How often to update the EventSeries is up to the event reporters. The default event reporter in "k8s.io/client-go/tools/events/event_broadcaster.go" shows how this struct is updated on heartbeats and can guide customized reporter implementations. + * + * @schema io.k8s.api.events.v1.EventSeries + */ +export interface EventSeries { + /** + * count is the number of occurrences in this series up to the last heartbeat time. + * + * @schema io.k8s.api.events.v1.EventSeries#count + */ + readonly count: number; + + /** + * lastObservedTime is the time when last Event from the series was seen before last heartbeat. + * + * @schema io.k8s.api.events.v1.EventSeries#lastObservedTime + */ + readonly lastObservedTime: Date; + +} + +/** + * Converts an object of type 'EventSeries' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_EventSeries(obj: EventSeries | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'count': obj.count, + 'lastObservedTime': obj.lastObservedTime?.toISOString(), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * LimitRangeSpec defines a min/max usage limit for resources that match on kind. + * + * @schema io.k8s.api.core.v1.LimitRangeSpec + */ +export interface LimitRangeSpec { + /** + * Limits is the list of LimitRangeItem objects that are enforced. + * + * @schema io.k8s.api.core.v1.LimitRangeSpec#limits + */ + readonly limits: LimitRangeItem[]; + +} + +/** + * Converts an object of type 'LimitRangeSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_LimitRangeSpec(obj: LimitRangeSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'limits': obj.limits?.map(y => toJson_LimitRangeItem(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * NamespaceSpec describes the attributes on a Namespace. + * + * @schema io.k8s.api.core.v1.NamespaceSpec + */ +export interface NamespaceSpec { + /** + * Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ + * + * @schema io.k8s.api.core.v1.NamespaceSpec#finalizers + */ + readonly finalizers?: string[]; + +} + +/** + * Converts an object of type 'NamespaceSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_NamespaceSpec(obj: NamespaceSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'finalizers': obj.finalizers?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * NodeSpec describes the attributes that a node is created with. + * + * @schema io.k8s.api.core.v1.NodeSpec + */ +export interface NodeSpec { + /** + * Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed from Kubelets as of 1.24 and will be fully removed in 1.26. + * + * @schema io.k8s.api.core.v1.NodeSpec#configSource + */ + readonly configSource?: NodeConfigSource; + + /** + * Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966 + * + * @schema io.k8s.api.core.v1.NodeSpec#externalID + */ + readonly externalId?: string; + + /** + * PodCIDR represents the pod IP range assigned to the node. + * + * @schema io.k8s.api.core.v1.NodeSpec#podCIDR + */ + readonly podCidr?: string; + + /** + * podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6. + * + * @schema io.k8s.api.core.v1.NodeSpec#podCIDRs + */ + readonly podCidRs?: string[]; + + /** + * ID of the node assigned by the cloud provider in the format: :// + * + * @schema io.k8s.api.core.v1.NodeSpec#providerID + */ + readonly providerId?: string; + + /** + * If specified, the node's taints. + * + * @schema io.k8s.api.core.v1.NodeSpec#taints + */ + readonly taints?: Taint[]; + + /** + * Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration + * + * @schema io.k8s.api.core.v1.NodeSpec#unschedulable + */ + readonly unschedulable?: boolean; + +} + +/** + * Converts an object of type 'NodeSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_NodeSpec(obj: NodeSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'configSource': toJson_NodeConfigSource(obj.configSource), + 'externalID': obj.externalId, + 'podCIDR': obj.podCidr, + 'podCIDRs': obj.podCidRs?.map(y => y), + 'providerID': obj.providerId, + 'taints': obj.taints?.map(y => toJson_Taint(y)), + 'unschedulable': obj.unschedulable, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PersistentVolumeSpec is the specification of a persistent volume. + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec + */ +export interface PersistentVolumeSpec { + /** + * accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#accessModes + */ + readonly accessModes?: string[]; + + /** + * awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#awsElasticBlockStore + */ + readonly awsElasticBlockStore?: AwsElasticBlockStoreVolumeSource; + + /** + * azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#azureDisk + */ + readonly azureDisk?: AzureDiskVolumeSource; + + /** + * azureFile represents an Azure File Service mount on the host and bind mount to the pod. + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#azureFile + */ + readonly azureFile?: AzureFilePersistentVolumeSource; + + /** + * capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#capacity + */ + readonly capacity?: { [key: string]: Quantity }; + + /** + * cephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#cephfs + */ + readonly cephfs?: CephFsPersistentVolumeSource; + + /** + * cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#cinder + */ + readonly cinder?: CinderPersistentVolumeSource; + + /** + * claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#claimRef + */ + readonly claimRef?: ObjectReference; + + /** + * csi represents storage that is handled by an external CSI driver (Beta feature). + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#csi + */ + readonly csi?: CsiPersistentVolumeSource; + + /** + * fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#fc + */ + readonly fc?: FcVolumeSource; + + /** + * flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#flexVolume + */ + readonly flexVolume?: FlexPersistentVolumeSource; + + /** + * flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#flocker + */ + readonly flocker?: FlockerVolumeSource; + + /** + * gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#gcePersistentDisk + */ + readonly gcePersistentDisk?: GcePersistentDiskVolumeSource; + + /** + * glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#glusterfs + */ + readonly glusterfs?: GlusterfsPersistentVolumeSource; + + /** + * hostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#hostPath + */ + readonly hostPath?: HostPathVolumeSource; + + /** + * iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#iscsi + */ + readonly iscsi?: IscsiPersistentVolumeSource; + + /** + * local represents directly-attached storage with node affinity + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#local + */ + readonly local?: LocalVolumeSource; + + /** + * mountOptions is the list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#mountOptions + */ + readonly mountOptions?: string[]; + + /** + * nfs represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#nfs + */ + readonly nfs?: NfsVolumeSource; + + /** + * nodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#nodeAffinity + */ + readonly nodeAffinity?: VolumeNodeAffinity; + + /** + * persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming + * + * + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#persistentVolumeReclaimPolicy + */ + readonly persistentVolumeReclaimPolicy?: string; + + /** + * photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#photonPersistentDisk + */ + readonly photonPersistentDisk?: PhotonPersistentDiskVolumeSource; + + /** + * portworxVolume represents a portworx volume attached and mounted on kubelets host machine + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#portworxVolume + */ + readonly portworxVolume?: PortworxVolumeSource; + + /** + * quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#quobyte + */ + readonly quobyte?: QuobyteVolumeSource; + + /** + * rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#rbd + */ + readonly rbd?: RbdPersistentVolumeSource; + + /** + * scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#scaleIO + */ + readonly scaleIo?: ScaleIoPersistentVolumeSource; + + /** + * storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#storageClassName + */ + readonly storageClassName?: string; + + /** + * storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#storageos + */ + readonly storageos?: StorageOsPersistentVolumeSource; + + /** + * volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#volumeMode + */ + readonly volumeMode?: string; + + /** + * vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#vsphereVolume + */ + readonly vsphereVolume?: VsphereVirtualDiskVolumeSource; + +} + +/** + * Converts an object of type 'PersistentVolumeSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PersistentVolumeSpec(obj: PersistentVolumeSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'accessModes': obj.accessModes?.map(y => y), + 'awsElasticBlockStore': toJson_AwsElasticBlockStoreVolumeSource(obj.awsElasticBlockStore), + 'azureDisk': toJson_AzureDiskVolumeSource(obj.azureDisk), + 'azureFile': toJson_AzureFilePersistentVolumeSource(obj.azureFile), + 'capacity': ((obj.capacity) === undefined) ? undefined : (Object.entries(obj.capacity).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), + 'cephfs': toJson_CephFsPersistentVolumeSource(obj.cephfs), + 'cinder': toJson_CinderPersistentVolumeSource(obj.cinder), + 'claimRef': toJson_ObjectReference(obj.claimRef), + 'csi': toJson_CsiPersistentVolumeSource(obj.csi), + 'fc': toJson_FcVolumeSource(obj.fc), + 'flexVolume': toJson_FlexPersistentVolumeSource(obj.flexVolume), + 'flocker': toJson_FlockerVolumeSource(obj.flocker), + 'gcePersistentDisk': toJson_GcePersistentDiskVolumeSource(obj.gcePersistentDisk), + 'glusterfs': toJson_GlusterfsPersistentVolumeSource(obj.glusterfs), + 'hostPath': toJson_HostPathVolumeSource(obj.hostPath), + 'iscsi': toJson_IscsiPersistentVolumeSource(obj.iscsi), + 'local': toJson_LocalVolumeSource(obj.local), + 'mountOptions': obj.mountOptions?.map(y => y), + 'nfs': toJson_NfsVolumeSource(obj.nfs), + 'nodeAffinity': toJson_VolumeNodeAffinity(obj.nodeAffinity), + 'persistentVolumeReclaimPolicy': obj.persistentVolumeReclaimPolicy, + 'photonPersistentDisk': toJson_PhotonPersistentDiskVolumeSource(obj.photonPersistentDisk), + 'portworxVolume': toJson_PortworxVolumeSource(obj.portworxVolume), + 'quobyte': toJson_QuobyteVolumeSource(obj.quobyte), + 'rbd': toJson_RbdPersistentVolumeSource(obj.rbd), + 'scaleIO': toJson_ScaleIoPersistentVolumeSource(obj.scaleIo), + 'storageClassName': obj.storageClassName, + 'storageos': toJson_StorageOsPersistentVolumeSource(obj.storageos), + 'volumeMode': obj.volumeMode, + 'vsphereVolume': toJson_VsphereVirtualDiskVolumeSource(obj.vsphereVolume), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec + */ +export interface PersistentVolumeClaimSpec { + /** + * accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec#accessModes + */ + readonly accessModes?: string[]; + + /** + * dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field. + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec#dataSource + */ + readonly dataSource?: TypedLocalObjectReference; + + /** + * dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef + * allows any non-core object, as well as PersistentVolumeClaim objects. + * * While DataSource ignores disallowed values (dropping them), DataSourceRef + * preserves all values, and generates an error if a disallowed value is + * specified. + * (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec#dataSourceRef + */ + readonly dataSourceRef?: TypedLocalObjectReference; + + /** + * resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec#resources + */ + readonly resources?: ResourceRequirements; + + /** + * selector is a label query over volumes to consider for binding. + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec#selector + */ + readonly selector?: LabelSelector; + + /** + * storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec#storageClassName + */ + readonly storageClassName?: string; + + /** + * volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec#volumeMode + */ + readonly volumeMode?: string; + + /** + * volumeName is the binding reference to the PersistentVolume backing this claim. + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec#volumeName + */ + readonly volumeName?: string; + +} + +/** + * Converts an object of type 'PersistentVolumeClaimSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PersistentVolumeClaimSpec(obj: PersistentVolumeClaimSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'accessModes': obj.accessModes?.map(y => y), + 'dataSource': toJson_TypedLocalObjectReference(obj.dataSource), + 'dataSourceRef': toJson_TypedLocalObjectReference(obj.dataSourceRef), + 'resources': toJson_ResourceRequirements(obj.resources), + 'selector': toJson_LabelSelector(obj.selector), + 'storageClassName': obj.storageClassName, + 'volumeMode': obj.volumeMode, + 'volumeName': obj.volumeName, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodSpec is a description of a pod. + * + * @schema io.k8s.api.core.v1.PodSpec + */ +export interface PodSpec { + /** + * Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * + * @schema io.k8s.api.core.v1.PodSpec#activeDeadlineSeconds + */ + readonly activeDeadlineSeconds?: number; + + /** + * If specified, the pod's scheduling constraints + * + * @schema io.k8s.api.core.v1.PodSpec#affinity + */ + readonly affinity?: Affinity; + + /** + * AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * + * @schema io.k8s.api.core.v1.PodSpec#automountServiceAccountToken + */ + readonly automountServiceAccountToken?: boolean; + + /** + * List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * + * @schema io.k8s.api.core.v1.PodSpec#containers + */ + readonly containers: Container[]; + + /** + * Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * + * @schema io.k8s.api.core.v1.PodSpec#dnsConfig + */ + readonly dnsConfig?: PodDnsConfig; + + /** + * Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * + * + * + * @default ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * @schema io.k8s.api.core.v1.PodSpec#dnsPolicy + */ + readonly dnsPolicy?: string; + + /** + * EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * + * @default true. + * @schema io.k8s.api.core.v1.PodSpec#enableServiceLinks + */ + readonly enableServiceLinks?: boolean; + + /** + * List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. + * + * @schema io.k8s.api.core.v1.PodSpec#ephemeralContainers + */ + readonly ephemeralContainers?: EphemeralContainer[]; + + /** + * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * + * @schema io.k8s.api.core.v1.PodSpec#hostAliases + */ + readonly hostAliases?: HostAlias[]; + + /** + * Use the host's ipc namespace. Optional: Default to false. + * + * @default false. + * @schema io.k8s.api.core.v1.PodSpec#hostIPC + */ + readonly hostIpc?: boolean; + + /** + * Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * + * @default false. + * @schema io.k8s.api.core.v1.PodSpec#hostNetwork + */ + readonly hostNetwork?: boolean; + + /** + * Use the host's pid namespace. Optional: Default to false. + * + * @default false. + * @schema io.k8s.api.core.v1.PodSpec#hostPID + */ + readonly hostPid?: boolean; + + /** + * Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. + * + * @default true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. + * @schema io.k8s.api.core.v1.PodSpec#hostUsers + */ + readonly hostUsers?: boolean; + + /** + * Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * + * @schema io.k8s.api.core.v1.PodSpec#hostname + */ + readonly hostname?: string; + + /** + * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * + * @schema io.k8s.api.core.v1.PodSpec#imagePullSecrets + */ + readonly imagePullSecrets?: LocalObjectReference[]; + + /** + * List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * + * @schema io.k8s.api.core.v1.PodSpec#initContainers + */ + readonly initContainers?: Container[]; + + /** + * NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * + * @schema io.k8s.api.core.v1.PodSpec#nodeName + */ + readonly nodeName?: string; + + /** + * NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * + * @schema io.k8s.api.core.v1.PodSpec#nodeSelector + */ + readonly nodeSelector?: { [key: string]: string }; + + /** + * Specifies the OS of the containers in the pod. Some pod and container fields are restricted if this is set. + * + * If the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions + * + * If the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup + * + * @schema io.k8s.api.core.v1.PodSpec#os + */ + readonly os?: PodOs; + + /** + * Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md + * + * @schema io.k8s.api.core.v1.PodSpec#overhead + */ + readonly overhead?: { [key: string]: Quantity }; + + /** + * PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. + * + * @default PreemptLowerPriority if unset. + * @schema io.k8s.api.core.v1.PodSpec#preemptionPolicy + */ + readonly preemptionPolicy?: string; + + /** + * The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * + * @schema io.k8s.api.core.v1.PodSpec#priority + */ + readonly priority?: number; + + /** + * If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * + * @schema io.k8s.api.core.v1.PodSpec#priorityClassName + */ + readonly priorityClassName?: string; + + /** + * If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates + * + * @schema io.k8s.api.core.v1.PodSpec#readinessGates + */ + readonly readinessGates?: PodReadinessGate[]; + + /** + * Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * + * + * + * @default Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * @schema io.k8s.api.core.v1.PodSpec#restartPolicy + */ + readonly restartPolicy?: string; + + /** + * RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class + * + * @schema io.k8s.api.core.v1.PodSpec#runtimeClassName + */ + readonly runtimeClassName?: string; + + /** + * If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * + * @schema io.k8s.api.core.v1.PodSpec#schedulerName + */ + readonly schedulerName?: string; + + /** + * SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * + * @default empty. See type description for default values of each field. + * @schema io.k8s.api.core.v1.PodSpec#securityContext + */ + readonly securityContext?: PodSecurityContext; + + /** + * DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * + * @schema io.k8s.api.core.v1.PodSpec#serviceAccount + */ + readonly serviceAccount?: string; + + /** + * ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * + * @schema io.k8s.api.core.v1.PodSpec#serviceAccountName + */ + readonly serviceAccountName?: string; + + /** + * If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false. + * + * @default false. + * @schema io.k8s.api.core.v1.PodSpec#setHostnameAsFQDN + */ + readonly setHostnameAsFqdn?: boolean; + + /** + * Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * + * @default false. + * @schema io.k8s.api.core.v1.PodSpec#shareProcessNamespace + */ + readonly shareProcessNamespace?: boolean; + + /** + * If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * + * @schema io.k8s.api.core.v1.PodSpec#subdomain + */ + readonly subdomain?: string; + + /** + * Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * + * @default 30 seconds. + * @schema io.k8s.api.core.v1.PodSpec#terminationGracePeriodSeconds + */ + readonly terminationGracePeriodSeconds?: number; + + /** + * If specified, the pod's tolerations. + * + * @schema io.k8s.api.core.v1.PodSpec#tolerations + */ + readonly tolerations?: Toleration[]; + + /** + * TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed. + * + * @schema io.k8s.api.core.v1.PodSpec#topologySpreadConstraints + */ + readonly topologySpreadConstraints?: TopologySpreadConstraint[]; + + /** + * List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * + * @schema io.k8s.api.core.v1.PodSpec#volumes + */ + readonly volumes?: Volume[]; + +} + +/** + * Converts an object of type 'PodSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PodSpec(obj: PodSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'activeDeadlineSeconds': obj.activeDeadlineSeconds, + 'affinity': toJson_Affinity(obj.affinity), + 'automountServiceAccountToken': obj.automountServiceAccountToken, + 'containers': obj.containers?.map(y => toJson_Container(y)), + 'dnsConfig': toJson_PodDnsConfig(obj.dnsConfig), + 'dnsPolicy': obj.dnsPolicy, + 'enableServiceLinks': obj.enableServiceLinks, + 'ephemeralContainers': obj.ephemeralContainers?.map(y => toJson_EphemeralContainer(y)), + 'hostAliases': obj.hostAliases?.map(y => toJson_HostAlias(y)), + 'hostIPC': obj.hostIpc, + 'hostNetwork': obj.hostNetwork, + 'hostPID': obj.hostPid, + 'hostUsers': obj.hostUsers, + 'hostname': obj.hostname, + 'imagePullSecrets': obj.imagePullSecrets?.map(y => toJson_LocalObjectReference(y)), + 'initContainers': obj.initContainers?.map(y => toJson_Container(y)), + 'nodeName': obj.nodeName, + 'nodeSelector': ((obj.nodeSelector) === undefined) ? undefined : (Object.entries(obj.nodeSelector).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + 'os': toJson_PodOs(obj.os), + 'overhead': ((obj.overhead) === undefined) ? undefined : (Object.entries(obj.overhead).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), + 'preemptionPolicy': obj.preemptionPolicy, + 'priority': obj.priority, + 'priorityClassName': obj.priorityClassName, + 'readinessGates': obj.readinessGates?.map(y => toJson_PodReadinessGate(y)), + 'restartPolicy': obj.restartPolicy, + 'runtimeClassName': obj.runtimeClassName, + 'schedulerName': obj.schedulerName, + 'securityContext': toJson_PodSecurityContext(obj.securityContext), + 'serviceAccount': obj.serviceAccount, + 'serviceAccountName': obj.serviceAccountName, + 'setHostnameAsFQDN': obj.setHostnameAsFqdn, + 'shareProcessNamespace': obj.shareProcessNamespace, + 'subdomain': obj.subdomain, + 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, + 'tolerations': obj.tolerations?.map(y => toJson_Toleration(y)), + 'topologySpreadConstraints': obj.topologySpreadConstraints?.map(y => toJson_TopologySpreadConstraint(y)), + 'volumes': obj.volumes?.map(y => toJson_Volume(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodTemplateSpec describes the data a pod should have when created from a template + * + * @schema io.k8s.api.core.v1.PodTemplateSpec + */ +export interface PodTemplateSpec { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.PodTemplateSpec#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.core.v1.PodTemplateSpec#spec + */ + readonly spec?: PodSpec; + +} + +/** + * Converts an object of type 'PodTemplateSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PodTemplateSpec(obj: PodTemplateSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_PodSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ReplicationControllerSpec is the specification of a replication controller. + * + * @schema io.k8s.api.core.v1.ReplicationControllerSpec + */ +export interface ReplicationControllerSpec { + /** + * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * + * @default 0 (pod will be considered available as soon as it is ready) + * @schema io.k8s.api.core.v1.ReplicationControllerSpec#minReadySeconds + */ + readonly minReadySeconds?: number; + + /** + * Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller + * + * @default 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller + * @schema io.k8s.api.core.v1.ReplicationControllerSpec#replicas + */ + readonly replicas?: number; + + /** + * Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * + * @schema io.k8s.api.core.v1.ReplicationControllerSpec#selector + */ + readonly selector?: { [key: string]: string }; + + /** + * Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * + * @schema io.k8s.api.core.v1.ReplicationControllerSpec#template + */ + readonly template?: PodTemplateSpec; + +} + +/** + * Converts an object of type 'ReplicationControllerSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ReplicationControllerSpec(obj: ReplicationControllerSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'minReadySeconds': obj.minReadySeconds, + 'replicas': obj.replicas, + 'selector': ((obj.selector) === undefined) ? undefined : (Object.entries(obj.selector).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + 'template': toJson_PodTemplateSpec(obj.template), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ResourceQuotaSpec defines the desired hard limits to enforce for Quota. + * + * @schema io.k8s.api.core.v1.ResourceQuotaSpec + */ +export interface ResourceQuotaSpec { + /** + * hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ + * + * @schema io.k8s.api.core.v1.ResourceQuotaSpec#hard + */ + readonly hard?: { [key: string]: Quantity }; + + /** + * scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched. + * + * @schema io.k8s.api.core.v1.ResourceQuotaSpec#scopeSelector + */ + readonly scopeSelector?: ScopeSelector; + + /** + * A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. + * + * @schema io.k8s.api.core.v1.ResourceQuotaSpec#scopes + */ + readonly scopes?: string[]; + +} + +/** + * Converts an object of type 'ResourceQuotaSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ResourceQuotaSpec(obj: ResourceQuotaSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'hard': ((obj.hard) === undefined) ? undefined : (Object.entries(obj.hard).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), + 'scopeSelector': toJson_ScopeSelector(obj.scopeSelector), + 'scopes': obj.scopes?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ServiceSpec describes the attributes that a user creates on a service. + * + * @schema io.k8s.api.core.v1.ServiceSpec + */ +export interface ServiceSpec { + /** + * allocateLoadBalancerNodePorts defines if NodePorts will be automatically allocated for services with type LoadBalancer. Default is "true". It may be set to "false" if the cluster load-balancer does not rely on NodePorts. If the caller requests specific NodePorts (by specifying a value), those requests will be respected, regardless of this field. This field may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type. + * + * @default true". It may be set to "false" if the cluster load-balancer does not rely on NodePorts. If the caller requests specific NodePorts (by specifying a value), those requests will be respected, regardless of this field. This field may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type. + * @schema io.k8s.api.core.v1.ServiceSpec#allocateLoadBalancerNodePorts + */ + readonly allocateLoadBalancerNodePorts?: boolean; + + /** + * clusterIP is the IP address of the service and is usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be blank) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are "None", empty string (""), or a valid IP address. Setting this to "None" makes a "headless service" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + * + * @schema io.k8s.api.core.v1.ServiceSpec#clusterIP + */ + readonly clusterIp?: string; + + /** + * ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are "None", empty string (""), or a valid IP address. Setting this to "None" makes a "headless service" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value. + * + * This field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + * + * @schema io.k8s.api.core.v1.ServiceSpec#clusterIPs + */ + readonly clusterIPs?: string[]; + + /** + * externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. + * + * @schema io.k8s.api.core.v1.ServiceSpec#externalIPs + */ + readonly externalIPs?: string[]; + + /** + * externalName is the external reference that discovery mechanisms will return as an alias for this service (e.g. a DNS CNAME record). No proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires `type` to be "ExternalName". + * + * @schema io.k8s.api.core.v1.ServiceSpec#externalName + */ + readonly externalName?: string; + + /** + * externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service's "externally-facing" addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to "Local", the proxy will configure the service in a way that assumes that external load balancers will take care of balancing the service traffic between nodes, and so each node will deliver traffic only to the node-local endpoints of the service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no endpoints will be dropped.) The default value, "Cluster", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always get "Cluster" semantics, but clients sending to a NodePort from within the cluster may need to take traffic policy into account when picking a node. + * + * + * + * @schema io.k8s.api.core.v1.ServiceSpec#externalTrafficPolicy + */ + readonly externalTrafficPolicy?: string; + + /** + * healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). This field cannot be updated once set. + * + * @schema io.k8s.api.core.v1.ServiceSpec#healthCheckNodePort + */ + readonly healthCheckNodePort?: number; + + /** + * InternalTrafficPolicy describes how nodes distribute service traffic they receive on the ClusterIP. If set to "Local", the proxy will assume that pods only want to talk to endpoints of the service on the same node as the pod, dropping the traffic if there are no local endpoints. The default value, "Cluster", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). + * + * @schema io.k8s.api.core.v1.ServiceSpec#internalTrafficPolicy + */ + readonly internalTrafficPolicy?: string; + + /** + * IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are "IPv4" and "IPv6". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to "headless" services. This field will be wiped when updating a Service to type ExternalName. + * + * This field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. + * + * @schema io.k8s.api.core.v1.ServiceSpec#ipFamilies + */ + readonly ipFamilies?: string[]; + + /** + * IPFamilyPolicy represents the dual-stack-ness requested or required by this Service. If there is no value provided, then this field will be set to SingleStack. Services can be "SingleStack" (a single IP family), "PreferDualStack" (two IP families on dual-stack configured clusters or a single IP family on single-stack clusters), or "RequireDualStack" (two IP families on dual-stack configured clusters, otherwise fail). The ipFamilies and clusterIPs fields depend on the value of this field. This field will be wiped when updating a service to type ExternalName. + * + * @schema io.k8s.api.core.v1.ServiceSpec#ipFamilyPolicy + */ + readonly ipFamilyPolicy?: string; + + /** + * loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. "internal-vip" or "example.com/internal-vip". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type. + * + * @schema io.k8s.api.core.v1.ServiceSpec#loadBalancerClass + */ + readonly loadBalancerClass?: string; + + /** + * Only applies to Service Type: LoadBalancer. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. Deprecated: This field was under-specified and its meaning varies across implementations, and it cannot support dual-stack. As of Kubernetes v1.24, users are encouraged to use implementation-specific annotations when available. This field may be removed in a future API version. + * + * @schema io.k8s.api.core.v1.ServiceSpec#loadBalancerIP + */ + readonly loadBalancerIp?: string; + + /** + * If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature." More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/ + * + * @schema io.k8s.api.core.v1.ServiceSpec#loadBalancerSourceRanges + */ + readonly loadBalancerSourceRanges?: string[]; + + /** + * The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + * + * @schema io.k8s.api.core.v1.ServiceSpec#ports + */ + readonly ports?: ServicePort[]; + + /** + * publishNotReadyAddresses indicates that any agent which deals with endpoints for this Service should disregard any indications of ready/not-ready. The primary use case for setting this field is for a StatefulSet's Headless Service to propagate SRV DNS records for its Pods for the purpose of peer discovery. The Kubernetes controllers that generate Endpoints and EndpointSlice resources for Services interpret this to mean that all endpoints are considered "ready" even if the Pods themselves are not. Agents which consume only Kubernetes generated endpoints through the Endpoints or EndpointSlice resources can safely assume this behavior. + * + * @schema io.k8s.api.core.v1.ServiceSpec#publishNotReadyAddresses + */ + readonly publishNotReadyAddresses?: boolean; + + /** + * Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ + * + * @schema io.k8s.api.core.v1.ServiceSpec#selector + */ + readonly selector?: { [key: string]: string }; + + /** + * Supports "ClientIP" and "None". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + * + * + * + * @default None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + * @schema io.k8s.api.core.v1.ServiceSpec#sessionAffinity + */ + readonly sessionAffinity?: string; + + /** + * sessionAffinityConfig contains the configurations of session affinity. + * + * @schema io.k8s.api.core.v1.ServiceSpec#sessionAffinityConfig + */ + readonly sessionAffinityConfig?: SessionAffinityConfig; + + /** + * type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. "ClusterIP" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object or EndpointSlice objects. If clusterIP is "None", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a virtual IP. "NodePort" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. "LoadBalancer" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the same endpoints as the clusterIP. "ExternalName" aliases this service to the specified externalName. Several other fields do not apply to ExternalName services. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types + * + * + * + * @default ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. "ClusterIP" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object or EndpointSlice objects. If clusterIP is "None", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a virtual IP. "NodePort" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. "LoadBalancer" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the same endpoints as the clusterIP. "ExternalName" aliases this service to the specified externalName. Several other fields do not apply to ExternalName services. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types + * @schema io.k8s.api.core.v1.ServiceSpec#type + */ + readonly type?: string; + +} + +/** + * Converts an object of type 'ServiceSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ServiceSpec(obj: ServiceSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'allocateLoadBalancerNodePorts': obj.allocateLoadBalancerNodePorts, + 'clusterIP': obj.clusterIp, + 'clusterIPs': obj.clusterIPs?.map(y => y), + 'externalIPs': obj.externalIPs?.map(y => y), + 'externalName': obj.externalName, + 'externalTrafficPolicy': obj.externalTrafficPolicy, + 'healthCheckNodePort': obj.healthCheckNodePort, + 'internalTrafficPolicy': obj.internalTrafficPolicy, + 'ipFamilies': obj.ipFamilies?.map(y => y), + 'ipFamilyPolicy': obj.ipFamilyPolicy, + 'loadBalancerClass': obj.loadBalancerClass, + 'loadBalancerIP': obj.loadBalancerIp, + 'loadBalancerSourceRanges': obj.loadBalancerSourceRanges?.map(y => y), + 'ports': obj.ports?.map(y => toJson_ServicePort(y)), + 'publishNotReadyAddresses': obj.publishNotReadyAddresses, + 'selector': ((obj.selector) === undefined) ? undefined : (Object.entries(obj.selector).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + 'sessionAffinity': obj.sessionAffinity, + 'sessionAffinityConfig': toJson_SessionAffinityConfig(obj.sessionAffinityConfig), + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. + * + * @schema io.k8s.api.core.v1.LocalObjectReference + */ +export interface LocalObjectReference { + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * + * @schema io.k8s.api.core.v1.LocalObjectReference#name + */ + readonly name?: string; + +} + +/** + * Converts an object of type 'LocalObjectReference' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_LocalObjectReference(obj: LocalObjectReference | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Endpoint represents a single logical "backend" implementing a service. + * + * @schema io.k8s.api.discovery.v1.Endpoint + */ +export interface Endpoint { + /** + * addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. These are all assumed to be fungible and clients may choose to only use the first element. Refer to: https://issue.k8s.io/106267 + * + * @schema io.k8s.api.discovery.v1.Endpoint#addresses + */ + readonly addresses: string[]; + + /** + * conditions contains information about the current status of the endpoint. + * + * @schema io.k8s.api.discovery.v1.Endpoint#conditions + */ + readonly conditions?: EndpointConditions; + + /** + * deprecatedTopology contains topology information part of the v1beta1 API. This field is deprecated, and will be removed when the v1beta1 API is removed (no sooner than kubernetes v1.24). While this field can hold values, it is not writable through the v1 API, and any attempts to write to it will be silently ignored. Topology information can be found in the zone and nodeName fields instead. + * + * @schema io.k8s.api.discovery.v1.Endpoint#deprecatedTopology + */ + readonly deprecatedTopology?: { [key: string]: string }; + + /** + * hints contains information associated with how an endpoint should be consumed. + * + * @schema io.k8s.api.discovery.v1.Endpoint#hints + */ + readonly hints?: EndpointHints; + + /** + * hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation. + * + * @schema io.k8s.api.discovery.v1.Endpoint#hostname + */ + readonly hostname?: string; + + /** + * nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. + * + * @schema io.k8s.api.discovery.v1.Endpoint#nodeName + */ + readonly nodeName?: string; + + /** + * targetRef is a reference to a Kubernetes object that represents this endpoint. + * + * @schema io.k8s.api.discovery.v1.Endpoint#targetRef + */ + readonly targetRef?: ObjectReference; + + /** + * zone is the name of the Zone this endpoint exists in. + * + * @schema io.k8s.api.discovery.v1.Endpoint#zone + */ + readonly zone?: string; + +} + +/** + * Converts an object of type 'Endpoint' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_Endpoint(obj: Endpoint | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'addresses': obj.addresses?.map(y => y), + 'conditions': toJson_EndpointConditions(obj.conditions), + 'deprecatedTopology': ((obj.deprecatedTopology) === undefined) ? undefined : (Object.entries(obj.deprecatedTopology).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + 'hints': toJson_EndpointHints(obj.hints), + 'hostname': obj.hostname, + 'nodeName': obj.nodeName, + 'targetRef': toJson_ObjectReference(obj.targetRef), + 'zone': obj.zone, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * EndpointPort is a tuple that describes a single port. + * + * @schema io.k8s.api.core.v1.EndpointPort + */ +export interface EndpointPort { + /** + * The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. + * + * @schema io.k8s.api.core.v1.EndpointPort#appProtocol + */ + readonly appProtocol?: string; + + /** + * The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined. + * + * @schema io.k8s.api.core.v1.EndpointPort#name + */ + readonly name?: string; + + /** + * The port number of the endpoint. + * + * @schema io.k8s.api.core.v1.EndpointPort#port + */ + readonly port: number; + + /** + * The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. + * + * + * + * @default TCP. + * @schema io.k8s.api.core.v1.EndpointPort#protocol + */ + readonly protocol?: string; + +} + +/** + * Converts an object of type 'EndpointPort' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_EndpointPort(obj: EndpointPort | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'appProtocol': obj.appProtocol, + 'name': obj.name, + 'port': obj.port, + 'protocol': obj.protocol, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * FlowSchemaSpec describes how the FlowSchema's specification looks like. + * + * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchemaSpec + */ +export interface FlowSchemaSpecV1Beta1 { + /** + * `distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string. + * + * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchemaSpec#distinguisherMethod + */ + readonly distinguisherMethod?: FlowDistinguisherMethodV1Beta1; + + /** + * `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default. + * + * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchemaSpec#matchingPrecedence + */ + readonly matchingPrecedence?: number; + + /** + * `priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchemaSpec#priorityLevelConfiguration + */ + readonly priorityLevelConfiguration: PriorityLevelConfigurationReferenceV1Beta1; + + /** + * `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema. + * + * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchemaSpec#rules + */ + readonly rules?: PolicyRulesWithSubjectsV1Beta1[]; + +} + +/** + * Converts an object of type 'FlowSchemaSpecV1Beta1' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_FlowSchemaSpecV1Beta1(obj: FlowSchemaSpecV1Beta1 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'distinguisherMethod': toJson_FlowDistinguisherMethodV1Beta1(obj.distinguisherMethod), + 'matchingPrecedence': obj.matchingPrecedence, + 'priorityLevelConfiguration': toJson_PriorityLevelConfigurationReferenceV1Beta1(obj.priorityLevelConfiguration), + 'rules': obj.rules?.map(y => toJson_PolicyRulesWithSubjectsV1Beta1(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PriorityLevelConfigurationSpec specifies the configuration of a priority level. + * + * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationSpec + */ +export interface PriorityLevelConfigurationSpecV1Beta1 { + /** + * `limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `"Limited"`. + * + * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationSpec#limited + */ + readonly limited?: LimitedPriorityLevelConfigurationV1Beta1; + + /** + * `type` indicates whether this priority level is subject to limitation on request execution. A value of `"Exempt"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `"Limited"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationSpec#type + */ + readonly type: string; + +} + +/** + * Converts an object of type 'PriorityLevelConfigurationSpecV1Beta1' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PriorityLevelConfigurationSpecV1Beta1(obj: PriorityLevelConfigurationSpecV1Beta1 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'limited': toJson_LimitedPriorityLevelConfigurationV1Beta1(obj.limited), + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * FlowSchemaSpec describes how the FlowSchema's specification looks like. + * + * @schema io.k8s.api.flowcontrol.v1beta2.FlowSchemaSpec + */ +export interface FlowSchemaSpecV1Beta2 { + /** + * `distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string. + * + * @schema io.k8s.api.flowcontrol.v1beta2.FlowSchemaSpec#distinguisherMethod + */ + readonly distinguisherMethod?: FlowDistinguisherMethodV1Beta2; + + /** + * `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default. + * + * @schema io.k8s.api.flowcontrol.v1beta2.FlowSchemaSpec#matchingPrecedence + */ + readonly matchingPrecedence?: number; + + /** + * `priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta2.FlowSchemaSpec#priorityLevelConfiguration + */ + readonly priorityLevelConfiguration: PriorityLevelConfigurationReferenceV1Beta2; + + /** + * `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema. + * + * @schema io.k8s.api.flowcontrol.v1beta2.FlowSchemaSpec#rules + */ + readonly rules?: PolicyRulesWithSubjectsV1Beta2[]; + +} + +/** + * Converts an object of type 'FlowSchemaSpecV1Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_FlowSchemaSpecV1Beta2(obj: FlowSchemaSpecV1Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'distinguisherMethod': toJson_FlowDistinguisherMethodV1Beta2(obj.distinguisherMethod), + 'matchingPrecedence': obj.matchingPrecedence, + 'priorityLevelConfiguration': toJson_PriorityLevelConfigurationReferenceV1Beta2(obj.priorityLevelConfiguration), + 'rules': obj.rules?.map(y => toJson_PolicyRulesWithSubjectsV1Beta2(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PriorityLevelConfigurationSpec specifies the configuration of a priority level. + * + * @schema io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationSpec + */ +export interface PriorityLevelConfigurationSpecV1Beta2 { + /** + * `limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `"Limited"`. + * + * @schema io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationSpec#limited + */ + readonly limited?: LimitedPriorityLevelConfigurationV1Beta2; + + /** + * `type` indicates whether this priority level is subject to limitation on request execution. A value of `"Exempt"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `"Limited"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationSpec#type + */ + readonly type: string; + +} + +/** + * Converts an object of type 'PriorityLevelConfigurationSpecV1Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PriorityLevelConfigurationSpecV1Beta2(obj: PriorityLevelConfigurationSpecV1Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'limited': toJson_LimitedPriorityLevelConfigurationV1Beta2(obj.limited), + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * IngressSpec describes the Ingress the user wishes to exist. + * + * @schema io.k8s.api.networking.v1.IngressSpec + */ +export interface IngressSpec { + /** + * DefaultBackend is the backend that should handle requests that don't match any rule. If Rules are not specified, DefaultBackend must be specified. If DefaultBackend is not set, the handling of requests that do not match any of the rules will be up to the Ingress controller. + * + * @schema io.k8s.api.networking.v1.IngressSpec#defaultBackend + */ + readonly defaultBackend?: IngressBackend; + + /** + * IngressClassName is the name of an IngressClass cluster resource. Ingress controller implementations use this field to know whether they should be serving this Ingress resource, by a transitive connection (controller -> IngressClass -> Ingress resource). Although the `kubernetes.io/ingress.class` annotation (simple constant name) was never formally defined, it was widely supported by Ingress controllers to create a direct binding between Ingress controller and Ingress resources. Newly created Ingress resources should prefer using the field. However, even though the annotation is officially deprecated, for backwards compatibility reasons, ingress controllers should still honor that annotation if present. + * + * @schema io.k8s.api.networking.v1.IngressSpec#ingressClassName + */ + readonly ingressClassName?: string; + + /** + * A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. + * + * @schema io.k8s.api.networking.v1.IngressSpec#rules + */ + readonly rules?: IngressRule[]; + + /** + * TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. + * + * @schema io.k8s.api.networking.v1.IngressSpec#tls + */ + readonly tls?: IngressTls[]; + +} + +/** + * Converts an object of type 'IngressSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_IngressSpec(obj: IngressSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'defaultBackend': toJson_IngressBackend(obj.defaultBackend), + 'ingressClassName': obj.ingressClassName, + 'rules': obj.rules?.map(y => toJson_IngressRule(y)), + 'tls': obj.tls?.map(y => toJson_IngressTls(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * IngressClassSpec provides information about the class of an Ingress. + * + * @schema io.k8s.api.networking.v1.IngressClassSpec + */ +export interface IngressClassSpec { + /** + * Controller refers to the name of the controller that should handle this class. This allows for different "flavors" that are controlled by the same controller. For example, you may have different Parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. "acme.io/ingress-controller". This field is immutable. + * + * @schema io.k8s.api.networking.v1.IngressClassSpec#controller + */ + readonly controller?: string; + + /** + * Parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters. + * + * @schema io.k8s.api.networking.v1.IngressClassSpec#parameters + */ + readonly parameters?: IngressClassParametersReference; + +} + +/** + * Converts an object of type 'IngressClassSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_IngressClassSpec(obj: IngressClassSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'controller': obj.controller, + 'parameters': toJson_IngressClassParametersReference(obj.parameters), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * NetworkPolicySpec provides the specification of a NetworkPolicy + * + * @schema io.k8s.api.networking.v1.NetworkPolicySpec + */ +export interface NetworkPolicySpec { + /** + * List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 + * + * @schema io.k8s.api.networking.v1.NetworkPolicySpec#egress + */ + readonly egress?: NetworkPolicyEgressRule[]; + + /** + * List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default) + * + * @schema io.k8s.api.networking.v1.NetworkPolicySpec#ingress + */ + readonly ingress?: NetworkPolicyIngressRule[]; + + /** + * Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. + * + * @schema io.k8s.api.networking.v1.NetworkPolicySpec#podSelector + */ + readonly podSelector: LabelSelector; + + /** + * List of rule types that the NetworkPolicy relates to. Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"]. If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 + * + * @schema io.k8s.api.networking.v1.NetworkPolicySpec#policyTypes + */ + readonly policyTypes?: string[]; + +} + +/** + * Converts an object of type 'NetworkPolicySpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_NetworkPolicySpec(obj: NetworkPolicySpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'egress': obj.egress?.map(y => toJson_NetworkPolicyEgressRule(y)), + 'ingress': obj.ingress?.map(y => toJson_NetworkPolicyIngressRule(y)), + 'podSelector': toJson_LabelSelector(obj.podSelector), + 'policyTypes': obj.policyTypes?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ClusterCIDRSpec defines the desired state of ClusterCIDR. + * + * @schema io.k8s.api.networking.v1alpha1.ClusterCIDRSpec + */ +export interface ClusterCidrSpecV1Alpha1 { + /** + * IPv4 defines an IPv4 IP block in CIDR notation(e.g. "10.0.0.0/8"). At least one of IPv4 and IPv6 must be specified. This field is immutable. + * + * @schema io.k8s.api.networking.v1alpha1.ClusterCIDRSpec#ipv4 + */ + readonly ipv4?: string; + + /** + * IPv6 defines an IPv6 IP block in CIDR notation(e.g. "fd12:3456:789a:1::/64"). At least one of IPv4 and IPv6 must be specified. This field is immutable. + * + * @schema io.k8s.api.networking.v1alpha1.ClusterCIDRSpec#ipv6 + */ + readonly ipv6?: string; + + /** + * NodeSelector defines which nodes the config is applicable to. An empty or nil NodeSelector selects all nodes. This field is immutable. + * + * @schema io.k8s.api.networking.v1alpha1.ClusterCIDRSpec#nodeSelector + */ + readonly nodeSelector?: NodeSelector; + + /** + * PerNodeHostBits defines the number of host bits to be configured per node. A subnet mask determines how much of the address is used for network bits and host bits. For example an IPv4 address of 192.168.0.0/24, splits the address into 24 bits for the network portion and 8 bits for the host portion. To allocate 256 IPs, set this field to 8 (a /24 mask for IPv4 or a /120 for IPv6). Minimum value is 4 (16 IPs). This field is immutable. + * + * @schema io.k8s.api.networking.v1alpha1.ClusterCIDRSpec#perNodeHostBits + */ + readonly perNodeHostBits: number; + +} + +/** + * Converts an object of type 'ClusterCidrSpecV1Alpha1' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ClusterCidrSpecV1Alpha1(obj: ClusterCidrSpecV1Alpha1 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'ipv4': obj.ipv4, + 'ipv6': obj.ipv6, + 'nodeSelector': toJson_NodeSelector(obj.nodeSelector), + 'perNodeHostBits': obj.perNodeHostBits, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Overhead structure represents the resource overhead associated with running a pod. + * + * @schema io.k8s.api.node.v1.Overhead + */ +export interface Overhead { + /** + * PodFixed represents the fixed resource overhead associated with running a pod. + * + * @schema io.k8s.api.node.v1.Overhead#podFixed + */ + readonly podFixed?: { [key: string]: Quantity }; + +} + +/** + * Converts an object of type 'Overhead' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_Overhead(obj: Overhead | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'podFixed': ((obj.podFixed) === undefined) ? undefined : (Object.entries(obj.podFixed).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass. + * + * @schema io.k8s.api.node.v1.Scheduling + */ +export interface Scheduling { + /** + * nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. + * + * @schema io.k8s.api.node.v1.Scheduling#nodeSelector + */ + readonly nodeSelector?: { [key: string]: string }; + + /** + * tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. + * + * @schema io.k8s.api.node.v1.Scheduling#tolerations + */ + readonly tolerations?: Toleration[]; + +} + +/** + * Converts an object of type 'Scheduling' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_Scheduling(obj: Scheduling | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'nodeSelector': ((obj.nodeSelector) === undefined) ? undefined : (Object.entries(obj.nodeSelector).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + 'tolerations': obj.tolerations?.map(y => toJson_Toleration(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * DeleteOptions may be provided when deleting an API object. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions + */ +export interface DeleteOptions { + /** + * 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 + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions#apiVersion + */ + readonly apiVersion?: string; + + /** + * When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions#dryRun + */ + readonly dryRun?: string[]; + + /** + * The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * + * @default a per object value if not specified. zero means delete immediately. + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions#gracePeriodSeconds + */ + readonly gracePeriodSeconds?: number; + + /** + * 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 + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions#kind + */ + readonly kind?: IoK8SApimachineryPkgApisMetaV1DeleteOptionsKind; + + /** + * Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions#orphanDependents + */ + readonly orphanDependents?: boolean; + + /** + * Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions#preconditions + */ + readonly preconditions?: Preconditions; + + /** + * Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions#propagationPolicy + */ + readonly propagationPolicy?: string; + +} + +/** + * Converts an object of type 'DeleteOptions' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_DeleteOptions(obj: DeleteOptions | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'apiVersion': obj.apiVersion, + 'dryRun': obj.dryRun?.map(y => y), + 'gracePeriodSeconds': obj.gracePeriodSeconds, + 'kind': obj.kind, + 'orphanDependents': obj.orphanDependents, + 'preconditions': toJson_Preconditions(obj.preconditions), + 'propagationPolicy': obj.propagationPolicy, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. + * + * @schema io.k8s.api.policy.v1.PodDisruptionBudgetSpec + */ +export interface PodDisruptionBudgetSpec { + /** + * An eviction is allowed if at most "maxUnavailable" pods selected by "selector" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with "minAvailable". + * + * @schema io.k8s.api.policy.v1.PodDisruptionBudgetSpec#maxUnavailable + */ + readonly maxUnavailable?: IntOrString; + + /** + * An eviction is allowed if at least "minAvailable" pods selected by "selector" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying "100%". + * + * @schema io.k8s.api.policy.v1.PodDisruptionBudgetSpec#minAvailable + */ + readonly minAvailable?: IntOrString; + + /** + * Label query over pods whose evictions are managed by the disruption budget. A null selector will match no pods, while an empty ({}) selector will select all pods within the namespace. + * + * @schema io.k8s.api.policy.v1.PodDisruptionBudgetSpec#selector + */ + readonly selector?: LabelSelector; + +} + +/** + * Converts an object of type 'PodDisruptionBudgetSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PodDisruptionBudgetSpec(obj: PodDisruptionBudgetSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'maxUnavailable': obj.maxUnavailable?.value, + 'minAvailable': obj.minAvailable?.value, + 'selector': toJson_LabelSelector(obj.selector), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole + * + * @schema io.k8s.api.rbac.v1.AggregationRule + */ +export interface AggregationRule { + /** + * ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added + * + * @schema io.k8s.api.rbac.v1.AggregationRule#clusterRoleSelectors + */ + readonly clusterRoleSelectors?: LabelSelector[]; + +} + +/** + * Converts an object of type 'AggregationRule' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_AggregationRule(obj: AggregationRule | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'clusterRoleSelectors': obj.clusterRoleSelectors?.map(y => toJson_LabelSelector(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to. + * + * @schema io.k8s.api.rbac.v1.PolicyRule + */ +export interface PolicyRule { + /** + * APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "" represents the core API group and "*" represents all API groups. + * + * @schema io.k8s.api.rbac.v1.PolicyRule#apiGroups + */ + readonly apiGroups?: string[]; + + /** + * NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. + * + * @schema io.k8s.api.rbac.v1.PolicyRule#nonResourceURLs + */ + readonly nonResourceUrLs?: string[]; + + /** + * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + * + * @schema io.k8s.api.rbac.v1.PolicyRule#resourceNames + */ + readonly resourceNames?: string[]; + + /** + * Resources is a list of resources this rule applies to. '*' represents all resources. + * + * @schema io.k8s.api.rbac.v1.PolicyRule#resources + */ + readonly resources?: string[]; + + /** + * Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs. + * + * @schema io.k8s.api.rbac.v1.PolicyRule#verbs + */ + readonly verbs: string[]; + +} + +/** + * Converts an object of type 'PolicyRule' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PolicyRule(obj: PolicyRule | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'apiGroups': obj.apiGroups?.map(y => y), + 'nonResourceURLs': obj.nonResourceUrLs?.map(y => y), + 'resourceNames': obj.resourceNames?.map(y => y), + 'resources': obj.resources?.map(y => y), + 'verbs': obj.verbs?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * RoleRef contains information that points to the role being used + * + * @schema io.k8s.api.rbac.v1.RoleRef + */ +export interface RoleRef { + /** + * APIGroup is the group for the resource being referenced + * + * @schema io.k8s.api.rbac.v1.RoleRef#apiGroup + */ + readonly apiGroup: string; + + /** + * Kind is the type of resource being referenced + * + * @schema io.k8s.api.rbac.v1.RoleRef#kind + */ + readonly kind: string; + + /** + * Name is the name of resource being referenced + * + * @schema io.k8s.api.rbac.v1.RoleRef#name + */ + readonly name: string; + +} + +/** + * Converts an object of type 'RoleRef' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_RoleRef(obj: RoleRef | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'apiGroup': obj.apiGroup, + 'kind': obj.kind, + 'name': obj.name, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names. + * + * @schema io.k8s.api.rbac.v1.Subject + */ +export interface Subject { + /** + * APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. + * + * @default for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. + * @schema io.k8s.api.rbac.v1.Subject#apiGroup + */ + readonly apiGroup?: string; + + /** + * Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + * + * @schema io.k8s.api.rbac.v1.Subject#kind + */ + readonly kind: string; + + /** + * Name of the object being referenced. + * + * @schema io.k8s.api.rbac.v1.Subject#name + */ + readonly name: string; + + /** + * Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. + * + * @schema io.k8s.api.rbac.v1.Subject#namespace + */ + readonly namespace?: string; + +} + +/** + * Converts an object of type 'Subject' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_Subject(obj: Subject | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'apiGroup': obj.apiGroup, + 'kind': obj.kind, + 'name': obj.name, + 'namespace': obj.namespace, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CSIDriverSpec is the specification of a CSIDriver. + * + * @schema io.k8s.api.storage.v1.CSIDriverSpec + */ +export interface CsiDriverSpec { + /** + * attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. + * + * This field is immutable. + * + * @schema io.k8s.api.storage.v1.CSIDriverSpec#attachRequired + */ + readonly attachRequired?: boolean; + + /** + * Defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details. + * + * This field is immutable. + * + * Defaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce. + * + * @default ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce. + * @schema io.k8s.api.storage.v1.CSIDriverSpec#fsGroupPolicy + */ + readonly fsGroupPolicy?: string; + + /** + * If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. "csi.storage.k8s.io/pod.name": pod.Name "csi.storage.k8s.io/pod.namespace": pod.Namespace "csi.storage.k8s.io/pod.uid": string(pod.UID) "csi.storage.k8s.io/ephemeral": "true" if the volume is an ephemeral inline volume + * defined by a CSIVolumeSource, otherwise "false" + * + * "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver. + * + * This field is immutable. + * + * @default false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. "csi.storage.k8s.io/pod.name": pod.Name "csi.storage.k8s.io/pod.namespace": pod.Namespace "csi.storage.k8s.io/pod.uid": string(pod.UID) "csi.storage.k8s.io/ephemeral": "true" if the volume is an ephemeral inline volume + * @schema io.k8s.api.storage.v1.CSIDriverSpec#podInfoOnMount + */ + readonly podInfoOnMount?: boolean; + + /** + * RequiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false. + * + * Note: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container. + * + * @schema io.k8s.api.storage.v1.CSIDriverSpec#requiresRepublish + */ + readonly requiresRepublish?: boolean; + + /** + * SELinuxMount specifies if the CSI driver supports "-o context" mount option. + * + * When "true", the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different `-o context` options. This is typical for storage backends that provide volumes as filesystems on block devices or as independent shared volumes. Kubernetes will call NodeStage / NodePublish with "-o context=xyz" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context. + * + * When "false", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem. + * + * Default is "false". + * + * @default false". + * @schema io.k8s.api.storage.v1.CSIDriverSpec#seLinuxMount + */ + readonly seLinuxMount?: boolean; + + /** + * If set to true, storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information. + * + * The check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object. + * + * Alternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published. + * + * This field was immutable in Kubernetes <= 1.22 and now is mutable. + * + * @schema io.k8s.api.storage.v1.CSIDriverSpec#storageCapacity + */ + readonly storageCapacity?: boolean; + + /** + * TokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: "csi.storage.k8s.io/serviceAccount.tokens": { + * "": { + * "token": , + * "expirationTimestamp": , + * }, + * ... + * } + * + * Note: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically. + * + * @schema io.k8s.api.storage.v1.CSIDriverSpec#tokenRequests + */ + readonly tokenRequests?: TokenRequest[]; + + /** + * volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is "Persistent", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is "Ephemeral". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. This field is beta. + * + * This field is immutable. + * + * @schema io.k8s.api.storage.v1.CSIDriverSpec#volumeLifecycleModes + */ + readonly volumeLifecycleModes?: string[]; + +} + +/** + * Converts an object of type 'CsiDriverSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CsiDriverSpec(obj: CsiDriverSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'attachRequired': obj.attachRequired, + 'fsGroupPolicy': obj.fsGroupPolicy, + 'podInfoOnMount': obj.podInfoOnMount, + 'requiresRepublish': obj.requiresRepublish, + 'seLinuxMount': obj.seLinuxMount, + 'storageCapacity': obj.storageCapacity, + 'tokenRequests': obj.tokenRequests?.map(y => toJson_TokenRequest(y)), + 'volumeLifecycleModes': obj.volumeLifecycleModes?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CSINodeSpec holds information about the specification of all CSI drivers installed on a node + * + * @schema io.k8s.api.storage.v1.CSINodeSpec + */ +export interface CsiNodeSpec { + /** + * drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty. + * + * @schema io.k8s.api.storage.v1.CSINodeSpec#drivers + */ + readonly drivers: CsiNodeDriver[]; + +} + +/** + * Converts an object of type 'CsiNodeSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CsiNodeSpec(obj: CsiNodeSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'drivers': obj.drivers?.map(y => toJson_CsiNodeDriver(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * @schema io.k8s.apimachinery.pkg.api.resource.Quantity + */ +export class Quantity { + public static fromString(value: string): Quantity { + return new Quantity(value); + } + public static fromNumber(value: number): Quantity { + return new Quantity(value); + } + private constructor(public readonly value: string | number) { + } +} + +/** + * A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector + */ +export interface LabelSelector { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector#matchExpressions + */ + readonly matchExpressions?: LabelSelectorRequirement[]; + + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector#matchLabels + */ + readonly matchLabels?: { [key: string]: string }; + +} + +/** + * Converts an object of type 'LabelSelector' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_LabelSelector(obj: LabelSelector | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'matchExpressions': obj.matchExpressions?.map(y => toJson_LabelSelectorRequirement(y)), + 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future. + * + * @schema io.k8s.api.core.v1.TopologySelectorTerm + */ +export interface TopologySelectorTerm { + /** + * A list of topology selector requirements by labels. + * + * @schema io.k8s.api.core.v1.TopologySelectorTerm#matchLabelExpressions + */ + readonly matchLabelExpressions?: TopologySelectorLabelRequirement[]; + +} + +/** + * Converts an object of type 'TopologySelectorTerm' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_TopologySelectorTerm(obj: TopologySelectorTerm | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'matchLabelExpressions': obj.matchLabelExpressions?.map(y => toJson_TopologySelectorLabelRequirement(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * VolumeAttachmentSpec is the specification of a VolumeAttachment request. + * + * @schema io.k8s.api.storage.v1.VolumeAttachmentSpec + */ +export interface VolumeAttachmentSpec { + /** + * Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). + * + * @schema io.k8s.api.storage.v1.VolumeAttachmentSpec#attacher + */ + readonly attacher: string; + + /** + * The node that the volume should be attached to. + * + * @schema io.k8s.api.storage.v1.VolumeAttachmentSpec#nodeName + */ + readonly nodeName: string; + + /** + * Source represents the volume that should be attached. + * + * @schema io.k8s.api.storage.v1.VolumeAttachmentSpec#source + */ + readonly source: VolumeAttachmentSource; + +} + +/** + * Converts an object of type 'VolumeAttachmentSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_VolumeAttachmentSpec(obj: VolumeAttachmentSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'attacher': obj.attacher, + 'nodeName': obj.nodeName, + 'source': toJson_VolumeAttachmentSource(obj.source), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CustomResourceDefinitionSpec describes how a user wants their resource to appear + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec + */ +export interface CustomResourceDefinitionSpec { + /** + * conversion defines conversion settings for the CRD. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec#conversion + */ + readonly conversion?: CustomResourceConversion; + + /** + * group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`). + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec#group + */ + readonly group: string; + + /** + * names specify the resource and kind names for the custom resource. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec#names + */ + readonly names: CustomResourceDefinitionNames; + + /** + * preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec#preserveUnknownFields + */ + readonly preserveUnknownFields?: boolean; + + /** + * scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec#scope + */ + readonly scope: string; + + /** + * versions is the list of all API versions of the defined custom resource. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec#versions + */ + readonly versions: CustomResourceDefinitionVersion[]; + +} + +/** + * Converts an object of type 'CustomResourceDefinitionSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CustomResourceDefinitionSpec(obj: CustomResourceDefinitionSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'conversion': toJson_CustomResourceConversion(obj.conversion), + 'group': obj.group, + 'names': toJson_CustomResourceDefinitionNames(obj.names), + 'preserveUnknownFields': obj.preserveUnknownFields, + 'scope': obj.scope, + 'versions': obj.versions?.map(y => toJson_CustomResourceDefinitionVersion(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails + */ +export interface StatusDetails { + /** + * The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails#causes + */ + readonly causes?: StatusCause[]; + + /** + * The group attribute of the resource associated with the status StatusReason. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails#group + */ + readonly group?: string; + + /** + * The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails#kind + */ + readonly kind?: string; + + /** + * The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails#name + */ + readonly name?: string; + + /** + * If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails#retryAfterSeconds + */ + readonly retryAfterSeconds?: number; + + /** + * UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails#uid + */ + readonly uid?: string; + +} + +/** + * Converts an object of type 'StatusDetails' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_StatusDetails(obj: StatusDetails | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'causes': obj.causes?.map(y => toJson_StatusCause(y)), + 'group': obj.group, + 'kind': obj.kind, + 'name': obj.name, + 'retryAfterSeconds': obj.retryAfterSeconds, + 'uid': obj.uid, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification. + * + * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec + */ +export interface ApiServiceSpec { + /** + * CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used. + * + * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec#caBundle + */ + readonly caBundle?: string; + + /** + * Group is the API group name this server hosts + * + * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec#group + */ + readonly group?: string; + + /** + * GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s + * + * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec#groupPriorityMinimum + */ + readonly groupPriorityMinimum: number; + + /** + * InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. + * + * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec#insecureSkipTLSVerify + */ + readonly insecureSkipTlsVerify?: boolean; + + /** + * Service is a reference to the service for this API server. It must communicate on port 443. If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled. + * + * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec#service + */ + readonly service?: ServiceReference; + + /** + * Version is the API version this server hosts. For example, "v1" + * + * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec#version + */ + readonly version?: string; + + /** + * VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. + * + * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec#versionPriority + */ + readonly versionPriority: number; + +} + +/** + * Converts an object of type 'ApiServiceSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ApiServiceSpec(obj: ApiServiceSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'caBundle': obj.caBundle, + 'group': obj.group, + 'groupPriorityMinimum': obj.groupPriorityMinimum, + 'insecureSkipTLSVerify': obj.insecureSkipTlsVerify, + 'service': toJson_ServiceReference(obj.service), + 'version': obj.version, + 'versionPriority': obj.versionPriority, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry + */ +export interface ManagedFieldsEntry { + /** + * APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry#apiVersion + */ + readonly apiVersion?: string; + + /** + * FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry#fieldsType + */ + readonly fieldsType?: string; + + /** + * FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry#fieldsV1 + */ + readonly fieldsV1?: any; + + /** + * Manager is an identifier of the workflow managing these fields. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry#manager + */ + readonly manager?: string; + + /** + * Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry#operation + */ + readonly operation?: string; + + /** + * Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry#subresource + */ + readonly subresource?: string; + + /** + * Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry#time + */ + readonly time?: Date; + +} + +/** + * Converts an object of type 'ManagedFieldsEntry' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ManagedFieldsEntry(obj: ManagedFieldsEntry | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'apiVersion': obj.apiVersion, + 'fieldsType': obj.fieldsType, + 'fieldsV1': obj.fieldsV1, + 'manager': obj.manager, + 'operation': obj.operation, + 'subresource': obj.subresource, + 'time': obj.time?.toISOString(), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference + */ +export interface OwnerReference { + /** + * API version of the referent. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference#apiVersion + */ + readonly apiVersion: string; + + /** + * If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * + * @default false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference#blockOwnerDeletion + */ + readonly blockOwnerDeletion?: boolean; + + /** + * If true, this reference points to the managing controller. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference#controller + */ + readonly controller?: boolean; + + /** + * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference#kind + */ + readonly kind: string; + + /** + * Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference#name + */ + readonly name: string; + + /** + * UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference#uid + */ + readonly uid: string; + +} + +/** + * Converts an object of type 'OwnerReference' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_OwnerReference(obj: OwnerReference | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'apiVersion': obj.apiVersion, + 'blockOwnerDeletion': obj.blockOwnerDeletion, + 'controller': obj.controller, + 'kind': obj.kind, + 'name': obj.name, + 'uid': obj.uid, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * WebhookClientConfig contains the information to make a TLS connection with the webhook + * + * @schema io.k8s.api.admissionregistration.v1.WebhookClientConfig + */ +export interface WebhookClientConfig { + /** + * `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + * + * @schema io.k8s.api.admissionregistration.v1.WebhookClientConfig#caBundle + */ + readonly caBundle?: string; + + /** + * `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. + * + * If the webhook is running within the cluster, then you should use `service`. + * + * @schema io.k8s.api.admissionregistration.v1.WebhookClientConfig#service + */ + readonly service?: ServiceReference; + + /** + * `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + * + * The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + * + * Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + * + * The scheme must be "https"; the URL must begin with "https://". + * + * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + * + * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * + * @schema io.k8s.api.admissionregistration.v1.WebhookClientConfig#url + */ + readonly url?: string; + +} + +/** + * Converts an object of type 'WebhookClientConfig' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_WebhookClientConfig(obj: WebhookClientConfig | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'caBundle': obj.caBundle, + 'service': toJson_ServiceReference(obj.service), + 'url': obj.url, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid. + * + * @schema io.k8s.api.admissionregistration.v1.RuleWithOperations + */ +export interface RuleWithOperations { + /** + * APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. + * + * @schema io.k8s.api.admissionregistration.v1.RuleWithOperations#apiGroups + */ + readonly apiGroups?: string[]; + + /** + * APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. + * + * @schema io.k8s.api.admissionregistration.v1.RuleWithOperations#apiVersions + */ + readonly apiVersions?: string[]; + + /** + * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. + * + * @schema io.k8s.api.admissionregistration.v1.RuleWithOperations#operations + */ + readonly operations?: string[]; + + /** + * Resources is a list of resources this rule applies to. + * + * For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '_/scale' means all scale subresources. '_/*' means all resources and their subresources. + * + * If wildcard is present, the validation rule will ensure resources do not overlap with each other. + * + * Depending on the enclosing object, subresources might not be allowed. Required. + * + * @schema io.k8s.api.admissionregistration.v1.RuleWithOperations#resources + */ + readonly resources?: string[]; + + /** + * scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". + * + * @default . + * @schema io.k8s.api.admissionregistration.v1.RuleWithOperations#scope + */ + readonly scope?: string; + +} + +/** + * Converts an object of type 'RuleWithOperations' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_RuleWithOperations(obj: RuleWithOperations | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'apiGroups': obj.apiGroups?.map(y => y), + 'apiVersions': obj.apiVersions?.map(y => y), + 'operations': obj.operations?.map(y => y), + 'resources': obj.resources?.map(y => y), + 'scope': obj.scope, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet. + * + * @schema io.k8s.api.apps.v1.DaemonSetUpdateStrategy + */ +export interface DaemonSetUpdateStrategy { + /** + * Rolling update config params. Present only if type = "RollingUpdate". + * + * @schema io.k8s.api.apps.v1.DaemonSetUpdateStrategy#rollingUpdate + */ + readonly rollingUpdate?: RollingUpdateDaemonSet; + + /** + * Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate. + * + * + * + * @default RollingUpdate. + * @schema io.k8s.api.apps.v1.DaemonSetUpdateStrategy#type + */ + readonly type?: string; + +} + +/** + * Converts an object of type 'DaemonSetUpdateStrategy' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_DaemonSetUpdateStrategy(obj: DaemonSetUpdateStrategy | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'rollingUpdate': toJson_RollingUpdateDaemonSet(obj.rollingUpdate), + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * DeploymentStrategy describes how to replace existing pods with new ones. + * + * @schema io.k8s.api.apps.v1.DeploymentStrategy + */ +export interface DeploymentStrategy { + /** + * Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + * + * @schema io.k8s.api.apps.v1.DeploymentStrategy#rollingUpdate + */ + readonly rollingUpdate?: RollingUpdateDeployment; + + /** + * Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. + * + * + * + * @default RollingUpdate. + * @schema io.k8s.api.apps.v1.DeploymentStrategy#type + */ + readonly type?: string; + +} + +/** + * Converts an object of type 'DeploymentStrategy' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_DeploymentStrategy(obj: DeploymentStrategy | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'rollingUpdate': toJson_RollingUpdateDeployment(obj.rollingUpdate), + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates. + * + * @schema io.k8s.api.apps.v1.StatefulSetPersistentVolumeClaimRetentionPolicy + */ +export interface StatefulSetPersistentVolumeClaimRetentionPolicy { + /** + * WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted. + * + * @schema io.k8s.api.apps.v1.StatefulSetPersistentVolumeClaimRetentionPolicy#whenDeleted + */ + readonly whenDeleted?: string; + + /** + * WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of `Retain` causes PVCs to not be affected by a scaledown. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted. + * + * @schema io.k8s.api.apps.v1.StatefulSetPersistentVolumeClaimRetentionPolicy#whenScaled + */ + readonly whenScaled?: string; + +} + +/** + * Converts an object of type 'StatefulSetPersistentVolumeClaimRetentionPolicy' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_StatefulSetPersistentVolumeClaimRetentionPolicy(obj: StatefulSetPersistentVolumeClaimRetentionPolicy | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'whenDeleted': obj.whenDeleted, + 'whenScaled': obj.whenScaled, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy. + * + * @schema io.k8s.api.apps.v1.StatefulSetUpdateStrategy + */ +export interface StatefulSetUpdateStrategy { + /** + * RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. + * + * @schema io.k8s.api.apps.v1.StatefulSetUpdateStrategy#rollingUpdate + */ + readonly rollingUpdate?: RollingUpdateStatefulSetStrategy; + + /** + * Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. + * + * + * + * @default RollingUpdate. + * @schema io.k8s.api.apps.v1.StatefulSetUpdateStrategy#type + */ + readonly type?: string; + +} + +/** + * Converts an object of type 'StatefulSetUpdateStrategy' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_StatefulSetUpdateStrategy(obj: StatefulSetUpdateStrategy | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'rollingUpdate': toJson_RollingUpdateStatefulSetStrategy(obj.rollingUpdate), + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * BoundObjectReference is a reference to an object that a token is bound to. + * + * @schema io.k8s.api.authentication.v1.BoundObjectReference + */ +export interface BoundObjectReference { + /** + * API version of the referent. + * + * @schema io.k8s.api.authentication.v1.BoundObjectReference#apiVersion + */ + readonly apiVersion?: string; + + /** + * Kind of the referent. Valid kinds are 'Pod' and 'Secret'. + * + * @schema io.k8s.api.authentication.v1.BoundObjectReference#kind + */ + readonly kind?: string; + + /** + * Name of the referent. + * + * @schema io.k8s.api.authentication.v1.BoundObjectReference#name + */ + readonly name?: string; + + /** + * UID of the referent. + * + * @schema io.k8s.api.authentication.v1.BoundObjectReference#uid + */ + readonly uid?: string; + +} + +/** + * Converts an object of type 'BoundObjectReference' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_BoundObjectReference(obj: BoundObjectReference | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'apiVersion': obj.apiVersion, + 'kind': obj.kind, + 'name': obj.name, + 'uid': obj.uid, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface + * + * @schema io.k8s.api.authorization.v1.NonResourceAttributes + */ +export interface NonResourceAttributes { + /** + * Path is the URL path of the request + * + * @schema io.k8s.api.authorization.v1.NonResourceAttributes#path + */ + readonly path?: string; + + /** + * Verb is the standard HTTP verb + * + * @schema io.k8s.api.authorization.v1.NonResourceAttributes#verb + */ + readonly verb?: string; + +} + +/** + * Converts an object of type 'NonResourceAttributes' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_NonResourceAttributes(obj: NonResourceAttributes | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'path': obj.path, + 'verb': obj.verb, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface + * + * @schema io.k8s.api.authorization.v1.ResourceAttributes + */ +export interface ResourceAttributes { + /** + * Group is the API Group of the Resource. "*" means all. + * + * @schema io.k8s.api.authorization.v1.ResourceAttributes#group + */ + readonly group?: string; + + /** + * Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. + * + * @schema io.k8s.api.authorization.v1.ResourceAttributes#name + */ + readonly name?: string; + + /** + * Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview + * + * @schema io.k8s.api.authorization.v1.ResourceAttributes#namespace + */ + readonly namespace?: string; + + /** + * Resource is one of the existing resource types. "*" means all. + * + * @schema io.k8s.api.authorization.v1.ResourceAttributes#resource + */ + readonly resource?: string; + + /** + * Subresource is one of the existing resource types. "" means none. + * + * @schema io.k8s.api.authorization.v1.ResourceAttributes#subresource + */ + readonly subresource?: string; + + /** + * Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. + * + * @schema io.k8s.api.authorization.v1.ResourceAttributes#verb + */ + readonly verb?: string; + + /** + * Version is the API Version of the Resource. "*" means all. + * + * @schema io.k8s.api.authorization.v1.ResourceAttributes#version + */ + readonly version?: string; + +} + +/** + * Converts an object of type 'ResourceAttributes' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ResourceAttributes(obj: ResourceAttributes | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'group': obj.group, + 'name': obj.name, + 'namespace': obj.namespace, + 'resource': obj.resource, + 'subresource': obj.subresource, + 'verb': obj.verb, + 'version': obj.version, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CrossVersionObjectReference contains enough information to let you identify the referred resource. + * + * @schema io.k8s.api.autoscaling.v1.CrossVersionObjectReference + */ +export interface CrossVersionObjectReference { + /** + * API version of the referent + * + * @schema io.k8s.api.autoscaling.v1.CrossVersionObjectReference#apiVersion + */ + readonly apiVersion?: string; + + /** + * Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + * + * @schema io.k8s.api.autoscaling.v1.CrossVersionObjectReference#kind + */ + readonly kind: string; + + /** + * Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + * + * @schema io.k8s.api.autoscaling.v1.CrossVersionObjectReference#name + */ + readonly name: string; + +} + +/** + * Converts an object of type 'CrossVersionObjectReference' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CrossVersionObjectReference(obj: CrossVersionObjectReference | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'apiVersion': obj.apiVersion, + 'kind': obj.kind, + 'name': obj.name, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). + * + * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerBehavior + */ +export interface HorizontalPodAutoscalerBehaviorV2 { + /** + * scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used). + * + * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerBehavior#scaleDown + */ + readonly scaleDown?: HpaScalingRulesV2; + + /** + * scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of: + * * increase no more than 4 pods per 60 seconds + * * double the number of pods per 60 seconds + * No stabilization is used. + * + * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerBehavior#scaleUp + */ + readonly scaleUp?: HpaScalingRulesV2; + +} + +/** + * Converts an object of type 'HorizontalPodAutoscalerBehaviorV2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_HorizontalPodAutoscalerBehaviorV2(obj: HorizontalPodAutoscalerBehaviorV2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'scaleDown': toJson_HpaScalingRulesV2(obj.scaleDown), + 'scaleUp': toJson_HpaScalingRulesV2(obj.scaleUp), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once). + * + * @schema io.k8s.api.autoscaling.v2.MetricSpec + */ +export interface MetricSpecV2 { + /** + * containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag. + * + * @schema io.k8s.api.autoscaling.v2.MetricSpec#containerResource + */ + readonly containerResource?: ContainerResourceMetricSourceV2; + + /** + * external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). + * + * @schema io.k8s.api.autoscaling.v2.MetricSpec#external + */ + readonly external?: ExternalMetricSourceV2; + + /** + * object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). + * + * @schema io.k8s.api.autoscaling.v2.MetricSpec#object + */ + readonly object?: ObjectMetricSourceV2; + + /** + * pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. + * + * @schema io.k8s.api.autoscaling.v2.MetricSpec#pods + */ + readonly pods?: PodsMetricSourceV2; + + /** + * resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. + * + * @schema io.k8s.api.autoscaling.v2.MetricSpec#resource + */ + readonly resource?: ResourceMetricSourceV2; + + /** + * type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled + * + * @schema io.k8s.api.autoscaling.v2.MetricSpec#type + */ + readonly type: string; + +} + +/** + * Converts an object of type 'MetricSpecV2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_MetricSpecV2(obj: MetricSpecV2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'containerResource': toJson_ContainerResourceMetricSourceV2(obj.containerResource), + 'external': toJson_ExternalMetricSourceV2(obj.external), + 'object': toJson_ObjectMetricSourceV2(obj.object), + 'pods': toJson_PodsMetricSourceV2(obj.pods), + 'resource': toJson_ResourceMetricSourceV2(obj.resource), + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CrossVersionObjectReference contains enough information to let you identify the referred resource. + * + * @schema io.k8s.api.autoscaling.v2.CrossVersionObjectReference + */ +export interface CrossVersionObjectReferenceV2 { + /** + * API version of the referent + * + * @schema io.k8s.api.autoscaling.v2.CrossVersionObjectReference#apiVersion + */ + readonly apiVersion?: string; + + /** + * Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + * + * @schema io.k8s.api.autoscaling.v2.CrossVersionObjectReference#kind + */ + readonly kind: string; + + /** + * Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + * + * @schema io.k8s.api.autoscaling.v2.CrossVersionObjectReference#name + */ + readonly name: string; + +} + +/** + * Converts an object of type 'CrossVersionObjectReferenceV2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CrossVersionObjectReferenceV2(obj: CrossVersionObjectReferenceV2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'apiVersion': obj.apiVersion, + 'kind': obj.kind, + 'name': obj.name, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). + * + * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerBehavior + */ +export interface HorizontalPodAutoscalerBehaviorV2Beta2 { + /** + * scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used). + * + * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerBehavior#scaleDown + */ + readonly scaleDown?: HpaScalingRulesV2Beta2; + + /** + * scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of: + * * increase no more than 4 pods per 60 seconds + * * double the number of pods per 60 seconds + * No stabilization is used. + * + * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerBehavior#scaleUp + */ + readonly scaleUp?: HpaScalingRulesV2Beta2; + +} + +/** + * Converts an object of type 'HorizontalPodAutoscalerBehaviorV2Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_HorizontalPodAutoscalerBehaviorV2Beta2(obj: HorizontalPodAutoscalerBehaviorV2Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'scaleDown': toJson_HpaScalingRulesV2Beta2(obj.scaleDown), + 'scaleUp': toJson_HpaScalingRulesV2Beta2(obj.scaleUp), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once). + * + * @schema io.k8s.api.autoscaling.v2beta2.MetricSpec + */ +export interface MetricSpecV2Beta2 { + /** + * container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag. + * + * @schema io.k8s.api.autoscaling.v2beta2.MetricSpec#containerResource + */ + readonly containerResource?: ContainerResourceMetricSourceV2Beta2; + + /** + * external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). + * + * @schema io.k8s.api.autoscaling.v2beta2.MetricSpec#external + */ + readonly external?: ExternalMetricSourceV2Beta2; + + /** + * object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). + * + * @schema io.k8s.api.autoscaling.v2beta2.MetricSpec#object + */ + readonly object?: ObjectMetricSourceV2Beta2; + + /** + * pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. + * + * @schema io.k8s.api.autoscaling.v2beta2.MetricSpec#pods + */ + readonly pods?: PodsMetricSourceV2Beta2; + + /** + * resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. + * + * @schema io.k8s.api.autoscaling.v2beta2.MetricSpec#resource + */ + readonly resource?: ResourceMetricSourceV2Beta2; + + /** + * type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled + * + * @schema io.k8s.api.autoscaling.v2beta2.MetricSpec#type + */ + readonly type: string; + +} + +/** + * Converts an object of type 'MetricSpecV2Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_MetricSpecV2Beta2(obj: MetricSpecV2Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'containerResource': toJson_ContainerResourceMetricSourceV2Beta2(obj.containerResource), + 'external': toJson_ExternalMetricSourceV2Beta2(obj.external), + 'object': toJson_ObjectMetricSourceV2Beta2(obj.object), + 'pods': toJson_PodsMetricSourceV2Beta2(obj.pods), + 'resource': toJson_ResourceMetricSourceV2Beta2(obj.resource), + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CrossVersionObjectReference contains enough information to let you identify the referred resource. + * + * @schema io.k8s.api.autoscaling.v2beta2.CrossVersionObjectReference + */ +export interface CrossVersionObjectReferenceV2Beta2 { + /** + * API version of the referent + * + * @schema io.k8s.api.autoscaling.v2beta2.CrossVersionObjectReference#apiVersion + */ + readonly apiVersion?: string; + + /** + * Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + * + * @schema io.k8s.api.autoscaling.v2beta2.CrossVersionObjectReference#kind + */ + readonly kind: string; + + /** + * Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + * + * @schema io.k8s.api.autoscaling.v2beta2.CrossVersionObjectReference#name + */ + readonly name: string; + +} + +/** + * Converts an object of type 'CrossVersionObjectReferenceV2Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CrossVersionObjectReferenceV2Beta2(obj: CrossVersionObjectReferenceV2Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'apiVersion': obj.apiVersion, + 'kind': obj.kind, + 'name': obj.name, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * JobTemplateSpec describes the data a Job should have when created from a template + * + * @schema io.k8s.api.batch.v1.JobTemplateSpec + */ +export interface JobTemplateSpec { + /** + * Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.batch.v1.JobTemplateSpec#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.batch.v1.JobTemplateSpec#spec + */ + readonly spec?: JobSpec; + +} + +/** + * Converts an object of type 'JobTemplateSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_JobTemplateSpec(obj: JobTemplateSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_JobSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodFailurePolicy describes how failed pods influence the backoffLimit. + * + * @schema io.k8s.api.batch.v1.PodFailurePolicy + */ +export interface PodFailurePolicy { + /** + * A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed. + * + * @schema io.k8s.api.batch.v1.PodFailurePolicy#rules + */ + readonly rules: PodFailurePolicyRule[]; + +} + +/** + * Converts an object of type 'PodFailurePolicy' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PodFailurePolicy(obj: PodFailurePolicy | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'rules': obj.rules?.map(y => toJson_PodFailurePolicyRule(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * EndpointAddress is a tuple that describes single IP address. + * + * @schema io.k8s.api.core.v1.EndpointAddress + */ +export interface EndpointAddress { + /** + * The Hostname of this endpoint + * + * @schema io.k8s.api.core.v1.EndpointAddress#hostname + */ + readonly hostname?: string; + + /** + * The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready. + * + * @schema io.k8s.api.core.v1.EndpointAddress#ip + */ + readonly ip: string; + + /** + * Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. + * + * @schema io.k8s.api.core.v1.EndpointAddress#nodeName + */ + readonly nodeName?: string; + + /** + * Reference to object providing the endpoint. + * + * @schema io.k8s.api.core.v1.EndpointAddress#targetRef + */ + readonly targetRef?: ObjectReference; + +} + +/** + * Converts an object of type 'EndpointAddress' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_EndpointAddress(obj: EndpointAddress | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'hostname': obj.hostname, + 'ip': obj.ip, + 'nodeName': obj.nodeName, + 'targetRef': toJson_ObjectReference(obj.targetRef), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * LimitRangeItem defines a min/max usage limit for any resource that matches on kind. + * + * @schema io.k8s.api.core.v1.LimitRangeItem + */ +export interface LimitRangeItem { + /** + * Default resource requirement limit value by resource name if resource limit is omitted. + * + * @schema io.k8s.api.core.v1.LimitRangeItem#default + */ + readonly default?: { [key: string]: Quantity }; + + /** + * DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. + * + * @schema io.k8s.api.core.v1.LimitRangeItem#defaultRequest + */ + readonly defaultRequest?: { [key: string]: Quantity }; + + /** + * Max usage constraints on this kind by resource name. + * + * @schema io.k8s.api.core.v1.LimitRangeItem#max + */ + readonly max?: { [key: string]: Quantity }; + + /** + * MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. + * + * @schema io.k8s.api.core.v1.LimitRangeItem#maxLimitRequestRatio + */ + readonly maxLimitRequestRatio?: { [key: string]: Quantity }; + + /** + * Min usage constraints on this kind by resource name. + * + * @schema io.k8s.api.core.v1.LimitRangeItem#min + */ + readonly min?: { [key: string]: Quantity }; + + /** + * Type of resource that this limit applies to. + * + * @schema io.k8s.api.core.v1.LimitRangeItem#type + */ + readonly type: string; + +} + +/** + * Converts an object of type 'LimitRangeItem' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_LimitRangeItem(obj: LimitRangeItem | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'default': ((obj.default) === undefined) ? undefined : (Object.entries(obj.default).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), + 'defaultRequest': ((obj.defaultRequest) === undefined) ? undefined : (Object.entries(obj.defaultRequest).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), + 'max': ((obj.max) === undefined) ? undefined : (Object.entries(obj.max).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), + 'maxLimitRequestRatio': ((obj.maxLimitRequestRatio) === undefined) ? undefined : (Object.entries(obj.maxLimitRequestRatio).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), + 'min': ((obj.min) === undefined) ? undefined : (Object.entries(obj.min).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22 + * + * @schema io.k8s.api.core.v1.NodeConfigSource + */ +export interface NodeConfigSource { + /** + * ConfigMap is a reference to a Node's ConfigMap + * + * @schema io.k8s.api.core.v1.NodeConfigSource#configMap + */ + readonly configMap?: ConfigMapNodeConfigSource; + +} + +/** + * Converts an object of type 'NodeConfigSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_NodeConfigSource(obj: NodeConfigSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'configMap': toJson_ConfigMapNodeConfigSource(obj.configMap), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * The node this Taint is attached to has the "effect" on any pod that does not tolerate the Taint. + * + * @schema io.k8s.api.core.v1.Taint + */ +export interface Taint { + /** + * Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. + * + * + * + * @schema io.k8s.api.core.v1.Taint#effect + */ + readonly effect: string; + + /** + * Required. The taint key to be applied to a node. + * + * @schema io.k8s.api.core.v1.Taint#key + */ + readonly key: string; + + /** + * TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. + * + * @schema io.k8s.api.core.v1.Taint#timeAdded + */ + readonly timeAdded?: Date; + + /** + * The taint value corresponding to the taint key. + * + * @schema io.k8s.api.core.v1.Taint#value + */ + readonly value?: string; + +} + +/** + * Converts an object of type 'Taint' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_Taint(obj: Taint | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'effect': obj.effect, + 'key': obj.key, + 'timeAdded': obj.timeAdded?.toISOString(), + 'value': obj.value, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a Persistent Disk resource in AWS. + * + * An AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling. + * + * @schema io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource + */ +export interface AwsElasticBlockStoreVolumeSource { + /** + * fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * + * @schema io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * + * @schema io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource#partition + */ + readonly partition?: number; + + /** + * readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * + * @schema io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * + * @schema io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource#volumeID + */ + readonly volumeId: string; + +} + +/** + * Converts an object of type 'AwsElasticBlockStoreVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_AwsElasticBlockStoreVolumeSource(obj: AwsElasticBlockStoreVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'fsType': obj.fsType, + 'partition': obj.partition, + 'readOnly': obj.readOnly, + 'volumeID': obj.volumeId, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * + * @schema io.k8s.api.core.v1.AzureDiskVolumeSource + */ +export interface AzureDiskVolumeSource { + /** + * cachingMode is the Host Caching mode: None, Read Only, Read Write. + * + * @schema io.k8s.api.core.v1.AzureDiskVolumeSource#cachingMode + */ + readonly cachingMode?: string; + + /** + * diskName is the Name of the data disk in the blob storage + * + * @schema io.k8s.api.core.v1.AzureDiskVolumeSource#diskName + */ + readonly diskName: string; + + /** + * diskURI is the URI of data disk in the blob storage + * + * @schema io.k8s.api.core.v1.AzureDiskVolumeSource#diskURI + */ + readonly diskUri: string; + + /** + * fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * + * @schema io.k8s.api.core.v1.AzureDiskVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * + * @schema io.k8s.api.core.v1.AzureDiskVolumeSource#kind + */ + readonly kind?: string; + + /** + * readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * + * @default false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * @schema io.k8s.api.core.v1.AzureDiskVolumeSource#readOnly + */ + readonly readOnly?: boolean; + +} + +/** + * Converts an object of type 'AzureDiskVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_AzureDiskVolumeSource(obj: AzureDiskVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'cachingMode': obj.cachingMode, + 'diskName': obj.diskName, + 'diskURI': obj.diskUri, + 'fsType': obj.fsType, + 'kind': obj.kind, + 'readOnly': obj.readOnly, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * + * @schema io.k8s.api.core.v1.AzureFilePersistentVolumeSource + */ +export interface AzureFilePersistentVolumeSource { + /** + * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * + * @schema io.k8s.api.core.v1.AzureFilePersistentVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * secretName is the name of secret that contains Azure Storage Account Name and Key + * + * @schema io.k8s.api.core.v1.AzureFilePersistentVolumeSource#secretName + */ + readonly secretName: string; + + /** + * secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod + * + * @schema io.k8s.api.core.v1.AzureFilePersistentVolumeSource#secretNamespace + */ + readonly secretNamespace?: string; + + /** + * shareName is the azure Share Name + * + * @schema io.k8s.api.core.v1.AzureFilePersistentVolumeSource#shareName + */ + readonly shareName: string; + +} + +/** + * Converts an object of type 'AzureFilePersistentVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_AzureFilePersistentVolumeSource(obj: AzureFilePersistentVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'readOnly': obj.readOnly, + 'secretName': obj.secretName, + 'secretNamespace': obj.secretNamespace, + 'shareName': obj.shareName, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. + * + * @schema io.k8s.api.core.v1.CephFSPersistentVolumeSource + */ +export interface CephFsPersistentVolumeSource { + /** + * monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * + * @schema io.k8s.api.core.v1.CephFSPersistentVolumeSource#monitors + */ + readonly monitors: string[]; + + /** + * path is Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * + * @schema io.k8s.api.core.v1.CephFSPersistentVolumeSource#path + */ + readonly path?: string; + + /** + * readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * + * @default false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * @schema io.k8s.api.core.v1.CephFSPersistentVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * + * @schema io.k8s.api.core.v1.CephFSPersistentVolumeSource#secretFile + */ + readonly secretFile?: string; + + /** + * secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * + * @schema io.k8s.api.core.v1.CephFSPersistentVolumeSource#secretRef + */ + readonly secretRef?: SecretReference; + + /** + * user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * + * @schema io.k8s.api.core.v1.CephFSPersistentVolumeSource#user + */ + readonly user?: string; + +} + +/** + * Converts an object of type 'CephFsPersistentVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CephFsPersistentVolumeSource(obj: CephFsPersistentVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'monitors': obj.monitors?.map(y => y), + 'path': obj.path, + 'readOnly': obj.readOnly, + 'secretFile': obj.secretFile, + 'secretRef': toJson_SecretReference(obj.secretRef), + 'user': obj.user, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling. + * + * @schema io.k8s.api.core.v1.CinderPersistentVolumeSource + */ +export interface CinderPersistentVolumeSource { + /** + * fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * + * @schema io.k8s.api.core.v1.CinderPersistentVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * + * @default false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * @schema io.k8s.api.core.v1.CinderPersistentVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack. + * + * @schema io.k8s.api.core.v1.CinderPersistentVolumeSource#secretRef + */ + readonly secretRef?: SecretReference; + + /** + * volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * + * @schema io.k8s.api.core.v1.CinderPersistentVolumeSource#volumeID + */ + readonly volumeId: string; + +} + +/** + * Converts an object of type 'CinderPersistentVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CinderPersistentVolumeSource(obj: CinderPersistentVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'fsType': obj.fsType, + 'readOnly': obj.readOnly, + 'secretRef': toJson_SecretReference(obj.secretRef), + 'volumeID': obj.volumeId, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents storage that is managed by an external CSI volume driver (Beta feature) + * + * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource + */ +export interface CsiPersistentVolumeSource { + /** + * controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an beta field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * + * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#controllerExpandSecretRef + */ + readonly controllerExpandSecretRef?: SecretReference; + + /** + * controllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * + * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#controllerPublishSecretRef + */ + readonly controllerPublishSecretRef?: SecretReference; + + /** + * driver is the name of the driver to use for this volume. Required. + * + * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#driver + */ + readonly driver: string; + + /** + * fsType to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". + * + * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * nodeExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeExpandVolume call. This is an alpha field and requires enabling CSINodeExpandSecret feature gate. This field is optional, may be omitted if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * + * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#nodeExpandSecretRef + */ + readonly nodeExpandSecretRef?: SecretReference; + + /** + * nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * + * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#nodePublishSecretRef + */ + readonly nodePublishSecretRef?: SecretReference; + + /** + * nodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * + * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#nodeStageSecretRef + */ + readonly nodeStageSecretRef?: SecretReference; + + /** + * readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). + * + * @default false (read/write). + * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * volumeAttributes of the volume to publish. + * + * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#volumeAttributes + */ + readonly volumeAttributes?: { [key: string]: string }; + + /** + * volumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. + * + * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#volumeHandle + */ + readonly volumeHandle: string; + +} + +/** + * Converts an object of type 'CsiPersistentVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CsiPersistentVolumeSource(obj: CsiPersistentVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'controllerExpandSecretRef': toJson_SecretReference(obj.controllerExpandSecretRef), + 'controllerPublishSecretRef': toJson_SecretReference(obj.controllerPublishSecretRef), + 'driver': obj.driver, + 'fsType': obj.fsType, + 'nodeExpandSecretRef': toJson_SecretReference(obj.nodeExpandSecretRef), + 'nodePublishSecretRef': toJson_SecretReference(obj.nodePublishSecretRef), + 'nodeStageSecretRef': toJson_SecretReference(obj.nodeStageSecretRef), + 'readOnly': obj.readOnly, + 'volumeAttributes': ((obj.volumeAttributes) === undefined) ? undefined : (Object.entries(obj.volumeAttributes).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + 'volumeHandle': obj.volumeHandle, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling. + * + * @schema io.k8s.api.core.v1.FCVolumeSource + */ +export interface FcVolumeSource { + /** + * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * + * @schema io.k8s.api.core.v1.FCVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * lun is Optional: FC target lun number + * + * @schema io.k8s.api.core.v1.FCVolumeSource#lun + */ + readonly lun?: number; + + /** + * readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * + * @default false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * @schema io.k8s.api.core.v1.FCVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * targetWWNs is Optional: FC target worldwide names (WWNs) + * + * @schema io.k8s.api.core.v1.FCVolumeSource#targetWWNs + */ + readonly targetWwNs?: string[]; + + /** + * wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + * + * @schema io.k8s.api.core.v1.FCVolumeSource#wwids + */ + readonly wwids?: string[]; + +} + +/** + * Converts an object of type 'FcVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_FcVolumeSource(obj: FcVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'fsType': obj.fsType, + 'lun': obj.lun, + 'readOnly': obj.readOnly, + 'targetWWNs': obj.targetWwNs?.map(y => y), + 'wwids': obj.wwids?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin. + * + * @schema io.k8s.api.core.v1.FlexPersistentVolumeSource + */ +export interface FlexPersistentVolumeSource { + /** + * driver is the name of the driver to use for this volume. + * + * @schema io.k8s.api.core.v1.FlexPersistentVolumeSource#driver + */ + readonly driver: string; + + /** + * fsType is the Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * + * @schema io.k8s.api.core.v1.FlexPersistentVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * options is Optional: this field holds extra command options if any. + * + * @schema io.k8s.api.core.v1.FlexPersistentVolumeSource#options + */ + readonly options?: { [key: string]: string }; + + /** + * readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * + * @schema io.k8s.api.core.v1.FlexPersistentVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * secretRef is Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + * + * @schema io.k8s.api.core.v1.FlexPersistentVolumeSource#secretRef + */ + readonly secretRef?: SecretReference; + +} + +/** + * Converts an object of type 'FlexPersistentVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_FlexPersistentVolumeSource(obj: FlexPersistentVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'driver': obj.driver, + 'fsType': obj.fsType, + 'options': ((obj.options) === undefined) ? undefined : (Object.entries(obj.options).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + 'readOnly': obj.readOnly, + 'secretRef': toJson_SecretReference(obj.secretRef), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling. + * + * @schema io.k8s.api.core.v1.FlockerVolumeSource + */ +export interface FlockerVolumeSource { + /** + * datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * + * @schema io.k8s.api.core.v1.FlockerVolumeSource#datasetName + */ + readonly datasetName?: string; + + /** + * datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset + * + * @schema io.k8s.api.core.v1.FlockerVolumeSource#datasetUUID + */ + readonly datasetUuid?: string; + +} + +/** + * Converts an object of type 'FlockerVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_FlockerVolumeSource(obj: FlockerVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'datasetName': obj.datasetName, + 'datasetUUID': obj.datasetUuid, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a Persistent Disk resource in Google Compute Engine. + * + * A GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling. + * + * @schema io.k8s.api.core.v1.GCEPersistentDiskVolumeSource + */ +export interface GcePersistentDiskVolumeSource { + /** + * fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * + * @schema io.k8s.api.core.v1.GCEPersistentDiskVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * + * @schema io.k8s.api.core.v1.GCEPersistentDiskVolumeSource#partition + */ + readonly partition?: number; + + /** + * pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * + * @schema io.k8s.api.core.v1.GCEPersistentDiskVolumeSource#pdName + */ + readonly pdName: string; + + /** + * readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * + * @default false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * @schema io.k8s.api.core.v1.GCEPersistentDiskVolumeSource#readOnly + */ + readonly readOnly?: boolean; + +} + +/** + * Converts an object of type 'GcePersistentDiskVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_GcePersistentDiskVolumeSource(obj: GcePersistentDiskVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'fsType': obj.fsType, + 'partition': obj.partition, + 'pdName': obj.pdName, + 'readOnly': obj.readOnly, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling. + * + * @schema io.k8s.api.core.v1.GlusterfsPersistentVolumeSource + */ +export interface GlusterfsPersistentVolumeSource { + /** + * endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * + * @schema io.k8s.api.core.v1.GlusterfsPersistentVolumeSource#endpoints + */ + readonly endpoints: string; + + /** + * endpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * + * @schema io.k8s.api.core.v1.GlusterfsPersistentVolumeSource#endpointsNamespace + */ + readonly endpointsNamespace?: string; + + /** + * path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * + * @schema io.k8s.api.core.v1.GlusterfsPersistentVolumeSource#path + */ + readonly path: string; + + /** + * readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * + * @default false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * @schema io.k8s.api.core.v1.GlusterfsPersistentVolumeSource#readOnly + */ + readonly readOnly?: boolean; + +} + +/** + * Converts an object of type 'GlusterfsPersistentVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_GlusterfsPersistentVolumeSource(obj: GlusterfsPersistentVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'endpoints': obj.endpoints, + 'endpointsNamespace': obj.endpointsNamespace, + 'path': obj.path, + 'readOnly': obj.readOnly, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling. + * + * @schema io.k8s.api.core.v1.HostPathVolumeSource + */ +export interface HostPathVolumeSource { + /** + * path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * + * @schema io.k8s.api.core.v1.HostPathVolumeSource#path + */ + readonly path: string; + + /** + * type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * + * @default More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * @schema io.k8s.api.core.v1.HostPathVolumeSource#type + */ + readonly type?: string; + +} + +/** + * Converts an object of type 'HostPathVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_HostPathVolumeSource(obj: HostPathVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'path': obj.path, + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling. + * + * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource + */ +export interface IscsiPersistentVolumeSource { + /** + * chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication + * + * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#chapAuthDiscovery + */ + readonly chapAuthDiscovery?: boolean; + + /** + * chapAuthSession defines whether support iSCSI Session CHAP authentication + * + * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#chapAuthSession + */ + readonly chapAuthSession?: boolean; + + /** + * fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * + * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * + * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#initiatorName + */ + readonly initiatorName?: string; + + /** + * iqn is Target iSCSI Qualified Name. + * + * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#iqn + */ + readonly iqn: string; + + /** + * iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * + * @default default' (tcp). + * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#iscsiInterface + */ + readonly iscsiInterface?: string; + + /** + * lun is iSCSI Target Lun number. + * + * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#lun + */ + readonly lun: number; + + /** + * portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * + * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#portals + */ + readonly portals?: string[]; + + /** + * readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * + * @default false. + * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * secretRef is the CHAP Secret for iSCSI target and initiator authentication + * + * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#secretRef + */ + readonly secretRef?: SecretReference; + + /** + * targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * + * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#targetPortal + */ + readonly targetPortal: string; + +} + +/** + * Converts an object of type 'IscsiPersistentVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_IscsiPersistentVolumeSource(obj: IscsiPersistentVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'chapAuthDiscovery': obj.chapAuthDiscovery, + 'chapAuthSession': obj.chapAuthSession, + 'fsType': obj.fsType, + 'initiatorName': obj.initiatorName, + 'iqn': obj.iqn, + 'iscsiInterface': obj.iscsiInterface, + 'lun': obj.lun, + 'portals': obj.portals?.map(y => y), + 'readOnly': obj.readOnly, + 'secretRef': toJson_SecretReference(obj.secretRef), + 'targetPortal': obj.targetPortal, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Local represents directly-attached storage with node affinity (Beta feature) + * + * @schema io.k8s.api.core.v1.LocalVolumeSource + */ +export interface LocalVolumeSource { + /** + * fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a filesystem if unspecified. + * + * @schema io.k8s.api.core.v1.LocalVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). + * + * @schema io.k8s.api.core.v1.LocalVolumeSource#path + */ + readonly path: string; + +} + +/** + * Converts an object of type 'LocalVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_LocalVolumeSource(obj: LocalVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'fsType': obj.fsType, + 'path': obj.path, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling. + * + * @schema io.k8s.api.core.v1.NFSVolumeSource + */ +export interface NfsVolumeSource { + /** + * path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * + * @schema io.k8s.api.core.v1.NFSVolumeSource#path + */ + readonly path: string; + + /** + * readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * + * @default false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * @schema io.k8s.api.core.v1.NFSVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * + * @schema io.k8s.api.core.v1.NFSVolumeSource#server + */ + readonly server: string; + +} + +/** + * Converts an object of type 'NfsVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_NfsVolumeSource(obj: NfsVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'path': obj.path, + 'readOnly': obj.readOnly, + 'server': obj.server, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from. + * + * @schema io.k8s.api.core.v1.VolumeNodeAffinity + */ +export interface VolumeNodeAffinity { + /** + * required specifies hard node constraints that must be met. + * + * @schema io.k8s.api.core.v1.VolumeNodeAffinity#required + */ + readonly required?: NodeSelector; + +} + +/** + * Converts an object of type 'VolumeNodeAffinity' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_VolumeNodeAffinity(obj: VolumeNodeAffinity | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'required': toJson_NodeSelector(obj.required), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a Photon Controller persistent disk resource. + * + * @schema io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource + */ +export interface PhotonPersistentDiskVolumeSource { + /** + * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * + * @schema io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * pdID is the ID that identifies Photon Controller persistent disk + * + * @schema io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource#pdID + */ + readonly pdId: string; + +} + +/** + * Converts an object of type 'PhotonPersistentDiskVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PhotonPersistentDiskVolumeSource(obj: PhotonPersistentDiskVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'fsType': obj.fsType, + 'pdID': obj.pdId, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PortworxVolumeSource represents a Portworx volume resource. + * + * @schema io.k8s.api.core.v1.PortworxVolumeSource + */ +export interface PortworxVolumeSource { + /** + * fSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * + * @schema io.k8s.api.core.v1.PortworxVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * + * @schema io.k8s.api.core.v1.PortworxVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * volumeID uniquely identifies a Portworx volume + * + * @schema io.k8s.api.core.v1.PortworxVolumeSource#volumeID + */ + readonly volumeId: string; + +} + +/** + * Converts an object of type 'PortworxVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PortworxVolumeSource(obj: PortworxVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'fsType': obj.fsType, + 'readOnly': obj.readOnly, + 'volumeID': obj.volumeId, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling. + * + * @schema io.k8s.api.core.v1.QuobyteVolumeSource + */ +export interface QuobyteVolumeSource { + /** + * group to map volume access to Default is no group + * + * @default no group + * @schema io.k8s.api.core.v1.QuobyteVolumeSource#group + */ + readonly group?: string; + + /** + * readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * + * @default false. + * @schema io.k8s.api.core.v1.QuobyteVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * + * @schema io.k8s.api.core.v1.QuobyteVolumeSource#registry + */ + readonly registry: string; + + /** + * tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * + * @schema io.k8s.api.core.v1.QuobyteVolumeSource#tenant + */ + readonly tenant?: string; + + /** + * user to map volume access to Defaults to serivceaccount user + * + * @default serivceaccount user + * @schema io.k8s.api.core.v1.QuobyteVolumeSource#user + */ + readonly user?: string; + + /** + * volume is a string that references an already created Quobyte volume by name. + * + * @schema io.k8s.api.core.v1.QuobyteVolumeSource#volume + */ + readonly volume: string; + +} + +/** + * Converts an object of type 'QuobyteVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_QuobyteVolumeSource(obj: QuobyteVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'group': obj.group, + 'readOnly': obj.readOnly, + 'registry': obj.registry, + 'tenant': obj.tenant, + 'user': obj.user, + 'volume': obj.volume, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. + * + * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource + */ +export interface RbdPersistentVolumeSource { + /** + * fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * + * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * + * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource#image + */ + readonly image: string; + + /** + * keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * + * @default etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource#keyring + */ + readonly keyring?: string; + + /** + * monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * + * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource#monitors + */ + readonly monitors: string[]; + + /** + * pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * + * @default rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource#pool + */ + readonly pool?: string; + + /** + * readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * + * @default false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * + * @default nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource#secretRef + */ + readonly secretRef?: SecretReference; + + /** + * user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * + * @default admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource#user + */ + readonly user?: string; + +} + +/** + * Converts an object of type 'RbdPersistentVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_RbdPersistentVolumeSource(obj: RbdPersistentVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'fsType': obj.fsType, + 'image': obj.image, + 'keyring': obj.keyring, + 'monitors': obj.monitors?.map(y => y), + 'pool': obj.pool, + 'readOnly': obj.readOnly, + 'secretRef': toJson_SecretReference(obj.secretRef), + 'user': obj.user, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume + * + * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource + */ +export interface ScaleIoPersistentVolumeSource { + /** + * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" + * + * @default xfs" + * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * gateway is the host address of the ScaleIO API Gateway. + * + * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#gateway + */ + readonly gateway: string; + + /** + * protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. + * + * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#protectionDomain + */ + readonly protectionDomain?: string; + + /** + * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * + * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * + * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#secretRef + */ + readonly secretRef: SecretReference; + + /** + * sslEnabled is the flag to enable/disable SSL communication with Gateway, default false + * + * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#sslEnabled + */ + readonly sslEnabled?: boolean; + + /** + * storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * + * @default ThinProvisioned. + * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#storageMode + */ + readonly storageMode?: string; + + /** + * storagePool is the ScaleIO Storage Pool associated with the protection domain. + * + * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#storagePool + */ + readonly storagePool?: string; + + /** + * system is the name of the storage system as configured in ScaleIO. + * + * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#system + */ + readonly system: string; + + /** + * volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source. + * + * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#volumeName + */ + readonly volumeName?: string; + +} + +/** + * Converts an object of type 'ScaleIoPersistentVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ScaleIoPersistentVolumeSource(obj: ScaleIoPersistentVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'fsType': obj.fsType, + 'gateway': obj.gateway, + 'protectionDomain': obj.protectionDomain, + 'readOnly': obj.readOnly, + 'secretRef': toJson_SecretReference(obj.secretRef), + 'sslEnabled': obj.sslEnabled, + 'storageMode': obj.storageMode, + 'storagePool': obj.storagePool, + 'system': obj.system, + 'volumeName': obj.volumeName, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a StorageOS persistent volume resource. + * + * @schema io.k8s.api.core.v1.StorageOSPersistentVolumeSource + */ +export interface StorageOsPersistentVolumeSource { + /** + * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * + * @schema io.k8s.api.core.v1.StorageOSPersistentVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * + * @schema io.k8s.api.core.v1.StorageOSPersistentVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * + * @schema io.k8s.api.core.v1.StorageOSPersistentVolumeSource#secretRef + */ + readonly secretRef?: ObjectReference; + + /** + * volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * + * @schema io.k8s.api.core.v1.StorageOSPersistentVolumeSource#volumeName + */ + readonly volumeName?: string; + + /** + * volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + * + * @schema io.k8s.api.core.v1.StorageOSPersistentVolumeSource#volumeNamespace + */ + readonly volumeNamespace?: string; + +} + +/** + * Converts an object of type 'StorageOsPersistentVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_StorageOsPersistentVolumeSource(obj: StorageOsPersistentVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'fsType': obj.fsType, + 'readOnly': obj.readOnly, + 'secretRef': toJson_ObjectReference(obj.secretRef), + 'volumeName': obj.volumeName, + 'volumeNamespace': obj.volumeNamespace, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a vSphere volume resource. + * + * @schema io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource + */ +export interface VsphereVirtualDiskVolumeSource { + /** + * fsType is filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * + * @schema io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * + * @schema io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource#storagePolicyID + */ + readonly storagePolicyId?: string; + + /** + * storagePolicyName is the storage Policy Based Management (SPBM) profile name. + * + * @schema io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource#storagePolicyName + */ + readonly storagePolicyName?: string; + + /** + * volumePath is the path that identifies vSphere volume vmdk + * + * @schema io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource#volumePath + */ + readonly volumePath: string; + +} + +/** + * Converts an object of type 'VsphereVirtualDiskVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_VsphereVirtualDiskVolumeSource(obj: VsphereVirtualDiskVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'fsType': obj.fsType, + 'storagePolicyID': obj.storagePolicyId, + 'storagePolicyName': obj.storagePolicyName, + 'volumePath': obj.volumePath, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace. + * + * @schema io.k8s.api.core.v1.TypedLocalObjectReference + */ +export interface TypedLocalObjectReference { + /** + * APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + * + * @schema io.k8s.api.core.v1.TypedLocalObjectReference#apiGroup + */ + readonly apiGroup?: string; + + /** + * Kind is the type of resource being referenced + * + * @schema io.k8s.api.core.v1.TypedLocalObjectReference#kind + */ + readonly kind: string; + + /** + * Name is the name of resource being referenced + * + * @schema io.k8s.api.core.v1.TypedLocalObjectReference#name + */ + readonly name: string; + +} + +/** + * Converts an object of type 'TypedLocalObjectReference' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_TypedLocalObjectReference(obj: TypedLocalObjectReference | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'apiGroup': obj.apiGroup, + 'kind': obj.kind, + 'name': obj.name, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ResourceRequirements describes the compute resource requirements. + * + * @schema io.k8s.api.core.v1.ResourceRequirements + */ +export interface ResourceRequirements { + /** + * Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + * + * @schema io.k8s.api.core.v1.ResourceRequirements#limits + */ + readonly limits?: { [key: string]: Quantity }; + + /** + * Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + * + * @schema io.k8s.api.core.v1.ResourceRequirements#requests + */ + readonly requests?: { [key: string]: Quantity }; + +} + +/** + * Converts an object of type 'ResourceRequirements' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ResourceRequirements(obj: ResourceRequirements | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'limits': ((obj.limits) === undefined) ? undefined : (Object.entries(obj.limits).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), + 'requests': ((obj.requests) === undefined) ? undefined : (Object.entries(obj.requests).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Affinity is a group of affinity scheduling rules. + * + * @schema io.k8s.api.core.v1.Affinity + */ +export interface Affinity { + /** + * Describes node affinity scheduling rules for the pod. + * + * @schema io.k8s.api.core.v1.Affinity#nodeAffinity + */ + readonly nodeAffinity?: NodeAffinity; + + /** + * Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * + * @schema io.k8s.api.core.v1.Affinity#podAffinity + */ + readonly podAffinity?: PodAffinity; + + /** + * Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * + * @schema io.k8s.api.core.v1.Affinity#podAntiAffinity + */ + readonly podAntiAffinity?: PodAntiAffinity; + +} + +/** + * Converts an object of type 'Affinity' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_Affinity(obj: Affinity | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'nodeAffinity': toJson_NodeAffinity(obj.nodeAffinity), + 'podAffinity': toJson_PodAffinity(obj.podAffinity), + 'podAntiAffinity': toJson_PodAntiAffinity(obj.podAntiAffinity), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * A single application container that you want to run within a pod. + * + * @schema io.k8s.api.core.v1.Container + */ +export interface Container { + /** + * Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * + * @schema io.k8s.api.core.v1.Container#args + */ + readonly args?: string[]; + + /** + * Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * + * @schema io.k8s.api.core.v1.Container#command + */ + readonly command?: string[]; + + /** + * List of environment variables to set in the container. Cannot be updated. + * + * @schema io.k8s.api.core.v1.Container#env + */ + readonly env?: EnvVar[]; + + /** + * List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * + * @schema io.k8s.api.core.v1.Container#envFrom + */ + readonly envFrom?: EnvFromSource[]; + + /** + * Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * + * @schema io.k8s.api.core.v1.Container#image + */ + readonly image?: string; + + /** + * Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * + * + * + * @default Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * @schema io.k8s.api.core.v1.Container#imagePullPolicy + */ + readonly imagePullPolicy?: string; + + /** + * Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * + * @schema io.k8s.api.core.v1.Container#lifecycle + */ + readonly lifecycle?: Lifecycle; + + /** + * Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * + * @schema io.k8s.api.core.v1.Container#livenessProbe + */ + readonly livenessProbe?: Probe; + + /** + * Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * + * @schema io.k8s.api.core.v1.Container#name + */ + readonly name: string; + + /** + * List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. + * + * @schema io.k8s.api.core.v1.Container#ports + */ + readonly ports?: ContainerPort[]; + + /** + * Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * + * @schema io.k8s.api.core.v1.Container#readinessProbe + */ + readonly readinessProbe?: Probe; + + /** + * Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + * + * @schema io.k8s.api.core.v1.Container#resources + */ + readonly resources?: ResourceRequirements; + + /** + * SecurityContext defines the security options the container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * + * @schema io.k8s.api.core.v1.Container#securityContext + */ + readonly securityContext?: SecurityContext; + + /** + * StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * + * @schema io.k8s.api.core.v1.Container#startupProbe + */ + readonly startupProbe?: Probe; + + /** + * Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * + * @default false. + * @schema io.k8s.api.core.v1.Container#stdin + */ + readonly stdin?: boolean; + + /** + * Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * + * @default false + * @schema io.k8s.api.core.v1.Container#stdinOnce + */ + readonly stdinOnce?: boolean; + + /** + * Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * + * @default dev/termination-log. Cannot be updated. + * @schema io.k8s.api.core.v1.Container#terminationMessagePath + */ + readonly terminationMessagePath?: string; + + /** + * Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * + * + * + * @default File. Cannot be updated. + * @schema io.k8s.api.core.v1.Container#terminationMessagePolicy + */ + readonly terminationMessagePolicy?: string; + + /** + * Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * + * @default false. + * @schema io.k8s.api.core.v1.Container#tty + */ + readonly tty?: boolean; + + /** + * volumeDevices is the list of block devices to be used by the container. + * + * @schema io.k8s.api.core.v1.Container#volumeDevices + */ + readonly volumeDevices?: VolumeDevice[]; + + /** + * Pod volumes to mount into the container's filesystem. Cannot be updated. + * + * @schema io.k8s.api.core.v1.Container#volumeMounts + */ + readonly volumeMounts?: VolumeMount[]; + + /** + * Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + * + * @schema io.k8s.api.core.v1.Container#workingDir + */ + readonly workingDir?: string; + +} + +/** + * Converts an object of type 'Container' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_Container(obj: Container | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'args': obj.args?.map(y => y), + 'command': obj.command?.map(y => y), + 'env': obj.env?.map(y => toJson_EnvVar(y)), + 'envFrom': obj.envFrom?.map(y => toJson_EnvFromSource(y)), + 'image': obj.image, + 'imagePullPolicy': obj.imagePullPolicy, + 'lifecycle': toJson_Lifecycle(obj.lifecycle), + 'livenessProbe': toJson_Probe(obj.livenessProbe), + 'name': obj.name, + 'ports': obj.ports?.map(y => toJson_ContainerPort(y)), + 'readinessProbe': toJson_Probe(obj.readinessProbe), + 'resources': toJson_ResourceRequirements(obj.resources), + 'securityContext': toJson_SecurityContext(obj.securityContext), + 'startupProbe': toJson_Probe(obj.startupProbe), + 'stdin': obj.stdin, + 'stdinOnce': obj.stdinOnce, + 'terminationMessagePath': obj.terminationMessagePath, + 'terminationMessagePolicy': obj.terminationMessagePolicy, + 'tty': obj.tty, + 'volumeDevices': obj.volumeDevices?.map(y => toJson_VolumeDevice(y)), + 'volumeMounts': obj.volumeMounts?.map(y => toJson_VolumeMount(y)), + 'workingDir': obj.workingDir, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy. + * + * @schema io.k8s.api.core.v1.PodDNSConfig + */ +export interface PodDnsConfig { + /** + * A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * + * @schema io.k8s.api.core.v1.PodDNSConfig#nameservers + */ + readonly nameservers?: string[]; + + /** + * A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * + * @schema io.k8s.api.core.v1.PodDNSConfig#options + */ + readonly options?: PodDnsConfigOption[]; + + /** + * A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + * + * @schema io.k8s.api.core.v1.PodDNSConfig#searches + */ + readonly searches?: string[]; + +} + +/** + * Converts an object of type 'PodDnsConfig' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PodDnsConfig(obj: PodDnsConfig | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'nameservers': obj.nameservers?.map(y => y), + 'options': obj.options?.map(y => toJson_PodDnsConfigOption(y)), + 'searches': obj.searches?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * An EphemeralContainer is a temporary container that you may add to an existing Pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a Pod is removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation. + * + * To add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted. + * + * @schema io.k8s.api.core.v1.EphemeralContainer + */ +export interface EphemeralContainer { + /** + * Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * + * @schema io.k8s.api.core.v1.EphemeralContainer#args + */ + readonly args?: string[]; + + /** + * Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * + * @schema io.k8s.api.core.v1.EphemeralContainer#command + */ + readonly command?: string[]; + + /** + * List of environment variables to set in the container. Cannot be updated. + * + * @schema io.k8s.api.core.v1.EphemeralContainer#env + */ + readonly env?: EnvVar[]; + + /** + * List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * + * @schema io.k8s.api.core.v1.EphemeralContainer#envFrom + */ + readonly envFrom?: EnvFromSource[]; + + /** + * Container image name. More info: https://kubernetes.io/docs/concepts/containers/images + * + * @schema io.k8s.api.core.v1.EphemeralContainer#image + */ + readonly image?: string; + + /** + * Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * + * + * + * @default Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * @schema io.k8s.api.core.v1.EphemeralContainer#imagePullPolicy + */ + readonly imagePullPolicy?: string; + + /** + * Lifecycle is not allowed for ephemeral containers. + * + * @schema io.k8s.api.core.v1.EphemeralContainer#lifecycle + */ + readonly lifecycle?: Lifecycle; + + /** + * Probes are not allowed for ephemeral containers. + * + * @schema io.k8s.api.core.v1.EphemeralContainer#livenessProbe + */ + readonly livenessProbe?: Probe; + + /** + * Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * + * @schema io.k8s.api.core.v1.EphemeralContainer#name + */ + readonly name: string; + + /** + * Ports are not allowed for ephemeral containers. + * + * @schema io.k8s.api.core.v1.EphemeralContainer#ports + */ + readonly ports?: ContainerPort[]; + + /** + * Probes are not allowed for ephemeral containers. + * + * @schema io.k8s.api.core.v1.EphemeralContainer#readinessProbe + */ + readonly readinessProbe?: Probe; + + /** + * Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * + * @schema io.k8s.api.core.v1.EphemeralContainer#resources + */ + readonly resources?: ResourceRequirements; + + /** + * Optional: SecurityContext defines the security options the ephemeral container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. + * + * @schema io.k8s.api.core.v1.EphemeralContainer#securityContext + */ + readonly securityContext?: SecurityContext; + + /** + * Probes are not allowed for ephemeral containers. + * + * @schema io.k8s.api.core.v1.EphemeralContainer#startupProbe + */ + readonly startupProbe?: Probe; + + /** + * Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * + * @default false. + * @schema io.k8s.api.core.v1.EphemeralContainer#stdin + */ + readonly stdin?: boolean; + + /** + * Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * + * @default false + * @schema io.k8s.api.core.v1.EphemeralContainer#stdinOnce + */ + readonly stdinOnce?: boolean; + + /** + * If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec. + * + * The container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined. + * + * @schema io.k8s.api.core.v1.EphemeralContainer#targetContainerName + */ + readonly targetContainerName?: string; + + /** + * Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * + * @default dev/termination-log. Cannot be updated. + * @schema io.k8s.api.core.v1.EphemeralContainer#terminationMessagePath + */ + readonly terminationMessagePath?: string; + + /** + * Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * + * + * + * @default File. Cannot be updated. + * @schema io.k8s.api.core.v1.EphemeralContainer#terminationMessagePolicy + */ + readonly terminationMessagePolicy?: string; + + /** + * Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * + * @default false. + * @schema io.k8s.api.core.v1.EphemeralContainer#tty + */ + readonly tty?: boolean; + + /** + * volumeDevices is the list of block devices to be used by the container. + * + * @schema io.k8s.api.core.v1.EphemeralContainer#volumeDevices + */ + readonly volumeDevices?: VolumeDevice[]; + + /** + * Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated. + * + * @schema io.k8s.api.core.v1.EphemeralContainer#volumeMounts + */ + readonly volumeMounts?: VolumeMount[]; + + /** + * Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + * + * @schema io.k8s.api.core.v1.EphemeralContainer#workingDir + */ + readonly workingDir?: string; + +} + +/** + * Converts an object of type 'EphemeralContainer' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_EphemeralContainer(obj: EphemeralContainer | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'args': obj.args?.map(y => y), + 'command': obj.command?.map(y => y), + 'env': obj.env?.map(y => toJson_EnvVar(y)), + 'envFrom': obj.envFrom?.map(y => toJson_EnvFromSource(y)), + 'image': obj.image, + 'imagePullPolicy': obj.imagePullPolicy, + 'lifecycle': toJson_Lifecycle(obj.lifecycle), + 'livenessProbe': toJson_Probe(obj.livenessProbe), + 'name': obj.name, + 'ports': obj.ports?.map(y => toJson_ContainerPort(y)), + 'readinessProbe': toJson_Probe(obj.readinessProbe), + 'resources': toJson_ResourceRequirements(obj.resources), + 'securityContext': toJson_SecurityContext(obj.securityContext), + 'startupProbe': toJson_Probe(obj.startupProbe), + 'stdin': obj.stdin, + 'stdinOnce': obj.stdinOnce, + 'targetContainerName': obj.targetContainerName, + 'terminationMessagePath': obj.terminationMessagePath, + 'terminationMessagePolicy': obj.terminationMessagePolicy, + 'tty': obj.tty, + 'volumeDevices': obj.volumeDevices?.map(y => toJson_VolumeDevice(y)), + 'volumeMounts': obj.volumeMounts?.map(y => toJson_VolumeMount(y)), + 'workingDir': obj.workingDir, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file. + * + * @schema io.k8s.api.core.v1.HostAlias + */ +export interface HostAlias { + /** + * Hostnames for the above IP address. + * + * @schema io.k8s.api.core.v1.HostAlias#hostnames + */ + readonly hostnames?: string[]; + + /** + * IP address of the host file entry. + * + * @schema io.k8s.api.core.v1.HostAlias#ip + */ + readonly ip?: string; + +} + +/** + * Converts an object of type 'HostAlias' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_HostAlias(obj: HostAlias | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'hostnames': obj.hostnames?.map(y => y), + 'ip': obj.ip, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodOS defines the OS parameters of a pod. + * + * @schema io.k8s.api.core.v1.PodOS + */ +export interface PodOs { + /** + * Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null + * + * @schema io.k8s.api.core.v1.PodOS#name + */ + readonly name: string; + +} + +/** + * Converts an object of type 'PodOs' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PodOs(obj: PodOs | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodReadinessGate contains the reference to a pod condition + * + * @schema io.k8s.api.core.v1.PodReadinessGate + */ +export interface PodReadinessGate { + /** + * ConditionType refers to a condition in the pod's condition list with matching type. + * + * @schema io.k8s.api.core.v1.PodReadinessGate#conditionType + */ + readonly conditionType: string; + +} + +/** + * Converts an object of type 'PodReadinessGate' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PodReadinessGate(obj: PodReadinessGate | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'conditionType': obj.conditionType, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext. + * + * @schema io.k8s.api.core.v1.PodSecurityContext + */ +export interface PodSecurityContext { + /** + * A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + * + * 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + * + * If unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows. + * + * @schema io.k8s.api.core.v1.PodSecurityContext#fsGroup + */ + readonly fsGroup?: number; + + /** + * fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used. Note that this field cannot be set when spec.os.name is windows. + * + * @schema io.k8s.api.core.v1.PodSecurityContext#fsGroupChangePolicy + */ + readonly fsGroupChangePolicy?: string; + + /** + * The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. + * + * @schema io.k8s.api.core.v1.PodSecurityContext#runAsGroup + */ + readonly runAsGroup?: number; + + /** + * Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * + * @schema io.k8s.api.core.v1.PodSecurityContext#runAsNonRoot + */ + readonly runAsNonRoot?: boolean; + + /** + * The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. + * + * @default user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. + * @schema io.k8s.api.core.v1.PodSecurityContext#runAsUser + */ + readonly runAsUser?: number; + + /** + * The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. + * + * @schema io.k8s.api.core.v1.PodSecurityContext#seLinuxOptions + */ + readonly seLinuxOptions?: SeLinuxOptions; + + /** + * The seccomp options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows. + * + * @schema io.k8s.api.core.v1.PodSecurityContext#seccompProfile + */ + readonly seccompProfile?: SeccompProfile; + + /** + * A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. Note that this field cannot be set when spec.os.name is windows. + * + * @schema io.k8s.api.core.v1.PodSecurityContext#supplementalGroups + */ + readonly supplementalGroups?: number[]; + + /** + * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows. + * + * @schema io.k8s.api.core.v1.PodSecurityContext#sysctls + */ + readonly sysctls?: Sysctl[]; + + /** + * The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux. + * + * @schema io.k8s.api.core.v1.PodSecurityContext#windowsOptions + */ + readonly windowsOptions?: WindowsSecurityContextOptions; + +} + +/** + * Converts an object of type 'PodSecurityContext' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PodSecurityContext(obj: PodSecurityContext | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'fsGroup': obj.fsGroup, + 'fsGroupChangePolicy': obj.fsGroupChangePolicy, + 'runAsGroup': obj.runAsGroup, + 'runAsNonRoot': obj.runAsNonRoot, + 'runAsUser': obj.runAsUser, + 'seLinuxOptions': toJson_SeLinuxOptions(obj.seLinuxOptions), + 'seccompProfile': toJson_SeccompProfile(obj.seccompProfile), + 'supplementalGroups': obj.supplementalGroups?.map(y => y), + 'sysctls': obj.sysctls?.map(y => toJson_Sysctl(y)), + 'windowsOptions': toJson_WindowsSecurityContextOptions(obj.windowsOptions), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator . + * + * @schema io.k8s.api.core.v1.Toleration + */ +export interface Toleration { + /** + * Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * + * + * + * @schema io.k8s.api.core.v1.Toleration#effect + */ + readonly effect?: string; + + /** + * Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * + * @schema io.k8s.api.core.v1.Toleration#key + */ + readonly key?: string; + + /** + * Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * + * + * + * @default Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * @schema io.k8s.api.core.v1.Toleration#operator + */ + readonly operator?: string; + + /** + * TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * + * @schema io.k8s.api.core.v1.Toleration#tolerationSeconds + */ + readonly tolerationSeconds?: number; + + /** + * Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + * + * @schema io.k8s.api.core.v1.Toleration#value + */ + readonly value?: string; + +} + +/** + * Converts an object of type 'Toleration' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_Toleration(obj: Toleration | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'effect': obj.effect, + 'key': obj.key, + 'operator': obj.operator, + 'tolerationSeconds': obj.tolerationSeconds, + 'value': obj.value, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * TopologySpreadConstraint specifies how to spread matching pods among the given topology. + * + * @schema io.k8s.api.core.v1.TopologySpreadConstraint + */ +export interface TopologySpreadConstraint { + /** + * LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * + * @schema io.k8s.api.core.v1.TopologySpreadConstraint#labelSelector + */ + readonly labelSelector?: LabelSelector; + + /** + * MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. + * + * @schema io.k8s.api.core.v1.TopologySpreadConstraint#matchLabelKeys + */ + readonly matchLabelKeys?: string[]; + + /** + * MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed. + * + * @schema io.k8s.api.core.v1.TopologySpreadConstraint#maxSkew + */ + readonly maxSkew: number; + + /** + * MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. + * + * For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. + * + * This is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default). + * + * @schema io.k8s.api.core.v1.TopologySpreadConstraint#minDomains + */ + readonly minDomains?: number; + + /** + * NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. + * + * If this value is nil, the behavior is equivalent to the Honor policy. This is a alpha-level feature enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. + * + * @schema io.k8s.api.core.v1.TopologySpreadConstraint#nodeAffinityPolicy + */ + readonly nodeAffinityPolicy?: string; + + /** + * NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. + * + * If this value is nil, the behavior is equivalent to the Ignore policy. This is a alpha-level feature enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. + * + * @schema io.k8s.api.core.v1.TopologySpreadConstraint#nodeTaintsPolicy + */ + readonly nodeTaintsPolicy?: string; + + /** + * TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is "kubernetes.io/hostname", each Node is a domain of that topology. And, if TopologyKey is "topology.kubernetes.io/zone", each zone is a domain of that topology. It's a required field. + * + * @schema io.k8s.api.core.v1.TopologySpreadConstraint#topologyKey + */ + readonly topologyKey: string; + + /** + * WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location, + * but giving higher precedence to topologies that would help reduce the + * skew. + * A constraint is considered "Unsatisfiable" for an incoming pod if and only if every possible node assignment for that pod would violate "MaxSkew" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + * + * + * + * @schema io.k8s.api.core.v1.TopologySpreadConstraint#whenUnsatisfiable + */ + readonly whenUnsatisfiable: string; + +} + +/** + * Converts an object of type 'TopologySpreadConstraint' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_TopologySpreadConstraint(obj: TopologySpreadConstraint | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'labelSelector': toJson_LabelSelector(obj.labelSelector), + 'matchLabelKeys': obj.matchLabelKeys?.map(y => y), + 'maxSkew': obj.maxSkew, + 'minDomains': obj.minDomains, + 'nodeAffinityPolicy': obj.nodeAffinityPolicy, + 'nodeTaintsPolicy': obj.nodeTaintsPolicy, + 'topologyKey': obj.topologyKey, + 'whenUnsatisfiable': obj.whenUnsatisfiable, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Volume represents a named volume in a pod that may be accessed by any container in the pod. + * + * @schema io.k8s.api.core.v1.Volume + */ +export interface Volume { + /** + * awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * + * @schema io.k8s.api.core.v1.Volume#awsElasticBlockStore + */ + readonly awsElasticBlockStore?: AwsElasticBlockStoreVolumeSource; + + /** + * azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * + * @schema io.k8s.api.core.v1.Volume#azureDisk + */ + readonly azureDisk?: AzureDiskVolumeSource; + + /** + * azureFile represents an Azure File Service mount on the host and bind mount to the pod. + * + * @schema io.k8s.api.core.v1.Volume#azureFile + */ + readonly azureFile?: AzureFileVolumeSource; + + /** + * cephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * + * @schema io.k8s.api.core.v1.Volume#cephfs + */ + readonly cephfs?: CephFsVolumeSource; + + /** + * cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * + * @schema io.k8s.api.core.v1.Volume#cinder + */ + readonly cinder?: CinderVolumeSource; + + /** + * configMap represents a configMap that should populate this volume + * + * @schema io.k8s.api.core.v1.Volume#configMap + */ + readonly configMap?: ConfigMapVolumeSource; + + /** + * csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature). + * + * @schema io.k8s.api.core.v1.Volume#csi + */ + readonly csi?: CsiVolumeSource; + + /** + * downwardAPI represents downward API about the pod that should populate this volume + * + * @schema io.k8s.api.core.v1.Volume#downwardAPI + */ + readonly downwardApi?: DownwardApiVolumeSource; + + /** + * emptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * + * @schema io.k8s.api.core.v1.Volume#emptyDir + */ + readonly emptyDir?: EmptyDirVolumeSource; + + /** + * ephemeral represents a volume that is handled by a cluster storage driver. The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts, and deleted when the pod is removed. + * + * Use this if: a) the volume is only needed while the pod runs, b) features of normal volumes like restoring from snapshot or capacity + * tracking are needed, + * c) the storage driver is specified through a storage class, and d) the storage driver supports dynamic volume provisioning through + * a PersistentVolumeClaim (see EphemeralVolumeSource for more + * information on the connection between this volume type + * and PersistentVolumeClaim). + * + * Use PersistentVolumeClaim or one of the vendor-specific APIs for volumes that persist for longer than the lifecycle of an individual pod. + * + * Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to be used that way - see the documentation of the driver for more information. + * + * A pod can use both types of ephemeral volumes and persistent volumes at the same time. + * + * @schema io.k8s.api.core.v1.Volume#ephemeral + */ + readonly ephemeral?: EphemeralVolumeSource; + + /** + * fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * + * @schema io.k8s.api.core.v1.Volume#fc + */ + readonly fc?: FcVolumeSource; + + /** + * flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * + * @schema io.k8s.api.core.v1.Volume#flexVolume + */ + readonly flexVolume?: FlexVolumeSource; + + /** + * flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * + * @schema io.k8s.api.core.v1.Volume#flocker + */ + readonly flocker?: FlockerVolumeSource; + + /** + * gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * + * @schema io.k8s.api.core.v1.Volume#gcePersistentDisk + */ + readonly gcePersistentDisk?: GcePersistentDiskVolumeSource; + + /** + * gitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * + * @schema io.k8s.api.core.v1.Volume#gitRepo + */ + readonly gitRepo?: GitRepoVolumeSource; + + /** + * glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * + * @schema io.k8s.api.core.v1.Volume#glusterfs + */ + readonly glusterfs?: GlusterfsVolumeSource; + + /** + * hostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * + * @schema io.k8s.api.core.v1.Volume#hostPath + */ + readonly hostPath?: HostPathVolumeSource; + + /** + * iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * + * @schema io.k8s.api.core.v1.Volume#iscsi + */ + readonly iscsi?: IscsiVolumeSource; + + /** + * name of the volume. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * + * @schema io.k8s.api.core.v1.Volume#name + */ + readonly name: string; + + /** + * nfs represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * + * @schema io.k8s.api.core.v1.Volume#nfs + */ + readonly nfs?: NfsVolumeSource; + + /** + * persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * + * @schema io.k8s.api.core.v1.Volume#persistentVolumeClaim + */ + readonly persistentVolumeClaim?: PersistentVolumeClaimVolumeSource; + + /** + * photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * + * @schema io.k8s.api.core.v1.Volume#photonPersistentDisk + */ + readonly photonPersistentDisk?: PhotonPersistentDiskVolumeSource; + + /** + * portworxVolume represents a portworx volume attached and mounted on kubelets host machine + * + * @schema io.k8s.api.core.v1.Volume#portworxVolume + */ + readonly portworxVolume?: PortworxVolumeSource; + + /** + * projected items for all in one resources secrets, configmaps, and downward API + * + * @schema io.k8s.api.core.v1.Volume#projected + */ + readonly projected?: ProjectedVolumeSource; + + /** + * quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * + * @schema io.k8s.api.core.v1.Volume#quobyte + */ + readonly quobyte?: QuobyteVolumeSource; + + /** + * rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * + * @schema io.k8s.api.core.v1.Volume#rbd + */ + readonly rbd?: RbdVolumeSource; + + /** + * scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * + * @schema io.k8s.api.core.v1.Volume#scaleIO + */ + readonly scaleIo?: ScaleIoVolumeSource; + + /** + * secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * + * @schema io.k8s.api.core.v1.Volume#secret + */ + readonly secret?: SecretVolumeSource; + + /** + * storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * + * @schema io.k8s.api.core.v1.Volume#storageos + */ + readonly storageos?: StorageOsVolumeSource; + + /** + * vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * + * @schema io.k8s.api.core.v1.Volume#vsphereVolume + */ + readonly vsphereVolume?: VsphereVirtualDiskVolumeSource; + +} + +/** + * Converts an object of type 'Volume' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_Volume(obj: Volume | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'awsElasticBlockStore': toJson_AwsElasticBlockStoreVolumeSource(obj.awsElasticBlockStore), + 'azureDisk': toJson_AzureDiskVolumeSource(obj.azureDisk), + 'azureFile': toJson_AzureFileVolumeSource(obj.azureFile), + 'cephfs': toJson_CephFsVolumeSource(obj.cephfs), + 'cinder': toJson_CinderVolumeSource(obj.cinder), + 'configMap': toJson_ConfigMapVolumeSource(obj.configMap), + 'csi': toJson_CsiVolumeSource(obj.csi), + 'downwardAPI': toJson_DownwardApiVolumeSource(obj.downwardApi), + 'emptyDir': toJson_EmptyDirVolumeSource(obj.emptyDir), + 'ephemeral': toJson_EphemeralVolumeSource(obj.ephemeral), + 'fc': toJson_FcVolumeSource(obj.fc), + 'flexVolume': toJson_FlexVolumeSource(obj.flexVolume), + 'flocker': toJson_FlockerVolumeSource(obj.flocker), + 'gcePersistentDisk': toJson_GcePersistentDiskVolumeSource(obj.gcePersistentDisk), + 'gitRepo': toJson_GitRepoVolumeSource(obj.gitRepo), + 'glusterfs': toJson_GlusterfsVolumeSource(obj.glusterfs), + 'hostPath': toJson_HostPathVolumeSource(obj.hostPath), + 'iscsi': toJson_IscsiVolumeSource(obj.iscsi), + 'name': obj.name, + 'nfs': toJson_NfsVolumeSource(obj.nfs), + 'persistentVolumeClaim': toJson_PersistentVolumeClaimVolumeSource(obj.persistentVolumeClaim), + 'photonPersistentDisk': toJson_PhotonPersistentDiskVolumeSource(obj.photonPersistentDisk), + 'portworxVolume': toJson_PortworxVolumeSource(obj.portworxVolume), + 'projected': toJson_ProjectedVolumeSource(obj.projected), + 'quobyte': toJson_QuobyteVolumeSource(obj.quobyte), + 'rbd': toJson_RbdVolumeSource(obj.rbd), + 'scaleIO': toJson_ScaleIoVolumeSource(obj.scaleIo), + 'secret': toJson_SecretVolumeSource(obj.secret), + 'storageos': toJson_StorageOsVolumeSource(obj.storageos), + 'vsphereVolume': toJson_VsphereVirtualDiskVolumeSource(obj.vsphereVolume), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements. + * + * @schema io.k8s.api.core.v1.ScopeSelector + */ +export interface ScopeSelector { + /** + * A list of scope selector requirements by scope of the resources. + * + * @schema io.k8s.api.core.v1.ScopeSelector#matchExpressions + */ + readonly matchExpressions?: ScopedResourceSelectorRequirement[]; + +} + +/** + * Converts an object of type 'ScopeSelector' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ScopeSelector(obj: ScopeSelector | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'matchExpressions': obj.matchExpressions?.map(y => toJson_ScopedResourceSelectorRequirement(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ServicePort contains information on service's port. + * + * @schema io.k8s.api.core.v1.ServicePort + */ +export interface ServicePort { + /** + * The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. + * + * @schema io.k8s.api.core.v1.ServicePort#appProtocol + */ + readonly appProtocol?: string; + + /** + * The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service. + * + * @schema io.k8s.api.core.v1.ServicePort#name + */ + readonly name?: string; + + /** + * The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport + * + * @schema io.k8s.api.core.v1.ServicePort#nodePort + */ + readonly nodePort?: number; + + /** + * The port that will be exposed by this service. + * + * @schema io.k8s.api.core.v1.ServicePort#port + */ + readonly port: number; + + /** + * The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". Default is TCP. + * + * + * + * @default TCP. + * @schema io.k8s.api.core.v1.ServicePort#protocol + */ + readonly protocol?: string; + + /** + * Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service + * + * @schema io.k8s.api.core.v1.ServicePort#targetPort + */ + readonly targetPort?: IntOrString; + +} + +/** + * Converts an object of type 'ServicePort' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ServicePort(obj: ServicePort | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'appProtocol': obj.appProtocol, + 'name': obj.name, + 'nodePort': obj.nodePort, + 'port': obj.port, + 'protocol': obj.protocol, + 'targetPort': obj.targetPort?.value, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * SessionAffinityConfig represents the configurations of session affinity. + * + * @schema io.k8s.api.core.v1.SessionAffinityConfig + */ +export interface SessionAffinityConfig { + /** + * clientIP contains the configurations of Client IP based session affinity. + * + * @schema io.k8s.api.core.v1.SessionAffinityConfig#clientIP + */ + readonly clientIp?: ClientIpConfig; + +} + +/** + * Converts an object of type 'SessionAffinityConfig' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_SessionAffinityConfig(obj: SessionAffinityConfig | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'clientIP': toJson_ClientIpConfig(obj.clientIp), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * EndpointConditions represents the current condition of an endpoint. + * + * @schema io.k8s.api.discovery.v1.EndpointConditions + */ +export interface EndpointConditions { + /** + * ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be "true" for terminating endpoints. + * + * @schema io.k8s.api.discovery.v1.EndpointConditions#ready + */ + readonly ready?: boolean; + + /** + * serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition. This field can be enabled with the EndpointSliceTerminatingCondition feature gate. + * + * @schema io.k8s.api.discovery.v1.EndpointConditions#serving + */ + readonly serving?: boolean; + + /** + * terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating. This field can be enabled with the EndpointSliceTerminatingCondition feature gate. + * + * @schema io.k8s.api.discovery.v1.EndpointConditions#terminating + */ + readonly terminating?: boolean; + +} + +/** + * Converts an object of type 'EndpointConditions' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_EndpointConditions(obj: EndpointConditions | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'ready': obj.ready, + 'serving': obj.serving, + 'terminating': obj.terminating, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * EndpointHints provides hints describing how an endpoint should be consumed. + * + * @schema io.k8s.api.discovery.v1.EndpointHints + */ +export interface EndpointHints { + /** + * forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing. + * + * @schema io.k8s.api.discovery.v1.EndpointHints#forZones + */ + readonly forZones?: ForZone[]; + +} + +/** + * Converts an object of type 'EndpointHints' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_EndpointHints(obj: EndpointHints | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'forZones': obj.forZones?.map(y => toJson_ForZone(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * FlowDistinguisherMethod specifies the method of a flow distinguisher. + * + * @schema io.k8s.api.flowcontrol.v1beta1.FlowDistinguisherMethod + */ +export interface FlowDistinguisherMethodV1Beta1 { + /** + * `type` is the type of flow distinguisher method The supported types are "ByUser" and "ByNamespace". Required. + * + * @schema io.k8s.api.flowcontrol.v1beta1.FlowDistinguisherMethod#type + */ + readonly type: string; + +} + +/** + * Converts an object of type 'FlowDistinguisherMethodV1Beta1' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_FlowDistinguisherMethodV1Beta1(obj: FlowDistinguisherMethodV1Beta1 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PriorityLevelConfigurationReference contains information that points to the "request-priority" being used. + * + * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationReference + */ +export interface PriorityLevelConfigurationReferenceV1Beta1 { + /** + * `name` is the name of the priority level configuration being referenced Required. + * + * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationReference#name + */ + readonly name: string; + +} + +/** + * Converts an object of type 'PriorityLevelConfigurationReferenceV1Beta1' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PriorityLevelConfigurationReferenceV1Beta1(obj: PriorityLevelConfigurationReferenceV1Beta1 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * 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. + * + * @schema io.k8s.api.flowcontrol.v1beta1.PolicyRulesWithSubjects + */ +export interface PolicyRulesWithSubjectsV1Beta1 { + /** + * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. + * + * @schema io.k8s.api.flowcontrol.v1beta1.PolicyRulesWithSubjects#nonResourceRules + */ + readonly nonResourceRules?: NonResourcePolicyRuleV1Beta1[]; + + /** + * `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. + * + * @schema io.k8s.api.flowcontrol.v1beta1.PolicyRulesWithSubjects#resourceRules + */ + readonly resourceRules?: ResourcePolicyRuleV1Beta1[]; + + /** + * 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. + * + * @schema io.k8s.api.flowcontrol.v1beta1.PolicyRulesWithSubjects#subjects + */ + readonly subjects: SubjectV1Beta1[]; + +} + +/** + * Converts an object of type 'PolicyRulesWithSubjectsV1Beta1' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PolicyRulesWithSubjectsV1Beta1(obj: PolicyRulesWithSubjectsV1Beta1 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'nonResourceRules': obj.nonResourceRules?.map(y => toJson_NonResourcePolicyRuleV1Beta1(y)), + 'resourceRules': obj.resourceRules?.map(y => toJson_ResourcePolicyRuleV1Beta1(y)), + 'subjects': obj.subjects?.map(y => toJson_SubjectV1Beta1(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues: + * - How are requests for this priority level limited? + * - What should be done with requests that exceed the limit? + * + * @schema io.k8s.api.flowcontrol.v1beta1.LimitedPriorityLevelConfiguration + */ +export interface LimitedPriorityLevelConfigurationV1Beta1 { + /** + * `assuredConcurrencyShares` (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be exeucting at a given time. ACS must be a positive number. The server's concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) --- the number of requests that may be executing at a time --- for each such priority level: + * + * ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) ) + * + * bigger numbers of ACS mean more reserved concurrent requests (at the expense of every other PL). This field has a default value of 30. + * + * @schema io.k8s.api.flowcontrol.v1beta1.LimitedPriorityLevelConfiguration#assuredConcurrencyShares + */ + readonly assuredConcurrencyShares?: number; + + /** + * `limitResponse` indicates what to do with requests that can not be executed right now + * + * @schema io.k8s.api.flowcontrol.v1beta1.LimitedPriorityLevelConfiguration#limitResponse + */ + readonly limitResponse?: LimitResponseV1Beta1; + +} + +/** + * Converts an object of type 'LimitedPriorityLevelConfigurationV1Beta1' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_LimitedPriorityLevelConfigurationV1Beta1(obj: LimitedPriorityLevelConfigurationV1Beta1 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'assuredConcurrencyShares': obj.assuredConcurrencyShares, + 'limitResponse': toJson_LimitResponseV1Beta1(obj.limitResponse), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * FlowDistinguisherMethod specifies the method of a flow distinguisher. + * + * @schema io.k8s.api.flowcontrol.v1beta2.FlowDistinguisherMethod + */ +export interface FlowDistinguisherMethodV1Beta2 { + /** + * `type` is the type of flow distinguisher method The supported types are "ByUser" and "ByNamespace". Required. + * + * @schema io.k8s.api.flowcontrol.v1beta2.FlowDistinguisherMethod#type + */ + readonly type: string; + +} + +/** + * Converts an object of type 'FlowDistinguisherMethodV1Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_FlowDistinguisherMethodV1Beta2(obj: FlowDistinguisherMethodV1Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PriorityLevelConfigurationReference contains information that points to the "request-priority" being used. + * + * @schema io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationReference + */ +export interface PriorityLevelConfigurationReferenceV1Beta2 { + /** + * `name` is the name of the priority level configuration being referenced Required. + * + * @schema io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationReference#name + */ + readonly name: string; + +} + +/** + * Converts an object of type 'PriorityLevelConfigurationReferenceV1Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PriorityLevelConfigurationReferenceV1Beta2(obj: PriorityLevelConfigurationReferenceV1Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * 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. + * + * @schema io.k8s.api.flowcontrol.v1beta2.PolicyRulesWithSubjects + */ +export interface PolicyRulesWithSubjectsV1Beta2 { + /** + * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. + * + * @schema io.k8s.api.flowcontrol.v1beta2.PolicyRulesWithSubjects#nonResourceRules + */ + readonly nonResourceRules?: NonResourcePolicyRuleV1Beta2[]; + + /** + * `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. + * + * @schema io.k8s.api.flowcontrol.v1beta2.PolicyRulesWithSubjects#resourceRules + */ + readonly resourceRules?: ResourcePolicyRuleV1Beta2[]; + + /** + * 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. + * + * @schema io.k8s.api.flowcontrol.v1beta2.PolicyRulesWithSubjects#subjects + */ + readonly subjects: SubjectV1Beta2[]; + +} + +/** + * Converts an object of type 'PolicyRulesWithSubjectsV1Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PolicyRulesWithSubjectsV1Beta2(obj: PolicyRulesWithSubjectsV1Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'nonResourceRules': obj.nonResourceRules?.map(y => toJson_NonResourcePolicyRuleV1Beta2(y)), + 'resourceRules': obj.resourceRules?.map(y => toJson_ResourcePolicyRuleV1Beta2(y)), + 'subjects': obj.subjects?.map(y => toJson_SubjectV1Beta2(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues: + * - How are requests for this priority level limited? + * - What should be done with requests that exceed the limit? + * + * @schema io.k8s.api.flowcontrol.v1beta2.LimitedPriorityLevelConfiguration + */ +export interface LimitedPriorityLevelConfigurationV1Beta2 { + /** + * `assuredConcurrencyShares` (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be exeucting at a given time. ACS must be a positive number. The server's concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) --- the number of requests that may be executing at a time --- for each such priority level: + * + * ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) ) + * + * bigger numbers of ACS mean more reserved concurrent requests (at the expense of every other PL). This field has a default value of 30. + * + * @schema io.k8s.api.flowcontrol.v1beta2.LimitedPriorityLevelConfiguration#assuredConcurrencyShares + */ + readonly assuredConcurrencyShares?: number; + + /** + * `limitResponse` indicates what to do with requests that can not be executed right now + * + * @schema io.k8s.api.flowcontrol.v1beta2.LimitedPriorityLevelConfiguration#limitResponse + */ + readonly limitResponse?: LimitResponseV1Beta2; + +} + +/** + * Converts an object of type 'LimitedPriorityLevelConfigurationV1Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_LimitedPriorityLevelConfigurationV1Beta2(obj: LimitedPriorityLevelConfigurationV1Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'assuredConcurrencyShares': obj.assuredConcurrencyShares, + 'limitResponse': toJson_LimitResponseV1Beta2(obj.limitResponse), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * IngressBackend describes all endpoints for a given service and port. + * + * @schema io.k8s.api.networking.v1.IngressBackend + */ +export interface IngressBackend { + /** + * Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with "Service". + * + * @schema io.k8s.api.networking.v1.IngressBackend#resource + */ + readonly resource?: TypedLocalObjectReference; + + /** + * Service references a Service as a Backend. This is a mutually exclusive setting with "Resource". + * + * @schema io.k8s.api.networking.v1.IngressBackend#service + */ + readonly service?: IngressServiceBackend; + +} + +/** + * Converts an object of type 'IngressBackend' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_IngressBackend(obj: IngressBackend | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'resource': toJson_TypedLocalObjectReference(obj.resource), + 'service': toJson_IngressServiceBackend(obj.service), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue. + * + * @schema io.k8s.api.networking.v1.IngressRule + */ +export interface IngressRule { + /** + * Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the "host" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to + * the IP in the Spec of the parent Ingress. + * 2. The `:` delimiter is not respected because ports are not allowed. + * Currently the port of an Ingress is implicitly :80 for http and + * :443 for https. + * Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. + * + * Host can be "precise" which is a domain name without the terminating dot of a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. "*.foo.com"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). Requests will be matched against the Host field in the following way: 1. If Host is precise, the request matches this rule if the http host header is equal to Host. 2. If Host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule. + * + * @schema io.k8s.api.networking.v1.IngressRule#host + */ + readonly host?: string; + + /** + * @schema io.k8s.api.networking.v1.IngressRule#http + */ + readonly http?: HttpIngressRuleValue; + +} + +/** + * Converts an object of type 'IngressRule' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_IngressRule(obj: IngressRule | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'host': obj.host, + 'http': toJson_HttpIngressRuleValue(obj.http), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * IngressTLS describes the transport layer security associated with an Ingress. + * + * @schema io.k8s.api.networking.v1.IngressTLS + */ +export interface IngressTls { + /** + * Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. + * + * @default the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. + * @schema io.k8s.api.networking.v1.IngressTLS#hosts + */ + readonly hosts?: string[]; + + /** + * SecretName is the name of the secret used to terminate TLS traffic on port 443. Field is left optional to allow TLS routing based on SNI hostname alone. If the SNI host in a listener conflicts with the "Host" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. + * + * @schema io.k8s.api.networking.v1.IngressTLS#secretName + */ + readonly secretName?: string; + +} + +/** + * Converts an object of type 'IngressTls' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_IngressTls(obj: IngressTls | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'hosts': obj.hosts?.map(y => y), + 'secretName': obj.secretName, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource. + * + * @schema io.k8s.api.networking.v1.IngressClassParametersReference + */ +export interface IngressClassParametersReference { + /** + * APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + * + * @schema io.k8s.api.networking.v1.IngressClassParametersReference#apiGroup + */ + readonly apiGroup?: string; + + /** + * Kind is the type of resource being referenced. + * + * @schema io.k8s.api.networking.v1.IngressClassParametersReference#kind + */ + readonly kind: string; + + /** + * Name is the name of resource being referenced. + * + * @schema io.k8s.api.networking.v1.IngressClassParametersReference#name + */ + readonly name: string; + + /** + * Namespace is the namespace of the resource being referenced. This field is required when scope is set to "Namespace" and must be unset when scope is set to "Cluster". + * + * @schema io.k8s.api.networking.v1.IngressClassParametersReference#namespace + */ + readonly namespace?: string; + + /** + * Scope represents if this refers to a cluster or namespace scoped resource. This may be set to "Cluster" (default) or "Namespace". + * + * @schema io.k8s.api.networking.v1.IngressClassParametersReference#scope + */ + readonly scope?: string; + +} + +/** + * Converts an object of type 'IngressClassParametersReference' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_IngressClassParametersReference(obj: IngressClassParametersReference | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'apiGroup': obj.apiGroup, + 'kind': obj.kind, + 'name': obj.name, + 'namespace': obj.namespace, + 'scope': obj.scope, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8 + * + * @schema io.k8s.api.networking.v1.NetworkPolicyEgressRule + */ +export interface NetworkPolicyEgressRule { + /** + * List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + * + * @schema io.k8s.api.networking.v1.NetworkPolicyEgressRule#ports + */ + readonly ports?: NetworkPolicyPort[]; + + /** + * List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. + * + * @schema io.k8s.api.networking.v1.NetworkPolicyEgressRule#to + */ + readonly to?: NetworkPolicyPeer[]; + +} + +/** + * Converts an object of type 'NetworkPolicyEgressRule' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_NetworkPolicyEgressRule(obj: NetworkPolicyEgressRule | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'ports': obj.ports?.map(y => toJson_NetworkPolicyPort(y)), + 'to': obj.to?.map(y => toJson_NetworkPolicyPeer(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from. + * + * @schema io.k8s.api.networking.v1.NetworkPolicyIngressRule + */ +export interface NetworkPolicyIngressRule { + /** + * List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. + * + * @schema io.k8s.api.networking.v1.NetworkPolicyIngressRule#from + */ + readonly from?: NetworkPolicyPeer[]; + + /** + * List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + * + * @schema io.k8s.api.networking.v1.NetworkPolicyIngressRule#ports + */ + readonly ports?: NetworkPolicyPort[]; + +} + +/** + * Converts an object of type 'NetworkPolicyIngressRule' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_NetworkPolicyIngressRule(obj: NetworkPolicyIngressRule | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'from': obj.from?.map(y => toJson_NetworkPolicyPeer(y)), + 'ports': obj.ports?.map(y => toJson_NetworkPolicyPort(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms. + * + * @schema io.k8s.api.core.v1.NodeSelector + */ +export interface NodeSelector { + /** + * Required. A list of node selector terms. The terms are ORed. + * + * @schema io.k8s.api.core.v1.NodeSelector#nodeSelectorTerms + */ + readonly nodeSelectorTerms: NodeSelectorTerm[]; + +} + +/** + * Converts an object of type 'NodeSelector' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_NodeSelector(obj: NodeSelector | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'nodeSelectorTerms': obj.nodeSelectorTerms?.map(y => toJson_NodeSelectorTerm(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * 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 + * + * @schema IoK8SApimachineryPkgApisMetaV1DeleteOptionsKind + */ +export enum IoK8SApimachineryPkgApisMetaV1DeleteOptionsKind { + /** DeleteOptions */ + DELETE_OPTIONS = "DeleteOptions", +} + +/** + * Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions + */ +export interface Preconditions { + /** + * Specifies the target ResourceVersion + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions#resourceVersion + */ + readonly resourceVersion?: string; + + /** + * Specifies the target UID. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions#uid + */ + readonly uid?: string; + +} + +/** + * Converts an object of type 'Preconditions' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_Preconditions(obj: Preconditions | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'resourceVersion': obj.resourceVersion, + 'uid': obj.uid, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * @schema io.k8s.apimachinery.pkg.util.intstr.IntOrString + */ +export class IntOrString { + public static fromString(value: string): IntOrString { + return new IntOrString(value); + } + public static fromNumber(value: number): IntOrString { + return new IntOrString(value); + } + private constructor(public readonly value: string | number) { + } +} + +/** + * TokenRequest contains parameters of a service account token. + * + * @schema io.k8s.api.storage.v1.TokenRequest + */ +export interface TokenRequest { + /** + * Audience is the intended audience of the token in "TokenRequestSpec". It will default to the audiences of kube apiserver. + * + * @schema io.k8s.api.storage.v1.TokenRequest#audience + */ + readonly audience: string; + + /** + * ExpirationSeconds is the duration of validity of the token in "TokenRequestSpec". It has the same default value of "ExpirationSeconds" in "TokenRequestSpec". + * + * @schema io.k8s.api.storage.v1.TokenRequest#expirationSeconds + */ + readonly expirationSeconds?: number; + +} + +/** + * Converts an object of type 'TokenRequest' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_TokenRequest(obj: TokenRequest | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'audience': obj.audience, + 'expirationSeconds': obj.expirationSeconds, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CSINodeDriver holds information about the specification of one CSI driver installed on a node + * + * @schema io.k8s.api.storage.v1.CSINodeDriver + */ +export interface CsiNodeDriver { + /** + * allocatable represents the volume resources of a node that are available for scheduling. This field is beta. + * + * @schema io.k8s.api.storage.v1.CSINodeDriver#allocatable + */ + readonly allocatable?: VolumeNodeResources; + + /** + * This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver. + * + * @schema io.k8s.api.storage.v1.CSINodeDriver#name + */ + readonly name: string; + + /** + * nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as "node1", but the storage system may refer to the same node as "nodeA". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. "nodeA" instead of "node1". This field is required. + * + * @schema io.k8s.api.storage.v1.CSINodeDriver#nodeID + */ + readonly nodeId: string; + + /** + * topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. "company.com/zone", "company.com/region"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology. + * + * @schema io.k8s.api.storage.v1.CSINodeDriver#topologyKeys + */ + readonly topologyKeys?: string[]; + +} + +/** + * Converts an object of type 'CsiNodeDriver' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CsiNodeDriver(obj: CsiNodeDriver | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'allocatable': toJson_VolumeNodeResources(obj.allocatable), + 'name': obj.name, + 'nodeID': obj.nodeId, + 'topologyKeys': obj.topologyKeys?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement + */ +export interface LabelSelectorRequirement { + /** + * key is the label key that the selector applies to. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement#key + */ + readonly key: string; + + /** + * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement#operator + */ + readonly operator: string; + + /** + * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement#values + */ + readonly values?: string[]; + +} + +/** + * Converts an object of type 'LabelSelectorRequirement' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_LabelSelectorRequirement(obj: LabelSelectorRequirement | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'key': obj.key, + 'operator': obj.operator, + 'values': obj.values?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future. + * + * @schema io.k8s.api.core.v1.TopologySelectorLabelRequirement + */ +export interface TopologySelectorLabelRequirement { + /** + * The label key that the selector applies to. + * + * @schema io.k8s.api.core.v1.TopologySelectorLabelRequirement#key + */ + readonly key: string; + + /** + * An array of string values. One value must match the label to be selected. Each entry in Values is ORed. + * + * @schema io.k8s.api.core.v1.TopologySelectorLabelRequirement#values + */ + readonly values: string[]; + +} + +/** + * Converts an object of type 'TopologySelectorLabelRequirement' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_TopologySelectorLabelRequirement(obj: TopologySelectorLabelRequirement | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'key': obj.key, + 'values': obj.values?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set. + * + * @schema io.k8s.api.storage.v1.VolumeAttachmentSource + */ +export interface VolumeAttachmentSource { + /** + * inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature. + * + * @schema io.k8s.api.storage.v1.VolumeAttachmentSource#inlineVolumeSpec + */ + readonly inlineVolumeSpec?: PersistentVolumeSpec; + + /** + * Name of the persistent volume to attach. + * + * @schema io.k8s.api.storage.v1.VolumeAttachmentSource#persistentVolumeName + */ + readonly persistentVolumeName?: string; + +} + +/** + * Converts an object of type 'VolumeAttachmentSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_VolumeAttachmentSource(obj: VolumeAttachmentSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'inlineVolumeSpec': toJson_PersistentVolumeSpec(obj.inlineVolumeSpec), + 'persistentVolumeName': obj.persistentVolumeName, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CustomResourceConversion describes how to convert different versions of a CR. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceConversion + */ +export interface CustomResourceConversion { + /** + * strategy specifies how custom resources are converted between versions. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information + * is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceConversion#strategy + */ + readonly strategy: string; + + /** + * webhook describes how to call the conversion webhook. Required when `strategy` is set to `Webhook`. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceConversion#webhook + */ + readonly webhook?: WebhookConversion; + +} + +/** + * Converts an object of type 'CustomResourceConversion' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CustomResourceConversion(obj: CustomResourceConversion | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'strategy': obj.strategy, + 'webhook': toJson_WebhookConversion(obj.webhook), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames + */ +export interface CustomResourceDefinitionNames { + /** + * categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames#categories + */ + readonly categories?: string[]; + + /** + * kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames#kind + */ + readonly kind: string; + + /** + * listKind is the serialized kind of the list for this resource. Defaults to "`kind`List". + * + * @default kind`List". + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames#listKind + */ + readonly listKind?: string; + + /** + * plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames#plural + */ + readonly plural: string; + + /** + * shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames#shortNames + */ + readonly shortNames?: string[]; + + /** + * singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. + * + * @default lowercased `kind`. + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames#singular + */ + readonly singular?: string; + +} + +/** + * Converts an object of type 'CustomResourceDefinitionNames' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CustomResourceDefinitionNames(obj: CustomResourceDefinitionNames | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'categories': obj.categories?.map(y => y), + 'kind': obj.kind, + 'listKind': obj.listKind, + 'plural': obj.plural, + 'shortNames': obj.shortNames?.map(y => y), + 'singular': obj.singular, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CustomResourceDefinitionVersion describes a version for CRD. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion + */ +export interface CustomResourceDefinitionVersion { + /** + * additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If no columns are specified, a single column displaying the age of the custom resource is used. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion#additionalPrinterColumns + */ + readonly additionalPrinterColumns?: CustomResourceColumnDefinition[]; + + /** + * deprecated indicates this version of the custom resource API is deprecated. When set to true, API requests to this version receive a warning header in the server response. Defaults to false. + * + * @default false. + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion#deprecated + */ + readonly deprecated?: boolean; + + /** + * deprecationWarning overrides the default warning returned to API clients. May only be set when `deprecated` is true. The default warning indicates this version is deprecated and recommends use of the newest served version of equal or greater stability, if one exists. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion#deprecationWarning + */ + readonly deprecationWarning?: string; + + /** + * name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis///...` if `served` is true. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion#name + */ + readonly name: string; + + /** + * schema describes the schema used for validation, pruning, and defaulting of this version of the custom resource. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion#schema + */ + readonly schema?: CustomResourceValidation; + + /** + * served is a flag enabling/disabling this version from being served via REST APIs + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion#served + */ + readonly served: boolean; + + /** + * storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion#storage + */ + readonly storage: boolean; + + /** + * subresources specify what subresources this version of the defined custom resource have. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion#subresources + */ + readonly subresources?: CustomResourceSubresources; + +} + +/** + * Converts an object of type 'CustomResourceDefinitionVersion' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CustomResourceDefinitionVersion(obj: CustomResourceDefinitionVersion | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'additionalPrinterColumns': obj.additionalPrinterColumns?.map(y => toJson_CustomResourceColumnDefinition(y)), + 'deprecated': obj.deprecated, + 'deprecationWarning': obj.deprecationWarning, + 'name': obj.name, + 'schema': toJson_CustomResourceValidation(obj.schema), + 'served': obj.served, + 'storage': obj.storage, + 'subresources': toJson_CustomResourceSubresources(obj.subresources), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause + */ +export interface StatusCause { + /** + * The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. + * + * Examples: + * "name" - the field "name" on the current resource + * "items[0].name" - the field "name" on the first array entry in "items" + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause#field + */ + readonly field?: string; + + /** + * A human-readable description of the cause of the error. This field may be presented as-is to a reader. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause#message + */ + readonly message?: string; + + /** + * A machine-readable description of the cause of the error. If this value is empty there is no information available. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause#reason + */ + readonly reason?: string; + +} + +/** + * Converts an object of type 'StatusCause' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_StatusCause(obj: StatusCause | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'field': obj.field, + 'message': obj.message, + 'reason': obj.reason, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ServiceReference holds a reference to Service.legacy.k8s.io + * + * @schema io.k8s.api.admissionregistration.v1.ServiceReference + */ +export interface ServiceReference { + /** + * `name` is the name of the service. Required + * + * @schema io.k8s.api.admissionregistration.v1.ServiceReference#name + */ + readonly name: string; + + /** + * `namespace` is the namespace of the service. Required + * + * @schema io.k8s.api.admissionregistration.v1.ServiceReference#namespace + */ + readonly namespace: string; + + /** + * `path` is an optional URL path which will be sent in any request to this service. + * + * @schema io.k8s.api.admissionregistration.v1.ServiceReference#path + */ + readonly path?: string; + + /** + * If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + * + * @default 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + * @schema io.k8s.api.admissionregistration.v1.ServiceReference#port + */ + readonly port?: number; + +} + +/** + * Converts an object of type 'ServiceReference' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ServiceReference(obj: ServiceReference | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + 'namespace': obj.namespace, + 'path': obj.path, + 'port': obj.port, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Spec to control the desired behavior of daemon set rolling update. + * + * @schema io.k8s.api.apps.v1.RollingUpdateDaemonSet + */ +export interface RollingUpdateDaemonSet { + /** + * The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption. + * + * @schema io.k8s.api.apps.v1.RollingUpdateDaemonSet#maxSurge + */ + readonly maxSurge?: IntOrString; + + /** + * The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0 if MaxSurge is 0 Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. + * + * @schema io.k8s.api.apps.v1.RollingUpdateDaemonSet#maxUnavailable + */ + readonly maxUnavailable?: IntOrString; + +} + +/** + * Converts an object of type 'RollingUpdateDaemonSet' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_RollingUpdateDaemonSet(obj: RollingUpdateDaemonSet | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'maxSurge': obj.maxSurge?.value, + 'maxUnavailable': obj.maxUnavailable?.value, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Spec to control the desired behavior of rolling update. + * + * @schema io.k8s.api.apps.v1.RollingUpdateDeployment + */ +export interface RollingUpdateDeployment { + /** + * The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. + * + * @default 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. + * @schema io.k8s.api.apps.v1.RollingUpdateDeployment#maxSurge + */ + readonly maxSurge?: IntOrString; + + /** + * The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + * + * @default 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + * @schema io.k8s.api.apps.v1.RollingUpdateDeployment#maxUnavailable + */ + readonly maxUnavailable?: IntOrString; + +} + +/** + * Converts an object of type 'RollingUpdateDeployment' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_RollingUpdateDeployment(obj: RollingUpdateDeployment | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'maxSurge': obj.maxSurge?.value, + 'maxUnavailable': obj.maxUnavailable?.value, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. + * + * @schema io.k8s.api.apps.v1.RollingUpdateStatefulSetStrategy + */ +export interface RollingUpdateStatefulSetStrategy { + /** + * The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0. Defaults to 1. This field is alpha-level and is only honored by servers that enable the MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable. + * + * @default 1. This field is alpha-level and is only honored by servers that enable the MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable. + * @schema io.k8s.api.apps.v1.RollingUpdateStatefulSetStrategy#maxUnavailable + */ + readonly maxUnavailable?: IntOrString; + + /** + * Partition indicates the ordinal at which the StatefulSet should be partitioned for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0. + * + * @schema io.k8s.api.apps.v1.RollingUpdateStatefulSetStrategy#partition + */ + readonly partition?: number; + +} + +/** + * Converts an object of type 'RollingUpdateStatefulSetStrategy' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_RollingUpdateStatefulSetStrategy(obj: RollingUpdateStatefulSetStrategy | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'maxUnavailable': obj.maxUnavailable?.value, + 'partition': obj.partition, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen. + * + * @schema io.k8s.api.autoscaling.v2.HPAScalingRules + */ +export interface HpaScalingRulesV2 { + /** + * policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid + * + * @schema io.k8s.api.autoscaling.v2.HPAScalingRules#policies + */ + readonly policies?: HpaScalingPolicyV2[]; + + /** + * selectPolicy is used to specify which policy should be used. If not set, the default value Max is used. + * + * @schema io.k8s.api.autoscaling.v2.HPAScalingRules#selectPolicy + */ + readonly selectPolicy?: string; + + /** + * StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long). + * + * @schema io.k8s.api.autoscaling.v2.HPAScalingRules#stabilizationWindowSeconds + */ + readonly stabilizationWindowSeconds?: number; + +} + +/** + * Converts an object of type 'HpaScalingRulesV2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_HpaScalingRulesV2(obj: HpaScalingRulesV2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'policies': obj.policies?.map(y => toJson_HpaScalingPolicyV2(y)), + 'selectPolicy': obj.selectPolicy, + 'stabilizationWindowSeconds': obj.stabilizationWindowSeconds, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Only one "target" type should be set. + * + * @schema io.k8s.api.autoscaling.v2.ContainerResourceMetricSource + */ +export interface ContainerResourceMetricSourceV2 { + /** + * container is the name of the container in the pods of the scaling target + * + * @schema io.k8s.api.autoscaling.v2.ContainerResourceMetricSource#container + */ + readonly container: string; + + /** + * name is the name of the resource in question. + * + * @schema io.k8s.api.autoscaling.v2.ContainerResourceMetricSource#name + */ + readonly name: string; + + /** + * target specifies the target value for the given metric + * + * @schema io.k8s.api.autoscaling.v2.ContainerResourceMetricSource#target + */ + readonly target: MetricTargetV2; + +} + +/** + * Converts an object of type 'ContainerResourceMetricSourceV2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ContainerResourceMetricSourceV2(obj: ContainerResourceMetricSourceV2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'container': obj.container, + 'name': obj.name, + 'target': toJson_MetricTargetV2(obj.target), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). + * + * @schema io.k8s.api.autoscaling.v2.ExternalMetricSource + */ +export interface ExternalMetricSourceV2 { + /** + * metric identifies the target metric by name and selector + * + * @schema io.k8s.api.autoscaling.v2.ExternalMetricSource#metric + */ + readonly metric: MetricIdentifierV2; + + /** + * target specifies the target value for the given metric + * + * @schema io.k8s.api.autoscaling.v2.ExternalMetricSource#target + */ + readonly target: MetricTargetV2; + +} + +/** + * Converts an object of type 'ExternalMetricSourceV2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ExternalMetricSourceV2(obj: ExternalMetricSourceV2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metric': toJson_MetricIdentifierV2(obj.metric), + 'target': toJson_MetricTargetV2(obj.target), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). + * + * @schema io.k8s.api.autoscaling.v2.ObjectMetricSource + */ +export interface ObjectMetricSourceV2 { + /** + * describedObject specifies the descriptions of a object,such as kind,name apiVersion + * + * @schema io.k8s.api.autoscaling.v2.ObjectMetricSource#describedObject + */ + readonly describedObject: CrossVersionObjectReferenceV2; + + /** + * metric identifies the target metric by name and selector + * + * @schema io.k8s.api.autoscaling.v2.ObjectMetricSource#metric + */ + readonly metric: MetricIdentifierV2; + + /** + * target specifies the target value for the given metric + * + * @schema io.k8s.api.autoscaling.v2.ObjectMetricSource#target + */ + readonly target: MetricTargetV2; + +} + +/** + * Converts an object of type 'ObjectMetricSourceV2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ObjectMetricSourceV2(obj: ObjectMetricSourceV2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'describedObject': toJson_CrossVersionObjectReferenceV2(obj.describedObject), + 'metric': toJson_MetricIdentifierV2(obj.metric), + 'target': toJson_MetricTargetV2(obj.target), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. + * + * @schema io.k8s.api.autoscaling.v2.PodsMetricSource + */ +export interface PodsMetricSourceV2 { + /** + * metric identifies the target metric by name and selector + * + * @schema io.k8s.api.autoscaling.v2.PodsMetricSource#metric + */ + readonly metric: MetricIdentifierV2; + + /** + * target specifies the target value for the given metric + * + * @schema io.k8s.api.autoscaling.v2.PodsMetricSource#target + */ + readonly target: MetricTargetV2; + +} + +/** + * Converts an object of type 'PodsMetricSourceV2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PodsMetricSourceV2(obj: PodsMetricSourceV2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metric': toJson_MetricIdentifierV2(obj.metric), + 'target': toJson_MetricTargetV2(obj.target), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Only one "target" type should be set. + * + * @schema io.k8s.api.autoscaling.v2.ResourceMetricSource + */ +export interface ResourceMetricSourceV2 { + /** + * name is the name of the resource in question. + * + * @schema io.k8s.api.autoscaling.v2.ResourceMetricSource#name + */ + readonly name: string; + + /** + * target specifies the target value for the given metric + * + * @schema io.k8s.api.autoscaling.v2.ResourceMetricSource#target + */ + readonly target: MetricTargetV2; + +} + +/** + * Converts an object of type 'ResourceMetricSourceV2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ResourceMetricSourceV2(obj: ResourceMetricSourceV2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + 'target': toJson_MetricTargetV2(obj.target), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen. + * + * @schema io.k8s.api.autoscaling.v2beta2.HPAScalingRules + */ +export interface HpaScalingRulesV2Beta2 { + /** + * policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid + * + * @schema io.k8s.api.autoscaling.v2beta2.HPAScalingRules#policies + */ + readonly policies?: HpaScalingPolicyV2Beta2[]; + + /** + * selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used. + * + * @schema io.k8s.api.autoscaling.v2beta2.HPAScalingRules#selectPolicy + */ + readonly selectPolicy?: string; + + /** + * StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long). + * + * @schema io.k8s.api.autoscaling.v2beta2.HPAScalingRules#stabilizationWindowSeconds + */ + readonly stabilizationWindowSeconds?: number; + +} + +/** + * Converts an object of type 'HpaScalingRulesV2Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_HpaScalingRulesV2Beta2(obj: HpaScalingRulesV2Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'policies': obj.policies?.map(y => toJson_HpaScalingPolicyV2Beta2(y)), + 'selectPolicy': obj.selectPolicy, + 'stabilizationWindowSeconds': obj.stabilizationWindowSeconds, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Only one "target" type should be set. + * + * @schema io.k8s.api.autoscaling.v2beta2.ContainerResourceMetricSource + */ +export interface ContainerResourceMetricSourceV2Beta2 { + /** + * container is the name of the container in the pods of the scaling target + * + * @schema io.k8s.api.autoscaling.v2beta2.ContainerResourceMetricSource#container + */ + readonly container: string; + + /** + * name is the name of the resource in question. + * + * @schema io.k8s.api.autoscaling.v2beta2.ContainerResourceMetricSource#name + */ + readonly name: string; + + /** + * target specifies the target value for the given metric + * + * @schema io.k8s.api.autoscaling.v2beta2.ContainerResourceMetricSource#target + */ + readonly target: MetricTargetV2Beta2; + +} + +/** + * Converts an object of type 'ContainerResourceMetricSourceV2Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ContainerResourceMetricSourceV2Beta2(obj: ContainerResourceMetricSourceV2Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'container': obj.container, + 'name': obj.name, + 'target': toJson_MetricTargetV2Beta2(obj.target), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). + * + * @schema io.k8s.api.autoscaling.v2beta2.ExternalMetricSource + */ +export interface ExternalMetricSourceV2Beta2 { + /** + * metric identifies the target metric by name and selector + * + * @schema io.k8s.api.autoscaling.v2beta2.ExternalMetricSource#metric + */ + readonly metric: MetricIdentifierV2Beta2; + + /** + * target specifies the target value for the given metric + * + * @schema io.k8s.api.autoscaling.v2beta2.ExternalMetricSource#target + */ + readonly target: MetricTargetV2Beta2; + +} + +/** + * Converts an object of type 'ExternalMetricSourceV2Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ExternalMetricSourceV2Beta2(obj: ExternalMetricSourceV2Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metric': toJson_MetricIdentifierV2Beta2(obj.metric), + 'target': toJson_MetricTargetV2Beta2(obj.target), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). + * + * @schema io.k8s.api.autoscaling.v2beta2.ObjectMetricSource + */ +export interface ObjectMetricSourceV2Beta2 { + /** + * @schema io.k8s.api.autoscaling.v2beta2.ObjectMetricSource#describedObject + */ + readonly describedObject: CrossVersionObjectReferenceV2Beta2; + + /** + * metric identifies the target metric by name and selector + * + * @schema io.k8s.api.autoscaling.v2beta2.ObjectMetricSource#metric + */ + readonly metric: MetricIdentifierV2Beta2; + + /** + * target specifies the target value for the given metric + * + * @schema io.k8s.api.autoscaling.v2beta2.ObjectMetricSource#target + */ + readonly target: MetricTargetV2Beta2; + +} + +/** + * Converts an object of type 'ObjectMetricSourceV2Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ObjectMetricSourceV2Beta2(obj: ObjectMetricSourceV2Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'describedObject': toJson_CrossVersionObjectReferenceV2Beta2(obj.describedObject), + 'metric': toJson_MetricIdentifierV2Beta2(obj.metric), + 'target': toJson_MetricTargetV2Beta2(obj.target), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. + * + * @schema io.k8s.api.autoscaling.v2beta2.PodsMetricSource + */ +export interface PodsMetricSourceV2Beta2 { + /** + * metric identifies the target metric by name and selector + * + * @schema io.k8s.api.autoscaling.v2beta2.PodsMetricSource#metric + */ + readonly metric: MetricIdentifierV2Beta2; + + /** + * target specifies the target value for the given metric + * + * @schema io.k8s.api.autoscaling.v2beta2.PodsMetricSource#target + */ + readonly target: MetricTargetV2Beta2; + +} + +/** + * Converts an object of type 'PodsMetricSourceV2Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PodsMetricSourceV2Beta2(obj: PodsMetricSourceV2Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metric': toJson_MetricIdentifierV2Beta2(obj.metric), + 'target': toJson_MetricTargetV2Beta2(obj.target), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Only one "target" type should be set. + * + * @schema io.k8s.api.autoscaling.v2beta2.ResourceMetricSource + */ +export interface ResourceMetricSourceV2Beta2 { + /** + * name is the name of the resource in question. + * + * @schema io.k8s.api.autoscaling.v2beta2.ResourceMetricSource#name + */ + readonly name: string; + + /** + * target specifies the target value for the given metric + * + * @schema io.k8s.api.autoscaling.v2beta2.ResourceMetricSource#target + */ + readonly target: MetricTargetV2Beta2; + +} + +/** + * Converts an object of type 'ResourceMetricSourceV2Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ResourceMetricSourceV2Beta2(obj: ResourceMetricSourceV2Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + 'target': toJson_MetricTargetV2Beta2(obj.target), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of OnExitCodes and onPodConditions, but not both, can be used in each rule. + * + * @schema io.k8s.api.batch.v1.PodFailurePolicyRule + */ +export interface PodFailurePolicyRule { + /** + * Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are: - FailJob: indicates that the pod's job is marked as Failed and all + * running pods are terminated. + * - Ignore: indicates that the counter towards the .backoffLimit is not + * incremented and a replacement pod is created. + * - Count: indicates that the pod is handled in the default way - the + * counter towards the .backoffLimit is incremented. + * Additional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule. + * + * + * + * @schema io.k8s.api.batch.v1.PodFailurePolicyRule#action + */ + readonly action: string; + + /** + * Represents the requirement on the container exit codes. + * + * @schema io.k8s.api.batch.v1.PodFailurePolicyRule#onExitCodes + */ + readonly onExitCodes?: PodFailurePolicyOnExitCodesRequirement; + + /** + * Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed. + * + * @schema io.k8s.api.batch.v1.PodFailurePolicyRule#onPodConditions + */ + readonly onPodConditions: PodFailurePolicyOnPodConditionsPattern[]; + +} + +/** + * Converts an object of type 'PodFailurePolicyRule' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PodFailurePolicyRule(obj: PodFailurePolicyRule | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'action': obj.action, + 'onExitCodes': toJson_PodFailurePolicyOnExitCodesRequirement(obj.onExitCodes), + 'onPodConditions': obj.onPodConditions?.map(y => toJson_PodFailurePolicyOnPodConditionsPattern(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration + * + * @schema io.k8s.api.core.v1.ConfigMapNodeConfigSource + */ +export interface ConfigMapNodeConfigSource { + /** + * KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases. + * + * @schema io.k8s.api.core.v1.ConfigMapNodeConfigSource#kubeletConfigKey + */ + readonly kubeletConfigKey: string; + + /** + * Name is the metadata.name of the referenced ConfigMap. This field is required in all cases. + * + * @schema io.k8s.api.core.v1.ConfigMapNodeConfigSource#name + */ + readonly name: string; + + /** + * Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases. + * + * @schema io.k8s.api.core.v1.ConfigMapNodeConfigSource#namespace + */ + readonly namespace: string; + + /** + * ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. + * + * @schema io.k8s.api.core.v1.ConfigMapNodeConfigSource#resourceVersion + */ + readonly resourceVersion?: string; + + /** + * UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. + * + * @schema io.k8s.api.core.v1.ConfigMapNodeConfigSource#uid + */ + readonly uid?: string; + +} + +/** + * Converts an object of type 'ConfigMapNodeConfigSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ConfigMapNodeConfigSource(obj: ConfigMapNodeConfigSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'kubeletConfigKey': obj.kubeletConfigKey, + 'name': obj.name, + 'namespace': obj.namespace, + 'resourceVersion': obj.resourceVersion, + 'uid': obj.uid, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace + * + * @schema io.k8s.api.core.v1.SecretReference + */ +export interface SecretReference { + /** + * name is unique within a namespace to reference a secret resource. + * + * @schema io.k8s.api.core.v1.SecretReference#name + */ + readonly name?: string; + + /** + * namespace defines the space within which the secret name must be unique. + * + * @schema io.k8s.api.core.v1.SecretReference#namespace + */ + readonly namespace?: string; + +} + +/** + * Converts an object of type 'SecretReference' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_SecretReference(obj: SecretReference | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + 'namespace': obj.namespace, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Node affinity is a group of node affinity scheduling rules. + * + * @schema io.k8s.api.core.v1.NodeAffinity + */ +export interface NodeAffinity { + /** + * The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * + * @schema io.k8s.api.core.v1.NodeAffinity#preferredDuringSchedulingIgnoredDuringExecution + */ + readonly preferredDuringSchedulingIgnoredDuringExecution?: PreferredSchedulingTerm[]; + + /** + * If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * + * @schema io.k8s.api.core.v1.NodeAffinity#requiredDuringSchedulingIgnoredDuringExecution + */ + readonly requiredDuringSchedulingIgnoredDuringExecution?: NodeSelector; + +} + +/** + * Converts an object of type 'NodeAffinity' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_NodeAffinity(obj: NodeAffinity | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'preferredDuringSchedulingIgnoredDuringExecution': obj.preferredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_PreferredSchedulingTerm(y)), + 'requiredDuringSchedulingIgnoredDuringExecution': toJson_NodeSelector(obj.requiredDuringSchedulingIgnoredDuringExecution), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Pod affinity is a group of inter pod affinity scheduling rules. + * + * @schema io.k8s.api.core.v1.PodAffinity + */ +export interface PodAffinity { + /** + * The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * + * @schema io.k8s.api.core.v1.PodAffinity#preferredDuringSchedulingIgnoredDuringExecution + */ + readonly preferredDuringSchedulingIgnoredDuringExecution?: WeightedPodAffinityTerm[]; + + /** + * If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + * + * @schema io.k8s.api.core.v1.PodAffinity#requiredDuringSchedulingIgnoredDuringExecution + */ + readonly requiredDuringSchedulingIgnoredDuringExecution?: PodAffinityTerm[]; + +} + +/** + * Converts an object of type 'PodAffinity' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PodAffinity(obj: PodAffinity | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'preferredDuringSchedulingIgnoredDuringExecution': obj.preferredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_WeightedPodAffinityTerm(y)), + 'requiredDuringSchedulingIgnoredDuringExecution': obj.requiredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_PodAffinityTerm(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Pod anti affinity is a group of inter pod anti affinity scheduling rules. + * + * @schema io.k8s.api.core.v1.PodAntiAffinity + */ +export interface PodAntiAffinity { + /** + * The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * + * @schema io.k8s.api.core.v1.PodAntiAffinity#preferredDuringSchedulingIgnoredDuringExecution + */ + readonly preferredDuringSchedulingIgnoredDuringExecution?: WeightedPodAffinityTerm[]; + + /** + * If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + * + * @schema io.k8s.api.core.v1.PodAntiAffinity#requiredDuringSchedulingIgnoredDuringExecution + */ + readonly requiredDuringSchedulingIgnoredDuringExecution?: PodAffinityTerm[]; + +} + +/** + * Converts an object of type 'PodAntiAffinity' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PodAntiAffinity(obj: PodAntiAffinity | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'preferredDuringSchedulingIgnoredDuringExecution': obj.preferredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_WeightedPodAffinityTerm(y)), + 'requiredDuringSchedulingIgnoredDuringExecution': obj.requiredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_PodAffinityTerm(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * EnvVar represents an environment variable present in a Container. + * + * @schema io.k8s.api.core.v1.EnvVar + */ +export interface EnvVar { + /** + * Name of the environment variable. Must be a C_IDENTIFIER. + * + * @schema io.k8s.api.core.v1.EnvVar#name + */ + readonly name: string; + + /** + * Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * + * @default . + * @schema io.k8s.api.core.v1.EnvVar#value + */ + readonly value?: string; + + /** + * Source for the environment variable's value. Cannot be used if value is not empty. + * + * @schema io.k8s.api.core.v1.EnvVar#valueFrom + */ + readonly valueFrom?: EnvVarSource; + +} + +/** + * Converts an object of type 'EnvVar' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_EnvVar(obj: EnvVar | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + 'value': obj.value, + 'valueFrom': toJson_EnvVarSource(obj.valueFrom), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * EnvFromSource represents the source of a set of ConfigMaps + * + * @schema io.k8s.api.core.v1.EnvFromSource + */ +export interface EnvFromSource { + /** + * The ConfigMap to select from + * + * @schema io.k8s.api.core.v1.EnvFromSource#configMapRef + */ + readonly configMapRef?: ConfigMapEnvSource; + + /** + * An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * + * @schema io.k8s.api.core.v1.EnvFromSource#prefix + */ + readonly prefix?: string; + + /** + * The Secret to select from + * + * @schema io.k8s.api.core.v1.EnvFromSource#secretRef + */ + readonly secretRef?: SecretEnvSource; + +} + +/** + * Converts an object of type 'EnvFromSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_EnvFromSource(obj: EnvFromSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'configMapRef': toJson_ConfigMapEnvSource(obj.configMapRef), + 'prefix': obj.prefix, + 'secretRef': toJson_SecretEnvSource(obj.secretRef), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted. + * + * @schema io.k8s.api.core.v1.Lifecycle + */ +export interface Lifecycle { + /** + * PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * + * @schema io.k8s.api.core.v1.Lifecycle#postStart + */ + readonly postStart?: LifecycleHandler; + + /** + * PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The Pod's termination grace period countdown begins before the PreStop hook is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period (unless delayed by finalizers). Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * + * @schema io.k8s.api.core.v1.Lifecycle#preStop + */ + readonly preStop?: LifecycleHandler; + +} + +/** + * Converts an object of type 'Lifecycle' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_Lifecycle(obj: Lifecycle | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'postStart': toJson_LifecycleHandler(obj.postStart), + 'preStop': toJson_LifecycleHandler(obj.preStop), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic. + * + * @schema io.k8s.api.core.v1.Probe + */ +export interface Probe { + /** + * Exec specifies the action to take. + * + * @schema io.k8s.api.core.v1.Probe#exec + */ + readonly exec?: ExecAction; + + /** + * Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * + * @default 3. Minimum value is 1. + * @schema io.k8s.api.core.v1.Probe#failureThreshold + */ + readonly failureThreshold?: number; + + /** + * GRPC specifies an action involving a GRPC port. This is a beta field and requires enabling GRPCContainerProbe feature gate. + * + * @schema io.k8s.api.core.v1.Probe#grpc + */ + readonly grpc?: GrpcAction; + + /** + * HTTPGet specifies the http request to perform. + * + * @schema io.k8s.api.core.v1.Probe#httpGet + */ + readonly httpGet?: HttpGetAction; + + /** + * Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * + * @schema io.k8s.api.core.v1.Probe#initialDelaySeconds + */ + readonly initialDelaySeconds?: number; + + /** + * How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * + * @default 10 seconds. Minimum value is 1. + * @schema io.k8s.api.core.v1.Probe#periodSeconds + */ + readonly periodSeconds?: number; + + /** + * Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * + * @default 1. Must be 1 for liveness and startup. Minimum value is 1. + * @schema io.k8s.api.core.v1.Probe#successThreshold + */ + readonly successThreshold?: number; + + /** + * TCPSocket specifies an action involving a TCP port. + * + * @schema io.k8s.api.core.v1.Probe#tcpSocket + */ + readonly tcpSocket?: TcpSocketAction; + + /** + * Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset. + * + * @schema io.k8s.api.core.v1.Probe#terminationGracePeriodSeconds + */ + readonly terminationGracePeriodSeconds?: number; + + /** + * Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * + * @default 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * @schema io.k8s.api.core.v1.Probe#timeoutSeconds + */ + readonly timeoutSeconds?: number; + +} + +/** + * Converts an object of type 'Probe' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_Probe(obj: Probe | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'exec': toJson_ExecAction(obj.exec), + 'failureThreshold': obj.failureThreshold, + 'grpc': toJson_GrpcAction(obj.grpc), + 'httpGet': toJson_HttpGetAction(obj.httpGet), + 'initialDelaySeconds': obj.initialDelaySeconds, + 'periodSeconds': obj.periodSeconds, + 'successThreshold': obj.successThreshold, + 'tcpSocket': toJson_TcpSocketAction(obj.tcpSocket), + 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, + 'timeoutSeconds': obj.timeoutSeconds, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ContainerPort represents a network port in a single container. + * + * @schema io.k8s.api.core.v1.ContainerPort + */ +export interface ContainerPort { + /** + * Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * + * @schema io.k8s.api.core.v1.ContainerPort#containerPort + */ + readonly containerPort: number; + + /** + * What host IP to bind the external port to. + * + * @schema io.k8s.api.core.v1.ContainerPort#hostIP + */ + readonly hostIp?: string; + + /** + * Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * + * @schema io.k8s.api.core.v1.ContainerPort#hostPort + */ + readonly hostPort?: number; + + /** + * If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * + * @schema io.k8s.api.core.v1.ContainerPort#name + */ + readonly name?: string; + + /** + * Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + * + * + * + * @default TCP". + * @schema io.k8s.api.core.v1.ContainerPort#protocol + */ + readonly protocol?: string; + +} + +/** + * Converts an object of type 'ContainerPort' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ContainerPort(obj: ContainerPort | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'containerPort': obj.containerPort, + 'hostIP': obj.hostIp, + 'hostPort': obj.hostPort, + 'name': obj.name, + 'protocol': obj.protocol, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence. + * + * @schema io.k8s.api.core.v1.SecurityContext + */ +export interface SecurityContext { + /** + * AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows. + * + * @schema io.k8s.api.core.v1.SecurityContext#allowPrivilegeEscalation + */ + readonly allowPrivilegeEscalation?: boolean; + + /** + * The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows. + * + * @default the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows. + * @schema io.k8s.api.core.v1.SecurityContext#capabilities + */ + readonly capabilities?: Capabilities; + + /** + * Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows. + * + * @default false. Note that this field cannot be set when spec.os.name is windows. + * @schema io.k8s.api.core.v1.SecurityContext#privileged + */ + readonly privileged?: boolean; + + /** + * procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows. + * + * @schema io.k8s.api.core.v1.SecurityContext#procMount + */ + readonly procMount?: string; + + /** + * Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows. + * + * @default false. Note that this field cannot be set when spec.os.name is windows. + * @schema io.k8s.api.core.v1.SecurityContext#readOnlyRootFilesystem + */ + readonly readOnlyRootFilesystem?: boolean; + + /** + * The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. + * + * @schema io.k8s.api.core.v1.SecurityContext#runAsGroup + */ + readonly runAsGroup?: number; + + /** + * Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * + * @schema io.k8s.api.core.v1.SecurityContext#runAsNonRoot + */ + readonly runAsNonRoot?: boolean; + + /** + * The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. + * + * @default user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. + * @schema io.k8s.api.core.v1.SecurityContext#runAsUser + */ + readonly runAsUser?: number; + + /** + * The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. + * + * @schema io.k8s.api.core.v1.SecurityContext#seLinuxOptions + */ + readonly seLinuxOptions?: SeLinuxOptions; + + /** + * The seccomp options to use by this container. If seccomp options are provided at both the pod & container level, the container options override the pod options. Note that this field cannot be set when spec.os.name is windows. + * + * @schema io.k8s.api.core.v1.SecurityContext#seccompProfile + */ + readonly seccompProfile?: SeccompProfile; + + /** + * The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux. + * + * @schema io.k8s.api.core.v1.SecurityContext#windowsOptions + */ + readonly windowsOptions?: WindowsSecurityContextOptions; + +} + +/** + * Converts an object of type 'SecurityContext' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_SecurityContext(obj: SecurityContext | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'allowPrivilegeEscalation': obj.allowPrivilegeEscalation, + 'capabilities': toJson_Capabilities(obj.capabilities), + 'privileged': obj.privileged, + 'procMount': obj.procMount, + 'readOnlyRootFilesystem': obj.readOnlyRootFilesystem, + 'runAsGroup': obj.runAsGroup, + 'runAsNonRoot': obj.runAsNonRoot, + 'runAsUser': obj.runAsUser, + 'seLinuxOptions': toJson_SeLinuxOptions(obj.seLinuxOptions), + 'seccompProfile': toJson_SeccompProfile(obj.seccompProfile), + 'windowsOptions': toJson_WindowsSecurityContextOptions(obj.windowsOptions), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * volumeDevice describes a mapping of a raw block device within a container. + * + * @schema io.k8s.api.core.v1.VolumeDevice + */ +export interface VolumeDevice { + /** + * devicePath is the path inside of the container that the device will be mapped to. + * + * @schema io.k8s.api.core.v1.VolumeDevice#devicePath + */ + readonly devicePath: string; + + /** + * name must match the name of a persistentVolumeClaim in the pod + * + * @schema io.k8s.api.core.v1.VolumeDevice#name + */ + readonly name: string; + +} + +/** + * Converts an object of type 'VolumeDevice' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_VolumeDevice(obj: VolumeDevice | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'devicePath': obj.devicePath, + 'name': obj.name, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * VolumeMount describes a mounting of a Volume within a container. + * + * @schema io.k8s.api.core.v1.VolumeMount + */ +export interface VolumeMount { + /** + * Path within the container at which the volume should be mounted. Must not contain ':'. + * + * @schema io.k8s.api.core.v1.VolumeMount#mountPath + */ + readonly mountPath: string; + + /** + * mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * + * @schema io.k8s.api.core.v1.VolumeMount#mountPropagation + */ + readonly mountPropagation?: string; + + /** + * This must match the Name of a Volume. + * + * @schema io.k8s.api.core.v1.VolumeMount#name + */ + readonly name: string; + + /** + * Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * + * @default false. + * @schema io.k8s.api.core.v1.VolumeMount#readOnly + */ + readonly readOnly?: boolean; + + /** + * Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * + * @default volume's root). + * @schema io.k8s.api.core.v1.VolumeMount#subPath + */ + readonly subPath?: string; + + /** + * Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + * + * @default volume's root). SubPathExpr and SubPath are mutually exclusive. + * @schema io.k8s.api.core.v1.VolumeMount#subPathExpr + */ + readonly subPathExpr?: string; + +} + +/** + * Converts an object of type 'VolumeMount' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_VolumeMount(obj: VolumeMount | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'mountPath': obj.mountPath, + 'mountPropagation': obj.mountPropagation, + 'name': obj.name, + 'readOnly': obj.readOnly, + 'subPath': obj.subPath, + 'subPathExpr': obj.subPathExpr, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodDNSConfigOption defines DNS resolver options of a pod. + * + * @schema io.k8s.api.core.v1.PodDNSConfigOption + */ +export interface PodDnsConfigOption { + /** + * Required. + * + * @schema io.k8s.api.core.v1.PodDNSConfigOption#name + */ + readonly name?: string; + + /** + * @schema io.k8s.api.core.v1.PodDNSConfigOption#value + */ + readonly value?: string; + +} + +/** + * Converts an object of type 'PodDnsConfigOption' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PodDnsConfigOption(obj: PodDnsConfigOption | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + 'value': obj.value, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * SELinuxOptions are the labels to be applied to the container + * + * @schema io.k8s.api.core.v1.SELinuxOptions + */ +export interface SeLinuxOptions { + /** + * Level is SELinux level label that applies to the container. + * + * @schema io.k8s.api.core.v1.SELinuxOptions#level + */ + readonly level?: string; + + /** + * Role is a SELinux role label that applies to the container. + * + * @schema io.k8s.api.core.v1.SELinuxOptions#role + */ + readonly role?: string; + + /** + * Type is a SELinux type label that applies to the container. + * + * @schema io.k8s.api.core.v1.SELinuxOptions#type + */ + readonly type?: string; + + /** + * User is a SELinux user label that applies to the container. + * + * @schema io.k8s.api.core.v1.SELinuxOptions#user + */ + readonly user?: string; + +} + +/** + * Converts an object of type 'SeLinuxOptions' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_SeLinuxOptions(obj: SeLinuxOptions | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'level': obj.level, + 'role': obj.role, + 'type': obj.type, + 'user': obj.user, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set. + * + * @schema io.k8s.api.core.v1.SeccompProfile + */ +export interface SeccompProfile { + /** + * localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must only be set if type is "Localhost". + * + * @schema io.k8s.api.core.v1.SeccompProfile#localhostProfile + */ + readonly localhostProfile?: string; + + /** + * type indicates which kind of seccomp profile will be applied. Valid options are: + * + * Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied. + * + * + * + * @schema io.k8s.api.core.v1.SeccompProfile#type + */ + readonly type: string; + +} + +/** + * Converts an object of type 'SeccompProfile' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_SeccompProfile(obj: SeccompProfile | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'localhostProfile': obj.localhostProfile, + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Sysctl defines a kernel parameter to be set + * + * @schema io.k8s.api.core.v1.Sysctl + */ +export interface Sysctl { + /** + * Name of a property to set + * + * @schema io.k8s.api.core.v1.Sysctl#name + */ + readonly name: string; + + /** + * Value of a property to set + * + * @schema io.k8s.api.core.v1.Sysctl#value + */ + readonly value: string; + +} + +/** + * Converts an object of type 'Sysctl' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_Sysctl(obj: Sysctl | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + 'value': obj.value, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * WindowsSecurityContextOptions contain Windows-specific options and credentials. + * + * @schema io.k8s.api.core.v1.WindowsSecurityContextOptions + */ +export interface WindowsSecurityContextOptions { + /** + * GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * + * @schema io.k8s.api.core.v1.WindowsSecurityContextOptions#gmsaCredentialSpec + */ + readonly gmsaCredentialSpec?: string; + + /** + * GMSACredentialSpecName is the name of the GMSA credential spec to use. + * + * @schema io.k8s.api.core.v1.WindowsSecurityContextOptions#gmsaCredentialSpecName + */ + readonly gmsaCredentialSpecName?: string; + + /** + * HostProcess determines if a container should be run as a 'Host Process' container. This field is alpha-level and will only be honored by components that enable the WindowsHostProcessContainers feature flag. Setting this field without the feature flag will result in errors when validating the Pod. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true. + * + * @schema io.k8s.api.core.v1.WindowsSecurityContextOptions#hostProcess + */ + readonly hostProcess?: boolean; + + /** + * The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * + * @default the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * @schema io.k8s.api.core.v1.WindowsSecurityContextOptions#runAsUserName + */ + readonly runAsUserName?: string; + +} + +/** + * Converts an object of type 'WindowsSecurityContextOptions' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_WindowsSecurityContextOptions(obj: WindowsSecurityContextOptions | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'gmsaCredentialSpec': obj.gmsaCredentialSpec, + 'gmsaCredentialSpecName': obj.gmsaCredentialSpecName, + 'hostProcess': obj.hostProcess, + 'runAsUserName': obj.runAsUserName, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * + * @schema io.k8s.api.core.v1.AzureFileVolumeSource + */ +export interface AzureFileVolumeSource { + /** + * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * + * @schema io.k8s.api.core.v1.AzureFileVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * secretName is the name of secret that contains Azure Storage Account Name and Key + * + * @schema io.k8s.api.core.v1.AzureFileVolumeSource#secretName + */ + readonly secretName: string; + + /** + * shareName is the azure share Name + * + * @schema io.k8s.api.core.v1.AzureFileVolumeSource#shareName + */ + readonly shareName: string; + +} + +/** + * Converts an object of type 'AzureFileVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_AzureFileVolumeSource(obj: AzureFileVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'readOnly': obj.readOnly, + 'secretName': obj.secretName, + 'shareName': obj.shareName, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. + * + * @schema io.k8s.api.core.v1.CephFSVolumeSource + */ +export interface CephFsVolumeSource { + /** + * monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * + * @schema io.k8s.api.core.v1.CephFSVolumeSource#monitors + */ + readonly monitors: string[]; + + /** + * path is Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * + * @schema io.k8s.api.core.v1.CephFSVolumeSource#path + */ + readonly path?: string; + + /** + * readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * + * @default false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * @schema io.k8s.api.core.v1.CephFSVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * + * @schema io.k8s.api.core.v1.CephFSVolumeSource#secretFile + */ + readonly secretFile?: string; + + /** + * secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * + * @schema io.k8s.api.core.v1.CephFSVolumeSource#secretRef + */ + readonly secretRef?: LocalObjectReference; + + /** + * user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * + * @schema io.k8s.api.core.v1.CephFSVolumeSource#user + */ + readonly user?: string; + +} + +/** + * Converts an object of type 'CephFsVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CephFsVolumeSource(obj: CephFsVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'monitors': obj.monitors?.map(y => y), + 'path': obj.path, + 'readOnly': obj.readOnly, + 'secretFile': obj.secretFile, + 'secretRef': toJson_LocalObjectReference(obj.secretRef), + 'user': obj.user, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling. + * + * @schema io.k8s.api.core.v1.CinderVolumeSource + */ +export interface CinderVolumeSource { + /** + * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * + * @schema io.k8s.api.core.v1.CinderVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * + * @schema io.k8s.api.core.v1.CinderVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * secretRef is optional: points to a secret object containing parameters used to connect to OpenStack. + * + * @schema io.k8s.api.core.v1.CinderVolumeSource#secretRef + */ + readonly secretRef?: LocalObjectReference; + + /** + * volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * + * @schema io.k8s.api.core.v1.CinderVolumeSource#volumeID + */ + readonly volumeId: string; + +} + +/** + * Converts an object of type 'CinderVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CinderVolumeSource(obj: CinderVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'fsType': obj.fsType, + 'readOnly': obj.readOnly, + 'secretRef': toJson_LocalObjectReference(obj.secretRef), + 'volumeID': obj.volumeId, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Adapts a ConfigMap into a volume. + * + * The contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling. + * + * @schema io.k8s.api.core.v1.ConfigMapVolumeSource + */ +export interface ConfigMapVolumeSource { + /** + * defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + * + * @default 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + * @schema io.k8s.api.core.v1.ConfigMapVolumeSource#defaultMode + */ + readonly defaultMode?: number; + + /** + * items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * + * @schema io.k8s.api.core.v1.ConfigMapVolumeSource#items + */ + readonly items?: KeyToPath[]; + + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * + * @schema io.k8s.api.core.v1.ConfigMapVolumeSource#name + */ + readonly name?: string; + + /** + * optional specify whether the ConfigMap or its keys must be defined + * + * @schema io.k8s.api.core.v1.ConfigMapVolumeSource#optional + */ + readonly optional?: boolean; + +} + +/** + * Converts an object of type 'ConfigMapVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ConfigMapVolumeSource(obj: ConfigMapVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'defaultMode': obj.defaultMode, + 'items': obj.items?.map(y => toJson_KeyToPath(y)), + 'name': obj.name, + 'optional': obj.optional, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a source location of a volume to mount, managed by an external CSI driver + * + * @schema io.k8s.api.core.v1.CSIVolumeSource + */ +export interface CsiVolumeSource { + /** + * driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * + * @schema io.k8s.api.core.v1.CSIVolumeSource#driver + */ + readonly driver: string; + + /** + * fsType to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * + * @schema io.k8s.api.core.v1.CSIVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * + * @schema io.k8s.api.core.v1.CSIVolumeSource#nodePublishSecretRef + */ + readonly nodePublishSecretRef?: LocalObjectReference; + + /** + * readOnly specifies a read-only configuration for the volume. Defaults to false (read/write). + * + * @default false (read/write). + * @schema io.k8s.api.core.v1.CSIVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + * + * @schema io.k8s.api.core.v1.CSIVolumeSource#volumeAttributes + */ + readonly volumeAttributes?: { [key: string]: string }; + +} + +/** + * Converts an object of type 'CsiVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CsiVolumeSource(obj: CsiVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'driver': obj.driver, + 'fsType': obj.fsType, + 'nodePublishSecretRef': toJson_LocalObjectReference(obj.nodePublishSecretRef), + 'readOnly': obj.readOnly, + 'volumeAttributes': ((obj.volumeAttributes) === undefined) ? undefined : (Object.entries(obj.volumeAttributes).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling. + * + * @schema io.k8s.api.core.v1.DownwardAPIVolumeSource + */ +export interface DownwardApiVolumeSource { + /** + * Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + * + * @default 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + * @schema io.k8s.api.core.v1.DownwardAPIVolumeSource#defaultMode + */ + readonly defaultMode?: number; + + /** + * Items is a list of downward API volume file + * + * @schema io.k8s.api.core.v1.DownwardAPIVolumeSource#items + */ + readonly items?: DownwardApiVolumeFile[]; + +} + +/** + * Converts an object of type 'DownwardApiVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_DownwardApiVolumeSource(obj: DownwardApiVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'defaultMode': obj.defaultMode, + 'items': obj.items?.map(y => toJson_DownwardApiVolumeFile(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling. + * + * @schema io.k8s.api.core.v1.EmptyDirVolumeSource + */ +export interface EmptyDirVolumeSource { + /** + * medium represents what type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * + * @schema io.k8s.api.core.v1.EmptyDirVolumeSource#medium + */ + readonly medium?: string; + + /** + * sizeLimit is the total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + * + * @schema io.k8s.api.core.v1.EmptyDirVolumeSource#sizeLimit + */ + readonly sizeLimit?: Quantity; + +} + +/** + * Converts an object of type 'EmptyDirVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_EmptyDirVolumeSource(obj: EmptyDirVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'medium': obj.medium, + 'sizeLimit': obj.sizeLimit?.value, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents an ephemeral volume that is handled by a normal storage driver. + * + * @schema io.k8s.api.core.v1.EphemeralVolumeSource + */ +export interface EphemeralVolumeSource { + /** + * Will be used to create a stand-alone PVC to provision the volume. The pod in which this EphemeralVolumeSource is embedded will be the owner of the PVC, i.e. the PVC will be deleted together with the pod. The name of the PVC will be `-` where `` is the name from the `PodSpec.Volumes` array entry. Pod validation will reject the pod if the concatenated name is not valid for a PVC (for example, too long). + * + * An existing PVC with that name that is not owned by the pod will *not* be used for the pod to avoid using an unrelated volume by mistake. Starting the pod is then blocked until the unrelated PVC is removed. If such a pre-created PVC is meant to be used by the pod, the PVC has to updated with an owner reference to the pod once the pod exists. Normally this should not be necessary, but it may be useful when manually reconstructing a broken cluster. + * + * This field is read-only and no changes will be made by Kubernetes to the PVC after it has been created. + * + * Required, must not be nil. + * + * @schema io.k8s.api.core.v1.EphemeralVolumeSource#volumeClaimTemplate + */ + readonly volumeClaimTemplate?: PersistentVolumeClaimTemplate; + +} + +/** + * Converts an object of type 'EphemeralVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_EphemeralVolumeSource(obj: EphemeralVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'volumeClaimTemplate': toJson_PersistentVolumeClaimTemplate(obj.volumeClaimTemplate), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * + * @schema io.k8s.api.core.v1.FlexVolumeSource + */ +export interface FlexVolumeSource { + /** + * driver is the name of the driver to use for this volume. + * + * @schema io.k8s.api.core.v1.FlexVolumeSource#driver + */ + readonly driver: string; + + /** + * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * + * @schema io.k8s.api.core.v1.FlexVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * options is Optional: this field holds extra command options if any. + * + * @schema io.k8s.api.core.v1.FlexVolumeSource#options + */ + readonly options?: { [key: string]: string }; + + /** + * readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * + * @schema io.k8s.api.core.v1.FlexVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * secretRef is Optional: secretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + * + * @schema io.k8s.api.core.v1.FlexVolumeSource#secretRef + */ + readonly secretRef?: LocalObjectReference; + +} + +/** + * Converts an object of type 'FlexVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_FlexVolumeSource(obj: FlexVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'driver': obj.driver, + 'fsType': obj.fsType, + 'options': ((obj.options) === undefined) ? undefined : (Object.entries(obj.options).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + 'readOnly': obj.readOnly, + 'secretRef': toJson_LocalObjectReference(obj.secretRef), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling. + * + * DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * + * @schema io.k8s.api.core.v1.GitRepoVolumeSource + */ +export interface GitRepoVolumeSource { + /** + * directory is the target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * + * @schema io.k8s.api.core.v1.GitRepoVolumeSource#directory + */ + readonly directory?: string; + + /** + * repository is the URL + * + * @schema io.k8s.api.core.v1.GitRepoVolumeSource#repository + */ + readonly repository: string; + + /** + * revision is the commit hash for the specified revision. + * + * @schema io.k8s.api.core.v1.GitRepoVolumeSource#revision + */ + readonly revision?: string; + +} + +/** + * Converts an object of type 'GitRepoVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_GitRepoVolumeSource(obj: GitRepoVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'directory': obj.directory, + 'repository': obj.repository, + 'revision': obj.revision, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling. + * + * @schema io.k8s.api.core.v1.GlusterfsVolumeSource + */ +export interface GlusterfsVolumeSource { + /** + * endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * + * @schema io.k8s.api.core.v1.GlusterfsVolumeSource#endpoints + */ + readonly endpoints: string; + + /** + * path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * + * @schema io.k8s.api.core.v1.GlusterfsVolumeSource#path + */ + readonly path: string; + + /** + * readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * + * @default false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * @schema io.k8s.api.core.v1.GlusterfsVolumeSource#readOnly + */ + readonly readOnly?: boolean; + +} + +/** + * Converts an object of type 'GlusterfsVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_GlusterfsVolumeSource(obj: GlusterfsVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'endpoints': obj.endpoints, + 'path': obj.path, + 'readOnly': obj.readOnly, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling. + * + * @schema io.k8s.api.core.v1.ISCSIVolumeSource + */ +export interface IscsiVolumeSource { + /** + * chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication + * + * @schema io.k8s.api.core.v1.ISCSIVolumeSource#chapAuthDiscovery + */ + readonly chapAuthDiscovery?: boolean; + + /** + * chapAuthSession defines whether support iSCSI Session CHAP authentication + * + * @schema io.k8s.api.core.v1.ISCSIVolumeSource#chapAuthSession + */ + readonly chapAuthSession?: boolean; + + /** + * fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * + * @schema io.k8s.api.core.v1.ISCSIVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * + * @schema io.k8s.api.core.v1.ISCSIVolumeSource#initiatorName + */ + readonly initiatorName?: string; + + /** + * iqn is the target iSCSI Qualified Name. + * + * @schema io.k8s.api.core.v1.ISCSIVolumeSource#iqn + */ + readonly iqn: string; + + /** + * iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * + * @default default' (tcp). + * @schema io.k8s.api.core.v1.ISCSIVolumeSource#iscsiInterface + */ + readonly iscsiInterface?: string; + + /** + * lun represents iSCSI Target Lun number. + * + * @schema io.k8s.api.core.v1.ISCSIVolumeSource#lun + */ + readonly lun: number; + + /** + * portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * + * @schema io.k8s.api.core.v1.ISCSIVolumeSource#portals + */ + readonly portals?: string[]; + + /** + * readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * + * @default false. + * @schema io.k8s.api.core.v1.ISCSIVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * secretRef is the CHAP Secret for iSCSI target and initiator authentication + * + * @schema io.k8s.api.core.v1.ISCSIVolumeSource#secretRef + */ + readonly secretRef?: LocalObjectReference; + + /** + * targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * + * @schema io.k8s.api.core.v1.ISCSIVolumeSource#targetPortal + */ + readonly targetPortal: string; + +} + +/** + * Converts an object of type 'IscsiVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_IscsiVolumeSource(obj: IscsiVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'chapAuthDiscovery': obj.chapAuthDiscovery, + 'chapAuthSession': obj.chapAuthSession, + 'fsType': obj.fsType, + 'initiatorName': obj.initiatorName, + 'iqn': obj.iqn, + 'iscsiInterface': obj.iscsiInterface, + 'lun': obj.lun, + 'portals': obj.portals?.map(y => y), + 'readOnly': obj.readOnly, + 'secretRef': toJson_LocalObjectReference(obj.secretRef), + 'targetPortal': obj.targetPortal, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system). + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimVolumeSource + */ +export interface PersistentVolumeClaimVolumeSource { + /** + * claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimVolumeSource#claimName + */ + readonly claimName: string; + + /** + * readOnly Will force the ReadOnly setting in VolumeMounts. Default false. + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimVolumeSource#readOnly + */ + readonly readOnly?: boolean; + +} + +/** + * Converts an object of type 'PersistentVolumeClaimVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PersistentVolumeClaimVolumeSource(obj: PersistentVolumeClaimVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'claimName': obj.claimName, + 'readOnly': obj.readOnly, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a projected volume source + * + * @schema io.k8s.api.core.v1.ProjectedVolumeSource + */ +export interface ProjectedVolumeSource { + /** + * defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + * + * @schema io.k8s.api.core.v1.ProjectedVolumeSource#defaultMode + */ + readonly defaultMode?: number; + + /** + * sources is the list of volume projections + * + * @schema io.k8s.api.core.v1.ProjectedVolumeSource#sources + */ + readonly sources?: VolumeProjection[]; + +} + +/** + * Converts an object of type 'ProjectedVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ProjectedVolumeSource(obj: ProjectedVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'defaultMode': obj.defaultMode, + 'sources': obj.sources?.map(y => toJson_VolumeProjection(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. + * + * @schema io.k8s.api.core.v1.RBDVolumeSource + */ +export interface RbdVolumeSource { + /** + * fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * + * @schema io.k8s.api.core.v1.RBDVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * + * @schema io.k8s.api.core.v1.RBDVolumeSource#image + */ + readonly image: string; + + /** + * keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * + * @default etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * @schema io.k8s.api.core.v1.RBDVolumeSource#keyring + */ + readonly keyring?: string; + + /** + * monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * + * @schema io.k8s.api.core.v1.RBDVolumeSource#monitors + */ + readonly monitors: string[]; + + /** + * pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * + * @default rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * @schema io.k8s.api.core.v1.RBDVolumeSource#pool + */ + readonly pool?: string; + + /** + * readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * + * @default false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * @schema io.k8s.api.core.v1.RBDVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * + * @default nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * @schema io.k8s.api.core.v1.RBDVolumeSource#secretRef + */ + readonly secretRef?: LocalObjectReference; + + /** + * user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * + * @default admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * @schema io.k8s.api.core.v1.RBDVolumeSource#user + */ + readonly user?: string; + +} + +/** + * Converts an object of type 'RbdVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_RbdVolumeSource(obj: RbdVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'fsType': obj.fsType, + 'image': obj.image, + 'keyring': obj.keyring, + 'monitors': obj.monitors?.map(y => y), + 'pool': obj.pool, + 'readOnly': obj.readOnly, + 'secretRef': toJson_LocalObjectReference(obj.secretRef), + 'user': obj.user, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ScaleIOVolumeSource represents a persistent ScaleIO volume + * + * @schema io.k8s.api.core.v1.ScaleIOVolumeSource + */ +export interface ScaleIoVolumeSource { + /** + * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * + * @default xfs". + * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * gateway is the host address of the ScaleIO API Gateway. + * + * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#gateway + */ + readonly gateway: string; + + /** + * protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. + * + * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#protectionDomain + */ + readonly protectionDomain?: string; + + /** + * readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * + * @default false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * + * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#secretRef + */ + readonly secretRef: LocalObjectReference; + + /** + * sslEnabled Flag enable/disable SSL communication with Gateway, default false + * + * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#sslEnabled + */ + readonly sslEnabled?: boolean; + + /** + * storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * + * @default ThinProvisioned. + * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#storageMode + */ + readonly storageMode?: string; + + /** + * storagePool is the ScaleIO Storage Pool associated with the protection domain. + * + * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#storagePool + */ + readonly storagePool?: string; + + /** + * system is the name of the storage system as configured in ScaleIO. + * + * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#system + */ + readonly system: string; + + /** + * volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source. + * + * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#volumeName + */ + readonly volumeName?: string; + +} + +/** + * Converts an object of type 'ScaleIoVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ScaleIoVolumeSource(obj: ScaleIoVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'fsType': obj.fsType, + 'gateway': obj.gateway, + 'protectionDomain': obj.protectionDomain, + 'readOnly': obj.readOnly, + 'secretRef': toJson_LocalObjectReference(obj.secretRef), + 'sslEnabled': obj.sslEnabled, + 'storageMode': obj.storageMode, + 'storagePool': obj.storagePool, + 'system': obj.system, + 'volumeName': obj.volumeName, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Adapts a Secret into a volume. + * + * The contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling. + * + * @schema io.k8s.api.core.v1.SecretVolumeSource + */ +export interface SecretVolumeSource { + /** + * defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + * + * @default 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + * @schema io.k8s.api.core.v1.SecretVolumeSource#defaultMode + */ + readonly defaultMode?: number; + + /** + * items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * + * @schema io.k8s.api.core.v1.SecretVolumeSource#items + */ + readonly items?: KeyToPath[]; + + /** + * optional field specify whether the Secret or its keys must be defined + * + * @schema io.k8s.api.core.v1.SecretVolumeSource#optional + */ + readonly optional?: boolean; + + /** + * secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * + * @schema io.k8s.api.core.v1.SecretVolumeSource#secretName + */ + readonly secretName?: string; + +} + +/** + * Converts an object of type 'SecretVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_SecretVolumeSource(obj: SecretVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'defaultMode': obj.defaultMode, + 'items': obj.items?.map(y => toJson_KeyToPath(y)), + 'optional': obj.optional, + 'secretName': obj.secretName, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a StorageOS persistent volume resource. + * + * @schema io.k8s.api.core.v1.StorageOSVolumeSource + */ +export interface StorageOsVolumeSource { + /** + * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * + * @schema io.k8s.api.core.v1.StorageOSVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * + * @schema io.k8s.api.core.v1.StorageOSVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * + * @schema io.k8s.api.core.v1.StorageOSVolumeSource#secretRef + */ + readonly secretRef?: LocalObjectReference; + + /** + * volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * + * @schema io.k8s.api.core.v1.StorageOSVolumeSource#volumeName + */ + readonly volumeName?: string; + + /** + * volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + * + * @schema io.k8s.api.core.v1.StorageOSVolumeSource#volumeNamespace + */ + readonly volumeNamespace?: string; + +} + +/** + * Converts an object of type 'StorageOsVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_StorageOsVolumeSource(obj: StorageOsVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'fsType': obj.fsType, + 'readOnly': obj.readOnly, + 'secretRef': toJson_LocalObjectReference(obj.secretRef), + 'volumeName': obj.volumeName, + 'volumeNamespace': obj.volumeNamespace, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values. + * + * @schema io.k8s.api.core.v1.ScopedResourceSelectorRequirement + */ +export interface ScopedResourceSelectorRequirement { + /** + * Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. + * + * + * + * @schema io.k8s.api.core.v1.ScopedResourceSelectorRequirement#operator + */ + readonly operator: string; + + /** + * The name of the scope that the selector applies to. + * + * + * + * @schema io.k8s.api.core.v1.ScopedResourceSelectorRequirement#scopeName + */ + readonly scopeName: string; + + /** + * An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. + * + * @schema io.k8s.api.core.v1.ScopedResourceSelectorRequirement#values + */ + readonly values?: string[]; + +} + +/** + * Converts an object of type 'ScopedResourceSelectorRequirement' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ScopedResourceSelectorRequirement(obj: ScopedResourceSelectorRequirement | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'operator': obj.operator, + 'scopeName': obj.scopeName, + 'values': obj.values?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ClientIPConfig represents the configurations of Client IP based session affinity. + * + * @schema io.k8s.api.core.v1.ClientIPConfig + */ +export interface ClientIpConfig { + /** + * timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP". Default value is 10800(for 3 hours). + * + * @schema io.k8s.api.core.v1.ClientIPConfig#timeoutSeconds + */ + readonly timeoutSeconds?: number; + +} + +/** + * Converts an object of type 'ClientIpConfig' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ClientIpConfig(obj: ClientIpConfig | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'timeoutSeconds': obj.timeoutSeconds, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ForZone provides information about which zones should consume this endpoint. + * + * @schema io.k8s.api.discovery.v1.ForZone + */ +export interface ForZone { + /** + * name represents the name of the zone. + * + * @schema io.k8s.api.discovery.v1.ForZone#name + */ + readonly name: string; + +} + +/** + * Converts an object of type 'ForZone' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ForZone(obj: ForZone | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * 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. + * + * @schema io.k8s.api.flowcontrol.v1beta1.NonResourcePolicyRule + */ +export interface NonResourcePolicyRuleV1Beta1 { + /** + * `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. + * + * @schema io.k8s.api.flowcontrol.v1beta1.NonResourcePolicyRule#nonResourceURLs + */ + readonly nonResourceUrLs: string[]; + + /** + * `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. + * + * @schema io.k8s.api.flowcontrol.v1beta1.NonResourcePolicyRule#verbs + */ + readonly verbs: string[]; + +} + +/** + * Converts an object of type 'NonResourcePolicyRuleV1Beta1' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_NonResourcePolicyRuleV1Beta1(obj: NonResourcePolicyRuleV1Beta1 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'nonResourceURLs': obj.nonResourceUrLs?.map(y => y), + 'verbs': obj.verbs?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==""`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace. + * + * @schema io.k8s.api.flowcontrol.v1beta1.ResourcePolicyRule + */ +export interface ResourcePolicyRuleV1Beta1 { + /** + * `apiGroups` is a list of matching API groups and may not be empty. "*" matches all API groups and, if present, must be the only entry. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta1.ResourcePolicyRule#apiGroups + */ + readonly apiGroups: string[]; + + /** + * `clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list. + * + * @schema io.k8s.api.flowcontrol.v1beta1.ResourcePolicyRule#clusterScope + */ + readonly clusterScope?: boolean; + + /** + * `namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains "*". Note that "*" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true. + * + * @schema io.k8s.api.flowcontrol.v1beta1.ResourcePolicyRule#namespaces + */ + readonly namespaces?: string[]; + + /** + * `resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ "services", "nodes/status" ]. This list may not be empty. "*" matches all resources and, if present, must be the only entry. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta1.ResourcePolicyRule#resources + */ + readonly resources: string[]; + + /** + * `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs and, if present, must be the only entry. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta1.ResourcePolicyRule#verbs + */ + readonly verbs: string[]; + +} + +/** + * Converts an object of type 'ResourcePolicyRuleV1Beta1' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ResourcePolicyRuleV1Beta1(obj: ResourcePolicyRuleV1Beta1 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'apiGroups': obj.apiGroups?.map(y => y), + 'clusterScope': obj.clusterScope, + 'namespaces': obj.namespaces?.map(y => y), + 'resources': obj.resources?.map(y => y), + 'verbs': obj.verbs?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account. + * + * @schema io.k8s.api.flowcontrol.v1beta1.Subject + */ +export interface SubjectV1Beta1 { + /** + * `group` matches based on user group name. + * + * @schema io.k8s.api.flowcontrol.v1beta1.Subject#group + */ + readonly group?: GroupSubjectV1Beta1; + + /** + * `kind` indicates which one of the other fields is non-empty. Required + * + * @schema io.k8s.api.flowcontrol.v1beta1.Subject#kind + */ + readonly kind: string; + + /** + * `serviceAccount` matches ServiceAccounts. + * + * @schema io.k8s.api.flowcontrol.v1beta1.Subject#serviceAccount + */ + readonly serviceAccount?: ServiceAccountSubjectV1Beta1; + + /** + * `user` matches based on username. + * + * @schema io.k8s.api.flowcontrol.v1beta1.Subject#user + */ + readonly user?: UserSubjectV1Beta1; + +} + +/** + * Converts an object of type 'SubjectV1Beta1' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_SubjectV1Beta1(obj: SubjectV1Beta1 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'group': toJson_GroupSubjectV1Beta1(obj.group), + 'kind': obj.kind, + 'serviceAccount': toJson_ServiceAccountSubjectV1Beta1(obj.serviceAccount), + 'user': toJson_UserSubjectV1Beta1(obj.user), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * LimitResponse defines how to handle requests that can not be executed right now. + * + * @schema io.k8s.api.flowcontrol.v1beta1.LimitResponse + */ +export interface LimitResponseV1Beta1 { + /** + * `queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `"Queue"`. + * + * @schema io.k8s.api.flowcontrol.v1beta1.LimitResponse#queuing + */ + readonly queuing?: QueuingConfigurationV1Beta1; + + /** + * `type` is "Queue" or "Reject". "Queue" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. "Reject" means that requests that can not be executed upon arrival are rejected. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta1.LimitResponse#type + */ + readonly type: string; + +} + +/** + * Converts an object of type 'LimitResponseV1Beta1' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_LimitResponseV1Beta1(obj: LimitResponseV1Beta1 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'queuing': toJson_QueuingConfigurationV1Beta1(obj.queuing), + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * 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. + * + * @schema io.k8s.api.flowcontrol.v1beta2.NonResourcePolicyRule + */ +export interface NonResourcePolicyRuleV1Beta2 { + /** + * `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. + * + * @schema io.k8s.api.flowcontrol.v1beta2.NonResourcePolicyRule#nonResourceURLs + */ + readonly nonResourceUrLs: string[]; + + /** + * `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. + * + * @schema io.k8s.api.flowcontrol.v1beta2.NonResourcePolicyRule#verbs + */ + readonly verbs: string[]; + +} + +/** + * Converts an object of type 'NonResourcePolicyRuleV1Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_NonResourcePolicyRuleV1Beta2(obj: NonResourcePolicyRuleV1Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'nonResourceURLs': obj.nonResourceUrLs?.map(y => y), + 'verbs': obj.verbs?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==""`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace. + * + * @schema io.k8s.api.flowcontrol.v1beta2.ResourcePolicyRule + */ +export interface ResourcePolicyRuleV1Beta2 { + /** + * `apiGroups` is a list of matching API groups and may not be empty. "*" matches all API groups and, if present, must be the only entry. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta2.ResourcePolicyRule#apiGroups + */ + readonly apiGroups: string[]; + + /** + * `clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list. + * + * @schema io.k8s.api.flowcontrol.v1beta2.ResourcePolicyRule#clusterScope + */ + readonly clusterScope?: boolean; + + /** + * `namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains "*". Note that "*" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true. + * + * @schema io.k8s.api.flowcontrol.v1beta2.ResourcePolicyRule#namespaces + */ + readonly namespaces?: string[]; + + /** + * `resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ "services", "nodes/status" ]. This list may not be empty. "*" matches all resources and, if present, must be the only entry. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta2.ResourcePolicyRule#resources + */ + readonly resources: string[]; + + /** + * `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs and, if present, must be the only entry. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta2.ResourcePolicyRule#verbs + */ + readonly verbs: string[]; + +} + +/** + * Converts an object of type 'ResourcePolicyRuleV1Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ResourcePolicyRuleV1Beta2(obj: ResourcePolicyRuleV1Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'apiGroups': obj.apiGroups?.map(y => y), + 'clusterScope': obj.clusterScope, + 'namespaces': obj.namespaces?.map(y => y), + 'resources': obj.resources?.map(y => y), + 'verbs': obj.verbs?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account. + * + * @schema io.k8s.api.flowcontrol.v1beta2.Subject + */ +export interface SubjectV1Beta2 { + /** + * `group` matches based on user group name. + * + * @schema io.k8s.api.flowcontrol.v1beta2.Subject#group + */ + readonly group?: GroupSubjectV1Beta2; + + /** + * `kind` indicates which one of the other fields is non-empty. Required + * + * @schema io.k8s.api.flowcontrol.v1beta2.Subject#kind + */ + readonly kind: string; + + /** + * `serviceAccount` matches ServiceAccounts. + * + * @schema io.k8s.api.flowcontrol.v1beta2.Subject#serviceAccount + */ + readonly serviceAccount?: ServiceAccountSubjectV1Beta2; + + /** + * `user` matches based on username. + * + * @schema io.k8s.api.flowcontrol.v1beta2.Subject#user + */ + readonly user?: UserSubjectV1Beta2; + +} + +/** + * Converts an object of type 'SubjectV1Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_SubjectV1Beta2(obj: SubjectV1Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'group': toJson_GroupSubjectV1Beta2(obj.group), + 'kind': obj.kind, + 'serviceAccount': toJson_ServiceAccountSubjectV1Beta2(obj.serviceAccount), + 'user': toJson_UserSubjectV1Beta2(obj.user), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * LimitResponse defines how to handle requests that can not be executed right now. + * + * @schema io.k8s.api.flowcontrol.v1beta2.LimitResponse + */ +export interface LimitResponseV1Beta2 { + /** + * `queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `"Queue"`. + * + * @schema io.k8s.api.flowcontrol.v1beta2.LimitResponse#queuing + */ + readonly queuing?: QueuingConfigurationV1Beta2; + + /** + * `type` is "Queue" or "Reject". "Queue" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. "Reject" means that requests that can not be executed upon arrival are rejected. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta2.LimitResponse#type + */ + readonly type: string; + +} + +/** + * Converts an object of type 'LimitResponseV1Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_LimitResponseV1Beta2(obj: LimitResponseV1Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'queuing': toJson_QueuingConfigurationV1Beta2(obj.queuing), + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * IngressServiceBackend references a Kubernetes Service as a Backend. + * + * @schema io.k8s.api.networking.v1.IngressServiceBackend + */ +export interface IngressServiceBackend { + /** + * Name is the referenced service. The service must exist in the same namespace as the Ingress object. + * + * @schema io.k8s.api.networking.v1.IngressServiceBackend#name + */ + readonly name: string; + + /** + * Port of the referenced service. A port name or port number is required for a IngressServiceBackend. + * + * @schema io.k8s.api.networking.v1.IngressServiceBackend#port + */ + readonly port?: ServiceBackendPort; + +} + +/** + * Converts an object of type 'IngressServiceBackend' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_IngressServiceBackend(obj: IngressServiceBackend | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + 'port': toJson_ServiceBackendPort(obj.port), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http:///? -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'. + * + * @schema io.k8s.api.networking.v1.HTTPIngressRuleValue + */ +export interface HttpIngressRuleValue { + /** + * A collection of paths that map requests to backends. + * + * @schema io.k8s.api.networking.v1.HTTPIngressRuleValue#paths + */ + readonly paths: HttpIngressPath[]; + +} + +/** + * Converts an object of type 'HttpIngressRuleValue' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_HttpIngressRuleValue(obj: HttpIngressRuleValue | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'paths': obj.paths?.map(y => toJson_HttpIngressPath(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * NetworkPolicyPort describes a port to allow traffic on + * + * @schema io.k8s.api.networking.v1.NetworkPolicyPort + */ +export interface NetworkPolicyPort { + /** + * If set, indicates that the range of ports from port to endPort, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port. + * + * @schema io.k8s.api.networking.v1.NetworkPolicyPort#endPort + */ + readonly endPort?: number; + + /** + * The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. + * + * @schema io.k8s.api.networking.v1.NetworkPolicyPort#port + */ + readonly port?: IntOrString; + + /** + * The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. + * + * @schema io.k8s.api.networking.v1.NetworkPolicyPort#protocol + */ + readonly protocol?: string; + +} + +/** + * Converts an object of type 'NetworkPolicyPort' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_NetworkPolicyPort(obj: NetworkPolicyPort | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'endPort': obj.endPort, + 'port': obj.port?.value, + 'protocol': obj.protocol, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed + * + * @schema io.k8s.api.networking.v1.NetworkPolicyPeer + */ +export interface NetworkPolicyPeer { + /** + * IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be. + * + * @schema io.k8s.api.networking.v1.NetworkPolicyPeer#ipBlock + */ + readonly ipBlock?: IpBlock; + + /** + * Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. + * + * If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. + * + * @schema io.k8s.api.networking.v1.NetworkPolicyPeer#namespaceSelector + */ + readonly namespaceSelector?: LabelSelector; + + /** + * This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods. + * + * If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. + * + * @schema io.k8s.api.networking.v1.NetworkPolicyPeer#podSelector + */ + readonly podSelector?: LabelSelector; + +} + +/** + * Converts an object of type 'NetworkPolicyPeer' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_NetworkPolicyPeer(obj: NetworkPolicyPeer | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'ipBlock': toJson_IpBlock(obj.ipBlock), + 'namespaceSelector': toJson_LabelSelector(obj.namespaceSelector), + 'podSelector': toJson_LabelSelector(obj.podSelector), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm. + * + * @schema io.k8s.api.core.v1.NodeSelectorTerm + */ +export interface NodeSelectorTerm { + /** + * A list of node selector requirements by node's labels. + * + * @schema io.k8s.api.core.v1.NodeSelectorTerm#matchExpressions + */ + readonly matchExpressions?: NodeSelectorRequirement[]; + + /** + * A list of node selector requirements by node's fields. + * + * @schema io.k8s.api.core.v1.NodeSelectorTerm#matchFields + */ + readonly matchFields?: NodeSelectorRequirement[]; + +} + +/** + * Converts an object of type 'NodeSelectorTerm' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_NodeSelectorTerm(obj: NodeSelectorTerm | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'matchExpressions': obj.matchExpressions?.map(y => toJson_NodeSelectorRequirement(y)), + 'matchFields': obj.matchFields?.map(y => toJson_NodeSelectorRequirement(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * VolumeNodeResources is a set of resource limits for scheduling of volumes. + * + * @schema io.k8s.api.storage.v1.VolumeNodeResources + */ +export interface VolumeNodeResources { + /** + * Maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded. + * + * @schema io.k8s.api.storage.v1.VolumeNodeResources#count + */ + readonly count?: number; + +} + +/** + * Converts an object of type 'VolumeNodeResources' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_VolumeNodeResources(obj: VolumeNodeResources | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'count': obj.count, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * WebhookConversion describes how to call a conversion webhook + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookConversion + */ +export interface WebhookConversion { + /** + * clientConfig is the instructions for how to call the webhook if strategy is `Webhook`. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookConversion#clientConfig + */ + readonly clientConfig?: WebhookClientConfig; + + /** + * conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookConversion#conversionReviewVersions + */ + readonly conversionReviewVersions: string[]; + +} + +/** + * Converts an object of type 'WebhookConversion' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_WebhookConversion(obj: WebhookConversion | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'clientConfig': toJson_WebhookClientConfig(obj.clientConfig), + 'conversionReviewVersions': obj.conversionReviewVersions?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CustomResourceColumnDefinition specifies a column for server side printing. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition + */ +export interface CustomResourceColumnDefinition { + /** + * description is a human readable description of this column. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition#description + */ + readonly description?: string; + + /** + * format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition#format + */ + readonly format?: string; + + /** + * jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition#jsonPath + */ + readonly jsonPath: string; + + /** + * name is a human readable name for the column. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition#name + */ + readonly name: string; + + /** + * priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition#priority + */ + readonly priority?: number; + + /** + * type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition#type + */ + readonly type: string; + +} + +/** + * Converts an object of type 'CustomResourceColumnDefinition' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CustomResourceColumnDefinition(obj: CustomResourceColumnDefinition | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'description': obj.description, + 'format': obj.format, + 'jsonPath': obj.jsonPath, + 'name': obj.name, + 'priority': obj.priority, + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CustomResourceValidation is a list of validation methods for CustomResources. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceValidation + */ +export interface CustomResourceValidation { + /** + * openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceValidation#openAPIV3Schema + */ + readonly openApiv3Schema?: JsonSchemaProps; + +} + +/** + * Converts an object of type 'CustomResourceValidation' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CustomResourceValidation(obj: CustomResourceValidation | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'openAPIV3Schema': toJson_JsonSchemaProps(obj.openApiv3Schema), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CustomResourceSubresources defines the status and scale subresources for CustomResources. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresources + */ +export interface CustomResourceSubresources { + /** + * scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresources#scale + */ + readonly scale?: CustomResourceSubresourceScale; + + /** + * status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresources#status + */ + readonly status?: any; + +} + +/** + * Converts an object of type 'CustomResourceSubresources' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CustomResourceSubresources(obj: CustomResourceSubresources | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'scale': toJson_CustomResourceSubresourceScale(obj.scale), + 'status': obj.status, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * HPAScalingPolicy is a single policy which must hold true for a specified past interval. + * + * @schema io.k8s.api.autoscaling.v2.HPAScalingPolicy + */ +export interface HpaScalingPolicyV2 { + /** + * PeriodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). + * + * @schema io.k8s.api.autoscaling.v2.HPAScalingPolicy#periodSeconds + */ + readonly periodSeconds: number; + + /** + * Type is used to specify the scaling policy. + * + * @schema io.k8s.api.autoscaling.v2.HPAScalingPolicy#type + */ + readonly type: string; + + /** + * Value contains the amount of change which is permitted by the policy. It must be greater than zero + * + * @schema io.k8s.api.autoscaling.v2.HPAScalingPolicy#value + */ + readonly value: number; + +} + +/** + * Converts an object of type 'HpaScalingPolicyV2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_HpaScalingPolicyV2(obj: HpaScalingPolicyV2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'periodSeconds': obj.periodSeconds, + 'type': obj.type, + 'value': obj.value, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * MetricTarget defines the target value, average value, or average utilization of a specific metric + * + * @schema io.k8s.api.autoscaling.v2.MetricTarget + */ +export interface MetricTargetV2 { + /** + * averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type + * + * @schema io.k8s.api.autoscaling.v2.MetricTarget#averageUtilization + */ + readonly averageUtilization?: number; + + /** + * averageValue is the target value of the average of the metric across all relevant pods (as a quantity) + * + * @schema io.k8s.api.autoscaling.v2.MetricTarget#averageValue + */ + readonly averageValue?: Quantity; + + /** + * type represents whether the metric type is Utilization, Value, or AverageValue + * + * @schema io.k8s.api.autoscaling.v2.MetricTarget#type + */ + readonly type: string; + + /** + * value is the target value of the metric (as a quantity). + * + * @schema io.k8s.api.autoscaling.v2.MetricTarget#value + */ + readonly value?: Quantity; + +} + +/** + * Converts an object of type 'MetricTargetV2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_MetricTargetV2(obj: MetricTargetV2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'averageUtilization': obj.averageUtilization, + 'averageValue': obj.averageValue?.value, + 'type': obj.type, + 'value': obj.value?.value, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * MetricIdentifier defines the name and optionally selector for a metric + * + * @schema io.k8s.api.autoscaling.v2.MetricIdentifier + */ +export interface MetricIdentifierV2 { + /** + * name is the name of the given metric + * + * @schema io.k8s.api.autoscaling.v2.MetricIdentifier#name + */ + readonly name: string; + + /** + * selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. + * + * @schema io.k8s.api.autoscaling.v2.MetricIdentifier#selector + */ + readonly selector?: LabelSelector; + +} + +/** + * Converts an object of type 'MetricIdentifierV2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_MetricIdentifierV2(obj: MetricIdentifierV2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + 'selector': toJson_LabelSelector(obj.selector), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * HPAScalingPolicy is a single policy which must hold true for a specified past interval. + * + * @schema io.k8s.api.autoscaling.v2beta2.HPAScalingPolicy + */ +export interface HpaScalingPolicyV2Beta2 { + /** + * PeriodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). + * + * @schema io.k8s.api.autoscaling.v2beta2.HPAScalingPolicy#periodSeconds + */ + readonly periodSeconds: number; + + /** + * Type is used to specify the scaling policy. + * + * @schema io.k8s.api.autoscaling.v2beta2.HPAScalingPolicy#type + */ + readonly type: string; + + /** + * Value contains the amount of change which is permitted by the policy. It must be greater than zero + * + * @schema io.k8s.api.autoscaling.v2beta2.HPAScalingPolicy#value + */ + readonly value: number; + +} + +/** + * Converts an object of type 'HpaScalingPolicyV2Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_HpaScalingPolicyV2Beta2(obj: HpaScalingPolicyV2Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'periodSeconds': obj.periodSeconds, + 'type': obj.type, + 'value': obj.value, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * MetricTarget defines the target value, average value, or average utilization of a specific metric + * + * @schema io.k8s.api.autoscaling.v2beta2.MetricTarget + */ +export interface MetricTargetV2Beta2 { + /** + * averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type + * + * @schema io.k8s.api.autoscaling.v2beta2.MetricTarget#averageUtilization + */ + readonly averageUtilization?: number; + + /** + * averageValue is the target value of the average of the metric across all relevant pods (as a quantity) + * + * @schema io.k8s.api.autoscaling.v2beta2.MetricTarget#averageValue + */ + readonly averageValue?: Quantity; + + /** + * type represents whether the metric type is Utilization, Value, or AverageValue + * + * @schema io.k8s.api.autoscaling.v2beta2.MetricTarget#type + */ + readonly type: string; + + /** + * value is the target value of the metric (as a quantity). + * + * @schema io.k8s.api.autoscaling.v2beta2.MetricTarget#value + */ + readonly value?: Quantity; + +} + +/** + * Converts an object of type 'MetricTargetV2Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_MetricTargetV2Beta2(obj: MetricTargetV2Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'averageUtilization': obj.averageUtilization, + 'averageValue': obj.averageValue?.value, + 'type': obj.type, + 'value': obj.value?.value, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * MetricIdentifier defines the name and optionally selector for a metric + * + * @schema io.k8s.api.autoscaling.v2beta2.MetricIdentifier + */ +export interface MetricIdentifierV2Beta2 { + /** + * name is the name of the given metric + * + * @schema io.k8s.api.autoscaling.v2beta2.MetricIdentifier#name + */ + readonly name: string; + + /** + * selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. + * + * @schema io.k8s.api.autoscaling.v2beta2.MetricIdentifier#selector + */ + readonly selector?: LabelSelector; + +} + +/** + * Converts an object of type 'MetricIdentifierV2Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_MetricIdentifierV2Beta2(obj: MetricIdentifierV2Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + 'selector': toJson_LabelSelector(obj.selector), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check. + * + * @schema io.k8s.api.batch.v1.PodFailurePolicyOnExitCodesRequirement + */ +export interface PodFailurePolicyOnExitCodesRequirement { + /** + * Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template. + * + * @schema io.k8s.api.batch.v1.PodFailurePolicyOnExitCodesRequirement#containerName + */ + readonly containerName?: string; + + /** + * Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are: - In: the requirement is satisfied if at least one container exit code + * (might be multiple if there are multiple containers not restricted + * by the 'containerName' field) is in the set of specified values. + * - NotIn: the requirement is satisfied if at least one container exit code + * (might be multiple if there are multiple containers not restricted + * by the 'containerName' field) is not in the set of specified values. + * Additional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied. + * + * + * + * @schema io.k8s.api.batch.v1.PodFailurePolicyOnExitCodesRequirement#operator + */ + readonly operator: string; + + /** + * Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed. + * + * @schema io.k8s.api.batch.v1.PodFailurePolicyOnExitCodesRequirement#values + */ + readonly values: number[]; + +} + +/** + * Converts an object of type 'PodFailurePolicyOnExitCodesRequirement' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PodFailurePolicyOnExitCodesRequirement(obj: PodFailurePolicyOnExitCodesRequirement | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'containerName': obj.containerName, + 'operator': obj.operator, + 'values': obj.values?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type. + * + * @schema io.k8s.api.batch.v1.PodFailurePolicyOnPodConditionsPattern + */ +export interface PodFailurePolicyOnPodConditionsPattern { + /** + * Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True. + * + * @default True. + * @schema io.k8s.api.batch.v1.PodFailurePolicyOnPodConditionsPattern#status + */ + readonly status: string; + + /** + * Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type. + * + * @schema io.k8s.api.batch.v1.PodFailurePolicyOnPodConditionsPattern#type + */ + readonly type: string; + +} + +/** + * Converts an object of type 'PodFailurePolicyOnPodConditionsPattern' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PodFailurePolicyOnPodConditionsPattern(obj: PodFailurePolicyOnPodConditionsPattern | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'status': obj.status, + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). + * + * @schema io.k8s.api.core.v1.PreferredSchedulingTerm + */ +export interface PreferredSchedulingTerm { + /** + * A node selector term, associated with the corresponding weight. + * + * @schema io.k8s.api.core.v1.PreferredSchedulingTerm#preference + */ + readonly preference: NodeSelectorTerm; + + /** + * Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + * + * @schema io.k8s.api.core.v1.PreferredSchedulingTerm#weight + */ + readonly weight: number; + +} + +/** + * Converts an object of type 'PreferredSchedulingTerm' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PreferredSchedulingTerm(obj: PreferredSchedulingTerm | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'preference': toJson_NodeSelectorTerm(obj.preference), + 'weight': obj.weight, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) + * + * @schema io.k8s.api.core.v1.WeightedPodAffinityTerm + */ +export interface WeightedPodAffinityTerm { + /** + * Required. A pod affinity term, associated with the corresponding weight. + * + * @schema io.k8s.api.core.v1.WeightedPodAffinityTerm#podAffinityTerm + */ + readonly podAffinityTerm: PodAffinityTerm; + + /** + * weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + * + * @schema io.k8s.api.core.v1.WeightedPodAffinityTerm#weight + */ + readonly weight: number; + +} + +/** + * Converts an object of type 'WeightedPodAffinityTerm' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_WeightedPodAffinityTerm(obj: WeightedPodAffinityTerm | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'podAffinityTerm': toJson_PodAffinityTerm(obj.podAffinityTerm), + 'weight': obj.weight, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running + * + * @schema io.k8s.api.core.v1.PodAffinityTerm + */ +export interface PodAffinityTerm { + /** + * A label query over a set of resources, in this case pods. + * + * @schema io.k8s.api.core.v1.PodAffinityTerm#labelSelector + */ + readonly labelSelector?: LabelSelector; + + /** + * A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. + * + * @schema io.k8s.api.core.v1.PodAffinityTerm#namespaceSelector + */ + readonly namespaceSelector?: LabelSelector; + + /** + * namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". + * + * @schema io.k8s.api.core.v1.PodAffinityTerm#namespaces + */ + readonly namespaces?: string[]; + + /** + * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + * + * @schema io.k8s.api.core.v1.PodAffinityTerm#topologyKey + */ + readonly topologyKey: string; + +} + +/** + * Converts an object of type 'PodAffinityTerm' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PodAffinityTerm(obj: PodAffinityTerm | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'labelSelector': toJson_LabelSelector(obj.labelSelector), + 'namespaceSelector': toJson_LabelSelector(obj.namespaceSelector), + 'namespaces': obj.namespaces?.map(y => y), + 'topologyKey': obj.topologyKey, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * EnvVarSource represents a source for the value of an EnvVar. + * + * @schema io.k8s.api.core.v1.EnvVarSource + */ +export interface EnvVarSource { + /** + * Selects a key of a ConfigMap. + * + * @schema io.k8s.api.core.v1.EnvVarSource#configMapKeyRef + */ + readonly configMapKeyRef?: ConfigMapKeySelector; + + /** + * Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs. + * + * @schema io.k8s.api.core.v1.EnvVarSource#fieldRef + */ + readonly fieldRef?: ObjectFieldSelector; + + /** + * Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * + * @schema io.k8s.api.core.v1.EnvVarSource#resourceFieldRef + */ + readonly resourceFieldRef?: ResourceFieldSelector; + + /** + * Selects a key of a secret in the pod's namespace + * + * @schema io.k8s.api.core.v1.EnvVarSource#secretKeyRef + */ + readonly secretKeyRef?: SecretKeySelector; + +} + +/** + * Converts an object of type 'EnvVarSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_EnvVarSource(obj: EnvVarSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'configMapKeyRef': toJson_ConfigMapKeySelector(obj.configMapKeyRef), + 'fieldRef': toJson_ObjectFieldSelector(obj.fieldRef), + 'resourceFieldRef': toJson_ResourceFieldSelector(obj.resourceFieldRef), + 'secretKeyRef': toJson_SecretKeySelector(obj.secretKeyRef), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. + * + * The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables. + * + * @schema io.k8s.api.core.v1.ConfigMapEnvSource + */ +export interface ConfigMapEnvSource { + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * + * @schema io.k8s.api.core.v1.ConfigMapEnvSource#name + */ + readonly name?: string; + + /** + * Specify whether the ConfigMap must be defined + * + * @schema io.k8s.api.core.v1.ConfigMapEnvSource#optional + */ + readonly optional?: boolean; + +} + +/** + * Converts an object of type 'ConfigMapEnvSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ConfigMapEnvSource(obj: ConfigMapEnvSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + 'optional': obj.optional, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * SecretEnvSource selects a Secret to populate the environment variables with. + * + * The contents of the target Secret's Data field will represent the key-value pairs as environment variables. + * + * @schema io.k8s.api.core.v1.SecretEnvSource + */ +export interface SecretEnvSource { + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * + * @schema io.k8s.api.core.v1.SecretEnvSource#name + */ + readonly name?: string; + + /** + * Specify whether the Secret must be defined + * + * @schema io.k8s.api.core.v1.SecretEnvSource#optional + */ + readonly optional?: boolean; + +} + +/** + * Converts an object of type 'SecretEnvSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_SecretEnvSource(obj: SecretEnvSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + 'optional': obj.optional, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified. + * + * @schema io.k8s.api.core.v1.LifecycleHandler + */ +export interface LifecycleHandler { + /** + * Exec specifies the action to take. + * + * @schema io.k8s.api.core.v1.LifecycleHandler#exec + */ + readonly exec?: ExecAction; + + /** + * HTTPGet specifies the http request to perform. + * + * @schema io.k8s.api.core.v1.LifecycleHandler#httpGet + */ + readonly httpGet?: HttpGetAction; + + /** + * Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified. + * + * @schema io.k8s.api.core.v1.LifecycleHandler#tcpSocket + */ + readonly tcpSocket?: TcpSocketAction; + +} + +/** + * Converts an object of type 'LifecycleHandler' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_LifecycleHandler(obj: LifecycleHandler | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'exec': toJson_ExecAction(obj.exec), + 'httpGet': toJson_HttpGetAction(obj.httpGet), + 'tcpSocket': toJson_TcpSocketAction(obj.tcpSocket), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ExecAction describes a "run in container" action. + * + * @schema io.k8s.api.core.v1.ExecAction + */ +export interface ExecAction { + /** + * Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + * + * @schema io.k8s.api.core.v1.ExecAction#command + */ + readonly command?: string[]; + +} + +/** + * Converts an object of type 'ExecAction' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ExecAction(obj: ExecAction | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'command': obj.command?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * @schema io.k8s.api.core.v1.GRPCAction + */ +export interface GrpcAction { + /** + * Port number of the gRPC service. Number must be in the range 1 to 65535. + * + * @schema io.k8s.api.core.v1.GRPCAction#port + */ + readonly port: number; + + /** + * Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). + * + * If this is not specified, the default behavior is defined by gRPC. + * + * @schema io.k8s.api.core.v1.GRPCAction#service + */ + readonly service?: string; + +} + +/** + * Converts an object of type 'GrpcAction' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_GrpcAction(obj: GrpcAction | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'port': obj.port, + 'service': obj.service, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * HTTPGetAction describes an action based on HTTP Get requests. + * + * @schema io.k8s.api.core.v1.HTTPGetAction + */ +export interface HttpGetAction { + /** + * Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * + * @schema io.k8s.api.core.v1.HTTPGetAction#host + */ + readonly host?: string; + + /** + * Custom headers to set in the request. HTTP allows repeated headers. + * + * @schema io.k8s.api.core.v1.HTTPGetAction#httpHeaders + */ + readonly httpHeaders?: HttpHeader[]; + + /** + * Path to access on the HTTP server. + * + * @schema io.k8s.api.core.v1.HTTPGetAction#path + */ + readonly path?: string; + + /** + * Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * + * @schema io.k8s.api.core.v1.HTTPGetAction#port + */ + readonly port: IntOrString; + + /** + * Scheme to use for connecting to the host. Defaults to HTTP. + * + * + * + * @default HTTP. + * @schema io.k8s.api.core.v1.HTTPGetAction#scheme + */ + readonly scheme?: string; + +} + +/** + * Converts an object of type 'HttpGetAction' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_HttpGetAction(obj: HttpGetAction | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'host': obj.host, + 'httpHeaders': obj.httpHeaders?.map(y => toJson_HttpHeader(y)), + 'path': obj.path, + 'port': obj.port?.value, + 'scheme': obj.scheme, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * TCPSocketAction describes an action based on opening a socket + * + * @schema io.k8s.api.core.v1.TCPSocketAction + */ +export interface TcpSocketAction { + /** + * Optional: Host name to connect to, defaults to the pod IP. + * + * @schema io.k8s.api.core.v1.TCPSocketAction#host + */ + readonly host?: string; + + /** + * Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * + * @schema io.k8s.api.core.v1.TCPSocketAction#port + */ + readonly port: IntOrString; + +} + +/** + * Converts an object of type 'TcpSocketAction' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_TcpSocketAction(obj: TcpSocketAction | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'host': obj.host, + 'port': obj.port?.value, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Adds and removes POSIX capabilities from running containers. + * + * @schema io.k8s.api.core.v1.Capabilities + */ +export interface Capabilities { + /** + * Added capabilities + * + * @schema io.k8s.api.core.v1.Capabilities#add + */ + readonly add?: string[]; + + /** + * Removed capabilities + * + * @schema io.k8s.api.core.v1.Capabilities#drop + */ + readonly drop?: string[]; + +} + +/** + * Converts an object of type 'Capabilities' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_Capabilities(obj: Capabilities | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'add': obj.add?.map(y => y), + 'drop': obj.drop?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Maps a string key to a path within a volume. + * + * @schema io.k8s.api.core.v1.KeyToPath + */ +export interface KeyToPath { + /** + * key is the key to project. + * + * @schema io.k8s.api.core.v1.KeyToPath#key + */ + readonly key: string; + + /** + * mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + * + * @schema io.k8s.api.core.v1.KeyToPath#mode + */ + readonly mode?: number; + + /** + * path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + * + * @schema io.k8s.api.core.v1.KeyToPath#path + */ + readonly path: string; + +} + +/** + * Converts an object of type 'KeyToPath' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KeyToPath(obj: KeyToPath | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'key': obj.key, + 'mode': obj.mode, + 'path': obj.path, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * DownwardAPIVolumeFile represents information to create the file containing the pod field + * + * @schema io.k8s.api.core.v1.DownwardAPIVolumeFile + */ +export interface DownwardApiVolumeFile { + /** + * Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * + * @schema io.k8s.api.core.v1.DownwardAPIVolumeFile#fieldRef + */ + readonly fieldRef?: ObjectFieldSelector; + + /** + * Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + * + * @schema io.k8s.api.core.v1.DownwardAPIVolumeFile#mode + */ + readonly mode?: number; + + /** + * Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * + * @schema io.k8s.api.core.v1.DownwardAPIVolumeFile#path + */ + readonly path: string; + + /** + * Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + * + * @schema io.k8s.api.core.v1.DownwardAPIVolumeFile#resourceFieldRef + */ + readonly resourceFieldRef?: ResourceFieldSelector; + +} + +/** + * Converts an object of type 'DownwardApiVolumeFile' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_DownwardApiVolumeFile(obj: DownwardApiVolumeFile | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'fieldRef': toJson_ObjectFieldSelector(obj.fieldRef), + 'mode': obj.mode, + 'path': obj.path, + 'resourceFieldRef': toJson_ResourceFieldSelector(obj.resourceFieldRef), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource. + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimTemplate + */ +export interface PersistentVolumeClaimTemplate { + /** + * May contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation. + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimTemplate#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * The specification for the PersistentVolumeClaim. The entire content is copied unchanged into the PVC that gets created from this template. The same fields as in a PersistentVolumeClaim are also valid here. + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimTemplate#spec + */ + readonly spec: PersistentVolumeClaimSpec; + +} + +/** + * Converts an object of type 'PersistentVolumeClaimTemplate' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PersistentVolumeClaimTemplate(obj: PersistentVolumeClaimTemplate | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_PersistentVolumeClaimSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Projection that may be projected along with other supported volume types + * + * @schema io.k8s.api.core.v1.VolumeProjection + */ +export interface VolumeProjection { + /** + * configMap information about the configMap data to project + * + * @schema io.k8s.api.core.v1.VolumeProjection#configMap + */ + readonly configMap?: ConfigMapProjection; + + /** + * downwardAPI information about the downwardAPI data to project + * + * @schema io.k8s.api.core.v1.VolumeProjection#downwardAPI + */ + readonly downwardApi?: DownwardApiProjection; + + /** + * secret information about the secret data to project + * + * @schema io.k8s.api.core.v1.VolumeProjection#secret + */ + readonly secret?: SecretProjection; + + /** + * serviceAccountToken is information about the serviceAccountToken data to project + * + * @schema io.k8s.api.core.v1.VolumeProjection#serviceAccountToken + */ + readonly serviceAccountToken?: ServiceAccountTokenProjection; + +} + +/** + * Converts an object of type 'VolumeProjection' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_VolumeProjection(obj: VolumeProjection | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'configMap': toJson_ConfigMapProjection(obj.configMap), + 'downwardAPI': toJson_DownwardApiProjection(obj.downwardApi), + 'secret': toJson_SecretProjection(obj.secret), + 'serviceAccountToken': toJson_ServiceAccountTokenProjection(obj.serviceAccountToken), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * GroupSubject holds detailed information for group-kind subject. + * + * @schema io.k8s.api.flowcontrol.v1beta1.GroupSubject + */ +export interface GroupSubjectV1Beta1 { + /** + * name is the user group that matches, or "*" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta1.GroupSubject#name + */ + readonly name: string; + +} + +/** + * Converts an object of type 'GroupSubjectV1Beta1' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_GroupSubjectV1Beta1(obj: GroupSubjectV1Beta1 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ServiceAccountSubject holds detailed information for service-account-kind subject. + * + * @schema io.k8s.api.flowcontrol.v1beta1.ServiceAccountSubject + */ +export interface ServiceAccountSubjectV1Beta1 { + /** + * `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta1.ServiceAccountSubject#name + */ + readonly name: string; + + /** + * `namespace` is the namespace of matching ServiceAccount objects. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta1.ServiceAccountSubject#namespace + */ + readonly namespace: string; + +} + +/** + * Converts an object of type 'ServiceAccountSubjectV1Beta1' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ServiceAccountSubjectV1Beta1(obj: ServiceAccountSubjectV1Beta1 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + 'namespace': obj.namespace, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * UserSubject holds detailed information for user-kind subject. + * + * @schema io.k8s.api.flowcontrol.v1beta1.UserSubject + */ +export interface UserSubjectV1Beta1 { + /** + * `name` is the username that matches, or "*" to match all usernames. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta1.UserSubject#name + */ + readonly name: string; + +} + +/** + * Converts an object of type 'UserSubjectV1Beta1' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_UserSubjectV1Beta1(obj: UserSubjectV1Beta1 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * QueuingConfiguration holds the configuration parameters for queuing + * + * @schema io.k8s.api.flowcontrol.v1beta1.QueuingConfiguration + */ +export interface QueuingConfigurationV1Beta1 { + /** + * `handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8. + * + * @schema io.k8s.api.flowcontrol.v1beta1.QueuingConfiguration#handSize + */ + readonly handSize?: number; + + /** + * `queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50. + * + * @schema io.k8s.api.flowcontrol.v1beta1.QueuingConfiguration#queueLengthLimit + */ + readonly queueLengthLimit?: number; + + /** + * `queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64. + * + * @schema io.k8s.api.flowcontrol.v1beta1.QueuingConfiguration#queues + */ + readonly queues?: number; + +} + +/** + * Converts an object of type 'QueuingConfigurationV1Beta1' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_QueuingConfigurationV1Beta1(obj: QueuingConfigurationV1Beta1 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'handSize': obj.handSize, + 'queueLengthLimit': obj.queueLengthLimit, + 'queues': obj.queues, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * GroupSubject holds detailed information for group-kind subject. + * + * @schema io.k8s.api.flowcontrol.v1beta2.GroupSubject + */ +export interface GroupSubjectV1Beta2 { + /** + * name is the user group that matches, or "*" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta2.GroupSubject#name + */ + readonly name: string; + +} + +/** + * Converts an object of type 'GroupSubjectV1Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_GroupSubjectV1Beta2(obj: GroupSubjectV1Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ServiceAccountSubject holds detailed information for service-account-kind subject. + * + * @schema io.k8s.api.flowcontrol.v1beta2.ServiceAccountSubject + */ +export interface ServiceAccountSubjectV1Beta2 { + /** + * `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta2.ServiceAccountSubject#name + */ + readonly name: string; + + /** + * `namespace` is the namespace of matching ServiceAccount objects. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta2.ServiceAccountSubject#namespace + */ + readonly namespace: string; + +} + +/** + * Converts an object of type 'ServiceAccountSubjectV1Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ServiceAccountSubjectV1Beta2(obj: ServiceAccountSubjectV1Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + 'namespace': obj.namespace, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * UserSubject holds detailed information for user-kind subject. + * + * @schema io.k8s.api.flowcontrol.v1beta2.UserSubject + */ +export interface UserSubjectV1Beta2 { + /** + * `name` is the username that matches, or "*" to match all usernames. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta2.UserSubject#name + */ + readonly name: string; + +} + +/** + * Converts an object of type 'UserSubjectV1Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_UserSubjectV1Beta2(obj: UserSubjectV1Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * QueuingConfiguration holds the configuration parameters for queuing + * + * @schema io.k8s.api.flowcontrol.v1beta2.QueuingConfiguration + */ +export interface QueuingConfigurationV1Beta2 { + /** + * `handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8. + * + * @schema io.k8s.api.flowcontrol.v1beta2.QueuingConfiguration#handSize + */ + readonly handSize?: number; + + /** + * `queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50. + * + * @schema io.k8s.api.flowcontrol.v1beta2.QueuingConfiguration#queueLengthLimit + */ + readonly queueLengthLimit?: number; + + /** + * `queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64. + * + * @schema io.k8s.api.flowcontrol.v1beta2.QueuingConfiguration#queues + */ + readonly queues?: number; + +} + +/** + * Converts an object of type 'QueuingConfigurationV1Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_QueuingConfigurationV1Beta2(obj: QueuingConfigurationV1Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'handSize': obj.handSize, + 'queueLengthLimit': obj.queueLengthLimit, + 'queues': obj.queues, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ServiceBackendPort is the service port being referenced. + * + * @schema io.k8s.api.networking.v1.ServiceBackendPort + */ +export interface ServiceBackendPort { + /** + * Name is the name of the port on the Service. This is a mutually exclusive setting with "Number". + * + * @schema io.k8s.api.networking.v1.ServiceBackendPort#name + */ + readonly name?: string; + + /** + * Number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with "Name". + * + * @schema io.k8s.api.networking.v1.ServiceBackendPort#number + */ + readonly number?: number; + +} + +/** + * Converts an object of type 'ServiceBackendPort' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ServiceBackendPort(obj: ServiceBackendPort | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + 'number': obj.number, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend. + * + * @schema io.k8s.api.networking.v1.HTTPIngressPath + */ +export interface HttpIngressPath { + /** + * Backend defines the referenced service endpoint to which the traffic will be forwarded to. + * + * @schema io.k8s.api.networking.v1.HTTPIngressPath#backend + */ + readonly backend: IngressBackend; + + /** + * Path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional "path" part of a URL as defined by RFC 3986. Paths must begin with a '/' and must be present when using PathType with value "Exact" or "Prefix". + * + * @schema io.k8s.api.networking.v1.HTTPIngressPath#path + */ + readonly path?: string; + + /** + * PathType determines the interpretation of the Path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is + * done on a path element by element basis. A path element refers is the + * list of labels in the path split by the '/' separator. A request is a + * match for path p if every p is an element-wise prefix of p of the + * request path. Note that if the last element of the path is a substring + * of the last element in request path, it is not a match (e.g. /foo/bar + * matches /foo/bar/baz, but does not match /foo/barbaz). + * * ImplementationSpecific: Interpretation of the Path matching is up to + * the IngressClass. Implementations can treat this as a separate PathType + * or treat it identically to Prefix or Exact path types. + * Implementations are required to support all path types. + * + * @schema io.k8s.api.networking.v1.HTTPIngressPath#pathType + */ + readonly pathType: string; + +} + +/** + * Converts an object of type 'HttpIngressPath' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_HttpIngressPath(obj: HttpIngressPath | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'backend': toJson_IngressBackend(obj.backend), + 'path': obj.path, + 'pathType': obj.pathType, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * IPBlock describes a particular CIDR (Ex. "192.168.1.1/24","2001:db9::/64") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule. + * + * @schema io.k8s.api.networking.v1.IPBlock + */ +export interface IpBlock { + /** + * CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" + * + * @schema io.k8s.api.networking.v1.IPBlock#cidr + */ + readonly cidr: string; + + /** + * Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range + * + * @schema io.k8s.api.networking.v1.IPBlock#except + */ + readonly except?: string[]; + +} + +/** + * Converts an object of type 'IpBlock' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_IpBlock(obj: IpBlock | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'cidr': obj.cidr, + 'except': obj.except?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. + * + * @schema io.k8s.api.core.v1.NodeSelectorRequirement + */ +export interface NodeSelectorRequirement { + /** + * The label key that the selector applies to. + * + * @schema io.k8s.api.core.v1.NodeSelectorRequirement#key + */ + readonly key: string; + + /** + * Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * + * + * + * @schema io.k8s.api.core.v1.NodeSelectorRequirement#operator + */ + readonly operator: string; + + /** + * An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. + * + * @schema io.k8s.api.core.v1.NodeSelectorRequirement#values + */ + readonly values?: string[]; + +} + +/** + * Converts an object of type 'NodeSelectorRequirement' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_NodeSelectorRequirement(obj: NodeSelectorRequirement | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'key': obj.key, + 'operator': obj.operator, + 'values': obj.values?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/). + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps + */ +export interface JsonSchemaProps { + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#$ref + */ + readonly ref?: string; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#$schema + */ + readonly schema?: string; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#additionalItems + */ + readonly additionalItems?: any; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#additionalProperties + */ + readonly additionalProperties?: any; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#allOf + */ + readonly allOf?: JsonSchemaProps[]; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#anyOf + */ + readonly anyOf?: JsonSchemaProps[]; + + /** + * default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#default + */ + readonly default?: any; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#definitions + */ + readonly definitions?: { [key: string]: JsonSchemaProps }; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#dependencies + */ + readonly dependencies?: { [key: string]: any }; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#description + */ + readonly description?: string; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#enum + */ + readonly enum?: any[]; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#example + */ + readonly example?: any; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#exclusiveMaximum + */ + readonly exclusiveMaximum?: boolean; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#exclusiveMinimum + */ + readonly exclusiveMinimum?: boolean; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#externalDocs + */ + readonly externalDocs?: ExternalDocumentation; + + /** + * format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated: + * + * - bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041" - isbn10: an ISBN10 number string like "0321751043" - isbn13: an ISBN13 number string like "978-0321751041" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\d{3}[- ]?\d{2}[- ]?\d{4}$ - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559" - byte: base64 encoded binary data - password: any kind of string - date: a date string like "2006-01-02" as defined by full-date in RFC3339 - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#format + */ + readonly format?: string; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#id + */ + readonly id?: string; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#items + */ + readonly items?: any; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#maxItems + */ + readonly maxItems?: number; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#maxLength + */ + readonly maxLength?: number; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#maxProperties + */ + readonly maxProperties?: number; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#maximum + */ + readonly maximum?: number; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#minItems + */ + readonly minItems?: number; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#minLength + */ + readonly minLength?: number; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#minProperties + */ + readonly minProperties?: number; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#minimum + */ + readonly minimum?: number; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#multipleOf + */ + readonly multipleOf?: number; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#not + */ + readonly not?: JsonSchemaProps; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#nullable + */ + readonly nullable?: boolean; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#oneOf + */ + readonly oneOf?: JsonSchemaProps[]; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#pattern + */ + readonly pattern?: string; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#patternProperties + */ + readonly patternProperties?: { [key: string]: JsonSchemaProps }; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#properties + */ + readonly properties?: { [key: string]: JsonSchemaProps }; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#required + */ + readonly required?: string[]; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#title + */ + readonly title?: string; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#type + */ + readonly type?: string; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#uniqueItems + */ + readonly uniqueItems?: boolean; + + /** + * x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata). + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#x-kubernetes-embedded-resource + */ + readonly xKubernetesEmbeddedResource?: boolean; + + /** + * x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns: + * + * 1) anyOf: + * - type: integer + * - type: string + * 2) allOf: + * - anyOf: + * - type: integer + * - type: string + * - ... zero or more + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#x-kubernetes-int-or-string + */ + readonly xKubernetesIntOrString?: boolean; + + /** + * x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map. + * + * This tag MUST only be used on lists that have the "x-kubernetes-list-type" extension set to "map". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported). + * + * The properties specified must either be required or have a default value, to ensure those properties are present for all list items. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#x-kubernetes-list-map-keys + */ + readonly xKubernetesListMapKeys?: string[]; + + /** + * x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values: + * + * 1) `atomic`: the list is treated as a single entity, like a scalar. + * Atomic lists will be entirely replaced when updated. This extension + * may be used on any type of list (struct, scalar, ...). + * 2) `set`: + * Sets are lists that must not have multiple items with the same value. Each + * value must be a scalar, an object with x-kubernetes-map-type `atomic` or an + * array with x-kubernetes-list-type `atomic`. + * 3) `map`: + * These lists are like maps in that their elements have a non-index key + * used to identify them. Order is preserved upon merge. The map tag + * must only be used on a list with elements of type object. + * Defaults to atomic for arrays. + * + * @default atomic for arrays. + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#x-kubernetes-list-type + */ + readonly xKubernetesListType?: string; + + /** + * x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values: + * + * 1) `granular`: + * These maps are actual maps (key-value pairs) and each fields are independent + * from each other (they can each be manipulated by separate actors). This is + * the default behaviour for all maps. + * 2) `atomic`: the list is treated as a single entity, like a scalar. + * Atomic maps will be entirely replaced when updated. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#x-kubernetes-map-type + */ + readonly xKubernetesMapType?: string; + + /** + * x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#x-kubernetes-preserve-unknown-fields + */ + readonly xKubernetesPreserveUnknownFields?: boolean; + + /** + * x-kubernetes-validations describes a list of validation rules written in the CEL expression language. This field is an alpha-level. Using this field requires the feature gate `CustomResourceValidationExpressions` to be enabled. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#x-kubernetes-validations + */ + readonly xKubernetesValidations?: ValidationRule[]; + +} + +/** + * Converts an object of type 'JsonSchemaProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_JsonSchemaProps(obj: JsonSchemaProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + '$ref': obj.ref, + '$schema': obj.schema, + 'additionalItems': obj.additionalItems, + 'additionalProperties': obj.additionalProperties, + 'allOf': obj.allOf?.map(y => toJson_JsonSchemaProps(y)), + 'anyOf': obj.anyOf?.map(y => toJson_JsonSchemaProps(y)), + 'default': obj.default, + 'definitions': ((obj.definitions) === undefined) ? undefined : (Object.entries(obj.definitions).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: toJson_JsonSchemaProps(i[1]) }), {})), + 'dependencies': ((obj.dependencies) === undefined) ? undefined : (Object.entries(obj.dependencies).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + 'description': obj.description, + 'enum': obj.enum?.map(y => y), + 'example': obj.example, + 'exclusiveMaximum': obj.exclusiveMaximum, + 'exclusiveMinimum': obj.exclusiveMinimum, + 'externalDocs': toJson_ExternalDocumentation(obj.externalDocs), + 'format': obj.format, + 'id': obj.id, + 'items': obj.items, + 'maxItems': obj.maxItems, + 'maxLength': obj.maxLength, + 'maxProperties': obj.maxProperties, + 'maximum': obj.maximum, + 'minItems': obj.minItems, + 'minLength': obj.minLength, + 'minProperties': obj.minProperties, + 'minimum': obj.minimum, + 'multipleOf': obj.multipleOf, + 'not': toJson_JsonSchemaProps(obj.not), + 'nullable': obj.nullable, + 'oneOf': obj.oneOf?.map(y => toJson_JsonSchemaProps(y)), + 'pattern': obj.pattern, + 'patternProperties': ((obj.patternProperties) === undefined) ? undefined : (Object.entries(obj.patternProperties).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: toJson_JsonSchemaProps(i[1]) }), {})), + 'properties': ((obj.properties) === undefined) ? undefined : (Object.entries(obj.properties).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: toJson_JsonSchemaProps(i[1]) }), {})), + 'required': obj.required?.map(y => y), + 'title': obj.title, + 'type': obj.type, + 'uniqueItems': obj.uniqueItems, + 'x-kubernetes-embedded-resource': obj.xKubernetesEmbeddedResource, + 'x-kubernetes-int-or-string': obj.xKubernetesIntOrString, + 'x-kubernetes-list-map-keys': obj.xKubernetesListMapKeys?.map(y => y), + 'x-kubernetes-list-type': obj.xKubernetesListType, + 'x-kubernetes-map-type': obj.xKubernetesMapType, + 'x-kubernetes-preserve-unknown-fields': obj.xKubernetesPreserveUnknownFields, + 'x-kubernetes-validations': obj.xKubernetesValidations?.map(y => toJson_ValidationRule(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceScale + */ +export interface CustomResourceSubresourceScale { + /** + * labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceScale#labelSelectorPath + */ + readonly labelSelectorPath?: string; + + /** + * specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceScale#specReplicasPath + */ + readonly specReplicasPath: string; + + /** + * statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceScale#statusReplicasPath + */ + readonly statusReplicasPath: string; + +} + +/** + * Converts an object of type 'CustomResourceSubresourceScale' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CustomResourceSubresourceScale(obj: CustomResourceSubresourceScale | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'labelSelectorPath': obj.labelSelectorPath, + 'specReplicasPath': obj.specReplicasPath, + 'statusReplicasPath': obj.statusReplicasPath, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Selects a key from a ConfigMap. + * + * @schema io.k8s.api.core.v1.ConfigMapKeySelector + */ +export interface ConfigMapKeySelector { + /** + * The key to select. + * + * @schema io.k8s.api.core.v1.ConfigMapKeySelector#key + */ + readonly key: string; + + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * + * @schema io.k8s.api.core.v1.ConfigMapKeySelector#name + */ + readonly name?: string; + + /** + * Specify whether the ConfigMap or its key must be defined + * + * @schema io.k8s.api.core.v1.ConfigMapKeySelector#optional + */ + readonly optional?: boolean; + +} + +/** + * Converts an object of type 'ConfigMapKeySelector' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ConfigMapKeySelector(obj: ConfigMapKeySelector | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'key': obj.key, + 'name': obj.name, + 'optional': obj.optional, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ObjectFieldSelector selects an APIVersioned field of an object. + * + * @schema io.k8s.api.core.v1.ObjectFieldSelector + */ +export interface ObjectFieldSelector { + /** + * Version of the schema the FieldPath is written in terms of, defaults to "v1". + * + * @schema io.k8s.api.core.v1.ObjectFieldSelector#apiVersion + */ + readonly apiVersion?: string; + + /** + * Path of the field to select in the specified API version. + * + * @schema io.k8s.api.core.v1.ObjectFieldSelector#fieldPath + */ + readonly fieldPath: string; + +} + +/** + * Converts an object of type 'ObjectFieldSelector' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ObjectFieldSelector(obj: ObjectFieldSelector | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'apiVersion': obj.apiVersion, + 'fieldPath': obj.fieldPath, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ResourceFieldSelector represents container resources (cpu, memory) and their output format + * + * @schema io.k8s.api.core.v1.ResourceFieldSelector + */ +export interface ResourceFieldSelector { + /** + * Container name: required for volumes, optional for env vars + * + * @schema io.k8s.api.core.v1.ResourceFieldSelector#containerName + */ + readonly containerName?: string; + + /** + * Specifies the output format of the exposed resources, defaults to "1" + * + * @schema io.k8s.api.core.v1.ResourceFieldSelector#divisor + */ + readonly divisor?: Quantity; + + /** + * Required: resource to select + * + * @schema io.k8s.api.core.v1.ResourceFieldSelector#resource + */ + readonly resource: string; + +} + +/** + * Converts an object of type 'ResourceFieldSelector' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ResourceFieldSelector(obj: ResourceFieldSelector | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'containerName': obj.containerName, + 'divisor': obj.divisor?.value, + 'resource': obj.resource, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * SecretKeySelector selects a key of a Secret. + * + * @schema io.k8s.api.core.v1.SecretKeySelector + */ +export interface SecretKeySelector { + /** + * The key of the secret to select from. Must be a valid secret key. + * + * @schema io.k8s.api.core.v1.SecretKeySelector#key + */ + readonly key: string; + + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * + * @schema io.k8s.api.core.v1.SecretKeySelector#name + */ + readonly name?: string; + + /** + * Specify whether the Secret or its key must be defined + * + * @schema io.k8s.api.core.v1.SecretKeySelector#optional + */ + readonly optional?: boolean; + +} + +/** + * Converts an object of type 'SecretKeySelector' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_SecretKeySelector(obj: SecretKeySelector | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'key': obj.key, + 'name': obj.name, + 'optional': obj.optional, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * HTTPHeader describes a custom header to be used in HTTP probes + * + * @schema io.k8s.api.core.v1.HTTPHeader + */ +export interface HttpHeader { + /** + * The header field name + * + * @schema io.k8s.api.core.v1.HTTPHeader#name + */ + readonly name: string; + + /** + * The header field value + * + * @schema io.k8s.api.core.v1.HTTPHeader#value + */ + readonly value: string; + +} + +/** + * Converts an object of type 'HttpHeader' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_HttpHeader(obj: HttpHeader | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + 'value': obj.value, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Adapts a ConfigMap into a projected volume. + * + * The contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode. + * + * @schema io.k8s.api.core.v1.ConfigMapProjection + */ +export interface ConfigMapProjection { + /** + * items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * + * @schema io.k8s.api.core.v1.ConfigMapProjection#items + */ + readonly items?: KeyToPath[]; + + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * + * @schema io.k8s.api.core.v1.ConfigMapProjection#name + */ + readonly name?: string; + + /** + * optional specify whether the ConfigMap or its keys must be defined + * + * @schema io.k8s.api.core.v1.ConfigMapProjection#optional + */ + readonly optional?: boolean; + +} + +/** + * Converts an object of type 'ConfigMapProjection' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ConfigMapProjection(obj: ConfigMapProjection | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'items': obj.items?.map(y => toJson_KeyToPath(y)), + 'name': obj.name, + 'optional': obj.optional, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode. + * + * @schema io.k8s.api.core.v1.DownwardAPIProjection + */ +export interface DownwardApiProjection { + /** + * Items is a list of DownwardAPIVolume file + * + * @schema io.k8s.api.core.v1.DownwardAPIProjection#items + */ + readonly items?: DownwardApiVolumeFile[]; + +} + +/** + * Converts an object of type 'DownwardApiProjection' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_DownwardApiProjection(obj: DownwardApiProjection | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'items': obj.items?.map(y => toJson_DownwardApiVolumeFile(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Adapts a secret into a projected volume. + * + * The contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode. + * + * @schema io.k8s.api.core.v1.SecretProjection + */ +export interface SecretProjection { + /** + * items if unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * + * @schema io.k8s.api.core.v1.SecretProjection#items + */ + readonly items?: KeyToPath[]; + + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * + * @schema io.k8s.api.core.v1.SecretProjection#name + */ + readonly name?: string; + + /** + * optional field specify whether the Secret or its key must be defined + * + * @schema io.k8s.api.core.v1.SecretProjection#optional + */ + readonly optional?: boolean; + +} + +/** + * Converts an object of type 'SecretProjection' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_SecretProjection(obj: SecretProjection | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'items': obj.items?.map(y => toJson_KeyToPath(y)), + 'name': obj.name, + 'optional': obj.optional, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise). + * + * @schema io.k8s.api.core.v1.ServiceAccountTokenProjection + */ +export interface ServiceAccountTokenProjection { + /** + * audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * + * @schema io.k8s.api.core.v1.ServiceAccountTokenProjection#audience + */ + readonly audience?: string; + + /** + * expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * + * @default 1 hour and must be at least 10 minutes. + * @schema io.k8s.api.core.v1.ServiceAccountTokenProjection#expirationSeconds + */ + readonly expirationSeconds?: number; + + /** + * path is the path relative to the mount point of the file to project the token into. + * + * @schema io.k8s.api.core.v1.ServiceAccountTokenProjection#path + */ + readonly path: string; + +} + +/** + * Converts an object of type 'ServiceAccountTokenProjection' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ServiceAccountTokenProjection(obj: ServiceAccountTokenProjection | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'audience': obj.audience, + 'expirationSeconds': obj.expirationSeconds, + 'path': obj.path, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ExternalDocumentation allows referencing an external resource for extended documentation. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ExternalDocumentation + */ +export interface ExternalDocumentation { + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ExternalDocumentation#description + */ + readonly description?: string; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ExternalDocumentation#url + */ + readonly url?: string; + +} + +/** + * Converts an object of type 'ExternalDocumentation' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ExternalDocumentation(obj: ExternalDocumentation | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'description': obj.description, + 'url': obj.url, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ValidationRule describes a validation rule written in the CEL expression language. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ValidationRule + */ +export interface ValidationRule { + /** + * Message represents the message displayed when validation fails. The message is required if the Rule contains line breaks. The message must not contain line breaks. If unset, the message is "failed rule: {Rule}". e.g. "must be a URL with the host matching spec.host" + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ValidationRule#message + */ + readonly message?: string; + + /** + * Rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the x-kubernetes-validations extension in the schema. The `self` variable in the CEL expression is bound to the scoped value. Example: - Rule scoped to the root of a resource with a status subresource: {"rule": "self.status.actual <= self.spec.maxDesired"} + * + * If the Rule is scoped to an object with properties, the accessible properties of the object are field selectable via `self.field` and field presence can be checked via `has(self.field)`. Null valued fields are treated as absent fields in CEL expressions. If the Rule is scoped to an object with additionalProperties (i.e. a map) the value of the map are accessible via `self[mapKey]`, map containment can be checked via `mapKey in self` and all entries of the map are accessible via CEL macros and functions such as `self.all(...)`. If the Rule is scoped to an array, the elements of the array are accessible via `self[i]` and also by macros and functions. If the Rule is scoped to a scalar, `self` is bound to the scalar value. Examples: - Rule scoped to a map of objects: {"rule": "self.components['Widget'].priority < 10"} - Rule scoped to a list of integers: {"rule": "self.values.all(value, value >= 0 && value < 100)"} - Rule scoped to a string value: {"rule": "self.startsWith('kube')"} + * + * The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object and from any x-kubernetes-embedded-resource annotated objects. No other metadata properties are accessible. + * + * Unknown data preserved in custom resources via x-kubernetes-preserve-unknown-fields is not accessible in CEL expressions. This includes: - Unknown field values that are preserved by object schemas with x-kubernetes-preserve-unknown-fields. - Object properties where the property schema is of an "unknown type". An "unknown type" is recursively defined as: + * - A schema with no type and x-kubernetes-preserve-unknown-fields set to true + * - An array where the items schema is of an "unknown type" + * - An object where the additionalProperties schema is of an "unknown type" + * + * Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: + * "true", "false", "null", "in", "as", "break", "const", "continue", "else", "for", "function", "if", + * "import", "let", "loop", "package", "namespace", "return". + * Examples: + * - Rule accessing a property named "namespace": {"rule": "self.__namespace__ > 0"} + * - Rule accessing a property named "x-prop": {"rule": "self.x__dash__prop > 0"} + * - Rule accessing a property named "redact__d": {"rule": "self.redact__underscores__d > 0"} + * + * Equality on arrays with x-kubernetes-list-type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: + * - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and + * non-intersecting elements in `Y` are appended, retaining their partial order. + * - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values + * are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with + * non-intersecting keys are appended, retaining their partial order. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ValidationRule#rule + */ + readonly rule: string; + +} + +/** + * Converts an object of type 'ValidationRule' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ValidationRule(obj: ValidationRule | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'message': obj.message, + 'rule': obj.rule, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + diff --git a/tools/cdk8s/yggdrasil-core-engine/jest.config.js b/tools/cdk8s/yggdrasil-core-engine/jest.config.js new file mode 100644 index 0000000..bcd81f8 --- /dev/null +++ b/tools/cdk8s/yggdrasil-core-engine/jest.config.js @@ -0,0 +1,9 @@ +module.exports = { + "roots": [ + "" + ], + testMatch: [ '**/*.test.ts'], + "transform": { + "^.+\\.tsx?$": "ts-jest" + }, +} diff --git a/tools/cdk8s/yggdrasil-core-engine/main.test.ts b/tools/cdk8s/yggdrasil-core-engine/main.test.ts new file mode 100644 index 0000000..5851e33 --- /dev/null +++ b/tools/cdk8s/yggdrasil-core-engine/main.test.ts @@ -0,0 +1,11 @@ +import {MyChart} from './main'; +import {Testing} from 'cdk8s'; + +describe('Placeholder', () => { + test('Empty', () => { + const app = Testing.app(); + const chart = new MyChart(app, 'test-chart'); + const results = Testing.synth(chart) + expect(results).toMatchSnapshot(); + }); +}); diff --git a/tools/cdk8s/yggdrasil-core-engine/main.ts b/tools/cdk8s/yggdrasil-core-engine/main.ts new file mode 100644 index 0000000..7248e61 --- /dev/null +++ b/tools/cdk8s/yggdrasil-core-engine/main.ts @@ -0,0 +1,147 @@ +import { Construct } from 'constructs'; +import { App, Chart, ChartProps } from 'cdk8s'; +import { + IntOrString, + KubeDeployment, + KubeNamespace, + KubeRoleBinding, + KubeServiceAccount, + Quantity, +} from './imports/k8s'; +import { Helper } from './utils/helper'; + +import path = require('path'); +require('dotenv').config({ + path: Helper.isProd + ? path.resolve(__dirname, './env', '.env') + : path.resolve(__dirname, './env', `.env.${process.env.NODE_ENV}`), +}); + +export class MyChart extends Chart { + appContainerName = process.env.CONTAINERNAME ?? 'yggdrasil-core-engine'; + + serviceLabel = { + app: `${this.appContainerName}-services-${process.env.NODE_ENV}`, + }; + + constructor(scope: Construct, id: string, props: ChartProps = {}) { + super(scope, id, props); + + // apply namespace + new KubeNamespace(this, 'namespace', { + metadata: { + name: props.namespace, + }, + }); + + this.setupApp(); + + // setup cronjob service account + new KubeServiceAccount(this, 'service-account', { + metadata: { + name: this.labels.service, + namespace: this.namespace, + }, + }); + + // setup cronjob service account role binding + new KubeRoleBinding(this, 'role-binding', { + metadata: { + name: this.labels.service, + namespace: this.namespace, + }, + roleRef: { + apiGroup: 'rbac.authorization.k8s.io', + kind: 'ClusterRole', + name: 'cluster-admin', + }, + subjects: [ + { + kind: 'ServiceAccount', + name: this.labels.service, + namespace: this.namespace, + }, + ], + }); + } + + private setupApp() { + new KubeDeployment(this, 'deployment', { + metadata: { + name: this.labels.app, + namespace: this.namespace, + }, + spec: { + replicas: 1, + selector: { + matchLabels: this.labels, + }, + template: { + metadata: { + labels: this.labels, + name: this.labels.app, + }, + spec: { + nodeSelector: Helper.isProd + ? { + 'cloud.google.com/gke-spot': 'true', + } + : undefined, + terminationGracePeriodSeconds: Helper.isProd ? 25 : undefined, + imagePullSecrets: [ + { + name: process.env.IMAGE_PULL_SECRETS ?? 'registry-credentials', + }, + ], + containers: [ + { + name: this.appContainerName, + image: `${process.env.IMAGE_PATH}${ + process.env.CI_COMMIT_SHA ?? 'latest' + }`, + imagePullPolicy: + process.env.IMAGE_PULL_POLICY ?? 'IfNotPresent', + resources: { + limits: { + cpu: Quantity.fromString(Helper.isProd ? '0.25' : '0.25'), + memory: Quantity.fromString( + Helper.isProd ? '512Mi' : '512Mi' + ), + }, + }, + env: [ + { + name: 'NODE_ENV', + value: `${process.env.SERVICE_TAGS ?? 'development'}`, + }, + { + name: 'SERVICE_TAGS', + value: `${process.env.SERVICE_TAGS ?? 'development'}`, + }, + ], + livenessProbe: { + httpGet: { + path: '/', + port: IntOrString.fromNumber(3000), + }, + initialDelaySeconds: 10, + }, + }, + ], + }, + }, + }, + }); + } +} + +const app = new App(); +const appContainerName = process.env.CONTAINERNAME ?? 'yggdrasil-core-engine'; +new MyChart(app, appContainerName, { + namespace: `${appContainerName}-${process.env.NODE_ENV}`, + labels: { + app: `${appContainerName}-deployment-${process.env.NODE_ENV}`, + service: `${appContainerName}-services-${process.env.NODE_ENV}`, + }, +}); +app.synth(); diff --git a/tools/cdk8s/yggdrasil-core-engine/package-lock.json b/tools/cdk8s/yggdrasil-core-engine/package-lock.json new file mode 100644 index 0000000..1882c9d --- /dev/null +++ b/tools/cdk8s/yggdrasil-core-engine/package-lock.json @@ -0,0 +1,9724 @@ +{ + "name": "yggdrasil-core-engine", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "yggdrasil-core-engine", + "version": "1.0.0", + "license": "Apache-2.0", + "dependencies": { + "cdk8s": "^2.7.83", + "cdk8s-plus-25": "^2.8.49", + "constructs": "^10.2.58", + "dotenv": "^16.3.1" + }, + "devDependencies": { + "@types/jest": "^26.0.24", + "@types/node": "^14.18.51", + "cdk8s-cli": "^2.2.73", + "jest": "^26.6.3", + "ts-jest": "^26.5.6", + "ts-node": "^10.9.1", + "typescript": "^4.9.5" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", + "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.5.tgz", + "integrity": "sha512-Xmwn266vad+6DAqEB2A6V/CcZVp62BbwVmcOJc2RPuwih1kw02TjQvWVWlcKGbBPd+8/0V5DEkOcizRGYsspYQ==", + "dev": true, + "dependencies": { + "@babel/highlight": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.5.tgz", + "integrity": "sha512-4Jc/YuIaYqKnDDz892kPIledykKg12Aw1PYX5i/TY28anJtacvM1Rrr8wbieB9GfEJwlzqT0hUEao0CxEebiDA==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.22.5.tgz", + "integrity": "sha512-SBuTAjg91A3eKOvD+bPEz3LlhHZRNu1nFOVts9lzDJTXshHTjII0BAtDS3Y2DAkdZdDKWVZGVwkDfc4Clxn1dg==", + "dev": true, + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.22.5", + "@babel/generator": "^7.22.5", + "@babel/helper-compilation-targets": "^7.22.5", + "@babel/helper-module-transforms": "^7.22.5", + "@babel/helpers": "^7.22.5", + "@babel/parser": "^7.22.5", + "@babel/template": "^7.22.5", + "@babel/traverse": "^7.22.5", + "@babel/types": "^7.22.5", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.2", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/generator": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.22.5.tgz", + "integrity": "sha512-+lcUbnTRhd0jOewtFSedLyiPsD5tswKkbgcezOqqWFUVNEwoUTlpPOBmvhG7OXWLR4jMdv0czPGH5XbflnD1EA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5", + "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.5.tgz", + "integrity": "sha512-Ji+ywpHeuqxB8WDxraCiqR0xfhYjiDE/e6k7FuIaANnoOFxAHskHChz4vA1mJC9Lbm01s1PVAGhQY4FUKSkGZw==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.22.5", + "@babel/helper-validator-option": "^7.22.5", + "browserslist": "^4.21.3", + "lru-cache": "^5.1.1", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-environment-visitor": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.5.tgz", + "integrity": "sha512-XGmhECfVA/5sAt+H+xpSg0mfrHq6FzNr9Oxh7PSEBBRUb/mL7Kz3NICXb194rCqAEdxkhPT1a88teizAFyvk8Q==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.22.5.tgz", + "integrity": "sha512-wtHSq6jMRE3uF2otvfuD3DIvVhOsSNshQl0Qrd7qC9oQJzHvOL4qQXlQn2916+CXGywIjpGuIkoyZRRxHPiNQQ==", + "dev": true, + "dependencies": { + "@babel/template": "^7.22.5", + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-hoist-variables": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", + "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.5.tgz", + "integrity": "sha512-8Dl6+HD/cKifutF5qGd/8ZJi84QeAKh+CEe1sBzz8UayBBGg1dAIJrdHOcOM5b2MpzWL2yuotJTtGjETq0qjXg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.22.5.tgz", + "integrity": "sha512-+hGKDt/Ze8GFExiVHno/2dvG5IdstpzCq0y4Qc9OJ25D4q3pKfiIP/4Vp3/JvhDkLKsDK2api3q3fpIgiIF5bw==", + "dev": true, + "dependencies": { + "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-module-imports": "^7.22.5", + "@babel/helper-simple-access": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.5", + "@babel/template": "^7.22.5", + "@babel/traverse": "^7.22.5", + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz", + "integrity": "sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", + "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.5.tgz", + "integrity": "sha512-thqK5QFghPKWLhAV321lxF95yCg2K3Ob5yw+M3VHWfdia0IkPXUtoLH8x/6Fh486QUvzhb8YOWHChTVen2/PoQ==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz", + "integrity": "sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.5.tgz", + "integrity": "sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.22.5.tgz", + "integrity": "sha512-R3oB6xlIVKUnxNUxbmgq7pKjxpru24zlimpE8WK47fACIlM0II/Hm1RS8IaOI7NgCr6LNS+jl5l75m20npAziw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.22.5.tgz", + "integrity": "sha512-pSXRmfE1vzcUIDFQcSGA5Mr+GxBV9oiRKDuDxXvWQQBCh8HoIjs/2DlDB7H8smac1IVrB9/xdXj2N3Wol9Cr+Q==", + "dev": true, + "dependencies": { + "@babel/template": "^7.22.5", + "@babel/traverse": "^7.22.5", + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.5.tgz", + "integrity": "sha512-BSKlD1hgnedS5XRnGOljZawtag7H1yPfQp0tdNJCHoH6AZ+Pcm9VvkrK59/Yy593Ypg0zMxH2BxD1VPYUQ7UIw==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.22.5", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@babel/highlight/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "node_modules/@babel/highlight/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/parser": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.5.tgz", + "integrity": "sha512-DFZMC9LJUG9PLOclRC32G63UXwzqS2koQC8dkx+PLdmt1xSePYpbT/NbsrJy8Q/muXz7o/h/d4A7Fuyixm559Q==", + "dev": true, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/template": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.5.tgz", + "integrity": "sha512-X7yV7eiwAxdj9k94NEylvbVHLiVG1nvzCV2EAowhxLTwODV1jl9UzZ48leOC0sH7OnuHrIkllaBgneUykIcZaw==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.22.5", + "@babel/parser": "^7.22.5", + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.22.5.tgz", + "integrity": "sha512-7DuIjPgERaNo6r+PZwItpjCZEa5vyw4eJGufeLxrPdBXBoLcCJCIasvK6pK/9DVNrLZTLFhUGqaC6X/PA007TQ==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.22.5", + "@babel/generator": "^7.22.5", + "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-function-name": "^7.22.5", + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.5", + "@babel/parser": "^7.22.5", + "@babel/types": "^7.22.5", + "debug": "^4.1.0", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.5.tgz", + "integrity": "sha512-zo3MIHGOkPOfoRXitsgHLjEXmlDaD/5KU1Uzuc9GNiZPhSqVxVRtxuPaSBZDsYZ9qV88AjtMtWW7ww98loJ9KA==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.5", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true + }, + "node_modules/@cnakazawa/watch": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@cnakazawa/watch/-/watch-1.0.4.tgz", + "integrity": "sha512-v9kIhKwjeZThiWrLmj0y17CWoyddASLj9O2yvbZkbvw/N3rWOYy9zkV66ursAoVr0mV15bL8g0c4QZUE6cdDoQ==", + "dev": true, + "dependencies": { + "exec-sh": "^0.3.2", + "minimist": "^1.2.0" + }, + "bin": { + "watch": "cli.js" + }, + "engines": { + "node": ">=0.1.95" + } + }, + "node_modules/@colors/colors": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz", + "integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==", + "optional": true, + "engines": { + "node": ">=0.1.90" + } + }, + "node_modules/@cspotcode/source-map-support": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", + "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "0.3.9" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "node_modules/@dabh/diagnostics": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@dabh/diagnostics/-/diagnostics-2.0.3.tgz", + "integrity": "sha512-hrlQOIi7hAfzsMqlGSFyVucrx38O+j6wiGOf//H2ecvIEqYN4ADBSS2iLMh5UFyDunCNniUIPk/q3riFv45xRA==", + "optional": true, + "dependencies": { + "colorspace": "1.1.x", + "enabled": "2.0.x", + "kuler": "^2.0.0" + } + }, + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-26.6.2.tgz", + "integrity": "sha512-IY1R2i2aLsLr7Id3S6p2BA82GNWryt4oSvEXLAKc+L2zdi89dSkE8xC1C+0kpATG4JhBJREnQOH7/zmccM2B0g==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^26.6.2", + "jest-util": "^26.6.2", + "slash": "^3.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/core": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-26.6.3.tgz", + "integrity": "sha512-xvV1kKbhfUqFVuZ8Cyo+JPpipAHHAV3kcDBftiduK8EICXmTFddryy3P7NfZt8Pv37rA9nEJBKCCkglCPt/Xjw==", + "dev": true, + "dependencies": { + "@jest/console": "^26.6.2", + "@jest/reporters": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/transform": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.4", + "jest-changed-files": "^26.6.2", + "jest-config": "^26.6.3", + "jest-haste-map": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-regex-util": "^26.0.0", + "jest-resolve": "^26.6.2", + "jest-resolve-dependencies": "^26.6.3", + "jest-runner": "^26.6.3", + "jest-runtime": "^26.6.3", + "jest-snapshot": "^26.6.2", + "jest-util": "^26.6.2", + "jest-validate": "^26.6.2", + "jest-watcher": "^26.6.2", + "micromatch": "^4.0.2", + "p-each-series": "^2.1.0", + "rimraf": "^3.0.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/environment": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-26.6.2.tgz", + "integrity": "sha512-nFy+fHl28zUrRsCeMB61VDThV1pVTtlEokBRgqPrcT1JNq4yRNIyTHfyht6PqtUvY9IsuLGTrbG8kPXjSZIZwA==", + "dev": true, + "dependencies": { + "@jest/fake-timers": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "jest-mock": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/fake-timers": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-26.6.2.tgz", + "integrity": "sha512-14Uleatt7jdzefLPYM3KLcnUl1ZNikaKq34enpb5XG9i81JpppDb5muZvonvKyrl7ftEHkKS5L5/eB/kxJ+bvA==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "@sinonjs/fake-timers": "^6.0.1", + "@types/node": "*", + "jest-message-util": "^26.6.2", + "jest-mock": "^26.6.2", + "jest-util": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/globals": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-26.6.2.tgz", + "integrity": "sha512-85Ltnm7HlB/KesBUuALwQ68YTU72w9H2xW9FjZ1eL1U3lhtefjjl5c2MiUbpXt/i6LaPRvoOFJ22yCBSfQ0JIA==", + "dev": true, + "dependencies": { + "@jest/environment": "^26.6.2", + "@jest/types": "^26.6.2", + "expect": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/reporters": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-26.6.2.tgz", + "integrity": "sha512-h2bW53APG4HvkOnVMo8q3QXa6pcaNt1HkwVsOPMBV6LD/q9oSpxNSYZQYkAnjdMjrJ86UuYeLo+aEZClV6opnw==", + "dev": true, + "dependencies": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/transform": "^26.6.2", + "@jest/types": "^26.6.2", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.2", + "graceful-fs": "^4.2.4", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^4.0.3", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.0.2", + "jest-haste-map": "^26.6.2", + "jest-resolve": "^26.6.2", + "jest-util": "^26.6.2", + "jest-worker": "^26.6.2", + "slash": "^3.0.0", + "source-map": "^0.6.0", + "string-length": "^4.0.1", + "terminal-link": "^2.0.0", + "v8-to-istanbul": "^7.0.0" + }, + "engines": { + "node": ">= 10.14.2" + }, + "optionalDependencies": { + "node-notifier": "^8.0.0" + } + }, + "node_modules/@jest/source-map": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-26.6.2.tgz", + "integrity": "sha512-YwYcCwAnNmOVsZ8mr3GfnzdXDAl4LaenZP5z+G0c8bzC9/dugL8zRmxZzdoTl4IaS3CryS1uWnROLPFmb6lVvA==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0", + "graceful-fs": "^4.2.4", + "source-map": "^0.6.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/test-result": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-26.6.2.tgz", + "integrity": "sha512-5O7H5c/7YlojphYNrK02LlDIV2GNPYisKwHm2QTKjNZeEzezCbwYs9swJySv2UfPMyZ0VdsmMv7jIlD/IKYQpQ==", + "dev": true, + "dependencies": { + "@jest/console": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-26.6.3.tgz", + "integrity": "sha512-YHlVIjP5nfEyjlrSr8t/YdNfU/1XEt7c5b4OxcXCjyRhjzLYu/rO69/WHPuYcbCWkz8kAeZVZp2N2+IOLLEPGw==", + "dev": true, + "dependencies": { + "@jest/test-result": "^26.6.2", + "graceful-fs": "^4.2.4", + "jest-haste-map": "^26.6.2", + "jest-runner": "^26.6.3", + "jest-runtime": "^26.6.3" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/transform": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-26.6.2.tgz", + "integrity": "sha512-E9JjhUgNzvuQ+vVAL21vlyfy12gP0GhazGgJC4h6qUt1jSdUXGWJ1wfu/X7Sd8etSgxV4ovT1pb9v5D6QW4XgA==", + "dev": true, + "dependencies": { + "@babel/core": "^7.1.0", + "@jest/types": "^26.6.2", + "babel-plugin-istanbul": "^6.0.0", + "chalk": "^4.0.0", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.0.0", + "graceful-fs": "^4.2.4", + "jest-haste-map": "^26.6.2", + "jest-regex-util": "^26.0.0", + "jest-util": "^26.6.2", + "micromatch": "^4.0.2", + "pirates": "^4.0.1", + "slash": "^3.0.0", + "source-map": "^0.6.1", + "write-file-atomic": "^3.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", + "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", + "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.18", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz", + "integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "3.1.0", + "@jridgewell/sourcemap-codec": "1.4.14" + } + }, + "node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", + "dev": true + }, + "node_modules/@jsii/check-node": { + "version": "1.84.0", + "resolved": "https://registry.npmjs.org/@jsii/check-node/-/check-node-1.84.0.tgz", + "integrity": "sha512-gLa+N1WKksCjTXaK8VMjTbEXf58QlrDOovoTOEzhGNgTFyAUX8woIRAUmk+X70ssDzBvgh3E98mIsDKoWOp6zA==", + "dev": true, + "dependencies": { + "chalk": "^4.1.2", + "semver": "^7.5.1" + }, + "engines": { + "node": ">= 14.17.0" + } + }, + "node_modules/@jsii/check-node/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@jsii/check-node/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@jsii/check-node/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/@jsii/spec": { + "version": "1.84.0", + "resolved": "https://registry.npmjs.org/@jsii/spec/-/spec-1.84.0.tgz", + "integrity": "sha512-P2PCE4jlmuTh5Oj7Be2jdn5qyzIWHX4rcyYspddc0DLZAuLB/LRQYytrxgfdy4+NroGhrPeKPBoF9MwJ5CzfXA==", + "dev": true, + "dependencies": { + "ajv": "^8.12.0" + }, + "engines": { + "node": ">= 14.17.0" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "devOptional": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "devOptional": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "devOptional": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@octokit/auth-token": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.5.0.tgz", + "integrity": "sha512-r5FVUJCOLl19AxiuZD2VRZ/ORjp/4IN98Of6YJoJOkY75CIBuYfmiNHGrDwXr+aLGG55igl9QrxX3hbiXlLb+g==", + "optional": true, + "dependencies": { + "@octokit/types": "^6.0.3" + } + }, + "node_modules/@octokit/core": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.6.0.tgz", + "integrity": "sha512-7RKRKuA4xTjMhY+eG3jthb3hlZCsOwg3rztWh75Xc+ShDWOfDDATWbeZpAHBNRpm4Tv9WgBMOy1zEJYXG6NJ7Q==", + "optional": true, + "dependencies": { + "@octokit/auth-token": "^2.4.4", + "@octokit/graphql": "^4.5.8", + "@octokit/request": "^5.6.3", + "@octokit/request-error": "^2.0.5", + "@octokit/types": "^6.0.3", + "before-after-hook": "^2.2.0", + "universal-user-agent": "^6.0.0" + } + }, + "node_modules/@octokit/endpoint": { + "version": "6.0.12", + "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.12.tgz", + "integrity": "sha512-lF3puPwkQWGfkMClXb4k/eUT/nZKQfxinRWJrdZaJO85Dqwo/G0yOC434Jr2ojwafWJMYqFGFa5ms4jJUgujdA==", + "optional": true, + "dependencies": { + "@octokit/types": "^6.0.3", + "is-plain-object": "^5.0.0", + "universal-user-agent": "^6.0.0" + } + }, + "node_modules/@octokit/graphql": { + "version": "4.8.0", + "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.8.0.tgz", + "integrity": "sha512-0gv+qLSBLKF0z8TKaSKTsS39scVKF9dbMxJpj3U0vC7wjNWFuIpL/z76Qe2fiuCbDRcJSavkXsVtMS6/dtQQsg==", + "optional": true, + "dependencies": { + "@octokit/request": "^5.6.0", + "@octokit/types": "^6.0.3", + "universal-user-agent": "^6.0.0" + } + }, + "node_modules/@octokit/openapi-types": { + "version": "12.11.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-12.11.0.tgz", + "integrity": "sha512-VsXyi8peyRq9PqIz/tpqiL2w3w80OgVMwBHltTml3LmVvXiphgeqmY9mvBw9Wu7e0QWk/fqD37ux8yP5uVekyQ==", + "optional": true + }, + "node_modules/@octokit/plugin-paginate-rest": { + "version": "2.21.3", + "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.21.3.tgz", + "integrity": "sha512-aCZTEf0y2h3OLbrgKkrfFdjRL6eSOo8komneVQJnYecAxIej7Bafor2xhuDJOIFau4pk0i/P28/XgtbyPF0ZHw==", + "optional": true, + "dependencies": { + "@octokit/types": "^6.40.0" + }, + "peerDependencies": { + "@octokit/core": ">=2" + } + }, + "node_modules/@octokit/plugin-request-log": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-1.0.4.tgz", + "integrity": "sha512-mLUsMkgP7K/cnFEw07kWqXGF5LKrOkD+lhCrKvPHXWDywAwuDUeDwWBpc69XK3pNX0uKiVt8g5z96PJ6z9xCFA==", + "optional": true, + "peerDependencies": { + "@octokit/core": ">=3" + } + }, + "node_modules/@octokit/plugin-rest-endpoint-methods": { + "version": "5.16.2", + "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.16.2.tgz", + "integrity": "sha512-8QFz29Fg5jDuTPXVtey05BLm7OB+M8fnvE64RNegzX7U+5NUXcOcnpTIK0YfSHBg8gYd0oxIq3IZTe9SfPZiRw==", + "optional": true, + "dependencies": { + "@octokit/types": "^6.39.0", + "deprecation": "^2.3.1" + }, + "peerDependencies": { + "@octokit/core": ">=3" + } + }, + "node_modules/@octokit/request": { + "version": "5.6.3", + "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.6.3.tgz", + "integrity": "sha512-bFJl0I1KVc9jYTe9tdGGpAMPy32dLBXXo1dS/YwSCTL/2nd9XeHsY616RE3HPXDVk+a+dBuzyz5YdlXwcDTr2A==", + "optional": true, + "dependencies": { + "@octokit/endpoint": "^6.0.1", + "@octokit/request-error": "^2.1.0", + "@octokit/types": "^6.16.1", + "is-plain-object": "^5.0.0", + "node-fetch": "^2.6.7", + "universal-user-agent": "^6.0.0" + } + }, + "node_modules/@octokit/request-error": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.1.0.tgz", + "integrity": "sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg==", + "optional": true, + "dependencies": { + "@octokit/types": "^6.0.3", + "deprecation": "^2.0.0", + "once": "^1.4.0" + } + }, + "node_modules/@octokit/rest": { + "version": "18.12.0", + "resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-18.12.0.tgz", + "integrity": "sha512-gDPiOHlyGavxr72y0guQEhLsemgVjwRePayJ+FcKc2SJqKUbxbkvf5kAZEWA/MKvsfYlQAMVzNJE3ezQcxMJ2Q==", + "optional": true, + "dependencies": { + "@octokit/core": "^3.5.1", + "@octokit/plugin-paginate-rest": "^2.16.8", + "@octokit/plugin-request-log": "^1.0.4", + "@octokit/plugin-rest-endpoint-methods": "^5.12.0" + } + }, + "node_modules/@octokit/types": { + "version": "6.41.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.41.0.tgz", + "integrity": "sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg==", + "optional": true, + "dependencies": { + "@octokit/openapi-types": "^12.11.0" + } + }, + "node_modules/@sinonjs/commons": { + "version": "1.8.6", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.6.tgz", + "integrity": "sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==", + "dev": true, + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-6.0.1.tgz", + "integrity": "sha512-MZPUxrmFubI36XS1DI3qmI0YdN1gks62JtFZvxR67ljjSNCeK6U08Zx4msEWOXuofgqUt6zPHSi1H9fbjR/NRA==", + "dev": true, + "dependencies": { + "@sinonjs/commons": "^1.7.0" + } + }, + "node_modules/@tootallnate/once": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", + "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/@tsconfig/node10": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", + "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", + "dev": true + }, + "node_modules/@tsconfig/node12": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", + "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", + "dev": true + }, + "node_modules/@tsconfig/node14": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", + "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", + "dev": true + }, + "node_modules/@tsconfig/node16": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", + "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", + "dev": true + }, + "node_modules/@types/babel__core": { + "version": "7.20.1", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.1.tgz", + "integrity": "sha512-aACu/U/omhdk15O4Nfb+fHgH/z3QsfQzpnvRZhYhThms83ZnAOZz7zZAWO7mn2yyNQaA4xTO8GLK3uqFU4bYYw==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.6.4", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.4.tgz", + "integrity": "sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.1.tgz", + "integrity": "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.20.1", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.1.tgz", + "integrity": "sha512-MitHFXnhtgwsGZWtT68URpOvLN4EREih1u3QtQiN4VdAxWKRVvGCSvw/Qth0M0Qq3pJpnGOu5JaM/ydK7OGbqg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.20.7" + } + }, + "node_modules/@types/graceful-fs": { + "version": "4.1.6", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.6.tgz", + "integrity": "sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", + "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==", + "dev": true + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", + "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/jest": { + "version": "26.0.24", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-26.0.24.tgz", + "integrity": "sha512-E/X5Vib8BWqZNRlDxj9vYXhsDwPYbPINqKF9BsnSoon4RQ0D9moEuLD8txgyypFLH7J4+Lho9Nr/c8H0Fi+17w==", + "dev": true, + "dependencies": { + "jest-diff": "^26.0.0", + "pretty-format": "^26.0.0" + } + }, + "node_modules/@types/node": { + "version": "14.18.51", + "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.51.tgz", + "integrity": "sha512-P9bsdGFPpVtofEKlhWMVS2qqx1A/rt9QBfihWlklfHHpUpjtYse5AzFz6j4DWrARLYh6gRnw9+5+DJcrq3KvBA==", + "dev": true + }, + "node_modules/@types/normalize-package-data": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz", + "integrity": "sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==", + "dev": true + }, + "node_modules/@types/prettier": { + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.3.tgz", + "integrity": "sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA==", + "dev": true + }, + "node_modules/@types/stack-utils": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", + "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", + "dev": true + }, + "node_modules/@types/triple-beam": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@types/triple-beam/-/triple-beam-1.3.2.tgz", + "integrity": "sha512-txGIh+0eDFzKGC25zORnswy+br1Ha7hj5cMVwKIU7+s0U2AxxJru/jZSMU6OC9MJWP6+pc/hc6ZjyZShpsyY2g==", + "optional": true + }, + "node_modules/@types/yargs": { + "version": "15.0.15", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.15.tgz", + "integrity": "sha512-IziEYMU9XoVj8hWg7k+UJrXALkGFjWJhn5QFEv9q4p+v40oZhSuC135M38st8XPjICL7Ey4TV64ferBGUoJhBg==", + "dev": true, + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.0", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", + "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==", + "dev": true + }, + "node_modules/@xmldom/xmldom": { + "version": "0.8.8", + "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.8.tgz", + "integrity": "sha512-0LNz4EY8B/8xXY86wMrQ4tz6zEHZv9ehFMJPm8u2gq5lQ71cfRKdaKyxfJAx5aUoyzx0qzgURblTisPGgz3d+Q==", + "dev": true, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/abab": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", + "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==", + "dev": true + }, + "node_modules/acorn": { + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.9.0.tgz", + "integrity": "sha512-jaVNAFBHNLXspO543WnNNPZFRtavh3skAkITqD0/2aeMkKZTN+254PyhwxFYrk3vQ1xfY+2wbesJMs/JC8/PwQ==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-globals": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz", + "integrity": "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==", + "dev": true, + "dependencies": { + "acorn": "^7.1.1", + "acorn-walk": "^7.1.1" + } + }, + "node_modules/acorn-globals/node_modules/acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-walk": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", + "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dev": true, + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/aggregate-error": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", + "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", + "optional": true, + "dependencies": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "devOptional": true, + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "devOptional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "devOptional": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true + }, + "node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/arr-flatten": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", + "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/arr-union": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", + "integrity": "sha512-sKpyeERZ02v1FeCZT8lrfJq5u6goHCtpTAzPwJYe7c8SPFOboNjNg1vz2L4VTn9T4PQxEx13TbXLmYUcS6Ug7Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "optional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/array-unique": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", + "integrity": "sha512-SleRWjh9JUud2wH1hPs9rZBZ33H6T9HOiL0uwGnGx9FpE6wKGyfWugmbkEOIs6qWrZhg0LWeLziLrEwQJhs5mQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/assign-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", + "integrity": "sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/astral-regex": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", + "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/async": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", + "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==", + "optional": true + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "devOptional": true + }, + "node_modules/at-least-node": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", + "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", + "dev": true, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/atob": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", + "dev": true, + "bin": { + "atob": "bin/atob.js" + }, + "engines": { + "node": ">= 4.5.0" + } + }, + "node_modules/axios": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.27.2.tgz", + "integrity": "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==", + "optional": true, + "dependencies": { + "follow-redirects": "^1.14.9", + "form-data": "^4.0.0" + } + }, + "node_modules/babel-jest": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-26.6.3.tgz", + "integrity": "sha512-pl4Q+GAVOHwvjrck6jKjvmGhnO3jHX/xuB9d27f+EJZ/6k+6nMuPjorrYp7s++bKKdANwzElBWnLWaObvTnaZA==", + "dev": true, + "dependencies": { + "@jest/transform": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/babel__core": "^7.1.7", + "babel-plugin-istanbul": "^6.0.0", + "babel-preset-jest": "^26.6.2", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.4", + "slash": "^3.0.0" + }, + "engines": { + "node": ">= 10.14.2" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dev": true, + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-jest-hoist": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-26.6.2.tgz", + "integrity": "sha512-PO9t0697lNTmcEHH69mdtYiOIkkOlj9fySqfO3K1eCcdISevLAE0xY59VLLUj0SoiPiTX/JU2CYFpILydUa5Lw==", + "dev": true, + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.0.0", + "@types/babel__traverse": "^7.0.6" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/babel-preset-current-node-syntax": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", + "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", + "dev": true, + "dependencies": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.8.3", + "@babel/plugin-syntax-import-meta": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.8.3", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-top-level-await": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/babel-preset-jest": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-26.6.2.tgz", + "integrity": "sha512-YvdtlVm9t3k777c5NPQIv6cxFFFapys25HiUmuSgHwIZhfifweR5c5Sf5nwE3MAbfu327CYSvps8Yx6ANLyleQ==", + "dev": true, + "dependencies": { + "babel-plugin-jest-hoist": "^26.6.2", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": ">= 10.14.2" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/backport": { + "version": "8.5.0", + "resolved": "https://registry.npmjs.org/backport/-/backport-8.5.0.tgz", + "integrity": "sha512-gX8v+l+BTue2lmmqD/yQiR6JUUY+5OWNZTI1qyusViqC9R2iv4YFPqT23IcJfpYqlYb3DOiwunfVjKLickdQ6g==", + "hasInstallScript": true, + "optional": true, + "dependencies": { + "@octokit/rest": "^18.12.0", + "axios": "^0.27.2", + "dedent": "^0.7.0", + "del": "^6.1.1", + "dotenv": "^16.0.1", + "find-up": "^5.0.0", + "graphql": "^16.5.0", + "graphql-tag": "^2.12.6", + "inquirer": "^8.2.3", + "lodash": "^4.17.21", + "make-dir": "^3.1.0", + "ora": "^5.4.1", + "safe-json-stringify": "^1.2.0", + "strip-json-comments": "^3.1.1", + "terminal-link": "^2.1.1", + "utility-types": "^3.10.0", + "winston": "^3.7.2", + "yargs": "^17.5.1", + "yargs-parser": "^21.0.1" + }, + "bin": { + "backport": "bin/backport" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "devOptional": true + }, + "node_modules/base": { + "version": "0.11.2", + "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", + "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", + "dev": true, + "dependencies": { + "cache-base": "^1.0.1", + "class-utils": "^0.3.5", + "component-emitter": "^1.2.1", + "define-property": "^1.0.0", + "isobject": "^3.0.1", + "mixin-deep": "^1.2.0", + "pascalcase": "^0.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/base/node_modules/define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==", + "dev": true, + "dependencies": { + "is-descriptor": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "optional": true + }, + "node_modules/before-after-hook": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz", + "integrity": "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==", + "optional": true + }, + "node_modules/bl": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", + "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", + "optional": true, + "dependencies": { + "buffer": "^5.5.0", + "inherits": "^2.0.4", + "readable-stream": "^3.4.0" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "devOptional": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "devOptional": true, + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browser-process-hrtime": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", + "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==", + "dev": true + }, + "node_modules/browserslist": { + "version": "4.21.9", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.9.tgz", + "integrity": "sha512-M0MFoZzbUrRU4KNfCrDLnvyE7gub+peetoTid3TBIqtunaDJyXlwhakT+/VkvSXcfIzFfK/nkCs4nmyTmxdNSg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001503", + "electron-to-chromium": "^1.4.431", + "node-releases": "^2.0.12", + "update-browserslist-db": "^1.0.11" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bs-logger": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", + "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", + "dev": true, + "dependencies": { + "fast-json-stable-stringify": "2.x" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "dependencies": { + "node-int64": "^0.4.0" + } + }, + "node_modules/buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "optional": true, + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "node_modules/cache-base": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", + "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", + "dev": true, + "dependencies": { + "collection-visit": "^1.0.0", + "component-emitter": "^1.2.1", + "get-value": "^2.0.6", + "has-value": "^1.0.0", + "isobject": "^3.0.1", + "set-value": "^2.0.0", + "to-object-path": "^0.3.0", + "union-value": "^1.0.0", + "unset-value": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001507", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001507.tgz", + "integrity": "sha512-SFpUDoSLCaE5XYL2jfqe9ova/pbQHEmbheDf5r4diNwbAgR3qxM9NQtfsiSscjqoya5K7kFcHPUQ+VsUkIJR4A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ] + }, + "node_modules/capture-exit": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/capture-exit/-/capture-exit-2.0.0.tgz", + "integrity": "sha512-PiT/hQmTonHhl/HFGN+Lx3JJUznrVYJ3+AQsnthneZbvW7x+f08Tk7yLJTLEOUvBTbduLeeBkxEaYXUOUrRq6g==", + "dev": true, + "dependencies": { + "rsvp": "^4.8.4" + }, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/case": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/case/-/case-1.6.3.tgz", + "integrity": "sha512-mzDSXIPaFwVDvZAHqZ9VlbyF4yyXRuX6IvB06WvPYkqJVO24kX1PPhv9bfpKNFZyxYFmmgo03HUiD8iklmJYRQ==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/cdk8s": { + "version": "2.7.83", + "resolved": "https://registry.npmjs.org/cdk8s/-/cdk8s-2.7.83.tgz", + "integrity": "sha512-hVeoXCDZ14qRcYxDK9PoDQv5kSVyTp+PtNM+E/uAHa03VLYQLx0DA8933C8mMQzRjqRi7mvg1ql+AzW+xSy6QA==", + "bundleDependencies": [ + "fast-json-patch", + "follow-redirects", + "yaml" + ], + "dependencies": { + "fast-json-patch": "^3.1.1", + "follow-redirects": "^1.15.2", + "yaml": "2.2.2" + }, + "engines": { + "node": ">= 16.20.0" + }, + "optionalDependencies": { + "backport": "8.5.0" + }, + "peerDependencies": { + "constructs": "^10" + } + }, + "node_modules/cdk8s-cli": { + "version": "2.2.73", + "resolved": "https://registry.npmjs.org/cdk8s-cli/-/cdk8s-cli-2.2.73.tgz", + "integrity": "sha512-OtAIVYEJ7yvjSVhSlNm0SBM6iYRziZbM8mFZaDg9Bob1CLzTQjSE6G23I2OUGyedYFMzNRoKWo2Vukb05fq3Iw==", + "dev": true, + "dependencies": { + "@types/node": "^16", + "ajv": "^8.12.0", + "cdk8s": "^2.7.81", + "cdk8s-plus-25": "^2.8.45", + "codemaker": "^1.84.0", + "colors": "1.4.0", + "constructs": "^10.2.57", + "fs-extra": "^8", + "jsii-pacmak": "^1.84.0", + "jsii-srcmak": "^0.1.937", + "json2jsii": "^0.3.374", + "semver": "^7.5.3", + "sscaff": "^1.2.274", + "table": "^6.8.1", + "yaml": "2.3.1", + "yargs": "^15" + }, + "bin": { + "cdk8s": "bin/cdk8s" + }, + "engines": { + "node": ">= 16.20.0" + }, + "optionalDependencies": { + "backport": "8.5.0" + } + }, + "node_modules/cdk8s-cli/node_modules/@types/node": { + "version": "16.18.36", + "resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.36.tgz", + "integrity": "sha512-8egDX8dE50XyXWH6C6PRCNkTP106DuUrvdrednFouDSmCi7IOvrqr0frznfZaHifHH/3aq/7a7v9N4wdXMqhBQ==", + "dev": true + }, + "node_modules/cdk8s-cli/node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/cdk8s-cli/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cdk8s-cli/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cdk8s-cli/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/cdk8s-cli/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cdk8s-cli/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cdk8s-cli/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/cdk8s-cli/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cdk8s-cli/node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "dev": true + }, + "node_modules/cdk8s-cli/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/cdk8s-cli/node_modules/yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "dev": true, + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cdk8s-cli/node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/cdk8s-plus-25": { + "version": "2.8.49", + "resolved": "https://registry.npmjs.org/cdk8s-plus-25/-/cdk8s-plus-25-2.8.49.tgz", + "integrity": "sha512-+kY/ITwJ/v9t5WXuZVbvwHhl+TGUVpwaNrgAZM7LUzz6NFMJez4/jmfC2O0l/VLgHtCk0XnEGk5Xn6aL+6V/vA==", + "bundleDependencies": [ + "minimatch" + ], + "dependencies": { + "minimatch": "^3.1.2" + }, + "engines": { + "node": ">= 16.20.0" + }, + "peerDependencies": { + "cdk8s": "^2.7.83", + "constructs": "^10.2.58" + } + }, + "node_modules/cdk8s-plus-25/node_modules/balanced-match": { + "version": "1.0.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/cdk8s-plus-25/node_modules/concat-map": { + "version": "0.0.1", + "inBundle": true, + "license": "MIT" + }, + "node_modules/cdk8s-plus-25/node_modules/minimatch": { + "version": "3.1.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/cdk8s-plus-25/node_modules/minimatch/node_modules/brace-expansion": { + "version": "1.1.11", + "inBundle": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/cdk8s/node_modules/fast-json-patch": { + "version": "3.1.1", + "inBundle": true, + "license": "MIT" + }, + "node_modules/cdk8s/node_modules/follow-redirects": { + "version": "1.15.2", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/cdk8s/node_modules/yaml": { + "version": "2.2.2", + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">= 14" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "devOptional": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/chardet": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", + "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", + "optional": true + }, + "node_modules/ci-info": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", + "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", + "dev": true + }, + "node_modules/cjs-module-lexer": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-0.6.0.tgz", + "integrity": "sha512-uc2Vix1frTfnuzxxu1Hp4ktSvM3QaI4oXl4ZUqL1wjTu/BGki9TrCWoqLTg/drR1KwAEarXuRFCG2Svr1GxPFw==", + "dev": true + }, + "node_modules/class-utils": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", + "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", + "dev": true, + "dependencies": { + "arr-union": "^3.1.0", + "define-property": "^0.2.5", + "isobject": "^3.0.0", + "static-extend": "^0.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/is-accessor-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/is-data-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/clean-stack": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", + "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", + "optional": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/cli-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", + "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", + "optional": true, + "dependencies": { + "restore-cursor": "^3.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cli-spinners": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.0.tgz", + "integrity": "sha512-4/aL9X3Wh0yiMQlE+eeRhWP6vclO3QRtw1JHKIT0FFUs5FjpFmESqtMvYZ0+lbzBw900b95mS0hohy+qn2VK/g==", + "optional": true, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cli-width": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-3.0.0.tgz", + "integrity": "sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==", + "optional": true, + "engines": { + "node": ">= 10" + } + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "devOptional": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/clone": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", + "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", + "optional": true, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", + "dev": true, + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/codemaker": { + "version": "1.84.0", + "resolved": "https://registry.npmjs.org/codemaker/-/codemaker-1.84.0.tgz", + "integrity": "sha512-sOUH3y2q2DEO+gDiBCCoGgkDs8aMY0LTMH0FmHbKpqReZwWDAmWJ0Voc4Thp4Mn380bPku9/ncqyY1a3MZnfEQ==", + "dev": true, + "dependencies": { + "camelcase": "^6.3.0", + "decamelize": "^5.0.1", + "fs-extra": "^10.1.0" + }, + "engines": { + "node": ">= 14.17.0" + } + }, + "node_modules/codemaker/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/codemaker/node_modules/decamelize": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-5.0.1.tgz", + "integrity": "sha512-VfxadyCECXgQlkoEAjeghAr5gY3Hf+IKjKb+X8tGVDtveCjN+USwprd2q3QXBR9T1+x2DG0XZF5/w+7HAtSaXA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/codemaker/node_modules/fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/codemaker/node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/codemaker/node_modules/universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/collect-v8-coverage": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz", + "integrity": "sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==", + "dev": true + }, + "node_modules/collection-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", + "integrity": "sha512-lNkKvzEeMBBjUGHZ+q6z9pSJla0KWAQPvtzhEV9+iGyQYG+pBpl7xKDhxoNSOZH2hhv0v5k0y2yAM4o4SjoSkw==", + "dev": true, + "dependencies": { + "map-visit": "^1.0.0", + "object-visit": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/color": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/color/-/color-3.2.1.tgz", + "integrity": "sha512-aBl7dZI9ENN6fUGC7mWpMTPNHmWUSNan9tuWN6ahh5ZLNk9baLJOnSMlrQkHcrfFgz2/RigjUVAjdx36VcemKA==", + "optional": true, + "dependencies": { + "color-convert": "^1.9.3", + "color-string": "^1.6.0" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "devOptional": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "devOptional": true + }, + "node_modules/color-string": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz", + "integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==", + "optional": true, + "dependencies": { + "color-name": "^1.0.0", + "simple-swizzle": "^0.2.2" + } + }, + "node_modules/color/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "optional": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/color/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "optional": true + }, + "node_modules/colors": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz", + "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==", + "dev": true, + "engines": { + "node": ">=0.1.90" + } + }, + "node_modules/colorspace": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/colorspace/-/colorspace-1.1.4.tgz", + "integrity": "sha512-BgvKJiuVu1igBUF2kEjRCZXol6wiiGbY5ipL/oVPwm0BL9sIpMIzM8IK7vwuxIIzOXMV3Ey5w+vxhm0rR/TN8w==", + "optional": true, + "dependencies": { + "color": "^3.1.3", + "text-hex": "1.0.x" + } + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "devOptional": true, + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commonmark": { + "version": "0.30.0", + "resolved": "https://registry.npmjs.org/commonmark/-/commonmark-0.30.0.tgz", + "integrity": "sha512-j1yoUo4gxPND1JWV9xj5ELih0yMv1iCWDG6eEQIPLSWLxzCXiFoyS7kvB+WwU+tZMf4snwJMMtaubV0laFpiBA==", + "dev": true, + "dependencies": { + "entities": "~2.0", + "mdurl": "~1.0.1", + "minimist": ">=1.2.2", + "string.prototype.repeat": "^0.2.0" + }, + "bin": { + "commonmark": "bin/commonmark" + }, + "engines": { + "node": "*" + } + }, + "node_modules/component-emitter": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", + "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==", + "dev": true + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "devOptional": true + }, + "node_modules/constructs": { + "version": "10.2.58", + "resolved": "https://registry.npmjs.org/constructs/-/constructs-10.2.58.tgz", + "integrity": "sha512-2QzzSho4bKof5va8fPTAdzsoaBvClrYxWPVjMPzbGqL5vF6NA4AAH0tuWPc3SbC9sWVJ/5cybRIAvS+4qaEHDw==", + "engines": { + "node": ">= 16.14.0" + } + }, + "node_modules/convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", + "dev": true + }, + "node_modules/copy-descriptor": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", + "integrity": "sha512-XgZ0pFcakEUlbwQEVNg3+QAis1FyTL3Qel9FYy8pSkQqoG3PNoT0bOCQtOXcOkur21r2Eq2kI+IE+gsmAEVlYw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", + "dev": true + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/cssom": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz", + "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==", + "dev": true + }, + "node_modules/cssstyle": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", + "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", + "dev": true, + "dependencies": { + "cssom": "~0.3.6" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cssstyle/node_modules/cssom": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", + "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", + "dev": true + }, + "node_modules/data-urls": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", + "integrity": "sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==", + "dev": true, + "dependencies": { + "abab": "^2.0.3", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/data-urls/node_modules/tr46": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", + "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", + "dev": true, + "dependencies": { + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/data-urls/node_modules/webidl-conversions": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", + "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", + "dev": true, + "engines": { + "node": ">=10.4" + } + }, + "node_modules/data-urls/node_modules/whatwg-url": { + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", + "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", + "dev": true, + "dependencies": { + "lodash": "^4.7.0", + "tr46": "^2.1.0", + "webidl-conversions": "^6.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/date-format": { + "version": "4.0.14", + "resolved": "https://registry.npmjs.org/date-format/-/date-format-4.0.14.tgz", + "integrity": "sha512-39BOQLs9ZjKh0/patS9nrT8wc3ioX3/eA/zgbKNopnF2wCqJEoxywwwElATYvRsXdnOxA/OQeQoFZ3rFjVajhg==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/debug/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/decimal.js": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz", + "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==", + "dev": true + }, + "node_modules/decode-uri-component": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz", + "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==", + "dev": true, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/dedent": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", + "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==", + "optional": true + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/defaults": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz", + "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==", + "optional": true, + "dependencies": { + "clone": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/define-property": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", + "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", + "dev": true, + "dependencies": { + "is-descriptor": "^1.0.2", + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/del": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/del/-/del-6.1.1.tgz", + "integrity": "sha512-ua8BhapfP0JUJKC/zV9yHHDW/rDoDxP4Zhn3AkA6/xT6gY7jYXJiaeyBZznYVujhZZET+UgcbZiQ7sN3WqcImg==", + "optional": true, + "dependencies": { + "globby": "^11.0.1", + "graceful-fs": "^4.2.4", + "is-glob": "^4.0.1", + "is-path-cwd": "^2.2.0", + "is-path-inside": "^3.0.2", + "p-map": "^4.0.0", + "rimraf": "^3.0.2", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "devOptional": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/deprecation": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", + "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==", + "optional": true + }, + "node_modules/detect-indent": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-5.0.0.tgz", + "integrity": "sha512-rlpvsxUtM0PQvy9iZe640/IWwWYyBsTApREbA1pHOpmOUIl9MkP/U4z7vTtg4Oaojvqhxt7sdufnT0EzGaR31g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true, + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/diff-sequences": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-26.6.2.tgz", + "integrity": "sha512-Mv/TDa3nZ9sbc5soK+OoA74BsS3mL37yixCvUAQkiuA4Wz6YtwP/K47n2rv2ovzHZvoiQeA5FTQOschKkEwB0Q==", + "dev": true, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "optional": true, + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/domexception": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz", + "integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==", + "dev": true, + "dependencies": { + "webidl-conversions": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/domexception/node_modules/webidl-conversions": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz", + "integrity": "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/dot-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz", + "integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==", + "dev": true, + "dependencies": { + "no-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "node_modules/dotenv": { + "version": "16.3.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz", + "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/motdotla/dotenv?sponsor=1" + } + }, + "node_modules/downlevel-dts": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/downlevel-dts/-/downlevel-dts-0.11.0.tgz", + "integrity": "sha512-vo835pntK7kzYStk7xUHDifiYJvXxVhUapt85uk2AI94gUUAQX9HNRtrcMHNSc3YHJUEHGbYIGsM99uIbgAtxw==", + "dev": true, + "dependencies": { + "semver": "^7.3.2", + "shelljs": "^0.8.3", + "typescript": "next" + }, + "bin": { + "downlevel-dts": "index.js" + } + }, + "node_modules/downlevel-dts/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/downlevel-dts/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/downlevel-dts/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/electron-to-chromium": { + "version": "1.4.440", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.440.tgz", + "integrity": "sha512-r6dCgNpRhPwiWlxbHzZQ/d9swfPaEJGi8ekqRBwQYaR3WmA5VkqQfBWSDDjuJU1ntO+W9tHx8OHV/96Q8e0dVw==", + "dev": true + }, + "node_modules/emittery": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.7.2.tgz", + "integrity": "sha512-A8OG5SR/ij3SsJdWDJdkkSYUjQdCUx6APQXem0SaEePBSRg4eymGYwBkKo1Y6DU+af/Jn2dBQqDBvjnr9Vi8nQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "devOptional": true + }, + "node_modules/enabled": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/enabled/-/enabled-2.0.0.tgz", + "integrity": "sha512-AKrN98kuwOzMIdAizXGI86UFBoo26CL21UM763y1h/GMSJ4/OHU9k2YlsmBpyScFo/wbLzWQJBMCW4+IO3/+OQ==", + "optional": true + }, + "node_modules/end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dev": true, + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/entities": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.0.3.tgz", + "integrity": "sha512-MyoZ0jgnLvB2X3Lg5HqpFmn1kybDiIfEQmKzTb5apr51Rb+T3KdmMiqa70T+bhGnyv7bQ6WMj2QMHpGMmlrUYQ==", + "dev": true + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/error-ex/node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true + }, + "node_modules/escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "devOptional": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "devOptional": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/escodegen": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.0.0.tgz", + "integrity": "sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==", + "dev": true, + "dependencies": { + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2", + "optionator": "^0.8.1" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=6.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/exec-sh": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/exec-sh/-/exec-sh-0.3.6.tgz", + "integrity": "sha512-nQn+hI3yp+oD0huYhKwvYI32+JFeq+XkNcD1GAo3Y/MjxsfVGmrrzrnzjWiNY6f+pUCP440fThsFh5gZrRAU/w==", + "dev": true + }, + "node_modules/execa": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz", + "integrity": "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.0", + "get-stream": "^5.0.0", + "human-signals": "^1.1.1", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.0", + "onetime": "^5.1.0", + "signal-exit": "^3.0.2", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expand-brackets": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", + "integrity": "sha512-w/ozOKR9Obk3qoWeY/WDi6MFta9AoMR+zud60mdnbniMcBxRuFJyDt2LdX/14A1UABeqk+Uk+LDfUpvoGKppZA==", + "dev": true, + "dependencies": { + "debug": "^2.3.3", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "posix-character-classes": "^0.1.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/expand-brackets/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-accessor-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-data-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "node_modules/expect": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/expect/-/expect-26.6.2.tgz", + "integrity": "sha512-9/hlOBkQl2l/PLHJx6JjoDF6xPKcJEsUlWKb23rKE7KzeDqUZKXKNMW27KIue5JMdBV9HgmoJPcc8HtO85t9IA==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "ansi-styles": "^4.0.0", + "jest-get-type": "^26.3.0", + "jest-matcher-utils": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-regex-util": "^26.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", + "dev": true, + "dependencies": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/external-editor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", + "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==", + "optional": true, + "dependencies": { + "chardet": "^0.7.0", + "iconv-lite": "^0.4.24", + "tmp": "^0.0.33" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/extglob": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", + "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", + "dev": true, + "dependencies": { + "array-unique": "^0.3.2", + "define-property": "^1.0.0", + "expand-brackets": "^2.1.4", + "extend-shallow": "^2.0.1", + "fragment-cache": "^0.2.1", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/extglob/node_modules/define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==", + "dev": true, + "dependencies": { + "is-descriptor": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/extglob/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/extglob/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-glob": { + "version": "3.2.12", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", + "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", + "devOptional": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "node_modules/fastq": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", + "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "devOptional": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fb-watchman": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dev": true, + "dependencies": { + "bser": "2.1.1" + } + }, + "node_modules/fecha": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/fecha/-/fecha-4.2.3.tgz", + "integrity": "sha512-OP2IUU6HeYKJi3i0z4A19kHMQoLVs4Hc+DPqqxI2h/DPZHTm/vjsfC6P0b4jCMy14XizLBqvndQ+UilD7707Jw==", + "optional": true + }, + "node_modules/figures": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", + "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", + "optional": true, + "dependencies": { + "escape-string-regexp": "^1.0.5" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "devOptional": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "optional": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flatted": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", + "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", + "dev": true + }, + "node_modules/fn.name": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fn.name/-/fn.name-1.1.0.tgz", + "integrity": "sha512-GRnmB5gPyJpAhTQdSZTSp9uaPSvl09KoYcMQtsB9rQoOmzs9dH6ffeccH+Z+cv6P68Hu5bC6JjRh4Ah/mHSNRw==", + "optional": true + }, + "node_modules/follow-redirects": { + "version": "1.15.2", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", + "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "optional": true, + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/for-in": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", + "integrity": "sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "optional": true, + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fragment-cache": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", + "integrity": "sha512-GMBAbW9antB8iZRHLoGw0b3HANt57diZYFO/HL1JGIC1MjKrdmhxvrJbupnVvpys0zsz7yBApXdQyfepKly2kA==", + "dev": true, + "dependencies": { + "map-cache": "^0.2.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, + "node_modules/fs-extra/node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "devOptional": true + }, + "node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "devOptional": true, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "dev": true, + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/get-value": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", + "integrity": "sha512-Ln0UQDlxH1BapMu3GPtf7CuYNwRZf2gwCuPqbyG6pB8WfmFpzqcy4xtAaAMUhnNqjMKTiCPZG2oMT3YSx8U2NA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "devOptional": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "devOptional": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "optional": true, + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "devOptional": true + }, + "node_modules/graphql": { + "version": "16.7.1", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-16.7.1.tgz", + "integrity": "sha512-DRYR9tf+UGU0KOsMcKAlXeFfX89UiiIZ0dRU3mR0yJfu6OjZqUcp68NnFLnqQU5RexygFoDy1EW+ccOYcPfmHg==", + "optional": true, + "engines": { + "node": "^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0" + } + }, + "node_modules/graphql-tag": { + "version": "2.12.6", + "resolved": "https://registry.npmjs.org/graphql-tag/-/graphql-tag-2.12.6.tgz", + "integrity": "sha512-FdSNcu2QQcWnM2VNvSCCDCVS5PpPqpzgFT8+GXzqJuoDd0CBncxCY278u4mhRO7tMgo2JjgJA5aZ+nWSQ/Z+xg==", + "optional": true, + "dependencies": { + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "graphql": "^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" + } + }, + "node_modules/growly": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz", + "integrity": "sha512-+xGQY0YyAWCnqy7Cd++hc2JqMYzlm0dG30Jd0beaA64sROr8C4nt8Yc9V5Ro3avlSUDTN0ulqP/VBKi1/lLygw==", + "dev": true, + "optional": true + }, + "node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "devOptional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/has-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", + "integrity": "sha512-IBXk4GTsLYdQ7Rvt+GRBrFSVEkmuOUy4re0Xjd9kJSUQpnTrWR4/y9RpfexN9vkAPMFuQoeWKwqzPozRTlasGw==", + "dev": true, + "dependencies": { + "get-value": "^2.0.6", + "has-values": "^1.0.0", + "isobject": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-values": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", + "integrity": "sha512-ODYZC64uqzmtfGMEAX/FvZiRyWLpAC3vYnNunURUnkGVTS+mI0smVsWaPydRBsE3g+ok7h960jChO8mFcWlHaQ==", + "dev": true, + "dependencies": { + "is-number": "^3.0.0", + "kind-of": "^4.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-values/node_modules/is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-values/node_modules/is-number/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-values/node_modules/kind-of": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", + "integrity": "sha512-24XsCxmEbRwEDbz/qz3stgin8TTzZ1ESR56OMCN0ujYg+vRutNSiOj9bHH9u85DKgXguraugV5sFuvbD4FW/hw==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/hosted-git-info": { + "version": "2.8.9", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", + "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", + "dev": true + }, + "node_modules/html-encoding-sniffer": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz", + "integrity": "sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==", + "dev": true, + "dependencies": { + "whatwg-encoding": "^1.0.5" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true + }, + "node_modules/http-proxy-agent": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", + "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", + "dev": true, + "dependencies": { + "@tootallnate/once": "1", + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "dev": true, + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/human-signals": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz", + "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==", + "dev": true, + "engines": { + "node": ">=8.12.0" + } + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "devOptional": true, + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "optional": true + }, + "node_modules/ignore": { + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", + "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", + "optional": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-local": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", + "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", + "dev": true, + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "optional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "devOptional": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "devOptional": true + }, + "node_modules/inquirer": { + "version": "8.2.5", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.5.tgz", + "integrity": "sha512-QAgPDQMEgrDssk1XiwwHoOGYF9BAbUcc1+j+FhEvaOt8/cKRqyLn0U5qA6F74fGhTMGxf92pOvPBeh29jQJDTQ==", + "optional": true, + "dependencies": { + "ansi-escapes": "^4.2.1", + "chalk": "^4.1.1", + "cli-cursor": "^3.1.0", + "cli-width": "^3.0.0", + "external-editor": "^3.0.3", + "figures": "^3.0.0", + "lodash": "^4.17.21", + "mute-stream": "0.0.8", + "ora": "^5.4.1", + "run-async": "^2.4.0", + "rxjs": "^7.5.5", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0", + "through": "^2.3.6", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/interpret": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", + "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "dependencies": { + "kind-of": "^6.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-arrayish": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz", + "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==", + "optional": true + }, + "node_modules/is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true + }, + "node_modules/is-ci": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", + "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", + "dev": true, + "dependencies": { + "ci-info": "^2.0.0" + }, + "bin": { + "is-ci": "bin.js" + } + }, + "node_modules/is-core-module": { + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz", + "integrity": "sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==", + "dev": true, + "dependencies": { + "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "dependencies": { + "kind-of": "^6.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "dev": true, + "optional": true, + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "dependencies": { + "is-plain-object": "^2.0.4" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-extendable/node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "devOptional": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "devOptional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "devOptional": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-interactive": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", + "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", + "optional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "devOptional": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-path-cwd": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz", + "integrity": "sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==", + "optional": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "optional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-plain-object": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", + "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", + "optional": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-potential-custom-element-name": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", + "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", + "dev": true + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "devOptional": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==", + "dev": true + }, + "node_modules/is-unicode-supported": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", + "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", + "optional": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-windows": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", + "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "dev": true, + "optional": true, + "dependencies": { + "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "dev": true + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/istanbul-lib-coverage": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", + "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz", + "integrity": "sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==", + "dev": true, + "dependencies": { + "@babel/core": "^7.7.5", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.0.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", + "dev": true, + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^3.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "dev": true, + "dependencies": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-reports": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", + "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", + "dev": true, + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest/-/jest-26.6.3.tgz", + "integrity": "sha512-lGS5PXGAzR4RF7V5+XObhqz2KZIDUA1yD0DG6pBVmy10eh0ZIXQImRuzocsI/N2XZ1GrLFwTS27In2i2jlpq1Q==", + "dev": true, + "dependencies": { + "@jest/core": "^26.6.3", + "import-local": "^3.0.2", + "jest-cli": "^26.6.3" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-changed-files": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-26.6.2.tgz", + "integrity": "sha512-fDS7szLcY9sCtIip8Fjry9oGf3I2ht/QT21bAHm5Dmf0mD4X3ReNUf17y+bO6fR8WgbIZTlbyG1ak/53cbRzKQ==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "execa": "^4.0.0", + "throat": "^5.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-cli": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-26.6.3.tgz", + "integrity": "sha512-GF9noBSa9t08pSyl3CY4frMrqp+aQXFGFkf5hEPbh/pIUFYWMK6ZLTfbmadxJVcJrdRoChlWQsA2VkJcDFK8hg==", + "dev": true, + "dependencies": { + "@jest/core": "^26.6.3", + "@jest/test-result": "^26.6.2", + "@jest/types": "^26.6.2", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.4", + "import-local": "^3.0.2", + "is-ci": "^2.0.0", + "jest-config": "^26.6.3", + "jest-util": "^26.6.2", + "jest-validate": "^26.6.2", + "prompts": "^2.0.1", + "yargs": "^15.4.1" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-cli/node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/jest-cli/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-cli/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-cli/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-cli/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-cli/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-cli/node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "dev": true + }, + "node_modules/jest-cli/node_modules/yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "dev": true, + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-cli/node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jest-config": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-26.6.3.tgz", + "integrity": "sha512-t5qdIj/bCj2j7NFVHb2nFB4aUdfucDn3JRKgrZnplb8nieAirAzRSHP8uDEd+qV6ygzg9Pz4YG7UTJf94LPSyg==", + "dev": true, + "dependencies": { + "@babel/core": "^7.1.0", + "@jest/test-sequencer": "^26.6.3", + "@jest/types": "^26.6.2", + "babel-jest": "^26.6.3", + "chalk": "^4.0.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.1", + "graceful-fs": "^4.2.4", + "jest-environment-jsdom": "^26.6.2", + "jest-environment-node": "^26.6.2", + "jest-get-type": "^26.3.0", + "jest-jasmine2": "^26.6.3", + "jest-regex-util": "^26.0.0", + "jest-resolve": "^26.6.2", + "jest-util": "^26.6.2", + "jest-validate": "^26.6.2", + "micromatch": "^4.0.2", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + }, + "peerDependencies": { + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "ts-node": { + "optional": true + } + } + }, + "node_modules/jest-diff": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-26.6.2.tgz", + "integrity": "sha512-6m+9Z3Gv9wN0WFVasqjCL/06+EFCMTqDEUl/b87HYK2rAPTyfz4ZIuSlPhY51PIQRWx5TaxeF1qmXKe9gfN3sA==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^26.6.2", + "jest-get-type": "^26.3.0", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-docblock": { + "version": "26.0.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-26.0.0.tgz", + "integrity": "sha512-RDZ4Iz3QbtRWycd8bUEPxQsTlYazfYn/h5R65Fc6gOfwozFhoImx+affzky/FFBuqISPTqjXomoIGJVKBWoo0w==", + "dev": true, + "dependencies": { + "detect-newline": "^3.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-each": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-26.6.2.tgz", + "integrity": "sha512-Mer/f0KaATbjl8MCJ+0GEpNdqmnVmDYqCTJYTvoo7rqmRiDllmp2AYN+06F93nXcY3ur9ShIjS+CO/uD+BbH4A==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "chalk": "^4.0.0", + "jest-get-type": "^26.3.0", + "jest-util": "^26.6.2", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-environment-jsdom": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-26.6.2.tgz", + "integrity": "sha512-jgPqCruTlt3Kwqg5/WVFyHIOJHsiAvhcp2qiR2QQstuG9yWox5+iHpU3ZrcBxW14T4fe5Z68jAfLRh7joCSP2Q==", + "dev": true, + "dependencies": { + "@jest/environment": "^26.6.2", + "@jest/fake-timers": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "jest-mock": "^26.6.2", + "jest-util": "^26.6.2", + "jsdom": "^16.4.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-environment-node": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-26.6.2.tgz", + "integrity": "sha512-zhtMio3Exty18dy8ee8eJ9kjnRyZC1N4C1Nt/VShN1apyXc8rWGtJ9lI7vqiWcyyXS4BVSEn9lxAM2D+07/Tag==", + "dev": true, + "dependencies": { + "@jest/environment": "^26.6.2", + "@jest/fake-timers": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "jest-mock": "^26.6.2", + "jest-util": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-get-type": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-26.3.0.tgz", + "integrity": "sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig==", + "dev": true, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-haste-map": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-26.6.2.tgz", + "integrity": "sha512-easWIJXIw71B2RdR8kgqpjQrbMRWQBgiBwXYEhtGUTaX+doCjBheluShdDMeR8IMfJiTqH4+zfhtg29apJf/8w==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "@types/graceful-fs": "^4.1.2", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.4", + "jest-regex-util": "^26.0.0", + "jest-serializer": "^26.6.2", + "jest-util": "^26.6.2", + "jest-worker": "^26.6.2", + "micromatch": "^4.0.2", + "sane": "^4.0.3", + "walker": "^1.0.7" + }, + "engines": { + "node": ">= 10.14.2" + }, + "optionalDependencies": { + "fsevents": "^2.1.2" + } + }, + "node_modules/jest-jasmine2": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-26.6.3.tgz", + "integrity": "sha512-kPKUrQtc8aYwBV7CqBg5pu+tmYXlvFlSFYn18ev4gPFtrRzB15N2gW/Roew3187q2w2eHuu0MU9TJz6w0/nPEg==", + "dev": true, + "dependencies": { + "@babel/traverse": "^7.1.0", + "@jest/environment": "^26.6.2", + "@jest/source-map": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "expect": "^26.6.2", + "is-generator-fn": "^2.0.0", + "jest-each": "^26.6.2", + "jest-matcher-utils": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-runtime": "^26.6.3", + "jest-snapshot": "^26.6.2", + "jest-util": "^26.6.2", + "pretty-format": "^26.6.2", + "throat": "^5.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-leak-detector": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-26.6.2.tgz", + "integrity": "sha512-i4xlXpsVSMeKvg2cEKdfhh0H39qlJlP5Ex1yQxwF9ubahboQYMgTtz5oML35AVA3B4Eu+YsmwaiKVev9KCvLxg==", + "dev": true, + "dependencies": { + "jest-get-type": "^26.3.0", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-matcher-utils": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-26.6.2.tgz", + "integrity": "sha512-llnc8vQgYcNqDrqRDXWwMr9i7rS5XFiCwvh6DTP7Jqa2mqpcCBBlpCbn+trkG0KNhPu/h8rzyBkriOtBstvWhw==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^26.6.2", + "jest-get-type": "^26.3.0", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-message-util": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-26.6.2.tgz", + "integrity": "sha512-rGiLePzQ3AzwUshu2+Rn+UMFk0pHN58sOG+IaJbk5Jxuqo3NYO1U2/MIR4S1sKgsoYSXSzdtSa0TgrmtUwEbmA==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.0.0", + "@jest/types": "^26.6.2", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.4", + "micromatch": "^4.0.2", + "pretty-format": "^26.6.2", + "slash": "^3.0.0", + "stack-utils": "^2.0.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-mock": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-26.6.2.tgz", + "integrity": "sha512-YyFjePHHp1LzpzYcmgqkJ0nm0gg/lJx2aZFzFy1S6eUqNjXsOqTK10zNRff2dNfssgokjkG65OlWNcIlgd3zew==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "@types/node": "*" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "dev": true, + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "jest-resolve": "*" + }, + "peerDependenciesMeta": { + "jest-resolve": { + "optional": true + } + } + }, + "node_modules/jest-regex-util": { + "version": "26.0.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-26.0.0.tgz", + "integrity": "sha512-Gv3ZIs/nA48/Zvjrl34bf+oD76JHiGDUxNOVgUjh3j890sblXryjY4rss71fPtD/njchl6PSE2hIhvyWa1eT0A==", + "dev": true, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-resolve": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-26.6.2.tgz", + "integrity": "sha512-sOxsZOq25mT1wRsfHcbtkInS+Ek7Q8jCHUB0ZUTP0tc/c41QHriU/NunqMfCUWsL4H3MHpvQD4QR9kSYhS7UvQ==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.4", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^26.6.2", + "read-pkg-up": "^7.0.1", + "resolve": "^1.18.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-resolve-dependencies": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-26.6.3.tgz", + "integrity": "sha512-pVwUjJkxbhe4RY8QEWzN3vns2kqyuldKpxlxJlzEYfKSvY6/bMvxoFrYYzUO1Gx28yKWN37qyV7rIoIp2h8fTg==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "jest-regex-util": "^26.0.0", + "jest-snapshot": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-runner": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-26.6.3.tgz", + "integrity": "sha512-atgKpRHnaA2OvByG/HpGA4g6CSPS/1LK0jK3gATJAoptC1ojltpmVlYC3TYgdmGp+GLuhzpH30Gvs36szSL2JQ==", + "dev": true, + "dependencies": { + "@jest/console": "^26.6.2", + "@jest/environment": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.7.1", + "exit": "^0.1.2", + "graceful-fs": "^4.2.4", + "jest-config": "^26.6.3", + "jest-docblock": "^26.0.0", + "jest-haste-map": "^26.6.2", + "jest-leak-detector": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-resolve": "^26.6.2", + "jest-runtime": "^26.6.3", + "jest-util": "^26.6.2", + "jest-worker": "^26.6.2", + "source-map-support": "^0.5.6", + "throat": "^5.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-runtime": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-26.6.3.tgz", + "integrity": "sha512-lrzyR3N8sacTAMeonbqpnSka1dHNux2uk0qqDXVkMv2c/A3wYnvQ4EXuI013Y6+gSKSCxdaczvf4HF0mVXHRdw==", + "dev": true, + "dependencies": { + "@jest/console": "^26.6.2", + "@jest/environment": "^26.6.2", + "@jest/fake-timers": "^26.6.2", + "@jest/globals": "^26.6.2", + "@jest/source-map": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/transform": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0", + "cjs-module-lexer": "^0.6.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.4", + "jest-config": "^26.6.3", + "jest-haste-map": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-mock": "^26.6.2", + "jest-regex-util": "^26.0.0", + "jest-resolve": "^26.6.2", + "jest-snapshot": "^26.6.2", + "jest-util": "^26.6.2", + "jest-validate": "^26.6.2", + "slash": "^3.0.0", + "strip-bom": "^4.0.0", + "yargs": "^15.4.1" + }, + "bin": { + "jest-runtime": "bin/jest-runtime.js" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-runtime/node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/jest-runtime/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-runtime/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime/node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "dev": true + }, + "node_modules/jest-runtime/node_modules/yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "dev": true, + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime/node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jest-serializer": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-26.6.2.tgz", + "integrity": "sha512-S5wqyz0DXnNJPd/xfIzZ5Xnp1HrJWBczg8mMfMpN78OJ5eDxXyf+Ygld9wX1DnUWbIbhM1YDY95NjR4CBXkb2g==", + "dev": true, + "dependencies": { + "@types/node": "*", + "graceful-fs": "^4.2.4" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-snapshot": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-26.6.2.tgz", + "integrity": "sha512-OLhxz05EzUtsAmOMzuupt1lHYXCNib0ECyuZ/PZOx9TrZcC8vL0x+DUG3TL+GLX3yHG45e6YGjIm0XwDc3q3og==", + "dev": true, + "dependencies": { + "@babel/types": "^7.0.0", + "@jest/types": "^26.6.2", + "@types/babel__traverse": "^7.0.4", + "@types/prettier": "^2.0.0", + "chalk": "^4.0.0", + "expect": "^26.6.2", + "graceful-fs": "^4.2.4", + "jest-diff": "^26.6.2", + "jest-get-type": "^26.3.0", + "jest-haste-map": "^26.6.2", + "jest-matcher-utils": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-resolve": "^26.6.2", + "natural-compare": "^1.4.0", + "pretty-format": "^26.6.2", + "semver": "^7.3.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-snapshot/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-snapshot/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-snapshot/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/jest-util": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-26.6.2.tgz", + "integrity": "sha512-MDW0fKfsn0OI7MS7Euz6h8HNDXVQ0gaM9uW6RjfDmd1DAFcaxX9OqIakHIqhbnmF08Cf2DLDG+ulq8YQQ0Lp0Q==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "@types/node": "*", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.4", + "is-ci": "^2.0.0", + "micromatch": "^4.0.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-validate": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-26.6.2.tgz", + "integrity": "sha512-NEYZ9Aeyj0i5rQqbq+tpIOom0YS1u2MVu6+euBsvpgIme+FOfRmoC4R5p0JiAUpaFvFy24xgrpMknarR/93XjQ==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "camelcase": "^6.0.0", + "chalk": "^4.0.0", + "jest-get-type": "^26.3.0", + "leven": "^3.1.0", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-validate/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-watcher": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-26.6.2.tgz", + "integrity": "sha512-WKJob0P/Em2csiVthsI68p6aGKTIcsfjH9Gsx1f0A3Italz43e3ho0geSAVsmj09RWOELP1AZ/DXyJgOgDKxXQ==", + "dev": true, + "dependencies": { + "@jest/test-result": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "jest-util": "^26.6.2", + "string-length": "^4.0.1" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-worker": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz", + "integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==", + "dev": true, + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^7.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsdom": { + "version": "16.7.0", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.7.0.tgz", + "integrity": "sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==", + "dev": true, + "dependencies": { + "abab": "^2.0.5", + "acorn": "^8.2.4", + "acorn-globals": "^6.0.0", + "cssom": "^0.4.4", + "cssstyle": "^2.3.0", + "data-urls": "^2.0.0", + "decimal.js": "^10.2.1", + "domexception": "^2.0.1", + "escodegen": "^2.0.0", + "form-data": "^3.0.0", + "html-encoding-sniffer": "^2.0.1", + "http-proxy-agent": "^4.0.1", + "https-proxy-agent": "^5.0.0", + "is-potential-custom-element-name": "^1.0.1", + "nwsapi": "^2.2.0", + "parse5": "6.0.1", + "saxes": "^5.0.1", + "symbol-tree": "^3.2.4", + "tough-cookie": "^4.0.0", + "w3c-hr-time": "^1.0.2", + "w3c-xmlserializer": "^2.0.0", + "webidl-conversions": "^6.1.0", + "whatwg-encoding": "^1.0.5", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.5.0", + "ws": "^7.4.6", + "xml-name-validator": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "canvas": "^2.5.0" + }, + "peerDependenciesMeta": { + "canvas": { + "optional": true + } + } + }, + "node_modules/jsdom/node_modules/form-data": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", + "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", + "dev": true, + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/jsdom/node_modules/tr46": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", + "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", + "dev": true, + "dependencies": { + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jsdom/node_modules/webidl-conversions": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", + "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", + "dev": true, + "engines": { + "node": ">=10.4" + } + }, + "node_modules/jsdom/node_modules/whatwg-url": { + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", + "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", + "dev": true, + "dependencies": { + "lodash": "^4.7.0", + "tr46": "^2.1.0", + "webidl-conversions": "^6.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/jsii": { + "version": "1.84.0", + "resolved": "https://registry.npmjs.org/jsii/-/jsii-1.84.0.tgz", + "integrity": "sha512-vtrw3fRrr5Do4LDNxAVXHgtHDyxHvohyzAfBwxcMEYzZ51gJX52wsdlaGE1p0dPe1V9uCAbNQTDKbAMgVJkg0Q==", + "dev": true, + "dependencies": { + "@jsii/check-node": "1.84.0", + "@jsii/spec": "^1.84.0", + "case": "^1.6.3", + "chalk": "^4", + "fast-deep-equal": "^3.1.3", + "fs-extra": "^10.1.0", + "log4js": "^6.9.1", + "semver": "^7.5.1", + "semver-intersect": "^1.4.0", + "sort-json": "^2.0.1", + "spdx-license-list": "^6.6.0", + "typescript": "~3.9.10", + "yargs": "^16.2.0" + }, + "bin": { + "jsii": "bin/jsii" + }, + "engines": { + "node": ">= 14.17.0" + } + }, + "node_modules/jsii-pacmak": { + "version": "1.84.0", + "resolved": "https://registry.npmjs.org/jsii-pacmak/-/jsii-pacmak-1.84.0.tgz", + "integrity": "sha512-+EGfpQDPSyDNPWclcOes6dUhwDsn5dG0bBgVb3hpRWZ0uDe7wLCVwGxh7fphx2XtNvTwdNfspTSBLBMqscOYmg==", + "dev": true, + "dependencies": { + "@jsii/check-node": "1.84.0", + "@jsii/spec": "^1.84.0", + "clone": "^2.1.2", + "codemaker": "^1.84.0", + "commonmark": "^0.30.0", + "escape-string-regexp": "^4.0.0", + "fs-extra": "^10.1.0", + "jsii-reflect": "^1.84.0", + "jsii-rosetta": "^1.84.0", + "semver": "^7.5.1", + "spdx-license-list": "^6.6.0", + "xmlbuilder": "^15.1.1", + "yargs": "^16.2.0" + }, + "bin": { + "jsii-pacmak": "bin/jsii-pacmak" + }, + "engines": { + "node": ">= 14.17.0" + } + }, + "node_modules/jsii-pacmak/node_modules/cliui": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" + } + }, + "node_modules/jsii-pacmak/node_modules/clone": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", + "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==", + "dev": true, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/jsii-pacmak/node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jsii-pacmak/node_modules/fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/jsii-pacmak/node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/jsii-pacmak/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsii-pacmak/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsii-pacmak/node_modules/universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/jsii-pacmak/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/jsii-pacmak/node_modules/yargs": { + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "dev": true, + "dependencies": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsii-pacmak/node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsii-reflect": { + "version": "1.84.0", + "resolved": "https://registry.npmjs.org/jsii-reflect/-/jsii-reflect-1.84.0.tgz", + "integrity": "sha512-Iuh0GAxsQscK1re9sWEQHG0wKswnr7ha4EZ8j47Sigo8yBIZNp01P+V0kbZ55bDjiT66Sqqu3jaDJdYzR/5o4w==", + "dev": true, + "dependencies": { + "@jsii/check-node": "1.84.0", + "@jsii/spec": "^1.84.0", + "chalk": "^4", + "fs-extra": "^10.1.0", + "oo-ascii-tree": "^1.84.0", + "yargs": "^16.2.0" + }, + "bin": { + "jsii-tree": "bin/jsii-tree" + }, + "engines": { + "node": ">= 14.17.0" + } + }, + "node_modules/jsii-reflect/node_modules/cliui": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" + } + }, + "node_modules/jsii-reflect/node_modules/fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/jsii-reflect/node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/jsii-reflect/node_modules/universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/jsii-reflect/node_modules/yargs": { + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "dev": true, + "dependencies": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsii-reflect/node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsii-rosetta": { + "version": "1.84.0", + "resolved": "https://registry.npmjs.org/jsii-rosetta/-/jsii-rosetta-1.84.0.tgz", + "integrity": "sha512-VrXmc6utiNs3eNTKxVky0LTxoQrsh5GuEGyfj9ihwCkojYBJ3w80PdkMQEeRpWGdaCLEocjpy1X67xgZ4ZbPlg==", + "dev": true, + "dependencies": { + "@jsii/check-node": "1.84.0", + "@jsii/spec": "1.84.0", + "@xmldom/xmldom": "^0.8.8", + "commonmark": "^0.30.0", + "fast-glob": "^3.2.12", + "jsii": "1.84.0", + "semver": "^7.5.1", + "semver-intersect": "^1.4.0", + "stream-json": "^1.8.0", + "typescript": "~3.9.10", + "workerpool": "^6.4.0", + "yargs": "^16.2.0" + }, + "bin": { + "jsii-rosetta": "bin/jsii-rosetta" + }, + "engines": { + "node": ">= 14.17.0" + } + }, + "node_modules/jsii-rosetta/node_modules/cliui": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" + } + }, + "node_modules/jsii-rosetta/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsii-rosetta/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsii-rosetta/node_modules/typescript": { + "version": "3.9.10", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz", + "integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/jsii-rosetta/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/jsii-rosetta/node_modules/yargs": { + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "dev": true, + "dependencies": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsii-rosetta/node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsii-srcmak": { + "version": "0.1.938", + "resolved": "https://registry.npmjs.org/jsii-srcmak/-/jsii-srcmak-0.1.938.tgz", + "integrity": "sha512-WbgH7UJpsBJtYrI0Pz32cz7S9UWtzsNFPFX73AGzqTbc5fTow4viW3SpwnkcL0C16OyF+IZirdFyKjokHlte5A==", + "dev": true, + "dependencies": { + "fs-extra": "^9.1.0", + "jsii": "~5.1.2", + "jsii-pacmak": "^1.84.0", + "ncp": "^2.0.0", + "yargs": "^15.4.1" + }, + "bin": { + "jsii-srcmak": "bin/jsii-srcmak" + } + }, + "node_modules/jsii-srcmak/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jsii-srcmak/node_modules/fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dev": true, + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsii-srcmak/node_modules/jsii": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/jsii/-/jsii-5.1.2.tgz", + "integrity": "sha512-0meHdufy0L4uxLPxJ1MoGmEuuuC1VUaymDc+x282BMW9xRDydI5KX5YkzsZrCnemrGiX8ObmA08zcVa32Ilu/Q==", + "dev": true, + "dependencies": { + "@jsii/check-node": "1.84.0", + "@jsii/spec": "^1.84.0", + "case": "^1.6.3", + "chalk": "^4", + "downlevel-dts": "^0.11.0", + "fast-deep-equal": "^3.1.3", + "log4js": "^6.9.1", + "semver": "^7.5.2", + "semver-intersect": "^1.4.0", + "sort-json": "^2.0.1", + "spdx-license-list": "^6.6.0", + "typescript": "~5.1.3", + "yargs": "^17.7.2" + }, + "bin": { + "jsii": "bin/jsii" + }, + "engines": { + "node": ">= 14.18.0" + } + }, + "node_modules/jsii-srcmak/node_modules/jsii/node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/jsii-srcmak/node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/jsii-srcmak/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jsii-srcmak/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsii-srcmak/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jsii-srcmak/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jsii-srcmak/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsii-srcmak/node_modules/typescript": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.3.tgz", + "integrity": "sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/jsii-srcmak/node_modules/universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/jsii-srcmak/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jsii-srcmak/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/jsii-srcmak/node_modules/yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "dev": true, + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jsii-srcmak/node_modules/yargs/node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/jsii-srcmak/node_modules/yargs/node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "dev": true + }, + "node_modules/jsii-srcmak/node_modules/yargs/node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsii/node_modules/cliui": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" + } + }, + "node_modules/jsii/node_modules/fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/jsii/node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/jsii/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsii/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsii/node_modules/typescript": { + "version": "3.9.10", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz", + "integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/jsii/node_modules/universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/jsii/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/jsii/node_modules/yargs": { + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "dev": true, + "dependencies": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsii/node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "node_modules/json-schema": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", + "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==", + "dev": true + }, + "node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "node_modules/json2jsii": { + "version": "0.3.376", + "resolved": "https://registry.npmjs.org/json2jsii/-/json2jsii-0.3.376.tgz", + "integrity": "sha512-XLaOo85TLCe/iMmx+i+A86cSPKUlBkCx1+BTbKhqqJPsMCvrU7KsasdepUidasplNBHmw7g3FLw6MYRvc/Zsjw==", + "dev": true, + "dependencies": { + "camelcase": "^6.3.0", + "json-schema": "^0.4.0", + "snake-case": "^3.0.4" + }, + "engines": { + "node": ">= 16.14.0" + } + }, + "node_modules/json2jsii/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "dev": true, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/kuler": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/kuler/-/kuler-2.0.0.tgz", + "integrity": "sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A==", + "optional": true + }, + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/levn": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", + "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", + "dev": true, + "dependencies": { + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "optional": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "devOptional": true + }, + "node_modules/lodash.truncate": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", + "integrity": "sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw==", + "dev": true + }, + "node_modules/log-symbols": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", + "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", + "optional": true, + "dependencies": { + "chalk": "^4.1.0", + "is-unicode-supported": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/log4js": { + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/log4js/-/log4js-6.9.1.tgz", + "integrity": "sha512-1somDdy9sChrr9/f4UlzhdaGfDR2c/SaD2a4T7qEkG4jTS57/B3qmnjLYePwQ8cqWnUHZI0iAKxMBpCZICiZ2g==", + "dev": true, + "dependencies": { + "date-format": "^4.0.14", + "debug": "^4.3.4", + "flatted": "^3.2.7", + "rfdc": "^1.3.0", + "streamroller": "^3.1.5" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/logform": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/logform/-/logform-2.5.1.tgz", + "integrity": "sha512-9FyqAm9o9NKKfiAKfZoYo9bGXXuwMkxQiQttkT4YjjVtQVIQtK6LmVtlxmCaFswo6N4AfEkHqZTV0taDtPotNg==", + "optional": true, + "dependencies": { + "@colors/colors": "1.5.0", + "@types/triple-beam": "^1.3.2", + "fecha": "^4.2.0", + "ms": "^2.1.1", + "safe-stable-stringify": "^2.3.1", + "triple-beam": "^1.3.0" + } + }, + "node_modules/lower-case": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", + "integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==", + "dev": true, + "dependencies": { + "tslib": "^2.0.3" + } + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "devOptional": true, + "dependencies": { + "semver": "^6.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, + "node_modules/makeerror": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dev": true, + "dependencies": { + "tmpl": "1.0.5" + } + }, + "node_modules/map-cache": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", + "integrity": "sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/map-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", + "integrity": "sha512-4y7uGv8bd2WdM9vpQsiQNo41Ln1NvhvDRuVt0k2JZQ+ezN2uaQes7lZeZ+QQUHOLQAtDaBJ+7wCbi+ab/KFs+w==", + "dev": true, + "dependencies": { + "object-visit": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/mdurl": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", + "integrity": "sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==", + "dev": true + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "devOptional": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "devOptional": true, + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "devOptional": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "devOptional": true, + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "devOptional": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "devOptional": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/mixin-deep": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", + "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", + "dev": true, + "dependencies": { + "for-in": "^1.0.2", + "is-extendable": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true, + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "optional": true + }, + "node_modules/mute-stream": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", + "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", + "optional": true + }, + "node_modules/nanomatch": { + "version": "1.2.13", + "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", + "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", + "dev": true, + "dependencies": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "fragment-cache": "^0.2.1", + "is-windows": "^1.0.2", + "kind-of": "^6.0.2", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/ncp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ncp/-/ncp-2.0.0.tgz", + "integrity": "sha512-zIdGUrPRFTUELUvr3Gmc7KZ2Sw/h1PiVM0Af/oHB6zgnV1ikqSfRk+TOufi79aHYCW3NiOXmr1BP5nWbzojLaA==", + "dev": true, + "bin": { + "ncp": "bin/ncp" + } + }, + "node_modules/nice-try": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", + "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", + "dev": true + }, + "node_modules/no-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", + "integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==", + "dev": true, + "dependencies": { + "lower-case": "^2.0.2", + "tslib": "^2.0.3" + } + }, + "node_modules/node-fetch": { + "version": "2.6.11", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.11.tgz", + "integrity": "sha512-4I6pdBY1EthSqDmJkiNk3JIT8cswwR9nfeW/cPdUagJYEQG7R95WRH74wpz7ma8Gh/9dI9FP+OU+0E4FvtA55w==", + "optional": true, + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true + }, + "node_modules/node-notifier": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-8.0.2.tgz", + "integrity": "sha512-oJP/9NAdd9+x2Q+rfphB2RJCHjod70RcRLjosiPMMu5gjIfwVnOUGq2nbTjTUbmy0DJ/tFIVT30+Qe3nzl4TJg==", + "dev": true, + "optional": true, + "dependencies": { + "growly": "^1.3.0", + "is-wsl": "^2.2.0", + "semver": "^7.3.2", + "shellwords": "^0.1.1", + "uuid": "^8.3.0", + "which": "^2.0.2" + } + }, + "node_modules/node-notifier/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "optional": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/node-notifier/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "dev": true, + "optional": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/node-notifier/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true, + "optional": true + }, + "node_modules/node-releases": { + "version": "2.0.12", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.12.tgz", + "integrity": "sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ==", + "dev": true + }, + "node_modules/normalize-package-data": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "dev": true, + "dependencies": { + "hosted-git-info": "^2.1.4", + "resolve": "^1.10.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" + } + }, + "node_modules/normalize-package-data/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/nwsapi": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.5.tgz", + "integrity": "sha512-6xpotnECFy/og7tKSBVmUNft7J3jyXAka4XvG6AUhFWRz+Q/Ljus7znJAA3bxColfQLdS+XsjoodtJfCgeTEFQ==", + "dev": true + }, + "node_modules/object-copy": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", + "integrity": "sha512-79LYn6VAb63zgtmAteVOWo9Vdj71ZVBy3Pbse+VqxDpEP83XuujMrGqHIwAXJ5I/aM0zU7dIyIAhifVTPrNItQ==", + "dev": true, + "dependencies": { + "copy-descriptor": "^0.1.0", + "define-property": "^0.2.5", + "kind-of": "^3.0.3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/is-descriptor/node_modules/kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-visit": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", + "integrity": "sha512-GBaMwwAVK9qbQN3Scdo0OyvgPW7l3lnaVMj84uTOZlswkX0KpF6fyDBJhtTthf7pymztoN36/KEr1DyhF96zEA==", + "dev": true, + "dependencies": { + "isobject": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object.pick": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", + "integrity": "sha512-tqa/UMy/CCoYmj+H5qc07qvSL9dqcs/WZENZ1JbtWBlATP+iVOe778gE6MSijnyCnORzDuX6hU+LA4SZ09YjFQ==", + "dev": true, + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "devOptional": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/one-time": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/one-time/-/one-time-1.0.0.tgz", + "integrity": "sha512-5DXOiRKwuSEcQ/l0kGCF6Q3jcADFv5tSmRaJck/OqkVFcOzutB134KRSfF0xDrL39MNnqxbHBbUUcjZIhTgb2g==", + "optional": true, + "dependencies": { + "fn.name": "1.x.x" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "devOptional": true, + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/oo-ascii-tree": { + "version": "1.84.0", + "resolved": "https://registry.npmjs.org/oo-ascii-tree/-/oo-ascii-tree-1.84.0.tgz", + "integrity": "sha512-8bvsAKFAQ7HwU3lAEDwsKYDkTqsDTsRTkr3J0gvH1U805d2no9rUNYptWzg3oYku5h5mr9Bko+BIh1pjSD8qrg==", + "dev": true, + "engines": { + "node": ">= 14.17.0" + } + }, + "node_modules/optionator": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", + "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", + "dev": true, + "dependencies": { + "deep-is": "~0.1.3", + "fast-levenshtein": "~2.0.6", + "levn": "~0.3.0", + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2", + "word-wrap": "~1.2.3" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/ora": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", + "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==", + "optional": true, + "dependencies": { + "bl": "^4.1.0", + "chalk": "^4.1.0", + "cli-cursor": "^3.1.0", + "cli-spinners": "^2.5.0", + "is-interactive": "^1.0.0", + "is-unicode-supported": "^0.1.0", + "log-symbols": "^4.1.0", + "strip-ansi": "^6.0.0", + "wcwidth": "^1.0.1" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/os-tmpdir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==", + "optional": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/p-each-series": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-each-series/-/p-each-series-2.2.0.tgz", + "integrity": "sha512-ycIL2+1V32th+8scbpTvyHNaHe02z0sjgh91XXjAk+ZeXoPN4Z46DVUnzdso0aX4KckKw0FNNFHdjZ2UsZvxiA==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-finally": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "optional": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "optional": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-map": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", + "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", + "optional": true, + "dependencies": { + "aggregate-error": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parse5": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", + "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", + "dev": true + }, + "node_modules/pascalcase": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", + "integrity": "sha512-XHXfu/yOQRy9vYOtUDVMN60OEJjW013GoObG1o+xwQTpB9eYJX/BjXMsdW13ZDPruFhYYn0AG22w0xgQMwl3Nw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "devOptional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "devOptional": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "optional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "devOptional": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pirates": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", + "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/pkg-dir/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/posix-character-classes": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", + "integrity": "sha512-xTgYBc3fuo7Yt7JbiuFxSYGToMoz8fLoE6TC9Wx1P/u+LfeThMOAqmuyECnlBaaJb+u1m9hHiXUEtwW4OzfUJg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/prelude-ls": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", + "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/pretty-format": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/psl": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", + "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==", + "dev": true + }, + "node_modules/pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "dev": true, + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/punycode": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/querystringify": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", + "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", + "dev": true + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "devOptional": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", + "dev": true + }, + "node_modules/read-pkg": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", + "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", + "dev": true, + "dependencies": { + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^2.5.0", + "parse-json": "^5.0.0", + "type-fest": "^0.6.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg-up": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", + "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", + "dev": true, + "dependencies": { + "find-up": "^4.1.0", + "read-pkg": "^5.2.0", + "type-fest": "^0.8.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg-up/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg-up/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg-up/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg-up/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg-up/node_modules/type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg/node_modules/type-fest": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", + "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "optional": true, + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/rechoir": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", + "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==", + "dev": true, + "dependencies": { + "resolve": "^1.1.6" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/regex-not": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", + "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", + "dev": true, + "dependencies": { + "extend-shallow": "^3.0.2", + "safe-regex": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/remove-trailing-separator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", + "integrity": "sha512-/hS+Y0u3aOfIETiaiirUFwDBDzmXPvO+jAfKTitUngIPzdKc6Z0LoFjM/CK5PL4C+eKwHohlHAb6H0VFfmmUsw==", + "dev": true + }, + "node_modules/repeat-element": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.4.tgz", + "integrity": "sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/repeat-string": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==", + "dev": true, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "devOptional": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-main-filename": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", + "dev": true + }, + "node_modules/requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", + "dev": true + }, + "node_modules/resolve": { + "version": "1.22.2", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz", + "integrity": "sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==", + "dev": true, + "dependencies": { + "is-core-module": "^2.11.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-url": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", + "integrity": "sha512-ZuF55hVUQaaczgOIwqWzkEcEidmlD/xl44x1UZnhOXcYuFN2S6+rcxpG+C1N3So0wvNI3DmJICUFfu2SxhBmvg==", + "deprecated": "https://github.com/lydell/resolve-url#deprecated", + "dev": true + }, + "node_modules/restore-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", + "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", + "optional": true, + "dependencies": { + "onetime": "^5.1.0", + "signal-exit": "^3.0.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/ret": { + "version": "0.1.15", + "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", + "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", + "dev": true, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "devOptional": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rfdc": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.3.0.tgz", + "integrity": "sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==", + "dev": true + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "devOptional": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rsvp": { + "version": "4.8.5", + "resolved": "https://registry.npmjs.org/rsvp/-/rsvp-4.8.5.tgz", + "integrity": "sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA==", + "dev": true, + "engines": { + "node": "6.* || >= 7.*" + } + }, + "node_modules/run-async": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz", + "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==", + "optional": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "devOptional": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/rxjs": { + "version": "7.8.1", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", + "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", + "optional": true, + "dependencies": { + "tslib": "^2.1.0" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "optional": true + }, + "node_modules/safe-json-stringify": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/safe-json-stringify/-/safe-json-stringify-1.2.0.tgz", + "integrity": "sha512-gH8eh2nZudPQO6TytOvbxnuhYBOvDBBLW52tz5q6X58lJcd/tkmqFR+5Z9adS8aJtURSXWThWy/xJtJwixErvg==", + "optional": true + }, + "node_modules/safe-regex": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", + "integrity": "sha512-aJXcif4xnaNUzvUuC5gcb46oTS7zvg4jpMTnuqtrEPlR3vFr4pxtdTwaF1Qs3Enjn9HK+ZlwQui+a7z0SywIzg==", + "dev": true, + "dependencies": { + "ret": "~0.1.10" + } + }, + "node_modules/safe-stable-stringify": { + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.4.3.tgz", + "integrity": "sha512-e2bDA2WJT0wxseVd4lsDP4+3ONX6HpMXQa1ZhFQ7SU+GjvORCmShbCMltrtIDfkYhVHrOcPtj+KhmDBdPdZD1g==", + "optional": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "devOptional": true + }, + "node_modules/sane": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/sane/-/sane-4.1.0.tgz", + "integrity": "sha512-hhbzAgTIX8O7SHfp2c8/kREfEn4qO/9q8C9beyY6+tvZ87EpoZ3i1RIEvp27YBswnNbY9mWd6paKVmKbAgLfZA==", + "deprecated": "some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added", + "dev": true, + "dependencies": { + "@cnakazawa/watch": "^1.0.3", + "anymatch": "^2.0.0", + "capture-exit": "^2.0.0", + "exec-sh": "^0.3.2", + "execa": "^1.0.0", + "fb-watchman": "^2.0.0", + "micromatch": "^3.1.4", + "minimist": "^1.1.1", + "walker": "~1.0.5" + }, + "bin": { + "sane": "src/cli.js" + }, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/sane/node_modules/anymatch": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", + "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", + "dev": true, + "dependencies": { + "micromatch": "^3.1.4", + "normalize-path": "^2.1.1" + } + }, + "node_modules/sane/node_modules/braces": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", + "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", + "dev": true, + "dependencies": { + "arr-flatten": "^1.1.0", + "array-unique": "^0.3.2", + "extend-shallow": "^2.0.1", + "fill-range": "^4.0.0", + "isobject": "^3.0.1", + "repeat-element": "^1.1.2", + "snapdragon": "^0.8.1", + "snapdragon-node": "^2.0.1", + "split-string": "^3.0.2", + "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/braces/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/cross-spawn": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "dev": true, + "dependencies": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + }, + "engines": { + "node": ">=4.8" + } + }, + "node_modules/sane/node_modules/execa": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", + "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", + "dev": true, + "dependencies": { + "cross-spawn": "^6.0.0", + "get-stream": "^4.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/sane/node_modules/fill-range": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", + "integrity": "sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ==", + "dev": true, + "dependencies": { + "extend-shallow": "^2.0.1", + "is-number": "^3.0.0", + "repeat-string": "^1.6.1", + "to-regex-range": "^2.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/fill-range/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/get-stream": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", + "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "dev": true, + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/sane/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/is-number/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/micromatch": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", + "dev": true, + "dependencies": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "braces": "^2.3.1", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "extglob": "^2.0.4", + "fragment-cache": "^0.2.1", + "kind-of": "^6.0.2", + "nanomatch": "^1.2.9", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/normalize-path": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", + "integrity": "sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w==", + "dev": true, + "dependencies": { + "remove-trailing-separator": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/npm-run-path": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", + "integrity": "sha512-lJxZYlT4DW/bRUtFh1MQIWqmLwQfAxnqWG4HhEdjMlkrJYnJn0Jrr2u3mgxqaWsdiBc76TYkTG/mhrnYTuzfHw==", + "dev": true, + "dependencies": { + "path-key": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/sane/node_modules/path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/sane/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/sane/node_modules/shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", + "dev": true, + "dependencies": { + "shebang-regex": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/to-regex-range": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", + "integrity": "sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg==", + "dev": true, + "dependencies": { + "is-number": "^3.0.0", + "repeat-string": "^1.6.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "which": "bin/which" + } + }, + "node_modules/saxes": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz", + "integrity": "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==", + "dev": true, + "dependencies": { + "xmlchars": "^2.2.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "devOptional": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/semver-intersect": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/semver-intersect/-/semver-intersect-1.4.0.tgz", + "integrity": "sha512-d8fvGg5ycKAq0+I6nfWeCx6ffaWJCsBYU0H2Rq56+/zFePYfT8mXkB3tWBSjR5BerkHNZ5eTPIk1/LBYas35xQ==", + "dev": true, + "dependencies": { + "semver": "^5.0.0" + } + }, + "node_modules/semver-intersect/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", + "dev": true + }, + "node_modules/set-value": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz", + "integrity": "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==", + "dev": true, + "dependencies": { + "extend-shallow": "^2.0.1", + "is-extendable": "^0.1.1", + "is-plain-object": "^2.0.3", + "split-string": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/set-value/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/set-value/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/set-value/node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/shelljs": { + "version": "0.8.5", + "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz", + "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==", + "dev": true, + "dependencies": { + "glob": "^7.0.0", + "interpret": "^1.0.0", + "rechoir": "^0.6.2" + }, + "bin": { + "shjs": "bin/shjs" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/shellwords": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/shellwords/-/shellwords-0.1.1.tgz", + "integrity": "sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==", + "dev": true, + "optional": true + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "devOptional": true + }, + "node_modules/simple-swizzle": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz", + "integrity": "sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==", + "optional": true, + "dependencies": { + "is-arrayish": "^0.3.1" + } + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "devOptional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/slice-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", + "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "astral-regex": "^2.0.0", + "is-fullwidth-code-point": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/slice-ansi?sponsor=1" + } + }, + "node_modules/snake-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/snake-case/-/snake-case-3.0.4.tgz", + "integrity": "sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==", + "dev": true, + "dependencies": { + "dot-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "node_modules/snapdragon": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", + "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", + "dev": true, + "dependencies": { + "base": "^0.11.1", + "debug": "^2.2.0", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "map-cache": "^0.2.2", + "source-map": "^0.5.6", + "source-map-resolve": "^0.5.0", + "use": "^3.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon-node": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", + "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", + "dev": true, + "dependencies": { + "define-property": "^1.0.0", + "isobject": "^3.0.0", + "snapdragon-util": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon-node/node_modules/define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==", + "dev": true, + "dependencies": { + "is-descriptor": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon-util": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", + "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", + "dev": true, + "dependencies": { + "kind-of": "^3.2.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon-util/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/snapdragon/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-accessor-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-data-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "node_modules/snapdragon/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sort-json": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/sort-json/-/sort-json-2.0.1.tgz", + "integrity": "sha512-s8cs2bcsQCzo/P2T/uoU6Js4dS/jnX8+4xunziNoq9qmSpZNCrRIAIvp4avsz0ST18HycV4z/7myJ7jsHWB2XQ==", + "dev": true, + "dependencies": { + "detect-indent": "^5.0.0", + "detect-newline": "^2.1.0", + "minimist": "^1.2.0" + }, + "bin": { + "sort-json": "app/cmd.js" + } + }, + "node_modules/sort-json/node_modules/detect-newline": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-2.1.0.tgz", + "integrity": "sha512-CwffZFvlJffUg9zZA0uqrjQayUTC8ob94pnr5sFwaVv3IOmkfUHcWH+jXaQK3askE51Cqe8/9Ql/0uXNwqZ8Zg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-resolve": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz", + "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==", + "deprecated": "See https://github.com/lydell/source-map-resolve#deprecated", + "dev": true, + "dependencies": { + "atob": "^2.1.2", + "decode-uri-component": "^0.2.0", + "resolve-url": "^0.2.1", + "source-map-url": "^0.4.0", + "urix": "^0.1.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/source-map-url": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.1.tgz", + "integrity": "sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw==", + "deprecated": "See https://github.com/lydell/source-map-url#deprecated", + "dev": true + }, + "node_modules/spdx-correct": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz", + "integrity": "sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==", + "dev": true, + "dependencies": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/spdx-exceptions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", + "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", + "dev": true + }, + "node_modules/spdx-expression-parse": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", + "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", + "dev": true, + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/spdx-license-ids": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.13.tgz", + "integrity": "sha512-XkD+zwiqXHikFZm4AX/7JSCXA98U5Db4AFd5XUg/+9UNtnH75+Z9KxtpYiJZx36mUDVOwH83pl7yvCer6ewM3w==", + "dev": true + }, + "node_modules/spdx-license-list": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/spdx-license-list/-/spdx-license-list-6.6.0.tgz", + "integrity": "sha512-vLwdf9AWgdJQmG8cai2HKfkInFsliKaCCOwXmdVonClIhdURTX61KdDOoXC1qcQ7gDaZj+CUTcrMJeAdnCtrKA==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/split-string": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", + "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", + "dev": true, + "dependencies": { + "extend-shallow": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true + }, + "node_modules/sscaff": { + "version": "1.2.274", + "resolved": "https://registry.npmjs.org/sscaff/-/sscaff-1.2.274.tgz", + "integrity": "sha512-sztRa50SL1LVxZnF1au6QT1SC2z0S1oEOyi2Kpnlg6urDns93aL32YxiJcNkLcY+VHFtVqm/SRv4cb+6LeoBQA==", + "dev": true, + "engines": { + "node": ">= 12.13.0" + } + }, + "node_modules/stack-trace": { + "version": "0.0.10", + "resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.10.tgz", + "integrity": "sha512-KGzahc7puUKkzyMt+IqAep+TVNbKP+k2Lmwhub39m1AsTSkaDutx56aDCo+HLDzf/D26BIHTJWNiTG1KAJiQCg==", + "optional": true, + "engines": { + "node": "*" + } + }, + "node_modules/stack-utils": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "dev": true, + "dependencies": { + "escape-string-regexp": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/stack-utils/node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/static-extend": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", + "integrity": "sha512-72E9+uLc27Mt718pMHt9VMNiAL4LMsmDbBva8mxWUCkT07fSzEGMYUCk0XWY6lp0j6RBAG4cJ3mWuZv2OE3s0g==", + "dev": true, + "dependencies": { + "define-property": "^0.2.5", + "object-copy": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/is-accessor-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/is-data-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/stream-chain": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/stream-chain/-/stream-chain-2.2.5.tgz", + "integrity": "sha512-1TJmBx6aSWqZ4tx7aTpBDXK0/e2hhcNSTV8+CbFJtDjbb+I1mZ8lHit0Grw9GRT+6JbIrrDd8esncgBi8aBXGA==", + "dev": true + }, + "node_modules/stream-json": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/stream-json/-/stream-json-1.8.0.tgz", + "integrity": "sha512-HZfXngYHUAr1exT4fxlbc1IOce1RYxp2ldeaf97LYCOPSoOqY/1Psp7iGvpb+6JIOgkra9zDYnPX01hGAHzEPw==", + "dev": true, + "dependencies": { + "stream-chain": "^2.2.5" + } + }, + "node_modules/streamroller": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/streamroller/-/streamroller-3.1.5.tgz", + "integrity": "sha512-KFxaM7XT+irxvdqSP1LGLgNWbYN7ay5owZ3r/8t77p+EtSUAfUgtl7be3xtqtOmGUl9K9YPO2ca8133RlTjvKw==", + "dev": true, + "dependencies": { + "date-format": "^4.0.14", + "debug": "^4.3.4", + "fs-extra": "^8.1.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "optional": true, + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string-length": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dev": true, + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "devOptional": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string.prototype.repeat": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/string.prototype.repeat/-/string.prototype.repeat-0.2.0.tgz", + "integrity": "sha512-1BH+X+1hSthZFW+X+JaUkjkkUPwIlLEMJBLANN3hOob3RhEk5snLWNECDnYbgn/m5c5JV7Ersu1Yubaf+05cIA==", + "dev": true + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "devOptional": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-eof": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", + "integrity": "sha512-7FCwGGmx8mD5xQd3RPUvnSpUXHM3BWuzjtpD4TXsfcZ9EL4azvVVUscFYwD9nx8Kh+uCBC00XBtAykoMHwTh8Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "optional": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "devOptional": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-hyperlinks": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz", + "integrity": "sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==", + "devOptional": true, + "dependencies": { + "has-flag": "^4.0.0", + "supports-color": "^7.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/symbol-tree": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", + "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", + "dev": true + }, + "node_modules/table": { + "version": "6.8.1", + "resolved": "https://registry.npmjs.org/table/-/table-6.8.1.tgz", + "integrity": "sha512-Y4X9zqrCftUhMeH2EptSSERdVKt/nEdijTOacGD/97EKjhQ/Qs8RTlEGABSJNNN8lac9kheH+af7yAkEWlgneA==", + "dev": true, + "dependencies": { + "ajv": "^8.0.1", + "lodash.truncate": "^4.4.2", + "slice-ansi": "^4.0.0", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/terminal-link": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz", + "integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==", + "devOptional": true, + "dependencies": { + "ansi-escapes": "^4.2.1", + "supports-hyperlinks": "^2.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/test-exclude": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/text-hex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/text-hex/-/text-hex-1.0.0.tgz", + "integrity": "sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg==", + "optional": true + }, + "node_modules/throat": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/throat/-/throat-5.0.0.tgz", + "integrity": "sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA==", + "dev": true + }, + "node_modules/through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", + "optional": true + }, + "node_modules/tmp": { + "version": "0.0.33", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", + "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", + "optional": true, + "dependencies": { + "os-tmpdir": "~1.0.2" + }, + "engines": { + "node": ">=0.6.0" + } + }, + "node_modules/tmpl": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "dev": true + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/to-object-path": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", + "integrity": "sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/to-object-path/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/to-regex": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", + "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", + "dev": true, + "dependencies": { + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "regex-not": "^1.0.2", + "safe-regex": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "devOptional": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/tough-cookie": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.3.tgz", + "integrity": "sha512-aX/y5pVRkfRnfmuX+OdbSdXvPe6ieKX/G2s7e98f4poJHnqH3281gDPm/metm6E/WRamfx7WC4HUqkWHfQHprw==", + "dev": true, + "dependencies": { + "psl": "^1.1.33", + "punycode": "^2.1.1", + "universalify": "^0.2.0", + "url-parse": "^1.5.3" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "optional": true + }, + "node_modules/triple-beam": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/triple-beam/-/triple-beam-1.3.0.tgz", + "integrity": "sha512-XrHUvV5HpdLmIj4uVMxHggLbFSZYIn7HEWsqePZcI50pco+MPqJ50wMGY794X7AOOhxOBAjbkqfAbEe/QMp2Lw==", + "optional": true + }, + "node_modules/ts-jest": { + "version": "26.5.6", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-26.5.6.tgz", + "integrity": "sha512-rua+rCP8DxpA8b4DQD/6X2HQS8Zy/xzViVYfEs2OQu68tkCuKLV0Md8pmX55+W24uRIyAsf/BajRfxOs+R2MKA==", + "dev": true, + "dependencies": { + "bs-logger": "0.x", + "buffer-from": "1.x", + "fast-json-stable-stringify": "2.x", + "jest-util": "^26.1.0", + "json5": "2.x", + "lodash": "4.x", + "make-error": "1.x", + "mkdirp": "1.x", + "semver": "7.x", + "yargs-parser": "20.x" + }, + "bin": { + "ts-jest": "cli.js" + }, + "engines": { + "node": ">= 10" + }, + "peerDependencies": { + "jest": ">=26 <27", + "typescript": ">=3.8 <5.0" + } + }, + "node_modules/ts-jest/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ts-jest/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ts-jest/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/ts-jest/node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/ts-node": { + "version": "10.9.1", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", + "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", + "dev": true, + "dependencies": { + "@cspotcode/source-map-support": "^0.8.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.1", + "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-cwd": "dist/bin-cwd.js", + "ts-node-esm": "dist/bin-esm.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "peerDependencies": { + "@swc/core": ">=1.2.50", + "@swc/wasm": ">=1.2.50", + "@types/node": "*", + "typescript": ">=2.7" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "@swc/wasm": { + "optional": true + } + } + }, + "node_modules/ts-node/node_modules/acorn-walk": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/tslib": { + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.3.tgz", + "integrity": "sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w==", + "devOptional": true + }, + "node_modules/type-check": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", + "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", + "dev": true, + "dependencies": { + "prelude-ls": "~1.1.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "devOptional": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typedarray-to-buffer": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", + "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", + "dev": true, + "dependencies": { + "is-typedarray": "^1.0.0" + } + }, + "node_modules/typescript": { + "version": "4.9.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", + "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/union-value": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz", + "integrity": "sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==", + "dev": true, + "dependencies": { + "arr-union": "^3.1.0", + "get-value": "^2.0.6", + "is-extendable": "^0.1.1", + "set-value": "^2.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/union-value/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/universal-user-agent": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", + "integrity": "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==", + "optional": true + }, + "node_modules/universalify": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", + "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", + "dev": true, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/unset-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", + "integrity": "sha512-PcA2tsuGSF9cnySLHTLSh2qrQiJ70mn+r+Glzxv2TWZblxsxCC52BDlZoPCsz7STd9pN7EZetkWZBAvk4cgZdQ==", + "dev": true, + "dependencies": { + "has-value": "^0.3.1", + "isobject": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/unset-value/node_modules/has-value": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", + "integrity": "sha512-gpG936j8/MzaeID5Yif+577c17TxaDmhuyVgSwtnL/q8UUTySg8Mecb+8Cf1otgLoD7DDH75axp86ER7LFsf3Q==", + "dev": true, + "dependencies": { + "get-value": "^2.0.3", + "has-values": "^0.1.4", + "isobject": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/unset-value/node_modules/has-value/node_modules/isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA==", + "dev": true, + "dependencies": { + "isarray": "1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/unset-value/node_modules/has-values": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", + "integrity": "sha512-J8S0cEdWuQbqD9//tlZxiMuMNmxB8PlEwvYwuxsTmR1G5RXUePEX/SJn7aD0GMLieuZYSwNH0cQuJGwnYunXRQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz", + "integrity": "sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/urix": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", + "integrity": "sha512-Am1ousAhSLBeB9cG/7k7r2R0zj50uDRlZHPGbazid5s9rlF1F/QKYObEKSIunSjIOkJZqwRRLpvewjEkM7pSqg==", + "deprecated": "Please see https://github.com/lydell/urix#deprecated", + "dev": true + }, + "node_modules/url-parse": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", + "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", + "dev": true, + "dependencies": { + "querystringify": "^2.1.1", + "requires-port": "^1.0.0" + } + }, + "node_modules/use": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", + "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "optional": true + }, + "node_modules/utility-types": { + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/utility-types/-/utility-types-3.10.0.tgz", + "integrity": "sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg==", + "optional": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "dev": true, + "optional": true, + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/v8-compile-cache-lib": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", + "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", + "dev": true + }, + "node_modules/v8-to-istanbul": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-7.1.2.tgz", + "integrity": "sha512-TxNb7YEUwkLXCQYeudi6lgQ/SZrzNO4kMdlqVxaZPUIUjCv6iSSypUQX70kNBSERpQ8fk48+d61FXk+tgqcWow==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^1.6.0", + "source-map": "^0.7.3" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/v8-to-istanbul/node_modules/source-map": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", + "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/validate-npm-package-license": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "dev": true, + "dependencies": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "node_modules/w3c-hr-time": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", + "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==", + "deprecated": "Use your platform's native performance.now() and performance.timeOrigin.", + "dev": true, + "dependencies": { + "browser-process-hrtime": "^1.0.0" + } + }, + "node_modules/w3c-xmlserializer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz", + "integrity": "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==", + "dev": true, + "dependencies": { + "xml-name-validator": "^3.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/walker": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "dev": true, + "dependencies": { + "makeerror": "1.0.12" + } + }, + "node_modules/wcwidth": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", + "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==", + "optional": true, + "dependencies": { + "defaults": "^1.0.3" + } + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "optional": true + }, + "node_modules/whatwg-encoding": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", + "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", + "dev": true, + "dependencies": { + "iconv-lite": "0.4.24" + } + }, + "node_modules/whatwg-mimetype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", + "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==", + "dev": true + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "optional": true, + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-module": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz", + "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==", + "dev": true + }, + "node_modules/winston": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/winston/-/winston-3.9.0.tgz", + "integrity": "sha512-jW51iW/X95BCW6MMtZWr2jKQBP4hV5bIDq9QrIjfDk6Q9QuxvTKEAlpUNAzP+HYHFFCeENhph16s0zEunu4uuQ==", + "optional": true, + "dependencies": { + "@colors/colors": "1.5.0", + "@dabh/diagnostics": "^2.0.2", + "async": "^3.2.3", + "is-stream": "^2.0.0", + "logform": "^2.4.0", + "one-time": "^1.0.0", + "readable-stream": "^3.4.0", + "safe-stable-stringify": "^2.3.1", + "stack-trace": "0.0.x", + "triple-beam": "^1.3.0", + "winston-transport": "^4.5.0" + }, + "engines": { + "node": ">= 12.0.0" + } + }, + "node_modules/winston-transport": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/winston-transport/-/winston-transport-4.5.0.tgz", + "integrity": "sha512-YpZzcUzBedhlTAfJg6vJDlyEai/IFMIVcaEZZyl3UXIl4gmqRpU7AE89AHLkbzLUsv0NVmw7ts+iztqKxxPW1Q==", + "optional": true, + "dependencies": { + "logform": "^2.3.2", + "readable-stream": "^3.6.0", + "triple-beam": "^1.3.0" + }, + "engines": { + "node": ">= 6.4.0" + } + }, + "node_modules/word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/workerpool": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.4.0.tgz", + "integrity": "sha512-i3KR1mQMNwY2wx20ozq2EjISGtQWDIfV56We+yGJ5yDs8jTwQiLLaqHlkBHITlCuJnYlVRmXegxFxZg7gqI++A==", + "dev": true + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "devOptional": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "devOptional": true + }, + "node_modules/write-file-atomic": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", + "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", + "dev": true, + "dependencies": { + "imurmurhash": "^0.1.4", + "is-typedarray": "^1.0.0", + "signal-exit": "^3.0.2", + "typedarray-to-buffer": "^3.1.5" + } + }, + "node_modules/ws": { + "version": "7.5.9", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", + "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "dev": true, + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/xml-name-validator": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", + "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", + "dev": true + }, + "node_modules/xmlbuilder": { + "version": "15.1.1", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-15.1.1.tgz", + "integrity": "sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg==", + "dev": true, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/xmlchars": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", + "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", + "dev": true + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "devOptional": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, + "node_modules/yaml": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.1.tgz", + "integrity": "sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==", + "dev": true, + "engines": { + "node": ">= 14" + } + }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "optional": true, + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "devOptional": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "optional": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/tools/cdk8s/yggdrasil-core-engine/package.json b/tools/cdk8s/yggdrasil-core-engine/package.json new file mode 100644 index 0000000..c272cfe --- /dev/null +++ b/tools/cdk8s/yggdrasil-core-engine/package.json @@ -0,0 +1,33 @@ +{ + "name": "yggdrasil-core-engine", + "version": "1.0.0", + "main": "main.js", + "types": "main.ts", + "license": "Apache-2.0", + "private": true, + "scripts": { + "import": "cdk8s import", + "synth": "cdk8s synth", + "compile": "tsc --build", + "watch": "tsc --build -w", + "test": "jest", + "build": "npm run compile && npm run test -- -u && npm run synth", + "upgrade": "npm i cdk8s@latest cdk8s-cli@latest", + "upgrade:next": "npm i cdk8s@next cdk8s-cli@next" + }, + "dependencies": { + "cdk8s": "^2.7.83", + "cdk8s-plus-25": "^2.8.49", + "constructs": "^10.2.58", + "dotenv": "^16.3.1" + }, + "devDependencies": { + "@types/jest": "^26.0.24", + "@types/node": "^14.18.51", + "cdk8s-cli": "^2.2.73", + "jest": "^26.6.3", + "ts-jest": "^26.5.6", + "ts-node": "^10.9.1", + "typescript": "^4.9.5" + } +} diff --git a/tools/cdk8s/yggdrasil-core-engine/tsconfig.json b/tools/cdk8s/yggdrasil-core-engine/tsconfig.json new file mode 100644 index 0000000..8f08731 --- /dev/null +++ b/tools/cdk8s/yggdrasil-core-engine/tsconfig.json @@ -0,0 +1,28 @@ +{ + "compilerOptions": { + "alwaysStrict": true, + "charset": "utf8", + "declaration": true, + "experimentalDecorators": true, + "inlineSourceMap": true, + "inlineSources": true, + "lib": ["es2016"], + "module": "CommonJS", + "noEmit": false, + "noEmitOnError": true, + "noFallthroughCasesInSwitch": true, + "noImplicitAny": true, + "noImplicitReturns": true, + "noImplicitThis": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "resolveJsonModule": true, + "strict": true, + "strictNullChecks": true, + "strictPropertyInitialization": true, + "stripInternal": true, + "target": "ES2017" + }, + "include": ["**/*.ts"], + "exclude": ["node_modules"] +} diff --git a/tools/cdk8s/yggdrasil-core-engine/utils/helper.ts b/tools/cdk8s/yggdrasil-core-engine/utils/helper.ts new file mode 100644 index 0000000..57d93fa --- /dev/null +++ b/tools/cdk8s/yggdrasil-core-engine/utils/helper.ts @@ -0,0 +1,7 @@ +export class Helper { + static get isProd() { + return ( + process.env.NODE_ENV?.toLocaleLowerCase().includes('production') ?? false + ); + } +} diff --git a/tools/cdk8s/yggdrasil-discord-client/.gitignore b/tools/cdk8s/yggdrasil-discord-client/.gitignore new file mode 100644 index 0000000..cece054 --- /dev/null +++ b/tools/cdk8s/yggdrasil-discord-client/.gitignore @@ -0,0 +1,5 @@ +*.d.ts +*.js +!jest.config.js +node_modules +dist/ diff --git a/tools/cdk8s/yggdrasil-discord-client/__snapshots__/main.test.ts.snap b/tools/cdk8s/yggdrasil-discord-client/__snapshots__/main.test.ts.snap new file mode 100644 index 0000000..18170b9 --- /dev/null +++ b/tools/cdk8s/yggdrasil-discord-client/__snapshots__/main.test.ts.snap @@ -0,0 +1,80 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Placeholder Empty 1`] = ` +Array [ + Object { + "apiVersion": "v1", + "kind": "Namespace", + }, + Object { + "apiVersion": "apps/v1", + "kind": "Deployment", + "spec": Object { + "replicas": 1, + "selector": Object { + "matchLabels": Object {}, + }, + "template": Object { + "metadata": Object { + "labels": Object {}, + }, + "spec": Object { + "containers": Array [ + Object { + "env": Array [ + Object { + "name": "NODE_ENV", + "value": "development", + }, + Object { + "name": "SERVICE_TAGS", + "value": "development", + }, + ], + "image": "asia-east1-docker.pkg.dev/general-382514/yu-gpt-engine/yu-gpt-engine-image:latest", + "imagePullPolicy": "Always", + "livenessProbe": Object { + "httpGet": Object { + "path": "/", + "port": 3000, + }, + "initialDelaySeconds": 10, + }, + "name": "yggdrasil-core-engine", + "resources": Object { + "limits": Object { + "cpu": "0.25", + "memory": "512Mi", + }, + }, + }, + ], + "imagePullSecrets": Array [ + Object { + "name": "registry-credentials", + }, + ], + }, + }, + }, + }, + Object { + "apiVersion": "v1", + "kind": "ServiceAccount", + }, + Object { + "apiVersion": "rbac.authorization.k8s.io/v1", + "kind": "RoleBinding", + "roleRef": Object { + "apiGroup": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "name": "cluster-admin", + }, + "subjects": Array [ + Object { + "kind": "ServiceAccount", + }, + ], + }, +] +`; diff --git a/tools/cdk8s/yggdrasil-discord-client/cdk8s.yaml b/tools/cdk8s/yggdrasil-discord-client/cdk8s.yaml new file mode 100644 index 0000000..b4d1d53 --- /dev/null +++ b/tools/cdk8s/yggdrasil-discord-client/cdk8s.yaml @@ -0,0 +1,4 @@ +language: typescript +app: npx ts-node main.ts +imports: + - k8s diff --git a/tools/cdk8s/yggdrasil-discord-client/env/.env b/tools/cdk8s/yggdrasil-discord-client/env/.env new file mode 100644 index 0000000..cb73d81 --- /dev/null +++ b/tools/cdk8s/yggdrasil-discord-client/env/.env @@ -0,0 +1,5 @@ +SERVICE_TAGS=production +IMAGE_PATH=asia-east1-docker.pkg.dev/general-382514/yggdrasil-discord-client/yggdrasil-core-engine-image: +APP_CLUSTER_PORT=80 +IMAGE_PULL_POLICY=IfNotPresent +IMAGE_PULL_SECRETS=registry-credentials diff --git a/tools/cdk8s/yggdrasil-discord-client/env/.env.development b/tools/cdk8s/yggdrasil-discord-client/env/.env.development new file mode 100644 index 0000000..638f453 --- /dev/null +++ b/tools/cdk8s/yggdrasil-discord-client/env/.env.development @@ -0,0 +1,5 @@ +SERVICE_TAGS=development +IMAGE_PATH=asia-east1-docker.pkg.dev/general-382514/yggdrasil-discord-client/yggdrasil-core-engine-image: +APP_CLUSTER_PORT=8080 +IMAGE_PULL_POLICY=Always +IMAGE_PULL_SECRETS=gitlab-registry diff --git a/tools/cdk8s/yggdrasil-discord-client/env/.env.staging b/tools/cdk8s/yggdrasil-discord-client/env/.env.staging new file mode 100644 index 0000000..31d1688 --- /dev/null +++ b/tools/cdk8s/yggdrasil-discord-client/env/.env.staging @@ -0,0 +1,5 @@ +SERVICE_TAGS=provision +IMAGE_PATH=registry.gitlab.com/welfree-studio/yggdrasil-discord-client/yggdrasil-core-engine-image: +APP_CLUSTER_PORT=80 +IMAGE_PULL_POLICY=IfNotPresent +IMAGE_PULL_SECRETS=gitlab-registry diff --git a/tools/cdk8s/yggdrasil-discord-client/help b/tools/cdk8s/yggdrasil-discord-client/help new file mode 100644 index 0000000..f49cc52 --- /dev/null +++ b/tools/cdk8s/yggdrasil-discord-client/help @@ -0,0 +1,23 @@ +======================================================================================================== + + Your cdk8s typescript project is ready! + + cat help Print this message + + Compile: + npm run compile Compile typescript code to javascript (or "yarn watch") + npm run watch Watch for changes and compile typescript in the background + npm run build Compile + synth + + Synthesize: + npm run synth Synthesize k8s manifests from charts to dist/ (ready for 'kubectl apply -f') + + Deploy: + kubectl apply -f dist/ + + Upgrades: + npm run import Import/update k8s apis (you should check-in this directory) + npm run upgrade Upgrade cdk8s modules to latest version + npm run upgrade:next Upgrade cdk8s modules to latest "@next" version (last commit) + +======================================================================================================== diff --git a/tools/cdk8s/yggdrasil-discord-client/imports/k8s.ts b/tools/cdk8s/yggdrasil-discord-client/imports/k8s.ts new file mode 100644 index 0000000..28a1f3e --- /dev/null +++ b/tools/cdk8s/yggdrasil-discord-client/imports/k8s.ts @@ -0,0 +1,26965 @@ +// generated by cdk8s +import { ApiObject, GroupVersionKind } from 'cdk8s'; +import { Construct } from 'constructs'; + +/** + * MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. + * + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration + */ +export class KubeMutatingWebhookConfiguration extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'admissionregistration.k8s.io/v1', + kind: 'MutatingWebhookConfiguration', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeMutatingWebhookConfigurationProps = {}): any { + return { + ...KubeMutatingWebhookConfiguration.GVK, + ...toJson_KubeMutatingWebhookConfigurationProps(props), + }; + } + + /** + * Defines a "io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeMutatingWebhookConfigurationProps = {}) { + super(scope, id, { + ...KubeMutatingWebhookConfiguration.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeMutatingWebhookConfiguration.GVK, + ...toJson_KubeMutatingWebhookConfigurationProps(resolved), + }; + } +} + +/** + * MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. + * + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList + */ +export class KubeMutatingWebhookConfigurationList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'admissionregistration.k8s.io/v1', + kind: 'MutatingWebhookConfigurationList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeMutatingWebhookConfigurationListProps): any { + return { + ...KubeMutatingWebhookConfigurationList.GVK, + ...toJson_KubeMutatingWebhookConfigurationListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeMutatingWebhookConfigurationListProps) { + super(scope, id, { + ...KubeMutatingWebhookConfigurationList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeMutatingWebhookConfigurationList.GVK, + ...toJson_KubeMutatingWebhookConfigurationListProps(resolved), + }; + } +} + +/** + * ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. + * + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration + */ +export class KubeValidatingWebhookConfiguration extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'admissionregistration.k8s.io/v1', + kind: 'ValidatingWebhookConfiguration', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeValidatingWebhookConfigurationProps = {}): any { + return { + ...KubeValidatingWebhookConfiguration.GVK, + ...toJson_KubeValidatingWebhookConfigurationProps(props), + }; + } + + /** + * Defines a "io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeValidatingWebhookConfigurationProps = {}) { + super(scope, id, { + ...KubeValidatingWebhookConfiguration.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeValidatingWebhookConfiguration.GVK, + ...toJson_KubeValidatingWebhookConfigurationProps(resolved), + }; + } +} + +/** + * ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. + * + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList + */ +export class KubeValidatingWebhookConfigurationList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'admissionregistration.k8s.io/v1', + kind: 'ValidatingWebhookConfigurationList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeValidatingWebhookConfigurationListProps): any { + return { + ...KubeValidatingWebhookConfigurationList.GVK, + ...toJson_KubeValidatingWebhookConfigurationListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeValidatingWebhookConfigurationListProps) { + super(scope, id, { + ...KubeValidatingWebhookConfigurationList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeValidatingWebhookConfigurationList.GVK, + ...toJson_KubeValidatingWebhookConfigurationListProps(resolved), + }; + } +} + +/** + * Storage version of a specific resource. + * + * @schema io.k8s.api.apiserverinternal.v1alpha1.StorageVersion + */ +export class KubeStorageVersionV1Alpha1 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'internal.apiserver.k8s.io/v1alpha1', + kind: 'StorageVersion', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.apiserverinternal.v1alpha1.StorageVersion". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeStorageVersionV1Alpha1Props): any { + return { + ...KubeStorageVersionV1Alpha1.GVK, + ...toJson_KubeStorageVersionV1Alpha1Props(props), + }; + } + + /** + * Defines a "io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeStorageVersionV1Alpha1Props) { + super(scope, id, { + ...KubeStorageVersionV1Alpha1.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeStorageVersionV1Alpha1.GVK, + ...toJson_KubeStorageVersionV1Alpha1Props(resolved), + }; + } +} + +/** + * A list of StorageVersions. + * + * @schema io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList + */ +export class KubeStorageVersionListV1Alpha1 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'internal.apiserver.k8s.io/v1alpha1', + kind: 'StorageVersionList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeStorageVersionListV1Alpha1Props): any { + return { + ...KubeStorageVersionListV1Alpha1.GVK, + ...toJson_KubeStorageVersionListV1Alpha1Props(props), + }; + } + + /** + * Defines a "io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeStorageVersionListV1Alpha1Props) { + super(scope, id, { + ...KubeStorageVersionListV1Alpha1.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeStorageVersionListV1Alpha1.GVK, + ...toJson_KubeStorageVersionListV1Alpha1Props(resolved), + }; + } +} + +/** + * ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. + * + * @schema io.k8s.api.apps.v1.ControllerRevision + */ +export class KubeControllerRevision extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.apps.v1.ControllerRevision" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'apps/v1', + kind: 'ControllerRevision', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.ControllerRevision". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeControllerRevisionProps): any { + return { + ...KubeControllerRevision.GVK, + ...toJson_KubeControllerRevisionProps(props), + }; + } + + /** + * Defines a "io.k8s.api.apps.v1.ControllerRevision" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeControllerRevisionProps) { + super(scope, id, { + ...KubeControllerRevision.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeControllerRevision.GVK, + ...toJson_KubeControllerRevisionProps(resolved), + }; + } +} + +/** + * ControllerRevisionList is a resource containing a list of ControllerRevision objects. + * + * @schema io.k8s.api.apps.v1.ControllerRevisionList + */ +export class KubeControllerRevisionList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.apps.v1.ControllerRevisionList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'apps/v1', + kind: 'ControllerRevisionList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.ControllerRevisionList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeControllerRevisionListProps): any { + return { + ...KubeControllerRevisionList.GVK, + ...toJson_KubeControllerRevisionListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.apps.v1.ControllerRevisionList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeControllerRevisionListProps) { + super(scope, id, { + ...KubeControllerRevisionList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeControllerRevisionList.GVK, + ...toJson_KubeControllerRevisionListProps(resolved), + }; + } +} + +/** + * DaemonSet represents the configuration of a daemon set. + * + * @schema io.k8s.api.apps.v1.DaemonSet + */ +export class KubeDaemonSet extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.apps.v1.DaemonSet" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'apps/v1', + kind: 'DaemonSet', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.DaemonSet". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeDaemonSetProps = {}): any { + return { + ...KubeDaemonSet.GVK, + ...toJson_KubeDaemonSetProps(props), + }; + } + + /** + * Defines a "io.k8s.api.apps.v1.DaemonSet" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeDaemonSetProps = {}) { + super(scope, id, { + ...KubeDaemonSet.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeDaemonSet.GVK, + ...toJson_KubeDaemonSetProps(resolved), + }; + } +} + +/** + * DaemonSetList is a collection of daemon sets. + * + * @schema io.k8s.api.apps.v1.DaemonSetList + */ +export class KubeDaemonSetList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.apps.v1.DaemonSetList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'apps/v1', + kind: 'DaemonSetList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.DaemonSetList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeDaemonSetListProps): any { + return { + ...KubeDaemonSetList.GVK, + ...toJson_KubeDaemonSetListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.apps.v1.DaemonSetList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeDaemonSetListProps) { + super(scope, id, { + ...KubeDaemonSetList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeDaemonSetList.GVK, + ...toJson_KubeDaemonSetListProps(resolved), + }; + } +} + +/** + * Deployment enables declarative updates for Pods and ReplicaSets. + * + * @schema io.k8s.api.apps.v1.Deployment + */ +export class KubeDeployment extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.apps.v1.Deployment" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'apps/v1', + kind: 'Deployment', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.Deployment". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeDeploymentProps = {}): any { + return { + ...KubeDeployment.GVK, + ...toJson_KubeDeploymentProps(props), + }; + } + + /** + * Defines a "io.k8s.api.apps.v1.Deployment" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeDeploymentProps = {}) { + super(scope, id, { + ...KubeDeployment.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeDeployment.GVK, + ...toJson_KubeDeploymentProps(resolved), + }; + } +} + +/** + * DeploymentList is a list of Deployments. + * + * @schema io.k8s.api.apps.v1.DeploymentList + */ +export class KubeDeploymentList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.apps.v1.DeploymentList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'apps/v1', + kind: 'DeploymentList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.DeploymentList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeDeploymentListProps): any { + return { + ...KubeDeploymentList.GVK, + ...toJson_KubeDeploymentListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.apps.v1.DeploymentList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeDeploymentListProps) { + super(scope, id, { + ...KubeDeploymentList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeDeploymentList.GVK, + ...toJson_KubeDeploymentListProps(resolved), + }; + } +} + +/** + * ReplicaSet ensures that a specified number of pod replicas are running at any given time. + * + * @schema io.k8s.api.apps.v1.ReplicaSet + */ +export class KubeReplicaSet extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.apps.v1.ReplicaSet" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'apps/v1', + kind: 'ReplicaSet', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.ReplicaSet". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeReplicaSetProps = {}): any { + return { + ...KubeReplicaSet.GVK, + ...toJson_KubeReplicaSetProps(props), + }; + } + + /** + * Defines a "io.k8s.api.apps.v1.ReplicaSet" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeReplicaSetProps = {}) { + super(scope, id, { + ...KubeReplicaSet.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeReplicaSet.GVK, + ...toJson_KubeReplicaSetProps(resolved), + }; + } +} + +/** + * ReplicaSetList is a collection of ReplicaSets. + * + * @schema io.k8s.api.apps.v1.ReplicaSetList + */ +export class KubeReplicaSetList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.apps.v1.ReplicaSetList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'apps/v1', + kind: 'ReplicaSetList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.ReplicaSetList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeReplicaSetListProps): any { + return { + ...KubeReplicaSetList.GVK, + ...toJson_KubeReplicaSetListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.apps.v1.ReplicaSetList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeReplicaSetListProps) { + super(scope, id, { + ...KubeReplicaSetList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeReplicaSetList.GVK, + ...toJson_KubeReplicaSetListProps(resolved), + }; + } +} + +/** + * StatefulSet represents a set of pods with consistent identities. Identities are defined as: + - Network: A single stable DNS and hostname. + - Storage: As many VolumeClaims as requested. + +The StatefulSet guarantees that a given network identity will always map to the same storage identity. + * + * @schema io.k8s.api.apps.v1.StatefulSet + */ +export class KubeStatefulSet extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.apps.v1.StatefulSet" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'apps/v1', + kind: 'StatefulSet', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.StatefulSet". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeStatefulSetProps = {}): any { + return { + ...KubeStatefulSet.GVK, + ...toJson_KubeStatefulSetProps(props), + }; + } + + /** + * Defines a "io.k8s.api.apps.v1.StatefulSet" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeStatefulSetProps = {}) { + super(scope, id, { + ...KubeStatefulSet.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeStatefulSet.GVK, + ...toJson_KubeStatefulSetProps(resolved), + }; + } +} + +/** + * StatefulSetList is a collection of StatefulSets. + * + * @schema io.k8s.api.apps.v1.StatefulSetList + */ +export class KubeStatefulSetList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.apps.v1.StatefulSetList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'apps/v1', + kind: 'StatefulSetList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.apps.v1.StatefulSetList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeStatefulSetListProps): any { + return { + ...KubeStatefulSetList.GVK, + ...toJson_KubeStatefulSetListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.apps.v1.StatefulSetList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeStatefulSetListProps) { + super(scope, id, { + ...KubeStatefulSetList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeStatefulSetList.GVK, + ...toJson_KubeStatefulSetListProps(resolved), + }; + } +} + +/** + * TokenRequest requests a token for a given service account. + * + * @schema io.k8s.api.authentication.v1.TokenRequest + */ +export class KubeTokenRequest extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.authentication.v1.TokenRequest" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'authentication.k8s.io/v1', + kind: 'TokenRequest', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.authentication.v1.TokenRequest". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeTokenRequestProps): any { + return { + ...KubeTokenRequest.GVK, + ...toJson_KubeTokenRequestProps(props), + }; + } + + /** + * Defines a "io.k8s.api.authentication.v1.TokenRequest" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeTokenRequestProps) { + super(scope, id, { + ...KubeTokenRequest.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeTokenRequest.GVK, + ...toJson_KubeTokenRequestProps(resolved), + }; + } +} + +/** + * TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver. + * + * @schema io.k8s.api.authentication.v1.TokenReview + */ +export class KubeTokenReview extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.authentication.v1.TokenReview" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'authentication.k8s.io/v1', + kind: 'TokenReview', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.authentication.v1.TokenReview". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeTokenReviewProps): any { + return { + ...KubeTokenReview.GVK, + ...toJson_KubeTokenReviewProps(props), + }; + } + + /** + * Defines a "io.k8s.api.authentication.v1.TokenReview" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeTokenReviewProps) { + super(scope, id, { + ...KubeTokenReview.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeTokenReview.GVK, + ...toJson_KubeTokenReviewProps(resolved), + }; + } +} + +/** + * LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking. + * + * @schema io.k8s.api.authorization.v1.LocalSubjectAccessReview + */ +export class KubeLocalSubjectAccessReview extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.authorization.v1.LocalSubjectAccessReview" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'authorization.k8s.io/v1', + kind: 'LocalSubjectAccessReview', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.authorization.v1.LocalSubjectAccessReview". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeLocalSubjectAccessReviewProps): any { + return { + ...KubeLocalSubjectAccessReview.GVK, + ...toJson_KubeLocalSubjectAccessReviewProps(props), + }; + } + + /** + * Defines a "io.k8s.api.authorization.v1.LocalSubjectAccessReview" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeLocalSubjectAccessReviewProps) { + super(scope, id, { + ...KubeLocalSubjectAccessReview.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeLocalSubjectAccessReview.GVK, + ...toJson_KubeLocalSubjectAccessReviewProps(resolved), + }; + } +} + +/** + * 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 + * + * @schema io.k8s.api.authorization.v1.SelfSubjectAccessReview + */ +export class KubeSelfSubjectAccessReview extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.authorization.v1.SelfSubjectAccessReview" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'authorization.k8s.io/v1', + kind: 'SelfSubjectAccessReview', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.authorization.v1.SelfSubjectAccessReview". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeSelfSubjectAccessReviewProps): any { + return { + ...KubeSelfSubjectAccessReview.GVK, + ...toJson_KubeSelfSubjectAccessReviewProps(props), + }; + } + + /** + * Defines a "io.k8s.api.authorization.v1.SelfSubjectAccessReview" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeSelfSubjectAccessReviewProps) { + super(scope, id, { + ...KubeSelfSubjectAccessReview.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeSelfSubjectAccessReview.GVK, + ...toJson_KubeSelfSubjectAccessReviewProps(resolved), + }; + } +} + +/** + * SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. + * + * @schema io.k8s.api.authorization.v1.SelfSubjectRulesReview + */ +export class KubeSelfSubjectRulesReview extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.authorization.v1.SelfSubjectRulesReview" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'authorization.k8s.io/v1', + kind: 'SelfSubjectRulesReview', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.authorization.v1.SelfSubjectRulesReview". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeSelfSubjectRulesReviewProps): any { + return { + ...KubeSelfSubjectRulesReview.GVK, + ...toJson_KubeSelfSubjectRulesReviewProps(props), + }; + } + + /** + * Defines a "io.k8s.api.authorization.v1.SelfSubjectRulesReview" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeSelfSubjectRulesReviewProps) { + super(scope, id, { + ...KubeSelfSubjectRulesReview.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeSelfSubjectRulesReview.GVK, + ...toJson_KubeSelfSubjectRulesReviewProps(resolved), + }; + } +} + +/** + * SubjectAccessReview checks whether or not a user or group can perform an action. + * + * @schema io.k8s.api.authorization.v1.SubjectAccessReview + */ +export class KubeSubjectAccessReview extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.authorization.v1.SubjectAccessReview" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'authorization.k8s.io/v1', + kind: 'SubjectAccessReview', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.authorization.v1.SubjectAccessReview". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeSubjectAccessReviewProps): any { + return { + ...KubeSubjectAccessReview.GVK, + ...toJson_KubeSubjectAccessReviewProps(props), + }; + } + + /** + * Defines a "io.k8s.api.authorization.v1.SubjectAccessReview" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeSubjectAccessReviewProps) { + super(scope, id, { + ...KubeSubjectAccessReview.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeSubjectAccessReview.GVK, + ...toJson_KubeSubjectAccessReviewProps(resolved), + }; + } +} + +/** + * configuration of a horizontal pod autoscaler. + * + * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler + */ +export class KubeHorizontalPodAutoscaler extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'autoscaling/v1', + kind: 'HorizontalPodAutoscaler', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeHorizontalPodAutoscalerProps = {}): any { + return { + ...KubeHorizontalPodAutoscaler.GVK, + ...toJson_KubeHorizontalPodAutoscalerProps(props), + }; + } + + /** + * Defines a "io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeHorizontalPodAutoscalerProps = {}) { + super(scope, id, { + ...KubeHorizontalPodAutoscaler.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeHorizontalPodAutoscaler.GVK, + ...toJson_KubeHorizontalPodAutoscalerProps(resolved), + }; + } +} + +/** + * list of horizontal pod autoscaler objects. + * + * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList + */ +export class KubeHorizontalPodAutoscalerList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'autoscaling/v1', + kind: 'HorizontalPodAutoscalerList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeHorizontalPodAutoscalerListProps): any { + return { + ...KubeHorizontalPodAutoscalerList.GVK, + ...toJson_KubeHorizontalPodAutoscalerListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeHorizontalPodAutoscalerListProps) { + super(scope, id, { + ...KubeHorizontalPodAutoscalerList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeHorizontalPodAutoscalerList.GVK, + ...toJson_KubeHorizontalPodAutoscalerListProps(resolved), + }; + } +} + +/** + * Scale represents a scaling request for a resource. + * + * @schema io.k8s.api.autoscaling.v1.Scale + */ +export class KubeScale extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.autoscaling.v1.Scale" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'autoscaling/v1', + kind: 'Scale', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.autoscaling.v1.Scale". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeScaleProps = {}): any { + return { + ...KubeScale.GVK, + ...toJson_KubeScaleProps(props), + }; + } + + /** + * Defines a "io.k8s.api.autoscaling.v1.Scale" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeScaleProps = {}) { + super(scope, id, { + ...KubeScale.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeScale.GVK, + ...toJson_KubeScaleProps(resolved), + }; + } +} + +/** + * HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. + * + * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler + */ +export class KubeHorizontalPodAutoscalerV2 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'autoscaling/v2', + kind: 'HorizontalPodAutoscaler', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeHorizontalPodAutoscalerV2Props = {}): any { + return { + ...KubeHorizontalPodAutoscalerV2.GVK, + ...toJson_KubeHorizontalPodAutoscalerV2Props(props), + }; + } + + /** + * Defines a "io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeHorizontalPodAutoscalerV2Props = {}) { + super(scope, id, { + ...KubeHorizontalPodAutoscalerV2.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeHorizontalPodAutoscalerV2.GVK, + ...toJson_KubeHorizontalPodAutoscalerV2Props(resolved), + }; + } +} + +/** + * HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. + * + * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerList + */ +export class KubeHorizontalPodAutoscalerListV2 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'autoscaling/v2', + kind: 'HorizontalPodAutoscalerList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeHorizontalPodAutoscalerListV2Props): any { + return { + ...KubeHorizontalPodAutoscalerListV2.GVK, + ...toJson_KubeHorizontalPodAutoscalerListV2Props(props), + }; + } + + /** + * Defines a "io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeHorizontalPodAutoscalerListV2Props) { + super(scope, id, { + ...KubeHorizontalPodAutoscalerListV2.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeHorizontalPodAutoscalerListV2.GVK, + ...toJson_KubeHorizontalPodAutoscalerListV2Props(resolved), + }; + } +} + +/** + * HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. + * + * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler + */ +export class KubeHorizontalPodAutoscalerV2Beta2 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'autoscaling/v2beta2', + kind: 'HorizontalPodAutoscaler', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeHorizontalPodAutoscalerV2Beta2Props = {}): any { + return { + ...KubeHorizontalPodAutoscalerV2Beta2.GVK, + ...toJson_KubeHorizontalPodAutoscalerV2Beta2Props(props), + }; + } + + /** + * Defines a "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeHorizontalPodAutoscalerV2Beta2Props = {}) { + super(scope, id, { + ...KubeHorizontalPodAutoscalerV2Beta2.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeHorizontalPodAutoscalerV2Beta2.GVK, + ...toJson_KubeHorizontalPodAutoscalerV2Beta2Props(resolved), + }; + } +} + +/** + * HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. + * + * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerList + */ +export class KubeHorizontalPodAutoscalerListV2Beta2 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'autoscaling/v2beta2', + kind: 'HorizontalPodAutoscalerList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeHorizontalPodAutoscalerListV2Beta2Props): any { + return { + ...KubeHorizontalPodAutoscalerListV2Beta2.GVK, + ...toJson_KubeHorizontalPodAutoscalerListV2Beta2Props(props), + }; + } + + /** + * Defines a "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeHorizontalPodAutoscalerListV2Beta2Props) { + super(scope, id, { + ...KubeHorizontalPodAutoscalerListV2Beta2.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeHorizontalPodAutoscalerListV2Beta2.GVK, + ...toJson_KubeHorizontalPodAutoscalerListV2Beta2Props(resolved), + }; + } +} + +/** + * CronJob represents the configuration of a single cron job. + * + * @schema io.k8s.api.batch.v1.CronJob + */ +export class KubeCronJob extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.batch.v1.CronJob" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'batch/v1', + kind: 'CronJob', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.batch.v1.CronJob". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeCronJobProps = {}): any { + return { + ...KubeCronJob.GVK, + ...toJson_KubeCronJobProps(props), + }; + } + + /** + * Defines a "io.k8s.api.batch.v1.CronJob" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeCronJobProps = {}) { + super(scope, id, { + ...KubeCronJob.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeCronJob.GVK, + ...toJson_KubeCronJobProps(resolved), + }; + } +} + +/** + * CronJobList is a collection of cron jobs. + * + * @schema io.k8s.api.batch.v1.CronJobList + */ +export class KubeCronJobList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.batch.v1.CronJobList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'batch/v1', + kind: 'CronJobList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.batch.v1.CronJobList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeCronJobListProps): any { + return { + ...KubeCronJobList.GVK, + ...toJson_KubeCronJobListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.batch.v1.CronJobList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeCronJobListProps) { + super(scope, id, { + ...KubeCronJobList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeCronJobList.GVK, + ...toJson_KubeCronJobListProps(resolved), + }; + } +} + +/** + * Job represents the configuration of a single job. + * + * @schema io.k8s.api.batch.v1.Job + */ +export class KubeJob extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.batch.v1.Job" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'batch/v1', + kind: 'Job', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.batch.v1.Job". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeJobProps = {}): any { + return { + ...KubeJob.GVK, + ...toJson_KubeJobProps(props), + }; + } + + /** + * Defines a "io.k8s.api.batch.v1.Job" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeJobProps = {}) { + super(scope, id, { + ...KubeJob.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeJob.GVK, + ...toJson_KubeJobProps(resolved), + }; + } +} + +/** + * JobList is a collection of jobs. + * + * @schema io.k8s.api.batch.v1.JobList + */ +export class KubeJobList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.batch.v1.JobList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'batch/v1', + kind: 'JobList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.batch.v1.JobList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeJobListProps): any { + return { + ...KubeJobList.GVK, + ...toJson_KubeJobListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.batch.v1.JobList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeJobListProps) { + super(scope, id, { + ...KubeJobList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeJobList.GVK, + ...toJson_KubeJobListProps(resolved), + }; + } +} + +/** + * CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued. + +Kubelets use this API to obtain: + 1. client certificates to authenticate to kube-apiserver (with the "kubernetes.io/kube-apiserver-client-kubelet" signerName). + 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the "kubernetes.io/kubelet-serving" signerName). + +This API can be used to request client certificates to authenticate to kube-apiserver (with the "kubernetes.io/kube-apiserver-client" signerName), or to obtain certificates from custom non-Kubernetes signers. + * + * @schema io.k8s.api.certificates.v1.CertificateSigningRequest + */ +export class KubeCertificateSigningRequest extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.certificates.v1.CertificateSigningRequest" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'certificates.k8s.io/v1', + kind: 'CertificateSigningRequest', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.certificates.v1.CertificateSigningRequest". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeCertificateSigningRequestProps): any { + return { + ...KubeCertificateSigningRequest.GVK, + ...toJson_KubeCertificateSigningRequestProps(props), + }; + } + + /** + * Defines a "io.k8s.api.certificates.v1.CertificateSigningRequest" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeCertificateSigningRequestProps) { + super(scope, id, { + ...KubeCertificateSigningRequest.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeCertificateSigningRequest.GVK, + ...toJson_KubeCertificateSigningRequestProps(resolved), + }; + } +} + +/** + * CertificateSigningRequestList is a collection of CertificateSigningRequest objects + * + * @schema io.k8s.api.certificates.v1.CertificateSigningRequestList + */ +export class KubeCertificateSigningRequestList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.certificates.v1.CertificateSigningRequestList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'certificates.k8s.io/v1', + kind: 'CertificateSigningRequestList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.certificates.v1.CertificateSigningRequestList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeCertificateSigningRequestListProps): any { + return { + ...KubeCertificateSigningRequestList.GVK, + ...toJson_KubeCertificateSigningRequestListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.certificates.v1.CertificateSigningRequestList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeCertificateSigningRequestListProps) { + super(scope, id, { + ...KubeCertificateSigningRequestList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeCertificateSigningRequestList.GVK, + ...toJson_KubeCertificateSigningRequestListProps(resolved), + }; + } +} + +/** + * Lease defines a lease concept. + * + * @schema io.k8s.api.coordination.v1.Lease + */ +export class KubeLease extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.coordination.v1.Lease" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'coordination.k8s.io/v1', + kind: 'Lease', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.coordination.v1.Lease". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeLeaseProps = {}): any { + return { + ...KubeLease.GVK, + ...toJson_KubeLeaseProps(props), + }; + } + + /** + * Defines a "io.k8s.api.coordination.v1.Lease" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeLeaseProps = {}) { + super(scope, id, { + ...KubeLease.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeLease.GVK, + ...toJson_KubeLeaseProps(resolved), + }; + } +} + +/** + * LeaseList is a list of Lease objects. + * + * @schema io.k8s.api.coordination.v1.LeaseList + */ +export class KubeLeaseList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.coordination.v1.LeaseList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'coordination.k8s.io/v1', + kind: 'LeaseList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.coordination.v1.LeaseList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeLeaseListProps): any { + return { + ...KubeLeaseList.GVK, + ...toJson_KubeLeaseListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.coordination.v1.LeaseList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeLeaseListProps) { + super(scope, id, { + ...KubeLeaseList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeLeaseList.GVK, + ...toJson_KubeLeaseListProps(resolved), + }; + } +} + +/** + * Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead. + * + * @schema io.k8s.api.core.v1.Binding + */ +export class KubeBinding extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.Binding" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'Binding', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.Binding". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeBindingProps): any { + return { + ...KubeBinding.GVK, + ...toJson_KubeBindingProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.Binding" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeBindingProps) { + super(scope, id, { + ...KubeBinding.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeBinding.GVK, + ...toJson_KubeBindingProps(resolved), + }; + } +} + +/** + * ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+ + * + * @schema io.k8s.api.core.v1.ComponentStatus + */ +export class KubeComponentStatus extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.ComponentStatus" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'ComponentStatus', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ComponentStatus". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeComponentStatusProps = {}): any { + return { + ...KubeComponentStatus.GVK, + ...toJson_KubeComponentStatusProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.ComponentStatus" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeComponentStatusProps = {}) { + super(scope, id, { + ...KubeComponentStatus.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeComponentStatus.GVK, + ...toJson_KubeComponentStatusProps(resolved), + }; + } +} + +/** + * Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+ + * + * @schema io.k8s.api.core.v1.ComponentStatusList + */ +export class KubeComponentStatusList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.ComponentStatusList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'ComponentStatusList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ComponentStatusList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeComponentStatusListProps): any { + return { + ...KubeComponentStatusList.GVK, + ...toJson_KubeComponentStatusListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.ComponentStatusList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeComponentStatusListProps) { + super(scope, id, { + ...KubeComponentStatusList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeComponentStatusList.GVK, + ...toJson_KubeComponentStatusListProps(resolved), + }; + } +} + +/** + * ConfigMap holds configuration data for pods to consume. + * + * @schema io.k8s.api.core.v1.ConfigMap + */ +export class KubeConfigMap extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.ConfigMap" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'ConfigMap', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ConfigMap". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeConfigMapProps = {}): any { + return { + ...KubeConfigMap.GVK, + ...toJson_KubeConfigMapProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.ConfigMap" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeConfigMapProps = {}) { + super(scope, id, { + ...KubeConfigMap.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeConfigMap.GVK, + ...toJson_KubeConfigMapProps(resolved), + }; + } +} + +/** + * ConfigMapList is a resource containing a list of ConfigMap objects. + * + * @schema io.k8s.api.core.v1.ConfigMapList + */ +export class KubeConfigMapList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.ConfigMapList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'ConfigMapList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ConfigMapList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeConfigMapListProps): any { + return { + ...KubeConfigMapList.GVK, + ...toJson_KubeConfigMapListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.ConfigMapList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeConfigMapListProps) { + super(scope, id, { + ...KubeConfigMapList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeConfigMapList.GVK, + ...toJson_KubeConfigMapListProps(resolved), + }; + } +} + +/** + * Endpoints is a collection of endpoints that implement the actual service. Example: + + Name: "mysvc", + Subsets: [ + { + Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], + Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] + }, + { + Addresses: [{"ip": "10.10.3.3"}], + Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}] + }, + ] + * + * @schema io.k8s.api.core.v1.Endpoints + */ +export class KubeEndpoints extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.Endpoints" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'Endpoints', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.Endpoints". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeEndpointsProps = {}): any { + return { + ...KubeEndpoints.GVK, + ...toJson_KubeEndpointsProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.Endpoints" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeEndpointsProps = {}) { + super(scope, id, { + ...KubeEndpoints.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeEndpoints.GVK, + ...toJson_KubeEndpointsProps(resolved), + }; + } +} + +/** + * EndpointsList is a list of endpoints. + * + * @schema io.k8s.api.core.v1.EndpointsList + */ +export class KubeEndpointsList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.EndpointsList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'EndpointsList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.EndpointsList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeEndpointsListProps): any { + return { + ...KubeEndpointsList.GVK, + ...toJson_KubeEndpointsListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.EndpointsList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeEndpointsListProps) { + super(scope, id, { + ...KubeEndpointsList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeEndpointsList.GVK, + ...toJson_KubeEndpointsListProps(resolved), + }; + } +} + +/** + * Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data. + * + * @schema io.k8s.api.events.v1.Event + */ +export class KubeEvent extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.events.v1.Event" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'events.k8s.io/v1', + kind: 'Event', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.events.v1.Event". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeEventProps): any { + return { + ...KubeEvent.GVK, + ...toJson_KubeEventProps(props), + }; + } + + /** + * Defines a "io.k8s.api.events.v1.Event" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeEventProps) { + super(scope, id, { + ...KubeEvent.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeEvent.GVK, + ...toJson_KubeEventProps(resolved), + }; + } +} + +/** + * EventList is a list of Event objects. + * + * @schema io.k8s.api.events.v1.EventList + */ +export class KubeEventList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.events.v1.EventList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'events.k8s.io/v1', + kind: 'EventList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.events.v1.EventList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeEventListProps): any { + return { + ...KubeEventList.GVK, + ...toJson_KubeEventListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.events.v1.EventList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeEventListProps) { + super(scope, id, { + ...KubeEventList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeEventList.GVK, + ...toJson_KubeEventListProps(resolved), + }; + } +} + +/** + * LimitRange sets resource usage limits for each kind of resource in a Namespace. + * + * @schema io.k8s.api.core.v1.LimitRange + */ +export class KubeLimitRange extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.LimitRange" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'LimitRange', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.LimitRange". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeLimitRangeProps = {}): any { + return { + ...KubeLimitRange.GVK, + ...toJson_KubeLimitRangeProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.LimitRange" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeLimitRangeProps = {}) { + super(scope, id, { + ...KubeLimitRange.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeLimitRange.GVK, + ...toJson_KubeLimitRangeProps(resolved), + }; + } +} + +/** + * LimitRangeList is a list of LimitRange items. + * + * @schema io.k8s.api.core.v1.LimitRangeList + */ +export class KubeLimitRangeList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.LimitRangeList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'LimitRangeList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.LimitRangeList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeLimitRangeListProps): any { + return { + ...KubeLimitRangeList.GVK, + ...toJson_KubeLimitRangeListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.LimitRangeList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeLimitRangeListProps) { + super(scope, id, { + ...KubeLimitRangeList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeLimitRangeList.GVK, + ...toJson_KubeLimitRangeListProps(resolved), + }; + } +} + +/** + * Namespace provides a scope for Names. Use of multiple namespaces is optional. + * + * @schema io.k8s.api.core.v1.Namespace + */ +export class KubeNamespace extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.Namespace" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'Namespace', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.Namespace". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeNamespaceProps = {}): any { + return { + ...KubeNamespace.GVK, + ...toJson_KubeNamespaceProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.Namespace" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeNamespaceProps = {}) { + super(scope, id, { + ...KubeNamespace.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeNamespace.GVK, + ...toJson_KubeNamespaceProps(resolved), + }; + } +} + +/** + * NamespaceList is a list of Namespaces. + * + * @schema io.k8s.api.core.v1.NamespaceList + */ +export class KubeNamespaceList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.NamespaceList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'NamespaceList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.NamespaceList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeNamespaceListProps): any { + return { + ...KubeNamespaceList.GVK, + ...toJson_KubeNamespaceListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.NamespaceList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeNamespaceListProps) { + super(scope, id, { + ...KubeNamespaceList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeNamespaceList.GVK, + ...toJson_KubeNamespaceListProps(resolved), + }; + } +} + +/** + * Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd). + * + * @schema io.k8s.api.core.v1.Node + */ +export class KubeNode extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.Node" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'Node', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.Node". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeNodeProps = {}): any { + return { + ...KubeNode.GVK, + ...toJson_KubeNodeProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.Node" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeNodeProps = {}) { + super(scope, id, { + ...KubeNode.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeNode.GVK, + ...toJson_KubeNodeProps(resolved), + }; + } +} + +/** + * NodeList is the whole list of all Nodes which have been registered with master. + * + * @schema io.k8s.api.core.v1.NodeList + */ +export class KubeNodeList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.NodeList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'NodeList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.NodeList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeNodeListProps): any { + return { + ...KubeNodeList.GVK, + ...toJson_KubeNodeListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.NodeList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeNodeListProps) { + super(scope, id, { + ...KubeNodeList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeNodeList.GVK, + ...toJson_KubeNodeListProps(resolved), + }; + } +} + +/** + * PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes + * + * @schema io.k8s.api.core.v1.PersistentVolume + */ +export class KubePersistentVolume extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.PersistentVolume" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'PersistentVolume', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.PersistentVolume". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubePersistentVolumeProps = {}): any { + return { + ...KubePersistentVolume.GVK, + ...toJson_KubePersistentVolumeProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.PersistentVolume" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubePersistentVolumeProps = {}) { + super(scope, id, { + ...KubePersistentVolume.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubePersistentVolume.GVK, + ...toJson_KubePersistentVolumeProps(resolved), + }; + } +} + +/** + * PersistentVolumeClaim is a user's request for and claim to a persistent volume + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaim + */ +export class KubePersistentVolumeClaim extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.PersistentVolumeClaim" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'PersistentVolumeClaim', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.PersistentVolumeClaim". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubePersistentVolumeClaimProps = {}): any { + return { + ...KubePersistentVolumeClaim.GVK, + ...toJson_KubePersistentVolumeClaimProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.PersistentVolumeClaim" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubePersistentVolumeClaimProps = {}) { + super(scope, id, { + ...KubePersistentVolumeClaim.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubePersistentVolumeClaim.GVK, + ...toJson_KubePersistentVolumeClaimProps(resolved), + }; + } +} + +/** + * PersistentVolumeClaimList is a list of PersistentVolumeClaim items. + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimList + */ +export class KubePersistentVolumeClaimList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.PersistentVolumeClaimList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'PersistentVolumeClaimList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.PersistentVolumeClaimList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubePersistentVolumeClaimListProps): any { + return { + ...KubePersistentVolumeClaimList.GVK, + ...toJson_KubePersistentVolumeClaimListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.PersistentVolumeClaimList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubePersistentVolumeClaimListProps) { + super(scope, id, { + ...KubePersistentVolumeClaimList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubePersistentVolumeClaimList.GVK, + ...toJson_KubePersistentVolumeClaimListProps(resolved), + }; + } +} + +/** + * PersistentVolumeList is a list of PersistentVolume items. + * + * @schema io.k8s.api.core.v1.PersistentVolumeList + */ +export class KubePersistentVolumeList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.PersistentVolumeList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'PersistentVolumeList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.PersistentVolumeList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubePersistentVolumeListProps): any { + return { + ...KubePersistentVolumeList.GVK, + ...toJson_KubePersistentVolumeListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.PersistentVolumeList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubePersistentVolumeListProps) { + super(scope, id, { + ...KubePersistentVolumeList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubePersistentVolumeList.GVK, + ...toJson_KubePersistentVolumeListProps(resolved), + }; + } +} + +/** + * Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts. + * + * @schema io.k8s.api.core.v1.Pod + */ +export class KubePod extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.Pod" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'Pod', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.Pod". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubePodProps = {}): any { + return { + ...KubePod.GVK, + ...toJson_KubePodProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.Pod" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubePodProps = {}) { + super(scope, id, { + ...KubePod.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubePod.GVK, + ...toJson_KubePodProps(resolved), + }; + } +} + +/** + * PodList is a list of Pods. + * + * @schema io.k8s.api.core.v1.PodList + */ +export class KubePodList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.PodList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'PodList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.PodList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubePodListProps): any { + return { + ...KubePodList.GVK, + ...toJson_KubePodListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.PodList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubePodListProps) { + super(scope, id, { + ...KubePodList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubePodList.GVK, + ...toJson_KubePodListProps(resolved), + }; + } +} + +/** + * PodTemplate describes a template for creating copies of a predefined pod. + * + * @schema io.k8s.api.core.v1.PodTemplate + */ +export class KubePodTemplate extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.PodTemplate" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'PodTemplate', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.PodTemplate". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubePodTemplateProps = {}): any { + return { + ...KubePodTemplate.GVK, + ...toJson_KubePodTemplateProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.PodTemplate" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubePodTemplateProps = {}) { + super(scope, id, { + ...KubePodTemplate.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubePodTemplate.GVK, + ...toJson_KubePodTemplateProps(resolved), + }; + } +} + +/** + * PodTemplateList is a list of PodTemplates. + * + * @schema io.k8s.api.core.v1.PodTemplateList + */ +export class KubePodTemplateList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.PodTemplateList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'PodTemplateList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.PodTemplateList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubePodTemplateListProps): any { + return { + ...KubePodTemplateList.GVK, + ...toJson_KubePodTemplateListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.PodTemplateList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubePodTemplateListProps) { + super(scope, id, { + ...KubePodTemplateList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubePodTemplateList.GVK, + ...toJson_KubePodTemplateListProps(resolved), + }; + } +} + +/** + * ReplicationController represents the configuration of a replication controller. + * + * @schema io.k8s.api.core.v1.ReplicationController + */ +export class KubeReplicationController extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.ReplicationController" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'ReplicationController', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ReplicationController". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeReplicationControllerProps = {}): any { + return { + ...KubeReplicationController.GVK, + ...toJson_KubeReplicationControllerProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.ReplicationController" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeReplicationControllerProps = {}) { + super(scope, id, { + ...KubeReplicationController.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeReplicationController.GVK, + ...toJson_KubeReplicationControllerProps(resolved), + }; + } +} + +/** + * ReplicationControllerList is a collection of replication controllers. + * + * @schema io.k8s.api.core.v1.ReplicationControllerList + */ +export class KubeReplicationControllerList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.ReplicationControllerList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'ReplicationControllerList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ReplicationControllerList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeReplicationControllerListProps): any { + return { + ...KubeReplicationControllerList.GVK, + ...toJson_KubeReplicationControllerListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.ReplicationControllerList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeReplicationControllerListProps) { + super(scope, id, { + ...KubeReplicationControllerList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeReplicationControllerList.GVK, + ...toJson_KubeReplicationControllerListProps(resolved), + }; + } +} + +/** + * ResourceQuota sets aggregate quota restrictions enforced per namespace + * + * @schema io.k8s.api.core.v1.ResourceQuota + */ +export class KubeResourceQuota extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.ResourceQuota" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'ResourceQuota', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ResourceQuota". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeResourceQuotaProps = {}): any { + return { + ...KubeResourceQuota.GVK, + ...toJson_KubeResourceQuotaProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.ResourceQuota" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeResourceQuotaProps = {}) { + super(scope, id, { + ...KubeResourceQuota.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeResourceQuota.GVK, + ...toJson_KubeResourceQuotaProps(resolved), + }; + } +} + +/** + * ResourceQuotaList is a list of ResourceQuota items. + * + * @schema io.k8s.api.core.v1.ResourceQuotaList + */ +export class KubeResourceQuotaList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.ResourceQuotaList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'ResourceQuotaList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ResourceQuotaList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeResourceQuotaListProps): any { + return { + ...KubeResourceQuotaList.GVK, + ...toJson_KubeResourceQuotaListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.ResourceQuotaList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeResourceQuotaListProps) { + super(scope, id, { + ...KubeResourceQuotaList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeResourceQuotaList.GVK, + ...toJson_KubeResourceQuotaListProps(resolved), + }; + } +} + +/** + * Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes. + * + * @schema io.k8s.api.core.v1.Secret + */ +export class KubeSecret extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.Secret" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'Secret', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.Secret". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeSecretProps = {}): any { + return { + ...KubeSecret.GVK, + ...toJson_KubeSecretProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.Secret" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeSecretProps = {}) { + super(scope, id, { + ...KubeSecret.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeSecret.GVK, + ...toJson_KubeSecretProps(resolved), + }; + } +} + +/** + * SecretList is a list of Secret. + * + * @schema io.k8s.api.core.v1.SecretList + */ +export class KubeSecretList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.SecretList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'SecretList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.SecretList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeSecretListProps): any { + return { + ...KubeSecretList.GVK, + ...toJson_KubeSecretListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.SecretList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeSecretListProps) { + super(scope, id, { + ...KubeSecretList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeSecretList.GVK, + ...toJson_KubeSecretListProps(resolved), + }; + } +} + +/** + * Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy. + * + * @schema io.k8s.api.core.v1.Service + */ +export class KubeService extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.Service" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'Service', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.Service". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeServiceProps = {}): any { + return { + ...KubeService.GVK, + ...toJson_KubeServiceProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.Service" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeServiceProps = {}) { + super(scope, id, { + ...KubeService.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeService.GVK, + ...toJson_KubeServiceProps(resolved), + }; + } +} + +/** + * ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets + * + * @schema io.k8s.api.core.v1.ServiceAccount + */ +export class KubeServiceAccount extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.ServiceAccount" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'ServiceAccount', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ServiceAccount". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeServiceAccountProps = {}): any { + return { + ...KubeServiceAccount.GVK, + ...toJson_KubeServiceAccountProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.ServiceAccount" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeServiceAccountProps = {}) { + super(scope, id, { + ...KubeServiceAccount.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeServiceAccount.GVK, + ...toJson_KubeServiceAccountProps(resolved), + }; + } +} + +/** + * ServiceAccountList is a list of ServiceAccount objects + * + * @schema io.k8s.api.core.v1.ServiceAccountList + */ +export class KubeServiceAccountList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.ServiceAccountList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'ServiceAccountList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ServiceAccountList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeServiceAccountListProps): any { + return { + ...KubeServiceAccountList.GVK, + ...toJson_KubeServiceAccountListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.ServiceAccountList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeServiceAccountListProps) { + super(scope, id, { + ...KubeServiceAccountList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeServiceAccountList.GVK, + ...toJson_KubeServiceAccountListProps(resolved), + }; + } +} + +/** + * ServiceList holds a list of services. + * + * @schema io.k8s.api.core.v1.ServiceList + */ +export class KubeServiceList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.core.v1.ServiceList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'ServiceList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.core.v1.ServiceList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeServiceListProps): any { + return { + ...KubeServiceList.GVK, + ...toJson_KubeServiceListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.core.v1.ServiceList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeServiceListProps) { + super(scope, id, { + ...KubeServiceList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeServiceList.GVK, + ...toJson_KubeServiceListProps(resolved), + }; + } +} + +/** + * EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints. + * + * @schema io.k8s.api.discovery.v1.EndpointSlice + */ +export class KubeEndpointSlice extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.discovery.v1.EndpointSlice" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'discovery.k8s.io/v1', + kind: 'EndpointSlice', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.discovery.v1.EndpointSlice". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeEndpointSliceProps): any { + return { + ...KubeEndpointSlice.GVK, + ...toJson_KubeEndpointSliceProps(props), + }; + } + + /** + * Defines a "io.k8s.api.discovery.v1.EndpointSlice" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeEndpointSliceProps) { + super(scope, id, { + ...KubeEndpointSlice.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeEndpointSlice.GVK, + ...toJson_KubeEndpointSliceProps(resolved), + }; + } +} + +/** + * EndpointSliceList represents a list of endpoint slices + * + * @schema io.k8s.api.discovery.v1.EndpointSliceList + */ +export class KubeEndpointSliceList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.discovery.v1.EndpointSliceList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'discovery.k8s.io/v1', + kind: 'EndpointSliceList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.discovery.v1.EndpointSliceList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeEndpointSliceListProps): any { + return { + ...KubeEndpointSliceList.GVK, + ...toJson_KubeEndpointSliceListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.discovery.v1.EndpointSliceList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeEndpointSliceListProps) { + super(scope, id, { + ...KubeEndpointSliceList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeEndpointSliceList.GVK, + ...toJson_KubeEndpointSliceListProps(resolved), + }; + } +} + +/** + * FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". + * + * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchema + */ +export class KubeFlowSchemaV1Beta1 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.flowcontrol.v1beta1.FlowSchema" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'flowcontrol.apiserver.k8s.io/v1beta1', + kind: 'FlowSchema', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.flowcontrol.v1beta1.FlowSchema". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeFlowSchemaV1Beta1Props = {}): any { + return { + ...KubeFlowSchemaV1Beta1.GVK, + ...toJson_KubeFlowSchemaV1Beta1Props(props), + }; + } + + /** + * Defines a "io.k8s.api.flowcontrol.v1beta1.FlowSchema" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeFlowSchemaV1Beta1Props = {}) { + super(scope, id, { + ...KubeFlowSchemaV1Beta1.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeFlowSchemaV1Beta1.GVK, + ...toJson_KubeFlowSchemaV1Beta1Props(resolved), + }; + } +} + +/** + * FlowSchemaList is a list of FlowSchema objects. + * + * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchemaList + */ +export class KubeFlowSchemaListV1Beta1 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.flowcontrol.v1beta1.FlowSchemaList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'flowcontrol.apiserver.k8s.io/v1beta1', + kind: 'FlowSchemaList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.flowcontrol.v1beta1.FlowSchemaList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeFlowSchemaListV1Beta1Props): any { + return { + ...KubeFlowSchemaListV1Beta1.GVK, + ...toJson_KubeFlowSchemaListV1Beta1Props(props), + }; + } + + /** + * Defines a "io.k8s.api.flowcontrol.v1beta1.FlowSchemaList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeFlowSchemaListV1Beta1Props) { + super(scope, id, { + ...KubeFlowSchemaListV1Beta1.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeFlowSchemaListV1Beta1.GVK, + ...toJson_KubeFlowSchemaListV1Beta1Props(resolved), + }; + } +} + +/** + * PriorityLevelConfiguration represents the configuration of a priority level. + * + * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration + */ +export class KubePriorityLevelConfigurationV1Beta1 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'flowcontrol.apiserver.k8s.io/v1beta1', + kind: 'PriorityLevelConfiguration', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubePriorityLevelConfigurationV1Beta1Props = {}): any { + return { + ...KubePriorityLevelConfigurationV1Beta1.GVK, + ...toJson_KubePriorityLevelConfigurationV1Beta1Props(props), + }; + } + + /** + * Defines a "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubePriorityLevelConfigurationV1Beta1Props = {}) { + super(scope, id, { + ...KubePriorityLevelConfigurationV1Beta1.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubePriorityLevelConfigurationV1Beta1.GVK, + ...toJson_KubePriorityLevelConfigurationV1Beta1Props(resolved), + }; + } +} + +/** + * PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. + * + * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationList + */ +export class KubePriorityLevelConfigurationListV1Beta1 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'flowcontrol.apiserver.k8s.io/v1beta1', + kind: 'PriorityLevelConfigurationList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubePriorityLevelConfigurationListV1Beta1Props): any { + return { + ...KubePriorityLevelConfigurationListV1Beta1.GVK, + ...toJson_KubePriorityLevelConfigurationListV1Beta1Props(props), + }; + } + + /** + * Defines a "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubePriorityLevelConfigurationListV1Beta1Props) { + super(scope, id, { + ...KubePriorityLevelConfigurationListV1Beta1.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubePriorityLevelConfigurationListV1Beta1.GVK, + ...toJson_KubePriorityLevelConfigurationListV1Beta1Props(resolved), + }; + } +} + +/** + * FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". + * + * @schema io.k8s.api.flowcontrol.v1beta2.FlowSchema + */ +export class KubeFlowSchemaV1Beta2 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.flowcontrol.v1beta2.FlowSchema" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'flowcontrol.apiserver.k8s.io/v1beta2', + kind: 'FlowSchema', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.flowcontrol.v1beta2.FlowSchema". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeFlowSchemaV1Beta2Props = {}): any { + return { + ...KubeFlowSchemaV1Beta2.GVK, + ...toJson_KubeFlowSchemaV1Beta2Props(props), + }; + } + + /** + * Defines a "io.k8s.api.flowcontrol.v1beta2.FlowSchema" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeFlowSchemaV1Beta2Props = {}) { + super(scope, id, { + ...KubeFlowSchemaV1Beta2.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeFlowSchemaV1Beta2.GVK, + ...toJson_KubeFlowSchemaV1Beta2Props(resolved), + }; + } +} + +/** + * FlowSchemaList is a list of FlowSchema objects. + * + * @schema io.k8s.api.flowcontrol.v1beta2.FlowSchemaList + */ +export class KubeFlowSchemaListV1Beta2 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.flowcontrol.v1beta2.FlowSchemaList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'flowcontrol.apiserver.k8s.io/v1beta2', + kind: 'FlowSchemaList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.flowcontrol.v1beta2.FlowSchemaList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeFlowSchemaListV1Beta2Props): any { + return { + ...KubeFlowSchemaListV1Beta2.GVK, + ...toJson_KubeFlowSchemaListV1Beta2Props(props), + }; + } + + /** + * Defines a "io.k8s.api.flowcontrol.v1beta2.FlowSchemaList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeFlowSchemaListV1Beta2Props) { + super(scope, id, { + ...KubeFlowSchemaListV1Beta2.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeFlowSchemaListV1Beta2.GVK, + ...toJson_KubeFlowSchemaListV1Beta2Props(resolved), + }; + } +} + +/** + * PriorityLevelConfiguration represents the configuration of a priority level. + * + * @schema io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration + */ +export class KubePriorityLevelConfigurationV1Beta2 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'flowcontrol.apiserver.k8s.io/v1beta2', + kind: 'PriorityLevelConfiguration', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubePriorityLevelConfigurationV1Beta2Props = {}): any { + return { + ...KubePriorityLevelConfigurationV1Beta2.GVK, + ...toJson_KubePriorityLevelConfigurationV1Beta2Props(props), + }; + } + + /** + * Defines a "io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubePriorityLevelConfigurationV1Beta2Props = {}) { + super(scope, id, { + ...KubePriorityLevelConfigurationV1Beta2.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubePriorityLevelConfigurationV1Beta2.GVK, + ...toJson_KubePriorityLevelConfigurationV1Beta2Props(resolved), + }; + } +} + +/** + * PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. + * + * @schema io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationList + */ +export class KubePriorityLevelConfigurationListV1Beta2 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'flowcontrol.apiserver.k8s.io/v1beta2', + kind: 'PriorityLevelConfigurationList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubePriorityLevelConfigurationListV1Beta2Props): any { + return { + ...KubePriorityLevelConfigurationListV1Beta2.GVK, + ...toJson_KubePriorityLevelConfigurationListV1Beta2Props(props), + }; + } + + /** + * Defines a "io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubePriorityLevelConfigurationListV1Beta2Props) { + super(scope, id, { + ...KubePriorityLevelConfigurationListV1Beta2.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubePriorityLevelConfigurationListV1Beta2.GVK, + ...toJson_KubePriorityLevelConfigurationListV1Beta2Props(resolved), + }; + } +} + +/** + * Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. + * + * @schema io.k8s.api.networking.v1.Ingress + */ +export class KubeIngress extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.networking.v1.Ingress" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'networking.k8s.io/v1', + kind: 'Ingress', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.networking.v1.Ingress". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeIngressProps = {}): any { + return { + ...KubeIngress.GVK, + ...toJson_KubeIngressProps(props), + }; + } + + /** + * Defines a "io.k8s.api.networking.v1.Ingress" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeIngressProps = {}) { + super(scope, id, { + ...KubeIngress.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeIngress.GVK, + ...toJson_KubeIngressProps(resolved), + }; + } +} + +/** + * IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class. + * + * @schema io.k8s.api.networking.v1.IngressClass + */ +export class KubeIngressClass extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.networking.v1.IngressClass" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'networking.k8s.io/v1', + kind: 'IngressClass', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.networking.v1.IngressClass". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeIngressClassProps = {}): any { + return { + ...KubeIngressClass.GVK, + ...toJson_KubeIngressClassProps(props), + }; + } + + /** + * Defines a "io.k8s.api.networking.v1.IngressClass" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeIngressClassProps = {}) { + super(scope, id, { + ...KubeIngressClass.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeIngressClass.GVK, + ...toJson_KubeIngressClassProps(resolved), + }; + } +} + +/** + * IngressClassList is a collection of IngressClasses. + * + * @schema io.k8s.api.networking.v1.IngressClassList + */ +export class KubeIngressClassList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.networking.v1.IngressClassList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'networking.k8s.io/v1', + kind: 'IngressClassList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.networking.v1.IngressClassList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeIngressClassListProps): any { + return { + ...KubeIngressClassList.GVK, + ...toJson_KubeIngressClassListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.networking.v1.IngressClassList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeIngressClassListProps) { + super(scope, id, { + ...KubeIngressClassList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeIngressClassList.GVK, + ...toJson_KubeIngressClassListProps(resolved), + }; + } +} + +/** + * IngressList is a collection of Ingress. + * + * @schema io.k8s.api.networking.v1.IngressList + */ +export class KubeIngressList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.networking.v1.IngressList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'networking.k8s.io/v1', + kind: 'IngressList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.networking.v1.IngressList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeIngressListProps): any { + return { + ...KubeIngressList.GVK, + ...toJson_KubeIngressListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.networking.v1.IngressList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeIngressListProps) { + super(scope, id, { + ...KubeIngressList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeIngressList.GVK, + ...toJson_KubeIngressListProps(resolved), + }; + } +} + +/** + * NetworkPolicy describes what network traffic is allowed for a set of Pods + * + * @schema io.k8s.api.networking.v1.NetworkPolicy + */ +export class KubeNetworkPolicy extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.networking.v1.NetworkPolicy" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'networking.k8s.io/v1', + kind: 'NetworkPolicy', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.networking.v1.NetworkPolicy". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeNetworkPolicyProps = {}): any { + return { + ...KubeNetworkPolicy.GVK, + ...toJson_KubeNetworkPolicyProps(props), + }; + } + + /** + * Defines a "io.k8s.api.networking.v1.NetworkPolicy" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeNetworkPolicyProps = {}) { + super(scope, id, { + ...KubeNetworkPolicy.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeNetworkPolicy.GVK, + ...toJson_KubeNetworkPolicyProps(resolved), + }; + } +} + +/** + * NetworkPolicyList is a list of NetworkPolicy objects. + * + * @schema io.k8s.api.networking.v1.NetworkPolicyList + */ +export class KubeNetworkPolicyList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.networking.v1.NetworkPolicyList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'networking.k8s.io/v1', + kind: 'NetworkPolicyList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.networking.v1.NetworkPolicyList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeNetworkPolicyListProps): any { + return { + ...KubeNetworkPolicyList.GVK, + ...toJson_KubeNetworkPolicyListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.networking.v1.NetworkPolicyList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeNetworkPolicyListProps) { + super(scope, id, { + ...KubeNetworkPolicyList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeNetworkPolicyList.GVK, + ...toJson_KubeNetworkPolicyListProps(resolved), + }; + } +} + +/** + * ClusterCIDR represents a single configuration for per-Node Pod CIDR allocations when the MultiCIDRRangeAllocator is enabled (see the config for kube-controller-manager). A cluster may have any number of ClusterCIDR resources, all of which will be considered when allocating a CIDR for a Node. A ClusterCIDR is eligible to be used for a given Node when the node selector matches the node in question and has free CIDRs to allocate. In case of multiple matching ClusterCIDR resources, the allocator will attempt to break ties using internal heuristics, but any ClusterCIDR whose node selector matches the Node may be used. + * + * @schema io.k8s.api.networking.v1alpha1.ClusterCIDR + */ +export class KubeClusterCidrv1Alpha1 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.networking.v1alpha1.ClusterCIDR" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'networking.k8s.io/v1alpha1', + kind: 'ClusterCIDR', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.networking.v1alpha1.ClusterCIDR". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeClusterCidrv1Alpha1Props = {}): any { + return { + ...KubeClusterCidrv1Alpha1.GVK, + ...toJson_KubeClusterCidrv1Alpha1Props(props), + }; + } + + /** + * Defines a "io.k8s.api.networking.v1alpha1.ClusterCIDR" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeClusterCidrv1Alpha1Props = {}) { + super(scope, id, { + ...KubeClusterCidrv1Alpha1.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeClusterCidrv1Alpha1.GVK, + ...toJson_KubeClusterCidrv1Alpha1Props(resolved), + }; + } +} + +/** + * ClusterCIDRList contains a list of ClusterCIDR. + * + * @schema io.k8s.api.networking.v1alpha1.ClusterCIDRList + */ +export class KubeClusterCidrListV1Alpha1 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.networking.v1alpha1.ClusterCIDRList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'networking.k8s.io/v1alpha1', + kind: 'ClusterCIDRList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.networking.v1alpha1.ClusterCIDRList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeClusterCidrListV1Alpha1Props): any { + return { + ...KubeClusterCidrListV1Alpha1.GVK, + ...toJson_KubeClusterCidrListV1Alpha1Props(props), + }; + } + + /** + * Defines a "io.k8s.api.networking.v1alpha1.ClusterCIDRList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeClusterCidrListV1Alpha1Props) { + super(scope, id, { + ...KubeClusterCidrListV1Alpha1.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeClusterCidrListV1Alpha1.GVK, + ...toJson_KubeClusterCidrListV1Alpha1Props(resolved), + }; + } +} + +/** + * RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/ + * + * @schema io.k8s.api.node.v1.RuntimeClass + */ +export class KubeRuntimeClass extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.node.v1.RuntimeClass" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'node.k8s.io/v1', + kind: 'RuntimeClass', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.node.v1.RuntimeClass". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeRuntimeClassProps): any { + return { + ...KubeRuntimeClass.GVK, + ...toJson_KubeRuntimeClassProps(props), + }; + } + + /** + * Defines a "io.k8s.api.node.v1.RuntimeClass" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeRuntimeClassProps) { + super(scope, id, { + ...KubeRuntimeClass.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeRuntimeClass.GVK, + ...toJson_KubeRuntimeClassProps(resolved), + }; + } +} + +/** + * RuntimeClassList is a list of RuntimeClass objects. + * + * @schema io.k8s.api.node.v1.RuntimeClassList + */ +export class KubeRuntimeClassList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.node.v1.RuntimeClassList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'node.k8s.io/v1', + kind: 'RuntimeClassList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.node.v1.RuntimeClassList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeRuntimeClassListProps): any { + return { + ...KubeRuntimeClassList.GVK, + ...toJson_KubeRuntimeClassListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.node.v1.RuntimeClassList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeRuntimeClassListProps) { + super(scope, id, { + ...KubeRuntimeClassList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeRuntimeClassList.GVK, + ...toJson_KubeRuntimeClassListProps(resolved), + }; + } +} + +/** + * Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods//evictions. + * + * @schema io.k8s.api.policy.v1.Eviction + */ +export class KubeEviction extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.policy.v1.Eviction" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'policy/v1', + kind: 'Eviction', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.policy.v1.Eviction". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeEvictionProps = {}): any { + return { + ...KubeEviction.GVK, + ...toJson_KubeEvictionProps(props), + }; + } + + /** + * Defines a "io.k8s.api.policy.v1.Eviction" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeEvictionProps = {}) { + super(scope, id, { + ...KubeEviction.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeEviction.GVK, + ...toJson_KubeEvictionProps(resolved), + }; + } +} + +/** + * PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods + * + * @schema io.k8s.api.policy.v1.PodDisruptionBudget + */ +export class KubePodDisruptionBudget extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.policy.v1.PodDisruptionBudget" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'policy/v1', + kind: 'PodDisruptionBudget', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.policy.v1.PodDisruptionBudget". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubePodDisruptionBudgetProps = {}): any { + return { + ...KubePodDisruptionBudget.GVK, + ...toJson_KubePodDisruptionBudgetProps(props), + }; + } + + /** + * Defines a "io.k8s.api.policy.v1.PodDisruptionBudget" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubePodDisruptionBudgetProps = {}) { + super(scope, id, { + ...KubePodDisruptionBudget.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubePodDisruptionBudget.GVK, + ...toJson_KubePodDisruptionBudgetProps(resolved), + }; + } +} + +/** + * PodDisruptionBudgetList is a collection of PodDisruptionBudgets. + * + * @schema io.k8s.api.policy.v1.PodDisruptionBudgetList + */ +export class KubePodDisruptionBudgetList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.policy.v1.PodDisruptionBudgetList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'policy/v1', + kind: 'PodDisruptionBudgetList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.policy.v1.PodDisruptionBudgetList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubePodDisruptionBudgetListProps): any { + return { + ...KubePodDisruptionBudgetList.GVK, + ...toJson_KubePodDisruptionBudgetListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.policy.v1.PodDisruptionBudgetList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubePodDisruptionBudgetListProps) { + super(scope, id, { + ...KubePodDisruptionBudgetList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubePodDisruptionBudgetList.GVK, + ...toJson_KubePodDisruptionBudgetListProps(resolved), + }; + } +} + +/** + * ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. + * + * @schema io.k8s.api.rbac.v1.ClusterRole + */ +export class KubeClusterRole extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.rbac.v1.ClusterRole" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'rbac.authorization.k8s.io/v1', + kind: 'ClusterRole', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1.ClusterRole". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeClusterRoleProps = {}): any { + return { + ...KubeClusterRole.GVK, + ...toJson_KubeClusterRoleProps(props), + }; + } + + /** + * Defines a "io.k8s.api.rbac.v1.ClusterRole" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeClusterRoleProps = {}) { + super(scope, id, { + ...KubeClusterRole.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeClusterRole.GVK, + ...toJson_KubeClusterRoleProps(resolved), + }; + } +} + +/** + * ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. + * + * @schema io.k8s.api.rbac.v1.ClusterRoleBinding + */ +export class KubeClusterRoleBinding extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.rbac.v1.ClusterRoleBinding" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'rbac.authorization.k8s.io/v1', + kind: 'ClusterRoleBinding', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1.ClusterRoleBinding". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeClusterRoleBindingProps): any { + return { + ...KubeClusterRoleBinding.GVK, + ...toJson_KubeClusterRoleBindingProps(props), + }; + } + + /** + * Defines a "io.k8s.api.rbac.v1.ClusterRoleBinding" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeClusterRoleBindingProps) { + super(scope, id, { + ...KubeClusterRoleBinding.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeClusterRoleBinding.GVK, + ...toJson_KubeClusterRoleBindingProps(resolved), + }; + } +} + +/** + * ClusterRoleBindingList is a collection of ClusterRoleBindings + * + * @schema io.k8s.api.rbac.v1.ClusterRoleBindingList + */ +export class KubeClusterRoleBindingList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.rbac.v1.ClusterRoleBindingList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'rbac.authorization.k8s.io/v1', + kind: 'ClusterRoleBindingList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1.ClusterRoleBindingList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeClusterRoleBindingListProps): any { + return { + ...KubeClusterRoleBindingList.GVK, + ...toJson_KubeClusterRoleBindingListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.rbac.v1.ClusterRoleBindingList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeClusterRoleBindingListProps) { + super(scope, id, { + ...KubeClusterRoleBindingList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeClusterRoleBindingList.GVK, + ...toJson_KubeClusterRoleBindingListProps(resolved), + }; + } +} + +/** + * ClusterRoleList is a collection of ClusterRoles + * + * @schema io.k8s.api.rbac.v1.ClusterRoleList + */ +export class KubeClusterRoleList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.rbac.v1.ClusterRoleList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'rbac.authorization.k8s.io/v1', + kind: 'ClusterRoleList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1.ClusterRoleList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeClusterRoleListProps): any { + return { + ...KubeClusterRoleList.GVK, + ...toJson_KubeClusterRoleListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.rbac.v1.ClusterRoleList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeClusterRoleListProps) { + super(scope, id, { + ...KubeClusterRoleList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeClusterRoleList.GVK, + ...toJson_KubeClusterRoleListProps(resolved), + }; + } +} + +/** + * Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. + * + * @schema io.k8s.api.rbac.v1.Role + */ +export class KubeRole extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.rbac.v1.Role" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'rbac.authorization.k8s.io/v1', + kind: 'Role', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1.Role". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeRoleProps = {}): any { + return { + ...KubeRole.GVK, + ...toJson_KubeRoleProps(props), + }; + } + + /** + * Defines a "io.k8s.api.rbac.v1.Role" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeRoleProps = {}) { + super(scope, id, { + ...KubeRole.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeRole.GVK, + ...toJson_KubeRoleProps(resolved), + }; + } +} + +/** + * RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. + * + * @schema io.k8s.api.rbac.v1.RoleBinding + */ +export class KubeRoleBinding extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.rbac.v1.RoleBinding" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'rbac.authorization.k8s.io/v1', + kind: 'RoleBinding', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1.RoleBinding". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeRoleBindingProps): any { + return { + ...KubeRoleBinding.GVK, + ...toJson_KubeRoleBindingProps(props), + }; + } + + /** + * Defines a "io.k8s.api.rbac.v1.RoleBinding" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeRoleBindingProps) { + super(scope, id, { + ...KubeRoleBinding.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeRoleBinding.GVK, + ...toJson_KubeRoleBindingProps(resolved), + }; + } +} + +/** + * RoleBindingList is a collection of RoleBindings + * + * @schema io.k8s.api.rbac.v1.RoleBindingList + */ +export class KubeRoleBindingList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.rbac.v1.RoleBindingList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'rbac.authorization.k8s.io/v1', + kind: 'RoleBindingList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1.RoleBindingList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeRoleBindingListProps): any { + return { + ...KubeRoleBindingList.GVK, + ...toJson_KubeRoleBindingListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.rbac.v1.RoleBindingList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeRoleBindingListProps) { + super(scope, id, { + ...KubeRoleBindingList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeRoleBindingList.GVK, + ...toJson_KubeRoleBindingListProps(resolved), + }; + } +} + +/** + * RoleList is a collection of Roles + * + * @schema io.k8s.api.rbac.v1.RoleList + */ +export class KubeRoleList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.rbac.v1.RoleList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'rbac.authorization.k8s.io/v1', + kind: 'RoleList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.rbac.v1.RoleList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeRoleListProps): any { + return { + ...KubeRoleList.GVK, + ...toJson_KubeRoleListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.rbac.v1.RoleList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeRoleListProps) { + super(scope, id, { + ...KubeRoleList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeRoleList.GVK, + ...toJson_KubeRoleListProps(resolved), + }; + } +} + +/** + * PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. + * + * @schema io.k8s.api.scheduling.v1.PriorityClass + */ +export class KubePriorityClass extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.scheduling.v1.PriorityClass" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'scheduling.k8s.io/v1', + kind: 'PriorityClass', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.scheduling.v1.PriorityClass". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubePriorityClassProps): any { + return { + ...KubePriorityClass.GVK, + ...toJson_KubePriorityClassProps(props), + }; + } + + /** + * Defines a "io.k8s.api.scheduling.v1.PriorityClass" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubePriorityClassProps) { + super(scope, id, { + ...KubePriorityClass.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubePriorityClass.GVK, + ...toJson_KubePriorityClassProps(resolved), + }; + } +} + +/** + * PriorityClassList is a collection of priority classes. + * + * @schema io.k8s.api.scheduling.v1.PriorityClassList + */ +export class KubePriorityClassList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.scheduling.v1.PriorityClassList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'scheduling.k8s.io/v1', + kind: 'PriorityClassList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.scheduling.v1.PriorityClassList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubePriorityClassListProps): any { + return { + ...KubePriorityClassList.GVK, + ...toJson_KubePriorityClassListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.scheduling.v1.PriorityClassList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubePriorityClassListProps) { + super(scope, id, { + ...KubePriorityClassList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubePriorityClassList.GVK, + ...toJson_KubePriorityClassListProps(resolved), + }; + } +} + +/** + * CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced. + * + * @schema io.k8s.api.storage.v1.CSIDriver + */ +export class KubeCsiDriver extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.storage.v1.CSIDriver" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'storage.k8s.io/v1', + kind: 'CSIDriver', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.CSIDriver". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeCsiDriverProps): any { + return { + ...KubeCsiDriver.GVK, + ...toJson_KubeCsiDriverProps(props), + }; + } + + /** + * Defines a "io.k8s.api.storage.v1.CSIDriver" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeCsiDriverProps) { + super(scope, id, { + ...KubeCsiDriver.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeCsiDriver.GVK, + ...toJson_KubeCsiDriverProps(resolved), + }; + } +} + +/** + * CSIDriverList is a collection of CSIDriver objects. + * + * @schema io.k8s.api.storage.v1.CSIDriverList + */ +export class KubeCsiDriverList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.storage.v1.CSIDriverList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'storage.k8s.io/v1', + kind: 'CSIDriverList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.CSIDriverList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeCsiDriverListProps): any { + return { + ...KubeCsiDriverList.GVK, + ...toJson_KubeCsiDriverListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.storage.v1.CSIDriverList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeCsiDriverListProps) { + super(scope, id, { + ...KubeCsiDriverList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeCsiDriverList.GVK, + ...toJson_KubeCsiDriverListProps(resolved), + }; + } +} + +/** + * CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object. + * + * @schema io.k8s.api.storage.v1.CSINode + */ +export class KubeCsiNode extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.storage.v1.CSINode" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'storage.k8s.io/v1', + kind: 'CSINode', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.CSINode". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeCsiNodeProps): any { + return { + ...KubeCsiNode.GVK, + ...toJson_KubeCsiNodeProps(props), + }; + } + + /** + * Defines a "io.k8s.api.storage.v1.CSINode" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeCsiNodeProps) { + super(scope, id, { + ...KubeCsiNode.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeCsiNode.GVK, + ...toJson_KubeCsiNodeProps(resolved), + }; + } +} + +/** + * CSINodeList is a collection of CSINode objects. + * + * @schema io.k8s.api.storage.v1.CSINodeList + */ +export class KubeCsiNodeList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.storage.v1.CSINodeList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'storage.k8s.io/v1', + kind: 'CSINodeList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.CSINodeList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeCsiNodeListProps): any { + return { + ...KubeCsiNodeList.GVK, + ...toJson_KubeCsiNodeListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.storage.v1.CSINodeList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeCsiNodeListProps) { + super(scope, id, { + ...KubeCsiNodeList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeCsiNodeList.GVK, + ...toJson_KubeCsiNodeListProps(resolved), + }; + } +} + +/** + * CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes. + +For example this can express things like: - StorageClass "standard" has "1234 GiB" available in "topology.kubernetes.io/zone=us-east1" - StorageClass "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123" + +The following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero + +The producer of these objects can decide which approach is more suitable. + +They are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node. + * + * @schema io.k8s.api.storage.v1.CSIStorageCapacity + */ +export class KubeCsiStorageCapacity extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.storage.v1.CSIStorageCapacity" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'storage.k8s.io/v1', + kind: 'CSIStorageCapacity', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.CSIStorageCapacity". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeCsiStorageCapacityProps): any { + return { + ...KubeCsiStorageCapacity.GVK, + ...toJson_KubeCsiStorageCapacityProps(props), + }; + } + + /** + * Defines a "io.k8s.api.storage.v1.CSIStorageCapacity" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeCsiStorageCapacityProps) { + super(scope, id, { + ...KubeCsiStorageCapacity.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeCsiStorageCapacity.GVK, + ...toJson_KubeCsiStorageCapacityProps(resolved), + }; + } +} + +/** + * CSIStorageCapacityList is a collection of CSIStorageCapacity objects. + * + * @schema io.k8s.api.storage.v1.CSIStorageCapacityList + */ +export class KubeCsiStorageCapacityList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.storage.v1.CSIStorageCapacityList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'storage.k8s.io/v1', + kind: 'CSIStorageCapacityList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.CSIStorageCapacityList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeCsiStorageCapacityListProps): any { + return { + ...KubeCsiStorageCapacityList.GVK, + ...toJson_KubeCsiStorageCapacityListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.storage.v1.CSIStorageCapacityList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeCsiStorageCapacityListProps) { + super(scope, id, { + ...KubeCsiStorageCapacityList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeCsiStorageCapacityList.GVK, + ...toJson_KubeCsiStorageCapacityListProps(resolved), + }; + } +} + +/** + * StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. + +StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name. + * + * @schema io.k8s.api.storage.v1.StorageClass + */ +export class KubeStorageClass extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.storage.v1.StorageClass" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'storage.k8s.io/v1', + kind: 'StorageClass', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.StorageClass". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeStorageClassProps): any { + return { + ...KubeStorageClass.GVK, + ...toJson_KubeStorageClassProps(props), + }; + } + + /** + * Defines a "io.k8s.api.storage.v1.StorageClass" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeStorageClassProps) { + super(scope, id, { + ...KubeStorageClass.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeStorageClass.GVK, + ...toJson_KubeStorageClassProps(resolved), + }; + } +} + +/** + * StorageClassList is a collection of storage classes. + * + * @schema io.k8s.api.storage.v1.StorageClassList + */ +export class KubeStorageClassList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.storage.v1.StorageClassList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'storage.k8s.io/v1', + kind: 'StorageClassList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.StorageClassList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeStorageClassListProps): any { + return { + ...KubeStorageClassList.GVK, + ...toJson_KubeStorageClassListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.storage.v1.StorageClassList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeStorageClassListProps) { + super(scope, id, { + ...KubeStorageClassList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeStorageClassList.GVK, + ...toJson_KubeStorageClassListProps(resolved), + }; + } +} + +/** + * VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. + +VolumeAttachment objects are non-namespaced. + * + * @schema io.k8s.api.storage.v1.VolumeAttachment + */ +export class KubeVolumeAttachment extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.storage.v1.VolumeAttachment" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'storage.k8s.io/v1', + kind: 'VolumeAttachment', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.VolumeAttachment". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeVolumeAttachmentProps): any { + return { + ...KubeVolumeAttachment.GVK, + ...toJson_KubeVolumeAttachmentProps(props), + }; + } + + /** + * Defines a "io.k8s.api.storage.v1.VolumeAttachment" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeVolumeAttachmentProps) { + super(scope, id, { + ...KubeVolumeAttachment.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeVolumeAttachment.GVK, + ...toJson_KubeVolumeAttachmentProps(resolved), + }; + } +} + +/** + * VolumeAttachmentList is a collection of VolumeAttachment objects. + * + * @schema io.k8s.api.storage.v1.VolumeAttachmentList + */ +export class KubeVolumeAttachmentList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.storage.v1.VolumeAttachmentList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'storage.k8s.io/v1', + kind: 'VolumeAttachmentList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.storage.v1.VolumeAttachmentList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeVolumeAttachmentListProps): any { + return { + ...KubeVolumeAttachmentList.GVK, + ...toJson_KubeVolumeAttachmentListProps(props), + }; + } + + /** + * Defines a "io.k8s.api.storage.v1.VolumeAttachmentList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeVolumeAttachmentListProps) { + super(scope, id, { + ...KubeVolumeAttachmentList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeVolumeAttachmentList.GVK, + ...toJson_KubeVolumeAttachmentListProps(resolved), + }; + } +} + +/** + * CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes. + +For example this can express things like: - StorageClass "standard" has "1234 GiB" available in "topology.kubernetes.io/zone=us-east1" - StorageClass "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123" + +The following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero + +The producer of these objects can decide which approach is more suitable. + +They are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node. + * + * @schema io.k8s.api.storage.v1beta1.CSIStorageCapacity + */ +export class KubeCsiStorageCapacityV1Beta1 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.storage.v1beta1.CSIStorageCapacity" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'storage.k8s.io/v1beta1', + kind: 'CSIStorageCapacity', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.storage.v1beta1.CSIStorageCapacity". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeCsiStorageCapacityV1Beta1Props): any { + return { + ...KubeCsiStorageCapacityV1Beta1.GVK, + ...toJson_KubeCsiStorageCapacityV1Beta1Props(props), + }; + } + + /** + * Defines a "io.k8s.api.storage.v1beta1.CSIStorageCapacity" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeCsiStorageCapacityV1Beta1Props) { + super(scope, id, { + ...KubeCsiStorageCapacityV1Beta1.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeCsiStorageCapacityV1Beta1.GVK, + ...toJson_KubeCsiStorageCapacityV1Beta1Props(resolved), + }; + } +} + +/** + * CSIStorageCapacityList is a collection of CSIStorageCapacity objects. + * + * @schema io.k8s.api.storage.v1beta1.CSIStorageCapacityList + */ +export class KubeCsiStorageCapacityListV1Beta1 extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.api.storage.v1beta1.CSIStorageCapacityList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'storage.k8s.io/v1beta1', + kind: 'CSIStorageCapacityList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.api.storage.v1beta1.CSIStorageCapacityList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeCsiStorageCapacityListV1Beta1Props): any { + return { + ...KubeCsiStorageCapacityListV1Beta1.GVK, + ...toJson_KubeCsiStorageCapacityListV1Beta1Props(props), + }; + } + + /** + * Defines a "io.k8s.api.storage.v1beta1.CSIStorageCapacityList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeCsiStorageCapacityListV1Beta1Props) { + super(scope, id, { + ...KubeCsiStorageCapacityListV1Beta1.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeCsiStorageCapacityListV1Beta1.GVK, + ...toJson_KubeCsiStorageCapacityListV1Beta1Props(resolved), + }; + } +} + +/** + * CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition + */ +export class KubeCustomResourceDefinition extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'apiextensions.k8s.io/v1', + kind: 'CustomResourceDefinition', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeCustomResourceDefinitionProps): any { + return { + ...KubeCustomResourceDefinition.GVK, + ...toJson_KubeCustomResourceDefinitionProps(props), + }; + } + + /** + * Defines a "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeCustomResourceDefinitionProps) { + super(scope, id, { + ...KubeCustomResourceDefinition.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeCustomResourceDefinition.GVK, + ...toJson_KubeCustomResourceDefinitionProps(resolved), + }; + } +} + +/** + * CustomResourceDefinitionList is a list of CustomResourceDefinition objects. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList + */ +export class KubeCustomResourceDefinitionList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'apiextensions.k8s.io/v1', + kind: 'CustomResourceDefinitionList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeCustomResourceDefinitionListProps): any { + return { + ...KubeCustomResourceDefinitionList.GVK, + ...toJson_KubeCustomResourceDefinitionListProps(props), + }; + } + + /** + * Defines a "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeCustomResourceDefinitionListProps) { + super(scope, id, { + ...KubeCustomResourceDefinitionList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeCustomResourceDefinitionList.GVK, + ...toJson_KubeCustomResourceDefinitionListProps(resolved), + }; + } +} + +/** + * Status is a return value for calls that don't return other objects. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Status + */ +export class KubeStatus extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.apimachinery.pkg.apis.meta.v1.Status" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'v1', + kind: 'Status', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.apimachinery.pkg.apis.meta.v1.Status". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeStatusProps = {}): any { + return { + ...KubeStatus.GVK, + ...toJson_KubeStatusProps(props), + }; + } + + /** + * Defines a "io.k8s.apimachinery.pkg.apis.meta.v1.Status" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeStatusProps = {}) { + super(scope, id, { + ...KubeStatus.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeStatus.GVK, + ...toJson_KubeStatusProps(resolved), + }; + } +} + +/** + * APIService represents a server for a particular GroupVersion. Name must be "version.group". + * + * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService + */ +export class KubeApiService extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'apiregistration.k8s.io/v1', + kind: 'APIService', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeApiServiceProps = {}): any { + return { + ...KubeApiService.GVK, + ...toJson_KubeApiServiceProps(props), + }; + } + + /** + * Defines a "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeApiServiceProps = {}) { + super(scope, id, { + ...KubeApiService.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeApiService.GVK, + ...toJson_KubeApiServiceProps(resolved), + }; + } +} + +/** + * APIServiceList is a list of APIService objects. + * + * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList + */ +export class KubeApiServiceList extends ApiObject { + /** + * Returns the apiVersion and kind for "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList" + */ + public static readonly GVK: GroupVersionKind = { + apiVersion: 'apiregistration.k8s.io/v1', + kind: 'APIServiceList', + } + + /** + * Renders a Kubernetes manifest for "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList". + * + * This can be used to inline resource manifests inside other objects (e.g. as templates). + * + * @param props initialization props + */ + public static manifest(props: KubeApiServiceListProps): any { + return { + ...KubeApiServiceList.GVK, + ...toJson_KubeApiServiceListProps(props), + }; + } + + /** + * Defines a "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList" API object + * @param scope the scope in which to define this object + * @param id a scope-local name for the object + * @param props initialization props + */ + public constructor(scope: Construct, id: string, props: KubeApiServiceListProps) { + super(scope, id, { + ...KubeApiServiceList.GVK, + ...props, + }); + } + + /** + * Renders the object to Kubernetes JSON. + */ + public toJson(): any { + const resolved = super.toJson(); + + return { + ...KubeApiServiceList.GVK, + ...toJson_KubeApiServiceListProps(resolved), + }; + } +} + +/** + * MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. + * + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration + */ +export interface KubeMutatingWebhookConfigurationProps { + /** + * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + * + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Webhooks is a list of webhooks and the affected resources and operations. + * + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration#webhooks + */ + readonly webhooks?: MutatingWebhook[]; + +} + +/** + * Converts an object of type 'KubeMutatingWebhookConfigurationProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeMutatingWebhookConfigurationProps(obj: KubeMutatingWebhookConfigurationProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'webhooks': obj.webhooks?.map(y => toJson_MutatingWebhook(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. + * + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList + */ +export interface KubeMutatingWebhookConfigurationListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList#metadata + */ + readonly metadata?: ListMeta; + + /** + * List of MutatingWebhookConfiguration. + * + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList#items + */ + readonly items: KubeMutatingWebhookConfigurationProps[]; + +} + +/** + * Converts an object of type 'KubeMutatingWebhookConfigurationListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeMutatingWebhookConfigurationListProps(obj: KubeMutatingWebhookConfigurationListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeMutatingWebhookConfigurationProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. + * + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration + */ +export interface KubeValidatingWebhookConfigurationProps { + /** + * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + * + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Webhooks is a list of webhooks and the affected resources and operations. + * + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration#webhooks + */ + readonly webhooks?: ValidatingWebhook[]; + +} + +/** + * Converts an object of type 'KubeValidatingWebhookConfigurationProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeValidatingWebhookConfigurationProps(obj: KubeValidatingWebhookConfigurationProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'webhooks': obj.webhooks?.map(y => toJson_ValidatingWebhook(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. + * + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList + */ +export interface KubeValidatingWebhookConfigurationListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList#metadata + */ + readonly metadata?: ListMeta; + + /** + * List of ValidatingWebhookConfiguration. + * + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList#items + */ + readonly items: KubeValidatingWebhookConfigurationProps[]; + +} + +/** + * Converts an object of type 'KubeValidatingWebhookConfigurationListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeValidatingWebhookConfigurationListProps(obj: KubeValidatingWebhookConfigurationListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeValidatingWebhookConfigurationProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Storage version of a specific resource. + * + * @schema io.k8s.api.apiserverinternal.v1alpha1.StorageVersion + */ +export interface KubeStorageVersionV1Alpha1Props { + /** + * The name is .. + * + * @schema io.k8s.api.apiserverinternal.v1alpha1.StorageVersion#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec is an empty spec. It is here to comply with Kubernetes API style. + * + * @schema io.k8s.api.apiserverinternal.v1alpha1.StorageVersion#spec + */ + readonly spec: any; + +} + +/** + * Converts an object of type 'KubeStorageVersionV1Alpha1Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeStorageVersionV1Alpha1Props(obj: KubeStorageVersionV1Alpha1Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': obj.spec, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * A list of StorageVersions. + * + * @schema io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList + */ +export interface KubeStorageVersionListV1Alpha1Props { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items holds a list of StorageVersion + * + * @schema io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList#items + */ + readonly items: KubeStorageVersionV1Alpha1Props[]; + +} + +/** + * Converts an object of type 'KubeStorageVersionListV1Alpha1Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeStorageVersionListV1Alpha1Props(obj: KubeStorageVersionListV1Alpha1Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeStorageVersionV1Alpha1Props(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. + * + * @schema io.k8s.api.apps.v1.ControllerRevision + */ +export interface KubeControllerRevisionProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.apps.v1.ControllerRevision#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Data is the serialized representation of the state. + * + * @schema io.k8s.api.apps.v1.ControllerRevision#data + */ + readonly data?: any; + + /** + * Revision indicates the revision of the state represented by Data. + * + * @schema io.k8s.api.apps.v1.ControllerRevision#revision + */ + readonly revision: number; + +} + +/** + * Converts an object of type 'KubeControllerRevisionProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeControllerRevisionProps(obj: KubeControllerRevisionProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'data': obj.data, + 'revision': obj.revision, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ControllerRevisionList is a resource containing a list of ControllerRevision objects. + * + * @schema io.k8s.api.apps.v1.ControllerRevisionList + */ +export interface KubeControllerRevisionListProps { + /** + * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.apps.v1.ControllerRevisionList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is the list of ControllerRevisions + * + * @schema io.k8s.api.apps.v1.ControllerRevisionList#items + */ + readonly items: KubeControllerRevisionProps[]; + +} + +/** + * Converts an object of type 'KubeControllerRevisionListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeControllerRevisionListProps(obj: KubeControllerRevisionListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeControllerRevisionProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * DaemonSet represents the configuration of a daemon set. + * + * @schema io.k8s.api.apps.v1.DaemonSet + */ +export interface KubeDaemonSetProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.apps.v1.DaemonSet#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.apps.v1.DaemonSet#spec + */ + readonly spec?: DaemonSetSpec; + +} + +/** + * Converts an object of type 'KubeDaemonSetProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeDaemonSetProps(obj: KubeDaemonSetProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_DaemonSetSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * DaemonSetList is a collection of daemon sets. + * + * @schema io.k8s.api.apps.v1.DaemonSetList + */ +export interface KubeDaemonSetListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.apps.v1.DaemonSetList#metadata + */ + readonly metadata?: ListMeta; + + /** + * A list of daemon sets. + * + * @schema io.k8s.api.apps.v1.DaemonSetList#items + */ + readonly items: KubeDaemonSetProps[]; + +} + +/** + * Converts an object of type 'KubeDaemonSetListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeDaemonSetListProps(obj: KubeDaemonSetListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeDaemonSetProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Deployment enables declarative updates for Pods and ReplicaSets. + * + * @schema io.k8s.api.apps.v1.Deployment + */ +export interface KubeDeploymentProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.apps.v1.Deployment#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Specification of the desired behavior of the Deployment. + * + * @schema io.k8s.api.apps.v1.Deployment#spec + */ + readonly spec?: DeploymentSpec; + +} + +/** + * Converts an object of type 'KubeDeploymentProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeDeploymentProps(obj: KubeDeploymentProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_DeploymentSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * DeploymentList is a list of Deployments. + * + * @schema io.k8s.api.apps.v1.DeploymentList + */ +export interface KubeDeploymentListProps { + /** + * Standard list metadata. + * + * @schema io.k8s.api.apps.v1.DeploymentList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is the list of Deployments. + * + * @schema io.k8s.api.apps.v1.DeploymentList#items + */ + readonly items: KubeDeploymentProps[]; + +} + +/** + * Converts an object of type 'KubeDeploymentListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeDeploymentListProps(obj: KubeDeploymentListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeDeploymentProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ReplicaSet ensures that a specified number of pod replicas are running at any given time. + * + * @schema io.k8s.api.apps.v1.ReplicaSet + */ +export interface KubeReplicaSetProps { + /** + * If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.apps.v1.ReplicaSet#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.apps.v1.ReplicaSet#spec + */ + readonly spec?: ReplicaSetSpec; + +} + +/** + * Converts an object of type 'KubeReplicaSetProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeReplicaSetProps(obj: KubeReplicaSetProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_ReplicaSetSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ReplicaSetList is a collection of ReplicaSets. + * + * @schema io.k8s.api.apps.v1.ReplicaSetList + */ +export interface KubeReplicaSetListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.apps.v1.ReplicaSetList#metadata + */ + readonly metadata?: ListMeta; + + /** + * List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + * + * @schema io.k8s.api.apps.v1.ReplicaSetList#items + */ + readonly items: KubeReplicaSetProps[]; + +} + +/** + * Converts an object of type 'KubeReplicaSetListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeReplicaSetListProps(obj: KubeReplicaSetListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeReplicaSetProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * StatefulSet represents a set of pods with consistent identities. Identities are defined as: + * - Network: A single stable DNS and hostname. + * - Storage: As many VolumeClaims as requested. + * + * The StatefulSet guarantees that a given network identity will always map to the same storage identity. + * + * @schema io.k8s.api.apps.v1.StatefulSet + */ +export interface KubeStatefulSetProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.apps.v1.StatefulSet#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec defines the desired identities of pods in this set. + * + * @schema io.k8s.api.apps.v1.StatefulSet#spec + */ + readonly spec?: StatefulSetSpec; + +} + +/** + * Converts an object of type 'KubeStatefulSetProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeStatefulSetProps(obj: KubeStatefulSetProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_StatefulSetSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * StatefulSetList is a collection of StatefulSets. + * + * @schema io.k8s.api.apps.v1.StatefulSetList + */ +export interface KubeStatefulSetListProps { + /** + * Standard list's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.apps.v1.StatefulSetList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is the list of stateful sets. + * + * @schema io.k8s.api.apps.v1.StatefulSetList#items + */ + readonly items: KubeStatefulSetProps[]; + +} + +/** + * Converts an object of type 'KubeStatefulSetListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeStatefulSetListProps(obj: KubeStatefulSetListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeStatefulSetProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * TokenRequest requests a token for a given service account. + * + * @schema io.k8s.api.authentication.v1.TokenRequest + */ +export interface KubeTokenRequestProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.authentication.v1.TokenRequest#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec holds information about the request being evaluated + * + * @schema io.k8s.api.authentication.v1.TokenRequest#spec + */ + readonly spec: TokenRequestSpec; + +} + +/** + * Converts an object of type 'KubeTokenRequestProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeTokenRequestProps(obj: KubeTokenRequestProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_TokenRequestSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver. + * + * @schema io.k8s.api.authentication.v1.TokenReview + */ +export interface KubeTokenReviewProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.authentication.v1.TokenReview#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec holds information about the request being evaluated + * + * @schema io.k8s.api.authentication.v1.TokenReview#spec + */ + readonly spec: TokenReviewSpec; + +} + +/** + * Converts an object of type 'KubeTokenReviewProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeTokenReviewProps(obj: KubeTokenReviewProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_TokenReviewSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking. + * + * @schema io.k8s.api.authorization.v1.LocalSubjectAccessReview + */ +export interface KubeLocalSubjectAccessReviewProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.authorization.v1.LocalSubjectAccessReview#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. + * + * @schema io.k8s.api.authorization.v1.LocalSubjectAccessReview#spec + */ + readonly spec: SubjectAccessReviewSpec; + +} + +/** + * Converts an object of type 'KubeLocalSubjectAccessReviewProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeLocalSubjectAccessReviewProps(obj: KubeLocalSubjectAccessReviewProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_SubjectAccessReviewSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * 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 + * + * @schema io.k8s.api.authorization.v1.SelfSubjectAccessReview + */ +export interface KubeSelfSubjectAccessReviewProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.authorization.v1.SelfSubjectAccessReview#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec holds information about the request being evaluated. user and groups must be empty + * + * @schema io.k8s.api.authorization.v1.SelfSubjectAccessReview#spec + */ + readonly spec: SelfSubjectAccessReviewSpec; + +} + +/** + * Converts an object of type 'KubeSelfSubjectAccessReviewProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeSelfSubjectAccessReviewProps(obj: KubeSelfSubjectAccessReviewProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_SelfSubjectAccessReviewSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. + * + * @schema io.k8s.api.authorization.v1.SelfSubjectRulesReview + */ +export interface KubeSelfSubjectRulesReviewProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.authorization.v1.SelfSubjectRulesReview#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec holds information about the request being evaluated. + * + * @schema io.k8s.api.authorization.v1.SelfSubjectRulesReview#spec + */ + readonly spec: SelfSubjectRulesReviewSpec; + +} + +/** + * Converts an object of type 'KubeSelfSubjectRulesReviewProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeSelfSubjectRulesReviewProps(obj: KubeSelfSubjectRulesReviewProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_SelfSubjectRulesReviewSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * SubjectAccessReview checks whether or not a user or group can perform an action. + * + * @schema io.k8s.api.authorization.v1.SubjectAccessReview + */ +export interface KubeSubjectAccessReviewProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.authorization.v1.SubjectAccessReview#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec holds information about the request being evaluated + * + * @schema io.k8s.api.authorization.v1.SubjectAccessReview#spec + */ + readonly spec: SubjectAccessReviewSpec; + +} + +/** + * Converts an object of type 'KubeSubjectAccessReviewProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeSubjectAccessReviewProps(obj: KubeSubjectAccessReviewProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_SubjectAccessReviewSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * configuration of a horizontal pod autoscaler. + * + * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler + */ +export interface KubeHorizontalPodAutoscalerProps { + /** + * Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + * + * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler#spec + */ + readonly spec?: HorizontalPodAutoscalerSpec; + +} + +/** + * Converts an object of type 'KubeHorizontalPodAutoscalerProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeHorizontalPodAutoscalerProps(obj: KubeHorizontalPodAutoscalerProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_HorizontalPodAutoscalerSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * list of horizontal pod autoscaler objects. + * + * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList + */ +export interface KubeHorizontalPodAutoscalerListProps { + /** + * Standard list metadata. + * + * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList#metadata + */ + readonly metadata?: ListMeta; + + /** + * list of horizontal pod autoscaler objects. + * + * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList#items + */ + readonly items: KubeHorizontalPodAutoscalerProps[]; + +} + +/** + * Converts an object of type 'KubeHorizontalPodAutoscalerListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeHorizontalPodAutoscalerListProps(obj: KubeHorizontalPodAutoscalerListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeHorizontalPodAutoscalerProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Scale represents a scaling request for a resource. + * + * @schema io.k8s.api.autoscaling.v1.Scale + */ +export interface KubeScaleProps { + /** + * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + * + * @schema io.k8s.api.autoscaling.v1.Scale#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + * + * @schema io.k8s.api.autoscaling.v1.Scale#spec + */ + readonly spec?: ScaleSpec; + +} + +/** + * Converts an object of type 'KubeScaleProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeScaleProps(obj: KubeScaleProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_ScaleSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. + * + * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler + */ +export interface KubeHorizontalPodAutoscalerV2Props { + /** + * metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + * + * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler#spec + */ + readonly spec?: HorizontalPodAutoscalerSpecV2; + +} + +/** + * Converts an object of type 'KubeHorizontalPodAutoscalerV2Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeHorizontalPodAutoscalerV2Props(obj: KubeHorizontalPodAutoscalerV2Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_HorizontalPodAutoscalerSpecV2(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. + * + * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerList + */ +export interface KubeHorizontalPodAutoscalerListV2Props { + /** + * metadata is the standard list metadata. + * + * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerList#metadata + */ + readonly metadata?: ListMeta; + + /** + * items is the list of horizontal pod autoscaler objects. + * + * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerList#items + */ + readonly items: KubeHorizontalPodAutoscalerV2Props[]; + +} + +/** + * Converts an object of type 'KubeHorizontalPodAutoscalerListV2Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeHorizontalPodAutoscalerListV2Props(obj: KubeHorizontalPodAutoscalerListV2Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeHorizontalPodAutoscalerV2Props(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. + * + * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler + */ +export interface KubeHorizontalPodAutoscalerV2Beta2Props { + /** + * metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + * + * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler#spec + */ + readonly spec?: HorizontalPodAutoscalerSpecV2Beta2; + +} + +/** + * Converts an object of type 'KubeHorizontalPodAutoscalerV2Beta2Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeHorizontalPodAutoscalerV2Beta2Props(obj: KubeHorizontalPodAutoscalerV2Beta2Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_HorizontalPodAutoscalerSpecV2Beta2(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. + * + * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerList + */ +export interface KubeHorizontalPodAutoscalerListV2Beta2Props { + /** + * metadata is the standard list metadata. + * + * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerList#metadata + */ + readonly metadata?: ListMeta; + + /** + * items is the list of horizontal pod autoscaler objects. + * + * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerList#items + */ + readonly items: KubeHorizontalPodAutoscalerV2Beta2Props[]; + +} + +/** + * Converts an object of type 'KubeHorizontalPodAutoscalerListV2Beta2Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeHorizontalPodAutoscalerListV2Beta2Props(obj: KubeHorizontalPodAutoscalerListV2Beta2Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeHorizontalPodAutoscalerV2Beta2Props(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CronJob represents the configuration of a single cron job. + * + * @schema io.k8s.api.batch.v1.CronJob + */ +export interface KubeCronJobProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.batch.v1.CronJob#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.batch.v1.CronJob#spec + */ + readonly spec?: CronJobSpec; + +} + +/** + * Converts an object of type 'KubeCronJobProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeCronJobProps(obj: KubeCronJobProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_CronJobSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CronJobList is a collection of cron jobs. + * + * @schema io.k8s.api.batch.v1.CronJobList + */ +export interface KubeCronJobListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.batch.v1.CronJobList#metadata + */ + readonly metadata?: ListMeta; + + /** + * items is the list of CronJobs. + * + * @schema io.k8s.api.batch.v1.CronJobList#items + */ + readonly items: KubeCronJobProps[]; + +} + +/** + * Converts an object of type 'KubeCronJobListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeCronJobListProps(obj: KubeCronJobListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeCronJobProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Job represents the configuration of a single job. + * + * @schema io.k8s.api.batch.v1.Job + */ +export interface KubeJobProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.batch.v1.Job#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.batch.v1.Job#spec + */ + readonly spec?: JobSpec; + +} + +/** + * Converts an object of type 'KubeJobProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeJobProps(obj: KubeJobProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_JobSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * JobList is a collection of jobs. + * + * @schema io.k8s.api.batch.v1.JobList + */ +export interface KubeJobListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.batch.v1.JobList#metadata + */ + readonly metadata?: ListMeta; + + /** + * items is the list of Jobs. + * + * @schema io.k8s.api.batch.v1.JobList#items + */ + readonly items: KubeJobProps[]; + +} + +/** + * Converts an object of type 'KubeJobListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeJobListProps(obj: KubeJobListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeJobProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued. + * + * Kubelets use this API to obtain: + * 1. client certificates to authenticate to kube-apiserver (with the "kubernetes.io/kube-apiserver-client-kubelet" signerName). + * 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the "kubernetes.io/kubelet-serving" signerName). + * + * This API can be used to request client certificates to authenticate to kube-apiserver (with the "kubernetes.io/kube-apiserver-client" signerName), or to obtain certificates from custom non-Kubernetes signers. + * + * @schema io.k8s.api.certificates.v1.CertificateSigningRequest + */ +export interface KubeCertificateSigningRequestProps { + /** + * @schema io.k8s.api.certificates.v1.CertificateSigningRequest#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * spec contains the certificate request, and is immutable after creation. Only the request, signerName, expirationSeconds, and usages fields can be set on creation. Other fields are derived by Kubernetes and cannot be modified by users. + * + * @schema io.k8s.api.certificates.v1.CertificateSigningRequest#spec + */ + readonly spec: CertificateSigningRequestSpec; + +} + +/** + * Converts an object of type 'KubeCertificateSigningRequestProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeCertificateSigningRequestProps(obj: KubeCertificateSigningRequestProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_CertificateSigningRequestSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CertificateSigningRequestList is a collection of CertificateSigningRequest objects + * + * @schema io.k8s.api.certificates.v1.CertificateSigningRequestList + */ +export interface KubeCertificateSigningRequestListProps { + /** + * @schema io.k8s.api.certificates.v1.CertificateSigningRequestList#metadata + */ + readonly metadata?: ListMeta; + + /** + * items is a collection of CertificateSigningRequest objects + * + * @schema io.k8s.api.certificates.v1.CertificateSigningRequestList#items + */ + readonly items: KubeCertificateSigningRequestProps[]; + +} + +/** + * Converts an object of type 'KubeCertificateSigningRequestListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeCertificateSigningRequestListProps(obj: KubeCertificateSigningRequestListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeCertificateSigningRequestProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Lease defines a lease concept. + * + * @schema io.k8s.api.coordination.v1.Lease + */ +export interface KubeLeaseProps { + /** + * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.coordination.v1.Lease#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.coordination.v1.Lease#spec + */ + readonly spec?: LeaseSpec; + +} + +/** + * Converts an object of type 'KubeLeaseProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeLeaseProps(obj: KubeLeaseProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_LeaseSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * LeaseList is a list of Lease objects. + * + * @schema io.k8s.api.coordination.v1.LeaseList + */ +export interface KubeLeaseListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.coordination.v1.LeaseList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is a list of schema objects. + * + * @schema io.k8s.api.coordination.v1.LeaseList#items + */ + readonly items: KubeLeaseProps[]; + +} + +/** + * Converts an object of type 'KubeLeaseListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeLeaseListProps(obj: KubeLeaseListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeLeaseProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead. + * + * @schema io.k8s.api.core.v1.Binding + */ +export interface KubeBindingProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.Binding#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * The target object that you want to bind to the standard object. + * + * @schema io.k8s.api.core.v1.Binding#target + */ + readonly target: ObjectReference; + +} + +/** + * Converts an object of type 'KubeBindingProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeBindingProps(obj: KubeBindingProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'target': toJson_ObjectReference(obj.target), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+ + * + * @schema io.k8s.api.core.v1.ComponentStatus + */ +export interface KubeComponentStatusProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.ComponentStatus#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * List of component conditions observed + * + * @schema io.k8s.api.core.v1.ComponentStatus#conditions + */ + readonly conditions?: ComponentCondition[]; + +} + +/** + * Converts an object of type 'KubeComponentStatusProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeComponentStatusProps(obj: KubeComponentStatusProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'conditions': obj.conditions?.map(y => toJson_ComponentCondition(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+ + * + * @schema io.k8s.api.core.v1.ComponentStatusList + */ +export interface KubeComponentStatusListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.core.v1.ComponentStatusList#metadata + */ + readonly metadata?: ListMeta; + + /** + * List of ComponentStatus objects. + * + * @schema io.k8s.api.core.v1.ComponentStatusList#items + */ + readonly items: KubeComponentStatusProps[]; + +} + +/** + * Converts an object of type 'KubeComponentStatusListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeComponentStatusListProps(obj: KubeComponentStatusListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeComponentStatusProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ConfigMap holds configuration data for pods to consume. + * + * @schema io.k8s.api.core.v1.ConfigMap + */ +export interface KubeConfigMapProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.ConfigMap#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. + * + * @schema io.k8s.api.core.v1.ConfigMap#binaryData + */ + readonly binaryData?: { [key: string]: string }; + + /** + * Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process. + * + * @schema io.k8s.api.core.v1.ConfigMap#data + */ + readonly data?: { [key: string]: string }; + + /** + * Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. + * + * @schema io.k8s.api.core.v1.ConfigMap#immutable + */ + readonly immutable?: boolean; + +} + +/** + * Converts an object of type 'KubeConfigMapProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeConfigMapProps(obj: KubeConfigMapProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'binaryData': ((obj.binaryData) === undefined) ? undefined : (Object.entries(obj.binaryData).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + 'data': ((obj.data) === undefined) ? undefined : (Object.entries(obj.data).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + 'immutable': obj.immutable, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ConfigMapList is a resource containing a list of ConfigMap objects. + * + * @schema io.k8s.api.core.v1.ConfigMapList + */ +export interface KubeConfigMapListProps { + /** + * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.ConfigMapList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is the list of ConfigMaps. + * + * @schema io.k8s.api.core.v1.ConfigMapList#items + */ + readonly items: KubeConfigMapProps[]; + +} + +/** + * Converts an object of type 'KubeConfigMapListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeConfigMapListProps(obj: KubeConfigMapListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeConfigMapProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Endpoints is a collection of endpoints that implement the actual service. Example: + * + * Name: "mysvc", + * Subsets: [ + * { + * Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], + * Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] + * }, + * { + * Addresses: [{"ip": "10.10.3.3"}], + * Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}] + * }, + * ] + * + * @schema io.k8s.api.core.v1.Endpoints + */ +export interface KubeEndpointsProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.Endpoints#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. + * + * @schema io.k8s.api.core.v1.Endpoints#subsets + */ + readonly subsets?: EndpointSubset[]; + +} + +/** + * Converts an object of type 'KubeEndpointsProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeEndpointsProps(obj: KubeEndpointsProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'subsets': obj.subsets?.map(y => toJson_EndpointSubset(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * EndpointsList is a list of endpoints. + * + * @schema io.k8s.api.core.v1.EndpointsList + */ +export interface KubeEndpointsListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.core.v1.EndpointsList#metadata + */ + readonly metadata?: ListMeta; + + /** + * List of endpoints. + * + * @schema io.k8s.api.core.v1.EndpointsList#items + */ + readonly items: KubeEndpointsProps[]; + +} + +/** + * Converts an object of type 'KubeEndpointsListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeEndpointsListProps(obj: KubeEndpointsListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeEndpointsProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data. + * + * @schema io.k8s.api.events.v1.Event + */ +export interface KubeEventProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.events.v1.Event#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters. + * + * @schema io.k8s.api.events.v1.Event#action + */ + readonly action?: string; + + /** + * deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type. + * + * @schema io.k8s.api.events.v1.Event#deprecatedCount + */ + readonly deprecatedCount?: number; + + /** + * deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. + * + * @schema io.k8s.api.events.v1.Event#deprecatedFirstTimestamp + */ + readonly deprecatedFirstTimestamp?: Date; + + /** + * deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. + * + * @schema io.k8s.api.events.v1.Event#deprecatedLastTimestamp + */ + readonly deprecatedLastTimestamp?: Date; + + /** + * deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type. + * + * @schema io.k8s.api.events.v1.Event#deprecatedSource + */ + readonly deprecatedSource?: EventSource; + + /** + * eventTime is the time when this Event was first observed. It is required. + * + * @schema io.k8s.api.events.v1.Event#eventTime + */ + readonly eventTime: Date; + + /** + * note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. + * + * @schema io.k8s.api.events.v1.Event#note + */ + readonly note?: string; + + /** + * reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters. + * + * @schema io.k8s.api.events.v1.Event#reason + */ + readonly reason?: string; + + /** + * regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. + * + * @schema io.k8s.api.events.v1.Event#regarding + */ + readonly regarding?: ObjectReference; + + /** + * related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. + * + * @schema io.k8s.api.events.v1.Event#related + */ + readonly related?: ObjectReference; + + /** + * reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. + * + * @schema io.k8s.api.events.v1.Event#reportingController + */ + readonly reportingController?: string; + + /** + * reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters. + * + * @schema io.k8s.api.events.v1.Event#reportingInstance + */ + readonly reportingInstance?: string; + + /** + * series is data about the Event series this event represents or nil if it's a singleton Event. + * + * @schema io.k8s.api.events.v1.Event#series + */ + readonly series?: EventSeries; + + /** + * type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events. + * + * @schema io.k8s.api.events.v1.Event#type + */ + readonly type?: string; + +} + +/** + * Converts an object of type 'KubeEventProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeEventProps(obj: KubeEventProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'action': obj.action, + 'deprecatedCount': obj.deprecatedCount, + 'deprecatedFirstTimestamp': obj.deprecatedFirstTimestamp?.toISOString(), + 'deprecatedLastTimestamp': obj.deprecatedLastTimestamp?.toISOString(), + 'deprecatedSource': toJson_EventSource(obj.deprecatedSource), + 'eventTime': obj.eventTime?.toISOString(), + 'note': obj.note, + 'reason': obj.reason, + 'regarding': toJson_ObjectReference(obj.regarding), + 'related': toJson_ObjectReference(obj.related), + 'reportingController': obj.reportingController, + 'reportingInstance': obj.reportingInstance, + 'series': toJson_EventSeries(obj.series), + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * EventList is a list of Event objects. + * + * @schema io.k8s.api.events.v1.EventList + */ +export interface KubeEventListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.events.v1.EventList#metadata + */ + readonly metadata?: ListMeta; + + /** + * items is a list of schema objects. + * + * @schema io.k8s.api.events.v1.EventList#items + */ + readonly items: KubeEventProps[]; + +} + +/** + * Converts an object of type 'KubeEventListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeEventListProps(obj: KubeEventListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeEventProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * LimitRange sets resource usage limits for each kind of resource in a Namespace. + * + * @schema io.k8s.api.core.v1.LimitRange + */ +export interface KubeLimitRangeProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.LimitRange#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.core.v1.LimitRange#spec + */ + readonly spec?: LimitRangeSpec; + +} + +/** + * Converts an object of type 'KubeLimitRangeProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeLimitRangeProps(obj: KubeLimitRangeProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_LimitRangeSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * LimitRangeList is a list of LimitRange items. + * + * @schema io.k8s.api.core.v1.LimitRangeList + */ +export interface KubeLimitRangeListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.core.v1.LimitRangeList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + * + * @schema io.k8s.api.core.v1.LimitRangeList#items + */ + readonly items: KubeLimitRangeProps[]; + +} + +/** + * Converts an object of type 'KubeLimitRangeListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeLimitRangeListProps(obj: KubeLimitRangeListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeLimitRangeProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Namespace provides a scope for Names. Use of multiple namespaces is optional. + * + * @schema io.k8s.api.core.v1.Namespace + */ +export interface KubeNamespaceProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.Namespace#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.core.v1.Namespace#spec + */ + readonly spec?: NamespaceSpec; + +} + +/** + * Converts an object of type 'KubeNamespaceProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeNamespaceProps(obj: KubeNamespaceProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_NamespaceSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * NamespaceList is a list of Namespaces. + * + * @schema io.k8s.api.core.v1.NamespaceList + */ +export interface KubeNamespaceListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.core.v1.NamespaceList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * + * @schema io.k8s.api.core.v1.NamespaceList#items + */ + readonly items: KubeNamespaceProps[]; + +} + +/** + * Converts an object of type 'KubeNamespaceListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeNamespaceListProps(obj: KubeNamespaceListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeNamespaceProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd). + * + * @schema io.k8s.api.core.v1.Node + */ +export interface KubeNodeProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.Node#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.core.v1.Node#spec + */ + readonly spec?: NodeSpec; + +} + +/** + * Converts an object of type 'KubeNodeProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeNodeProps(obj: KubeNodeProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_NodeSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * NodeList is the whole list of all Nodes which have been registered with master. + * + * @schema io.k8s.api.core.v1.NodeList + */ +export interface KubeNodeListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.core.v1.NodeList#metadata + */ + readonly metadata?: ListMeta; + + /** + * List of nodes + * + * @schema io.k8s.api.core.v1.NodeList#items + */ + readonly items: KubeNodeProps[]; + +} + +/** + * Converts an object of type 'KubeNodeListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeNodeListProps(obj: KubeNodeListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeNodeProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes + * + * @schema io.k8s.api.core.v1.PersistentVolume + */ +export interface KubePersistentVolumeProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.PersistentVolume#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes + * + * @schema io.k8s.api.core.v1.PersistentVolume#spec + */ + readonly spec?: PersistentVolumeSpec; + +} + +/** + * Converts an object of type 'KubePersistentVolumeProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubePersistentVolumeProps(obj: KubePersistentVolumeProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_PersistentVolumeSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PersistentVolumeClaim is a user's request for and claim to a persistent volume + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaim + */ +export interface KubePersistentVolumeClaimProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaim#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaim#spec + */ + readonly spec?: PersistentVolumeClaimSpec; + +} + +/** + * Converts an object of type 'KubePersistentVolumeClaimProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubePersistentVolumeClaimProps(obj: KubePersistentVolumeClaimProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_PersistentVolumeClaimSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PersistentVolumeClaimList is a list of PersistentVolumeClaim items. + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimList + */ +export interface KubePersistentVolumeClaimListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimList#metadata + */ + readonly metadata?: ListMeta; + + /** + * items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimList#items + */ + readonly items: KubePersistentVolumeClaimProps[]; + +} + +/** + * Converts an object of type 'KubePersistentVolumeClaimListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubePersistentVolumeClaimListProps(obj: KubePersistentVolumeClaimListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubePersistentVolumeClaimProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PersistentVolumeList is a list of PersistentVolume items. + * + * @schema io.k8s.api.core.v1.PersistentVolumeList + */ +export interface KubePersistentVolumeListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.core.v1.PersistentVolumeList#metadata + */ + readonly metadata?: ListMeta; + + /** + * items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes + * + * @schema io.k8s.api.core.v1.PersistentVolumeList#items + */ + readonly items: KubePersistentVolumeProps[]; + +} + +/** + * Converts an object of type 'KubePersistentVolumeListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubePersistentVolumeListProps(obj: KubePersistentVolumeListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubePersistentVolumeProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts. + * + * @schema io.k8s.api.core.v1.Pod + */ +export interface KubePodProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.Pod#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.core.v1.Pod#spec + */ + readonly spec?: PodSpec; + +} + +/** + * Converts an object of type 'KubePodProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubePodProps(obj: KubePodProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_PodSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodList is a list of Pods. + * + * @schema io.k8s.api.core.v1.PodList + */ +export interface KubePodListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.core.v1.PodList#metadata + */ + readonly metadata?: ListMeta; + + /** + * List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md + * + * @schema io.k8s.api.core.v1.PodList#items + */ + readonly items: KubePodProps[]; + +} + +/** + * Converts an object of type 'KubePodListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubePodListProps(obj: KubePodListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubePodProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodTemplate describes a template for creating copies of a predefined pod. + * + * @schema io.k8s.api.core.v1.PodTemplate + */ +export interface KubePodTemplateProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.PodTemplate#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.core.v1.PodTemplate#template + */ + readonly template?: PodTemplateSpec; + +} + +/** + * Converts an object of type 'KubePodTemplateProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubePodTemplateProps(obj: KubePodTemplateProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'template': toJson_PodTemplateSpec(obj.template), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodTemplateList is a list of PodTemplates. + * + * @schema io.k8s.api.core.v1.PodTemplateList + */ +export interface KubePodTemplateListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.core.v1.PodTemplateList#metadata + */ + readonly metadata?: ListMeta; + + /** + * List of pod templates + * + * @schema io.k8s.api.core.v1.PodTemplateList#items + */ + readonly items: KubePodTemplateProps[]; + +} + +/** + * Converts an object of type 'KubePodTemplateListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubePodTemplateListProps(obj: KubePodTemplateListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubePodTemplateProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ReplicationController represents the configuration of a replication controller. + * + * @schema io.k8s.api.core.v1.ReplicationController + */ +export interface KubeReplicationControllerProps { + /** + * If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.ReplicationController#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.core.v1.ReplicationController#spec + */ + readonly spec?: ReplicationControllerSpec; + +} + +/** + * Converts an object of type 'KubeReplicationControllerProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeReplicationControllerProps(obj: KubeReplicationControllerProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_ReplicationControllerSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ReplicationControllerList is a collection of replication controllers. + * + * @schema io.k8s.api.core.v1.ReplicationControllerList + */ +export interface KubeReplicationControllerListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.core.v1.ReplicationControllerList#metadata + */ + readonly metadata?: ListMeta; + + /** + * List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + * + * @schema io.k8s.api.core.v1.ReplicationControllerList#items + */ + readonly items: KubeReplicationControllerProps[]; + +} + +/** + * Converts an object of type 'KubeReplicationControllerListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeReplicationControllerListProps(obj: KubeReplicationControllerListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeReplicationControllerProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ResourceQuota sets aggregate quota restrictions enforced per namespace + * + * @schema io.k8s.api.core.v1.ResourceQuota + */ +export interface KubeResourceQuotaProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.ResourceQuota#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.core.v1.ResourceQuota#spec + */ + readonly spec?: ResourceQuotaSpec; + +} + +/** + * Converts an object of type 'KubeResourceQuotaProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeResourceQuotaProps(obj: KubeResourceQuotaProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_ResourceQuotaSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ResourceQuotaList is a list of ResourceQuota items. + * + * @schema io.k8s.api.core.v1.ResourceQuotaList + */ +export interface KubeResourceQuotaListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.core.v1.ResourceQuotaList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ + * + * @schema io.k8s.api.core.v1.ResourceQuotaList#items + */ + readonly items: KubeResourceQuotaProps[]; + +} + +/** + * Converts an object of type 'KubeResourceQuotaListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeResourceQuotaListProps(obj: KubeResourceQuotaListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeResourceQuotaProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes. + * + * @schema io.k8s.api.core.v1.Secret + */ +export interface KubeSecretProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.Secret#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 + * + * @schema io.k8s.api.core.v1.Secret#data + */ + readonly data?: { [key: string]: string }; + + /** + * Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. + * + * @schema io.k8s.api.core.v1.Secret#immutable + */ + readonly immutable?: boolean; + + /** + * stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API. + * + * @schema io.k8s.api.core.v1.Secret#stringData + */ + readonly stringData?: { [key: string]: string }; + + /** + * Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types + * + * @schema io.k8s.api.core.v1.Secret#type + */ + readonly type?: string; + +} + +/** + * Converts an object of type 'KubeSecretProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeSecretProps(obj: KubeSecretProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'data': ((obj.data) === undefined) ? undefined : (Object.entries(obj.data).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + 'immutable': obj.immutable, + 'stringData': ((obj.stringData) === undefined) ? undefined : (Object.entries(obj.stringData).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * SecretList is a list of Secret. + * + * @schema io.k8s.api.core.v1.SecretList + */ +export interface KubeSecretListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.core.v1.SecretList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret + * + * @schema io.k8s.api.core.v1.SecretList#items + */ + readonly items: KubeSecretProps[]; + +} + +/** + * Converts an object of type 'KubeSecretListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeSecretListProps(obj: KubeSecretListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeSecretProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy. + * + * @schema io.k8s.api.core.v1.Service + */ +export interface KubeServiceProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.Service#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.core.v1.Service#spec + */ + readonly spec?: ServiceSpec; + +} + +/** + * Converts an object of type 'KubeServiceProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeServiceProps(obj: KubeServiceProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_ServiceSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets + * + * @schema io.k8s.api.core.v1.ServiceAccount + */ +export interface KubeServiceAccountProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.ServiceAccount#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. + * + * @schema io.k8s.api.core.v1.ServiceAccount#automountServiceAccountToken + */ + readonly automountServiceAccountToken?: boolean; + + /** + * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod + * + * @schema io.k8s.api.core.v1.ServiceAccount#imagePullSecrets + */ + readonly imagePullSecrets?: LocalObjectReference[]; + + /** + * Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use. Pods are only limited to this list if this service account has a "kubernetes.io/enforce-mountable-secrets" annotation set to "true". This field should not be used to find auto-generated service account token secrets for use outside of pods. Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created. More info: https://kubernetes.io/docs/concepts/configuration/secret + * + * @schema io.k8s.api.core.v1.ServiceAccount#secrets + */ + readonly secrets?: ObjectReference[]; + +} + +/** + * Converts an object of type 'KubeServiceAccountProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeServiceAccountProps(obj: KubeServiceAccountProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'automountServiceAccountToken': obj.automountServiceAccountToken, + 'imagePullSecrets': obj.imagePullSecrets?.map(y => toJson_LocalObjectReference(y)), + 'secrets': obj.secrets?.map(y => toJson_ObjectReference(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ServiceAccountList is a list of ServiceAccount objects + * + * @schema io.k8s.api.core.v1.ServiceAccountList + */ +export interface KubeServiceAccountListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.core.v1.ServiceAccountList#metadata + */ + readonly metadata?: ListMeta; + + /** + * List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * + * @schema io.k8s.api.core.v1.ServiceAccountList#items + */ + readonly items: KubeServiceAccountProps[]; + +} + +/** + * Converts an object of type 'KubeServiceAccountListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeServiceAccountListProps(obj: KubeServiceAccountListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeServiceAccountProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ServiceList holds a list of services. + * + * @schema io.k8s.api.core.v1.ServiceList + */ +export interface KubeServiceListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.core.v1.ServiceList#metadata + */ + readonly metadata?: ListMeta; + + /** + * List of services + * + * @schema io.k8s.api.core.v1.ServiceList#items + */ + readonly items: KubeServiceProps[]; + +} + +/** + * Converts an object of type 'KubeServiceListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeServiceListProps(obj: KubeServiceListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeServiceProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints. + * + * @schema io.k8s.api.discovery.v1.EndpointSlice + */ +export interface KubeEndpointSliceProps { + /** + * Standard object's metadata. + * + * @schema io.k8s.api.discovery.v1.EndpointSlice#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. + * + * + * + * @schema io.k8s.api.discovery.v1.EndpointSlice#addressType + */ + readonly addressType: string; + + /** + * endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. + * + * @schema io.k8s.api.discovery.v1.EndpointSlice#endpoints + */ + readonly endpoints: Endpoint[]; + + /** + * ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports. + * + * @schema io.k8s.api.discovery.v1.EndpointSlice#ports + */ + readonly ports?: EndpointPort[]; + +} + +/** + * Converts an object of type 'KubeEndpointSliceProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeEndpointSliceProps(obj: KubeEndpointSliceProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'addressType': obj.addressType, + 'endpoints': obj.endpoints?.map(y => toJson_Endpoint(y)), + 'ports': obj.ports?.map(y => toJson_EndpointPort(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * EndpointSliceList represents a list of endpoint slices + * + * @schema io.k8s.api.discovery.v1.EndpointSliceList + */ +export interface KubeEndpointSliceListProps { + /** + * Standard list metadata. + * + * @schema io.k8s.api.discovery.v1.EndpointSliceList#metadata + */ + readonly metadata?: ListMeta; + + /** + * List of endpoint slices + * + * @schema io.k8s.api.discovery.v1.EndpointSliceList#items + */ + readonly items: KubeEndpointSliceProps[]; + +} + +/** + * Converts an object of type 'KubeEndpointSliceListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeEndpointSliceListProps(obj: KubeEndpointSliceListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeEndpointSliceProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". + * + * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchema + */ +export interface KubeFlowSchemaV1Beta1Props { + /** + * `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchema#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * `spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchema#spec + */ + readonly spec?: FlowSchemaSpecV1Beta1; + +} + +/** + * Converts an object of type 'KubeFlowSchemaV1Beta1Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeFlowSchemaV1Beta1Props(obj: KubeFlowSchemaV1Beta1Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_FlowSchemaSpecV1Beta1(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * FlowSchemaList is a list of FlowSchema objects. + * + * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchemaList + */ +export interface KubeFlowSchemaListV1Beta1Props { + /** + * `metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchemaList#metadata + */ + readonly metadata?: ListMeta; + + /** + * `items` is a list of FlowSchemas. + * + * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchemaList#items + */ + readonly items: KubeFlowSchemaV1Beta1Props[]; + +} + +/** + * Converts an object of type 'KubeFlowSchemaListV1Beta1Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeFlowSchemaListV1Beta1Props(obj: KubeFlowSchemaListV1Beta1Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeFlowSchemaV1Beta1Props(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PriorityLevelConfiguration represents the configuration of a priority level. + * + * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration + */ +export interface KubePriorityLevelConfigurationV1Beta1Props { + /** + * `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * `spec` is the specification of the desired behavior of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration#spec + */ + readonly spec?: PriorityLevelConfigurationSpecV1Beta1; + +} + +/** + * Converts an object of type 'KubePriorityLevelConfigurationV1Beta1Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubePriorityLevelConfigurationV1Beta1Props(obj: KubePriorityLevelConfigurationV1Beta1Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_PriorityLevelConfigurationSpecV1Beta1(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. + * + * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationList + */ +export interface KubePriorityLevelConfigurationListV1Beta1Props { + /** + * `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationList#metadata + */ + readonly metadata?: ListMeta; + + /** + * `items` is a list of request-priorities. + * + * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationList#items + */ + readonly items: KubePriorityLevelConfigurationV1Beta1Props[]; + +} + +/** + * Converts an object of type 'KubePriorityLevelConfigurationListV1Beta1Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubePriorityLevelConfigurationListV1Beta1Props(obj: KubePriorityLevelConfigurationListV1Beta1Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubePriorityLevelConfigurationV1Beta1Props(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". + * + * @schema io.k8s.api.flowcontrol.v1beta2.FlowSchema + */ +export interface KubeFlowSchemaV1Beta2Props { + /** + * `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.flowcontrol.v1beta2.FlowSchema#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * `spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.flowcontrol.v1beta2.FlowSchema#spec + */ + readonly spec?: FlowSchemaSpecV1Beta2; + +} + +/** + * Converts an object of type 'KubeFlowSchemaV1Beta2Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeFlowSchemaV1Beta2Props(obj: KubeFlowSchemaV1Beta2Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_FlowSchemaSpecV1Beta2(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * FlowSchemaList is a list of FlowSchema objects. + * + * @schema io.k8s.api.flowcontrol.v1beta2.FlowSchemaList + */ +export interface KubeFlowSchemaListV1Beta2Props { + /** + * `metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.flowcontrol.v1beta2.FlowSchemaList#metadata + */ + readonly metadata?: ListMeta; + + /** + * `items` is a list of FlowSchemas. + * + * @schema io.k8s.api.flowcontrol.v1beta2.FlowSchemaList#items + */ + readonly items: KubeFlowSchemaV1Beta2Props[]; + +} + +/** + * Converts an object of type 'KubeFlowSchemaListV1Beta2Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeFlowSchemaListV1Beta2Props(obj: KubeFlowSchemaListV1Beta2Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeFlowSchemaV1Beta2Props(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PriorityLevelConfiguration represents the configuration of a priority level. + * + * @schema io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration + */ +export interface KubePriorityLevelConfigurationV1Beta2Props { + /** + * `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * `spec` is the specification of the desired behavior of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfiguration#spec + */ + readonly spec?: PriorityLevelConfigurationSpecV1Beta2; + +} + +/** + * Converts an object of type 'KubePriorityLevelConfigurationV1Beta2Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubePriorityLevelConfigurationV1Beta2Props(obj: KubePriorityLevelConfigurationV1Beta2Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_PriorityLevelConfigurationSpecV1Beta2(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. + * + * @schema io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationList + */ +export interface KubePriorityLevelConfigurationListV1Beta2Props { + /** + * `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationList#metadata + */ + readonly metadata?: ListMeta; + + /** + * `items` is a list of request-priorities. + * + * @schema io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationList#items + */ + readonly items: KubePriorityLevelConfigurationV1Beta2Props[]; + +} + +/** + * Converts an object of type 'KubePriorityLevelConfigurationListV1Beta2Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubePriorityLevelConfigurationListV1Beta2Props(obj: KubePriorityLevelConfigurationListV1Beta2Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubePriorityLevelConfigurationV1Beta2Props(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. + * + * @schema io.k8s.api.networking.v1.Ingress + */ +export interface KubeIngressProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.networking.v1.Ingress#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.networking.v1.Ingress#spec + */ + readonly spec?: IngressSpec; + +} + +/** + * Converts an object of type 'KubeIngressProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeIngressProps(obj: KubeIngressProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_IngressSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class. + * + * @schema io.k8s.api.networking.v1.IngressClass + */ +export interface KubeIngressClassProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.networking.v1.IngressClass#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.networking.v1.IngressClass#spec + */ + readonly spec?: IngressClassSpec; + +} + +/** + * Converts an object of type 'KubeIngressClassProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeIngressClassProps(obj: KubeIngressClassProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_IngressClassSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * IngressClassList is a collection of IngressClasses. + * + * @schema io.k8s.api.networking.v1.IngressClassList + */ +export interface KubeIngressClassListProps { + /** + * Standard list metadata. + * + * @schema io.k8s.api.networking.v1.IngressClassList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is the list of IngressClasses. + * + * @schema io.k8s.api.networking.v1.IngressClassList#items + */ + readonly items: KubeIngressClassProps[]; + +} + +/** + * Converts an object of type 'KubeIngressClassListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeIngressClassListProps(obj: KubeIngressClassListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeIngressClassProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * IngressList is a collection of Ingress. + * + * @schema io.k8s.api.networking.v1.IngressList + */ +export interface KubeIngressListProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.networking.v1.IngressList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is the list of Ingress. + * + * @schema io.k8s.api.networking.v1.IngressList#items + */ + readonly items: KubeIngressProps[]; + +} + +/** + * Converts an object of type 'KubeIngressListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeIngressListProps(obj: KubeIngressListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeIngressProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * NetworkPolicy describes what network traffic is allowed for a set of Pods + * + * @schema io.k8s.api.networking.v1.NetworkPolicy + */ +export interface KubeNetworkPolicyProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.networking.v1.NetworkPolicy#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Specification of the desired behavior for this NetworkPolicy. + * + * @schema io.k8s.api.networking.v1.NetworkPolicy#spec + */ + readonly spec?: NetworkPolicySpec; + +} + +/** + * Converts an object of type 'KubeNetworkPolicyProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeNetworkPolicyProps(obj: KubeNetworkPolicyProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_NetworkPolicySpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * NetworkPolicyList is a list of NetworkPolicy objects. + * + * @schema io.k8s.api.networking.v1.NetworkPolicyList + */ +export interface KubeNetworkPolicyListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.networking.v1.NetworkPolicyList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is a list of schema objects. + * + * @schema io.k8s.api.networking.v1.NetworkPolicyList#items + */ + readonly items: KubeNetworkPolicyProps[]; + +} + +/** + * Converts an object of type 'KubeNetworkPolicyListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeNetworkPolicyListProps(obj: KubeNetworkPolicyListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeNetworkPolicyProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ClusterCIDR represents a single configuration for per-Node Pod CIDR allocations when the MultiCIDRRangeAllocator is enabled (see the config for kube-controller-manager). A cluster may have any number of ClusterCIDR resources, all of which will be considered when allocating a CIDR for a Node. A ClusterCIDR is eligible to be used for a given Node when the node selector matches the node in question and has free CIDRs to allocate. In case of multiple matching ClusterCIDR resources, the allocator will attempt to break ties using internal heuristics, but any ClusterCIDR whose node selector matches the Node may be used. + * + * @schema io.k8s.api.networking.v1alpha1.ClusterCIDR + */ +export interface KubeClusterCidrv1Alpha1Props { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.networking.v1alpha1.ClusterCIDR#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec is the desired state of the ClusterCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.networking.v1alpha1.ClusterCIDR#spec + */ + readonly spec?: ClusterCidrSpecV1Alpha1; + +} + +/** + * Converts an object of type 'KubeClusterCidrv1Alpha1Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeClusterCidrv1Alpha1Props(obj: KubeClusterCidrv1Alpha1Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_ClusterCidrSpecV1Alpha1(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ClusterCIDRList contains a list of ClusterCIDR. + * + * @schema io.k8s.api.networking.v1alpha1.ClusterCIDRList + */ +export interface KubeClusterCidrListV1Alpha1Props { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.networking.v1alpha1.ClusterCIDRList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is the list of ClusterCIDRs. + * + * @schema io.k8s.api.networking.v1alpha1.ClusterCIDRList#items + */ + readonly items: KubeClusterCidrv1Alpha1Props[]; + +} + +/** + * Converts an object of type 'KubeClusterCidrListV1Alpha1Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeClusterCidrListV1Alpha1Props(obj: KubeClusterCidrListV1Alpha1Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeClusterCidrv1Alpha1Props(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/ + * + * @schema io.k8s.api.node.v1.RuntimeClass + */ +export interface KubeRuntimeClassProps { + /** + * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.node.v1.RuntimeClass#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable. + * + * @schema io.k8s.api.node.v1.RuntimeClass#handler + */ + readonly handler: string; + + /** + * Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see + * https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/ + * + * @schema io.k8s.api.node.v1.RuntimeClass#overhead + */ + readonly overhead?: Overhead; + + /** + * Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes. + * + * @schema io.k8s.api.node.v1.RuntimeClass#scheduling + */ + readonly scheduling?: Scheduling; + +} + +/** + * Converts an object of type 'KubeRuntimeClassProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeRuntimeClassProps(obj: KubeRuntimeClassProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'handler': obj.handler, + 'overhead': toJson_Overhead(obj.overhead), + 'scheduling': toJson_Scheduling(obj.scheduling), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * RuntimeClassList is a list of RuntimeClass objects. + * + * @schema io.k8s.api.node.v1.RuntimeClassList + */ +export interface KubeRuntimeClassListProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.node.v1.RuntimeClassList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is a list of schema objects. + * + * @schema io.k8s.api.node.v1.RuntimeClassList#items + */ + readonly items: KubeRuntimeClassProps[]; + +} + +/** + * Converts an object of type 'KubeRuntimeClassListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeRuntimeClassListProps(obj: KubeRuntimeClassListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeRuntimeClassProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods//evictions. + * + * @schema io.k8s.api.policy.v1.Eviction + */ +export interface KubeEvictionProps { + /** + * ObjectMeta describes the pod that is being evicted. + * + * @schema io.k8s.api.policy.v1.Eviction#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * DeleteOptions may be provided + * + * @schema io.k8s.api.policy.v1.Eviction#deleteOptions + */ + readonly deleteOptions?: DeleteOptions; + +} + +/** + * Converts an object of type 'KubeEvictionProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeEvictionProps(obj: KubeEvictionProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'deleteOptions': toJson_DeleteOptions(obj.deleteOptions), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods + * + * @schema io.k8s.api.policy.v1.PodDisruptionBudget + */ +export interface KubePodDisruptionBudgetProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.policy.v1.PodDisruptionBudget#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Specification of the desired behavior of the PodDisruptionBudget. + * + * @schema io.k8s.api.policy.v1.PodDisruptionBudget#spec + */ + readonly spec?: PodDisruptionBudgetSpec; + +} + +/** + * Converts an object of type 'KubePodDisruptionBudgetProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubePodDisruptionBudgetProps(obj: KubePodDisruptionBudgetProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_PodDisruptionBudgetSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodDisruptionBudgetList is a collection of PodDisruptionBudgets. + * + * @schema io.k8s.api.policy.v1.PodDisruptionBudgetList + */ +export interface KubePodDisruptionBudgetListProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.policy.v1.PodDisruptionBudgetList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is a list of PodDisruptionBudgets + * + * @schema io.k8s.api.policy.v1.PodDisruptionBudgetList#items + */ + readonly items: KubePodDisruptionBudgetProps[]; + +} + +/** + * Converts an object of type 'KubePodDisruptionBudgetListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubePodDisruptionBudgetListProps(obj: KubePodDisruptionBudgetListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubePodDisruptionBudgetProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. + * + * @schema io.k8s.api.rbac.v1.ClusterRole + */ +export interface KubeClusterRoleProps { + /** + * Standard object's metadata. + * + * @schema io.k8s.api.rbac.v1.ClusterRole#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + * + * @schema io.k8s.api.rbac.v1.ClusterRole#aggregationRule + */ + readonly aggregationRule?: AggregationRule; + + /** + * Rules holds all the PolicyRules for this ClusterRole + * + * @schema io.k8s.api.rbac.v1.ClusterRole#rules + */ + readonly rules?: PolicyRule[]; + +} + +/** + * Converts an object of type 'KubeClusterRoleProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeClusterRoleProps(obj: KubeClusterRoleProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'aggregationRule': toJson_AggregationRule(obj.aggregationRule), + 'rules': obj.rules?.map(y => toJson_PolicyRule(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. + * + * @schema io.k8s.api.rbac.v1.ClusterRoleBinding + */ +export interface KubeClusterRoleBindingProps { + /** + * Standard object's metadata. + * + * @schema io.k8s.api.rbac.v1.ClusterRoleBinding#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + * + * @schema io.k8s.api.rbac.v1.ClusterRoleBinding#roleRef + */ + readonly roleRef: RoleRef; + + /** + * Subjects holds references to the objects the role applies to. + * + * @schema io.k8s.api.rbac.v1.ClusterRoleBinding#subjects + */ + readonly subjects?: Subject[]; + +} + +/** + * Converts an object of type 'KubeClusterRoleBindingProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeClusterRoleBindingProps(obj: KubeClusterRoleBindingProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'roleRef': toJson_RoleRef(obj.roleRef), + 'subjects': obj.subjects?.map(y => toJson_Subject(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ClusterRoleBindingList is a collection of ClusterRoleBindings + * + * @schema io.k8s.api.rbac.v1.ClusterRoleBindingList + */ +export interface KubeClusterRoleBindingListProps { + /** + * Standard object's metadata. + * + * @schema io.k8s.api.rbac.v1.ClusterRoleBindingList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is a list of ClusterRoleBindings + * + * @schema io.k8s.api.rbac.v1.ClusterRoleBindingList#items + */ + readonly items: KubeClusterRoleBindingProps[]; + +} + +/** + * Converts an object of type 'KubeClusterRoleBindingListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeClusterRoleBindingListProps(obj: KubeClusterRoleBindingListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeClusterRoleBindingProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ClusterRoleList is a collection of ClusterRoles + * + * @schema io.k8s.api.rbac.v1.ClusterRoleList + */ +export interface KubeClusterRoleListProps { + /** + * Standard object's metadata. + * + * @schema io.k8s.api.rbac.v1.ClusterRoleList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is a list of ClusterRoles + * + * @schema io.k8s.api.rbac.v1.ClusterRoleList#items + */ + readonly items: KubeClusterRoleProps[]; + +} + +/** + * Converts an object of type 'KubeClusterRoleListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeClusterRoleListProps(obj: KubeClusterRoleListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeClusterRoleProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. + * + * @schema io.k8s.api.rbac.v1.Role + */ +export interface KubeRoleProps { + /** + * Standard object's metadata. + * + * @schema io.k8s.api.rbac.v1.Role#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Rules holds all the PolicyRules for this Role + * + * @schema io.k8s.api.rbac.v1.Role#rules + */ + readonly rules?: PolicyRule[]; + +} + +/** + * Converts an object of type 'KubeRoleProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeRoleProps(obj: KubeRoleProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'rules': obj.rules?.map(y => toJson_PolicyRule(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. + * + * @schema io.k8s.api.rbac.v1.RoleBinding + */ +export interface KubeRoleBindingProps { + /** + * Standard object's metadata. + * + * @schema io.k8s.api.rbac.v1.RoleBinding#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + * + * @schema io.k8s.api.rbac.v1.RoleBinding#roleRef + */ + readonly roleRef: RoleRef; + + /** + * Subjects holds references to the objects the role applies to. + * + * @schema io.k8s.api.rbac.v1.RoleBinding#subjects + */ + readonly subjects?: Subject[]; + +} + +/** + * Converts an object of type 'KubeRoleBindingProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeRoleBindingProps(obj: KubeRoleBindingProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'roleRef': toJson_RoleRef(obj.roleRef), + 'subjects': obj.subjects?.map(y => toJson_Subject(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * RoleBindingList is a collection of RoleBindings + * + * @schema io.k8s.api.rbac.v1.RoleBindingList + */ +export interface KubeRoleBindingListProps { + /** + * Standard object's metadata. + * + * @schema io.k8s.api.rbac.v1.RoleBindingList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is a list of RoleBindings + * + * @schema io.k8s.api.rbac.v1.RoleBindingList#items + */ + readonly items: KubeRoleBindingProps[]; + +} + +/** + * Converts an object of type 'KubeRoleBindingListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeRoleBindingListProps(obj: KubeRoleBindingListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeRoleBindingProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * RoleList is a collection of Roles + * + * @schema io.k8s.api.rbac.v1.RoleList + */ +export interface KubeRoleListProps { + /** + * Standard object's metadata. + * + * @schema io.k8s.api.rbac.v1.RoleList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is a list of Roles + * + * @schema io.k8s.api.rbac.v1.RoleList#items + */ + readonly items: KubeRoleProps[]; + +} + +/** + * Converts an object of type 'KubeRoleListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeRoleListProps(obj: KubeRoleListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeRoleProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. + * + * @schema io.k8s.api.scheduling.v1.PriorityClass + */ +export interface KubePriorityClassProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.scheduling.v1.PriorityClass#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * description is an arbitrary string that usually provides guidelines on when this priority class should be used. + * + * @schema io.k8s.api.scheduling.v1.PriorityClass#description + */ + readonly description?: string; + + /** + * globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. + * + * @schema io.k8s.api.scheduling.v1.PriorityClass#globalDefault + */ + readonly globalDefault?: boolean; + + /** + * PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. + * + * @default PreemptLowerPriority if unset. + * @schema io.k8s.api.scheduling.v1.PriorityClass#preemptionPolicy + */ + readonly preemptionPolicy?: string; + + /** + * The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + * + * @schema io.k8s.api.scheduling.v1.PriorityClass#value + */ + readonly value: number; + +} + +/** + * Converts an object of type 'KubePriorityClassProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubePriorityClassProps(obj: KubePriorityClassProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'description': obj.description, + 'globalDefault': obj.globalDefault, + 'preemptionPolicy': obj.preemptionPolicy, + 'value': obj.value, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PriorityClassList is a collection of priority classes. + * + * @schema io.k8s.api.scheduling.v1.PriorityClassList + */ +export interface KubePriorityClassListProps { + /** + * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.scheduling.v1.PriorityClassList#metadata + */ + readonly metadata?: ListMeta; + + /** + * items is the list of PriorityClasses + * + * @schema io.k8s.api.scheduling.v1.PriorityClassList#items + */ + readonly items: KubePriorityClassProps[]; + +} + +/** + * Converts an object of type 'KubePriorityClassListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubePriorityClassListProps(obj: KubePriorityClassListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubePriorityClassProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced. + * + * @schema io.k8s.api.storage.v1.CSIDriver + */ +export interface KubeCsiDriverProps { + /** + * Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.storage.v1.CSIDriver#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Specification of the CSI Driver. + * + * @schema io.k8s.api.storage.v1.CSIDriver#spec + */ + readonly spec: CsiDriverSpec; + +} + +/** + * Converts an object of type 'KubeCsiDriverProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeCsiDriverProps(obj: KubeCsiDriverProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_CsiDriverSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CSIDriverList is a collection of CSIDriver objects. + * + * @schema io.k8s.api.storage.v1.CSIDriverList + */ +export interface KubeCsiDriverListProps { + /** + * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.storage.v1.CSIDriverList#metadata + */ + readonly metadata?: ListMeta; + + /** + * items is the list of CSIDriver + * + * @schema io.k8s.api.storage.v1.CSIDriverList#items + */ + readonly items: KubeCsiDriverProps[]; + +} + +/** + * Converts an object of type 'KubeCsiDriverListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeCsiDriverListProps(obj: KubeCsiDriverListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeCsiDriverProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object. + * + * @schema io.k8s.api.storage.v1.CSINode + */ +export interface KubeCsiNodeProps { + /** + * metadata.name must be the Kubernetes node name. + * + * @schema io.k8s.api.storage.v1.CSINode#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * spec is the specification of CSINode + * + * @schema io.k8s.api.storage.v1.CSINode#spec + */ + readonly spec: CsiNodeSpec; + +} + +/** + * Converts an object of type 'KubeCsiNodeProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeCsiNodeProps(obj: KubeCsiNodeProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_CsiNodeSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CSINodeList is a collection of CSINode objects. + * + * @schema io.k8s.api.storage.v1.CSINodeList + */ +export interface KubeCsiNodeListProps { + /** + * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.storage.v1.CSINodeList#metadata + */ + readonly metadata?: ListMeta; + + /** + * items is the list of CSINode + * + * @schema io.k8s.api.storage.v1.CSINodeList#items + */ + readonly items: KubeCsiNodeProps[]; + +} + +/** + * Converts an object of type 'KubeCsiNodeListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeCsiNodeListProps(obj: KubeCsiNodeListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeCsiNodeProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes. + * + * For example this can express things like: - StorageClass "standard" has "1234 GiB" available in "topology.kubernetes.io/zone=us-east1" - StorageClass "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123" + * + * The following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero + * + * The producer of these objects can decide which approach is more suitable. + * + * They are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node. + * + * @schema io.k8s.api.storage.v1.CSIStorageCapacity + */ +export interface KubeCsiStorageCapacityProps { + /** + * Standard object's metadata. The name has no particular meaning. It must be be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name. + * + * Objects are namespaced. + * + * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.storage.v1.CSIStorageCapacity#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields. + * + * The semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable. + * + * @schema io.k8s.api.storage.v1.CSIStorageCapacity#capacity + */ + readonly capacity?: Quantity; + + /** + * MaximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields. + * + * This is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim. + * + * @schema io.k8s.api.storage.v1.CSIStorageCapacity#maximumVolumeSize + */ + readonly maximumVolumeSize?: Quantity; + + /** + * NodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable. + * + * @schema io.k8s.api.storage.v1.CSIStorageCapacity#nodeTopology + */ + readonly nodeTopology?: LabelSelector; + + /** + * The name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable. + * + * @schema io.k8s.api.storage.v1.CSIStorageCapacity#storageClassName + */ + readonly storageClassName: string; + +} + +/** + * Converts an object of type 'KubeCsiStorageCapacityProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeCsiStorageCapacityProps(obj: KubeCsiStorageCapacityProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'capacity': obj.capacity?.value, + 'maximumVolumeSize': obj.maximumVolumeSize?.value, + 'nodeTopology': toJson_LabelSelector(obj.nodeTopology), + 'storageClassName': obj.storageClassName, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CSIStorageCapacityList is a collection of CSIStorageCapacity objects. + * + * @schema io.k8s.api.storage.v1.CSIStorageCapacityList + */ +export interface KubeCsiStorageCapacityListProps { + /** + * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.storage.v1.CSIStorageCapacityList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is the list of CSIStorageCapacity objects. + * + * @schema io.k8s.api.storage.v1.CSIStorageCapacityList#items + */ + readonly items: KubeCsiStorageCapacityProps[]; + +} + +/** + * Converts an object of type 'KubeCsiStorageCapacityListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeCsiStorageCapacityListProps(obj: KubeCsiStorageCapacityListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeCsiStorageCapacityProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. + * + * StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name. + * + * @schema io.k8s.api.storage.v1.StorageClass + */ +export interface KubeStorageClassProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.storage.v1.StorageClass#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * AllowVolumeExpansion shows whether the storage class allow volume expand + * + * @schema io.k8s.api.storage.v1.StorageClass#allowVolumeExpansion + */ + readonly allowVolumeExpansion?: boolean; + + /** + * Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. + * + * @schema io.k8s.api.storage.v1.StorageClass#allowedTopologies + */ + readonly allowedTopologies?: TopologySelectorTerm[]; + + /** + * Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. + * + * @schema io.k8s.api.storage.v1.StorageClass#mountOptions + */ + readonly mountOptions?: string[]; + + /** + * Parameters holds the parameters for the provisioner that should create volumes of this storage class. + * + * @schema io.k8s.api.storage.v1.StorageClass#parameters + */ + readonly parameters?: { [key: string]: string }; + + /** + * Provisioner indicates the type of the provisioner. + * + * @schema io.k8s.api.storage.v1.StorageClass#provisioner + */ + readonly provisioner: string; + + /** + * Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. + * + * @default Delete. + * @schema io.k8s.api.storage.v1.StorageClass#reclaimPolicy + */ + readonly reclaimPolicy?: string; + + /** + * VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. + * + * @schema io.k8s.api.storage.v1.StorageClass#volumeBindingMode + */ + readonly volumeBindingMode?: string; + +} + +/** + * Converts an object of type 'KubeStorageClassProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeStorageClassProps(obj: KubeStorageClassProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'allowVolumeExpansion': obj.allowVolumeExpansion, + 'allowedTopologies': obj.allowedTopologies?.map(y => toJson_TopologySelectorTerm(y)), + 'mountOptions': obj.mountOptions?.map(y => y), + 'parameters': ((obj.parameters) === undefined) ? undefined : (Object.entries(obj.parameters).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + 'provisioner': obj.provisioner, + 'reclaimPolicy': obj.reclaimPolicy, + 'volumeBindingMode': obj.volumeBindingMode, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * StorageClassList is a collection of storage classes. + * + * @schema io.k8s.api.storage.v1.StorageClassList + */ +export interface KubeStorageClassListProps { + /** + * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.storage.v1.StorageClassList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is the list of StorageClasses + * + * @schema io.k8s.api.storage.v1.StorageClassList#items + */ + readonly items: KubeStorageClassProps[]; + +} + +/** + * Converts an object of type 'KubeStorageClassListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeStorageClassListProps(obj: KubeStorageClassListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeStorageClassProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. + * + * VolumeAttachment objects are non-namespaced. + * + * @schema io.k8s.api.storage.v1.VolumeAttachment + */ +export interface KubeVolumeAttachmentProps { + /** + * Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.storage.v1.VolumeAttachment#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + * + * @schema io.k8s.api.storage.v1.VolumeAttachment#spec + */ + readonly spec: VolumeAttachmentSpec; + +} + +/** + * Converts an object of type 'KubeVolumeAttachmentProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeVolumeAttachmentProps(obj: KubeVolumeAttachmentProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_VolumeAttachmentSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * VolumeAttachmentList is a collection of VolumeAttachment objects. + * + * @schema io.k8s.api.storage.v1.VolumeAttachmentList + */ +export interface KubeVolumeAttachmentListProps { + /** + * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.storage.v1.VolumeAttachmentList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is the list of VolumeAttachments + * + * @schema io.k8s.api.storage.v1.VolumeAttachmentList#items + */ + readonly items: KubeVolumeAttachmentProps[]; + +} + +/** + * Converts an object of type 'KubeVolumeAttachmentListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeVolumeAttachmentListProps(obj: KubeVolumeAttachmentListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeVolumeAttachmentProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes. + * + * For example this can express things like: - StorageClass "standard" has "1234 GiB" available in "topology.kubernetes.io/zone=us-east1" - StorageClass "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123" + * + * The following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero + * + * The producer of these objects can decide which approach is more suitable. + * + * They are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node. + * + * @schema io.k8s.api.storage.v1beta1.CSIStorageCapacity + */ +export interface KubeCsiStorageCapacityV1Beta1Props { + /** + * Standard object's metadata. The name has no particular meaning. It must be be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name. + * + * Objects are namespaced. + * + * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.storage.v1beta1.CSIStorageCapacity#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields. + * + * The semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable. + * + * @schema io.k8s.api.storage.v1beta1.CSIStorageCapacity#capacity + */ + readonly capacity?: Quantity; + + /** + * MaximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields. + * + * This is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim. + * + * @schema io.k8s.api.storage.v1beta1.CSIStorageCapacity#maximumVolumeSize + */ + readonly maximumVolumeSize?: Quantity; + + /** + * NodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable. + * + * @schema io.k8s.api.storage.v1beta1.CSIStorageCapacity#nodeTopology + */ + readonly nodeTopology?: LabelSelector; + + /** + * The name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable. + * + * @schema io.k8s.api.storage.v1beta1.CSIStorageCapacity#storageClassName + */ + readonly storageClassName: string; + +} + +/** + * Converts an object of type 'KubeCsiStorageCapacityV1Beta1Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeCsiStorageCapacityV1Beta1Props(obj: KubeCsiStorageCapacityV1Beta1Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'capacity': obj.capacity?.value, + 'maximumVolumeSize': obj.maximumVolumeSize?.value, + 'nodeTopology': toJson_LabelSelector(obj.nodeTopology), + 'storageClassName': obj.storageClassName, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CSIStorageCapacityList is a collection of CSIStorageCapacity objects. + * + * @schema io.k8s.api.storage.v1beta1.CSIStorageCapacityList + */ +export interface KubeCsiStorageCapacityListV1Beta1Props { + /** + * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.storage.v1beta1.CSIStorageCapacityList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is the list of CSIStorageCapacity objects. + * + * @schema io.k8s.api.storage.v1beta1.CSIStorageCapacityList#items + */ + readonly items: KubeCsiStorageCapacityV1Beta1Props[]; + +} + +/** + * Converts an object of type 'KubeCsiStorageCapacityListV1Beta1Props' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeCsiStorageCapacityListV1Beta1Props(obj: KubeCsiStorageCapacityListV1Beta1Props | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeCsiStorageCapacityV1Beta1Props(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition + */ +export interface KubeCustomResourceDefinitionProps { + /** + * Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * spec describes how the user wants the resources to appear + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition#spec + */ + readonly spec: CustomResourceDefinitionSpec; + +} + +/** + * Converts an object of type 'KubeCustomResourceDefinitionProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeCustomResourceDefinitionProps(obj: KubeCustomResourceDefinitionProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_CustomResourceDefinitionSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CustomResourceDefinitionList is a list of CustomResourceDefinition objects. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList + */ +export interface KubeCustomResourceDefinitionListProps { + /** + * Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList#metadata + */ + readonly metadata?: ListMeta; + + /** + * items list individual CustomResourceDefinition objects + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList#items + */ + readonly items: KubeCustomResourceDefinitionProps[]; + +} + +/** + * Converts an object of type 'KubeCustomResourceDefinitionListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeCustomResourceDefinitionListProps(obj: KubeCustomResourceDefinitionListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeCustomResourceDefinitionProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Status is a return value for calls that don't return other objects. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Status + */ +export interface KubeStatusProps { + /** + * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Status#metadata + */ + readonly metadata?: ListMeta; + + /** + * Suggested HTTP return code for this status, 0 if not set. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Status#code + */ + readonly code?: number; + + /** + * Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Status#details + */ + readonly details?: StatusDetails; + + /** + * A human-readable description of the status of this operation. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Status#message + */ + readonly message?: string; + + /** + * A machine-readable description of why this operation is in the "Failure" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Status#reason + */ + readonly reason?: string; + +} + +/** + * Converts an object of type 'KubeStatusProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeStatusProps(obj: KubeStatusProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'code': obj.code, + 'details': toJson_StatusDetails(obj.details), + 'message': obj.message, + 'reason': obj.reason, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * APIService represents a server for a particular GroupVersion. Name must be "version.group". + * + * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService + */ +export interface KubeApiServiceProps { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Spec contains information for locating and communicating with a server + * + * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService#spec + */ + readonly spec?: ApiServiceSpec; + +} + +/** + * Converts an object of type 'KubeApiServiceProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeApiServiceProps(obj: KubeApiServiceProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_ApiServiceSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * APIServiceList is a list of APIService objects. + * + * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList + */ +export interface KubeApiServiceListProps { + /** + * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList#metadata + */ + readonly metadata?: ListMeta; + + /** + * Items is the list of APIService + * + * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList#items + */ + readonly items: KubeApiServiceProps[]; + +} + +/** + * Converts an object of type 'KubeApiServiceListProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KubeApiServiceListProps(obj: KubeApiServiceListProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ListMeta(obj.metadata), + 'items': obj.items?.map(y => toJson_KubeApiServiceProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta + */ +export interface ObjectMeta { + /** + * Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#annotations + */ + readonly annotations?: { [key: string]: string }; + + /** + * CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + * + * Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#creationTimestamp + */ + readonly creationTimestamp?: Date; + + /** + * Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#deletionGracePeriodSeconds + */ + readonly deletionGracePeriodSeconds?: number; + + /** + * DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + * + * Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#deletionTimestamp + */ + readonly deletionTimestamp?: Date; + + /** + * Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#finalizers + */ + readonly finalizers?: string[]; + + /** + * GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + * + * If this field is specified and the generated name exists, the server will return a 409. + * + * Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#generateName + */ + readonly generateName?: string; + + /** + * A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#generation + */ + readonly generation?: number; + + /** + * Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#labels + */ + readonly labels?: { [key: string]: string }; + + /** + * ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#managedFields + */ + readonly managedFields?: ManagedFieldsEntry[]; + + /** + * Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#name + */ + readonly name?: string; + + /** + * Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + * + * Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#namespace + */ + readonly namespace?: string; + + /** + * List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#ownerReferences + */ + readonly ownerReferences?: OwnerReference[]; + + /** + * An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + * + * Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#resourceVersion + */ + readonly resourceVersion?: string; + + /** + * Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#selfLink + */ + readonly selfLink?: string; + + /** + * UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + * + * Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#uid + */ + readonly uid?: string; + +} + +/** + * Converts an object of type 'ObjectMeta' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ObjectMeta(obj: ObjectMeta | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'annotations': ((obj.annotations) === undefined) ? undefined : (Object.entries(obj.annotations).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + 'creationTimestamp': obj.creationTimestamp?.toISOString(), + 'deletionGracePeriodSeconds': obj.deletionGracePeriodSeconds, + 'deletionTimestamp': obj.deletionTimestamp?.toISOString(), + 'finalizers': obj.finalizers?.map(y => y), + 'generateName': obj.generateName, + 'generation': obj.generation, + 'labels': ((obj.labels) === undefined) ? undefined : (Object.entries(obj.labels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + 'managedFields': obj.managedFields?.map(y => toJson_ManagedFieldsEntry(y)), + 'name': obj.name, + 'namespace': obj.namespace, + 'ownerReferences': obj.ownerReferences?.map(y => toJson_OwnerReference(y)), + 'resourceVersion': obj.resourceVersion, + 'selfLink': obj.selfLink, + 'uid': obj.uid, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * MutatingWebhook describes an admission webhook and the resources and operations it applies to. + * + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook + */ +export interface MutatingWebhook { + /** + * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. + * + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#admissionReviewVersions + */ + readonly admissionReviewVersions: string[]; + + /** + * ClientConfig defines how to communicate with the hook. Required + * + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#clientConfig + */ + readonly clientConfig: WebhookClientConfig; + + /** + * FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. + * + * @default Fail. + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#failurePolicy + */ + readonly failurePolicy?: string; + + /** + * matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + * + * - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. + * + * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. + * + * Defaults to "Equivalent" + * + * @default Equivalent" + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#matchPolicy + */ + readonly matchPolicy?: string; + + /** + * The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. + * + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#name + */ + readonly name: string; + + /** + * NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. + * + * For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { + * "matchExpressions": [ + * { + * "key": "runlevel", + * "operator": "NotIn", + * "values": [ + * "0", + * "1" + * ] + * } + * ] + * } + * + * If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { + * "matchExpressions": [ + * { + * "key": "environment", + * "operator": "In", + * "values": [ + * "prod", + * "staging" + * ] + * } + * ] + * } + * + * See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors. + * + * Default to the empty LabelSelector, which matches everything. + * + * @default the empty LabelSelector, which matches everything. + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#namespaceSelector + */ + readonly namespaceSelector?: LabelSelector; + + /** + * ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. + * + * @default the empty LabelSelector, which matches everything. + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#objectSelector + */ + readonly objectSelector?: LabelSelector; + + /** + * reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". + * + * Never: the webhook will not be called more than once in a single admission evaluation. + * + * IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. + * + * Defaults to "Never". + * + * @default Never". + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#reinvocationPolicy + */ + readonly reinvocationPolicy?: string; + + /** + * Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. + * + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#rules + */ + readonly rules?: RuleWithOperations[]; + + /** + * SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. + * + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#sideEffects + */ + readonly sideEffects: string; + + /** + * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. + * + * @default 10 seconds. + * @schema io.k8s.api.admissionregistration.v1.MutatingWebhook#timeoutSeconds + */ + readonly timeoutSeconds?: number; + +} + +/** + * Converts an object of type 'MutatingWebhook' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_MutatingWebhook(obj: MutatingWebhook | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'admissionReviewVersions': obj.admissionReviewVersions?.map(y => y), + 'clientConfig': toJson_WebhookClientConfig(obj.clientConfig), + 'failurePolicy': obj.failurePolicy, + 'matchPolicy': obj.matchPolicy, + 'name': obj.name, + 'namespaceSelector': toJson_LabelSelector(obj.namespaceSelector), + 'objectSelector': toJson_LabelSelector(obj.objectSelector), + 'reinvocationPolicy': obj.reinvocationPolicy, + 'rules': obj.rules?.map(y => toJson_RuleWithOperations(y)), + 'sideEffects': obj.sideEffects, + 'timeoutSeconds': obj.timeoutSeconds, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta + */ +export interface ListMeta { + /** + * continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta#continue + */ + readonly continue?: string; + + /** + * remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta#remainingItemCount + */ + readonly remainingItemCount?: number; + + /** + * String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta#resourceVersion + */ + readonly resourceVersion?: string; + + /** + * Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta#selfLink + */ + readonly selfLink?: string; + +} + +/** + * Converts an object of type 'ListMeta' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ListMeta(obj: ListMeta | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'continue': obj.continue, + 'remainingItemCount': obj.remainingItemCount, + 'resourceVersion': obj.resourceVersion, + 'selfLink': obj.selfLink, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ValidatingWebhook describes an admission webhook and the resources and operations it applies to. + * + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook + */ +export interface ValidatingWebhook { + /** + * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. + * + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#admissionReviewVersions + */ + readonly admissionReviewVersions: string[]; + + /** + * ClientConfig defines how to communicate with the hook. Required + * + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#clientConfig + */ + readonly clientConfig: WebhookClientConfig; + + /** + * FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. + * + * @default Fail. + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#failurePolicy + */ + readonly failurePolicy?: string; + + /** + * matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + * + * - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. + * + * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. + * + * Defaults to "Equivalent" + * + * @default Equivalent" + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#matchPolicy + */ + readonly matchPolicy?: string; + + /** + * The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. + * + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#name + */ + readonly name: string; + + /** + * NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. + * + * For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { + * "matchExpressions": [ + * { + * "key": "runlevel", + * "operator": "NotIn", + * "values": [ + * "0", + * "1" + * ] + * } + * ] + * } + * + * If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { + * "matchExpressions": [ + * { + * "key": "environment", + * "operator": "In", + * "values": [ + * "prod", + * "staging" + * ] + * } + * ] + * } + * + * See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors. + * + * Default to the empty LabelSelector, which matches everything. + * + * @default the empty LabelSelector, which matches everything. + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#namespaceSelector + */ + readonly namespaceSelector?: LabelSelector; + + /** + * ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. + * + * @default the empty LabelSelector, which matches everything. + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#objectSelector + */ + readonly objectSelector?: LabelSelector; + + /** + * Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. + * + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#rules + */ + readonly rules?: RuleWithOperations[]; + + /** + * SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. + * + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#sideEffects + */ + readonly sideEffects: string; + + /** + * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. + * + * @default 10 seconds. + * @schema io.k8s.api.admissionregistration.v1.ValidatingWebhook#timeoutSeconds + */ + readonly timeoutSeconds?: number; + +} + +/** + * Converts an object of type 'ValidatingWebhook' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ValidatingWebhook(obj: ValidatingWebhook | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'admissionReviewVersions': obj.admissionReviewVersions?.map(y => y), + 'clientConfig': toJson_WebhookClientConfig(obj.clientConfig), + 'failurePolicy': obj.failurePolicy, + 'matchPolicy': obj.matchPolicy, + 'name': obj.name, + 'namespaceSelector': toJson_LabelSelector(obj.namespaceSelector), + 'objectSelector': toJson_LabelSelector(obj.objectSelector), + 'rules': obj.rules?.map(y => toJson_RuleWithOperations(y)), + 'sideEffects': obj.sideEffects, + 'timeoutSeconds': obj.timeoutSeconds, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * DaemonSetSpec is the specification of a daemon set. + * + * @schema io.k8s.api.apps.v1.DaemonSetSpec + */ +export interface DaemonSetSpec { + /** + * The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). + * + * @default 0 (pod will be considered available as soon as it is ready). + * @schema io.k8s.api.apps.v1.DaemonSetSpec#minReadySeconds + */ + readonly minReadySeconds?: number; + + /** + * The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + * + * @default 10. + * @schema io.k8s.api.apps.v1.DaemonSetSpec#revisionHistoryLimit + */ + readonly revisionHistoryLimit?: number; + + /** + * A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * + * @schema io.k8s.api.apps.v1.DaemonSetSpec#selector + */ + readonly selector: LabelSelector; + + /** + * An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * + * @schema io.k8s.api.apps.v1.DaemonSetSpec#template + */ + readonly template: PodTemplateSpec; + + /** + * An update strategy to replace existing DaemonSet pods with new pods. + * + * @schema io.k8s.api.apps.v1.DaemonSetSpec#updateStrategy + */ + readonly updateStrategy?: DaemonSetUpdateStrategy; + +} + +/** + * Converts an object of type 'DaemonSetSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_DaemonSetSpec(obj: DaemonSetSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'minReadySeconds': obj.minReadySeconds, + 'revisionHistoryLimit': obj.revisionHistoryLimit, + 'selector': toJson_LabelSelector(obj.selector), + 'template': toJson_PodTemplateSpec(obj.template), + 'updateStrategy': toJson_DaemonSetUpdateStrategy(obj.updateStrategy), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * DeploymentSpec is the specification of the desired behavior of the Deployment. + * + * @schema io.k8s.api.apps.v1.DeploymentSpec + */ +export interface DeploymentSpec { + /** + * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * + * @default 0 (pod will be considered available as soon as it is ready) + * @schema io.k8s.api.apps.v1.DeploymentSpec#minReadySeconds + */ + readonly minReadySeconds?: number; + + /** + * Indicates that the deployment is paused. + * + * @schema io.k8s.api.apps.v1.DeploymentSpec#paused + */ + readonly paused?: boolean; + + /** + * The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. + * + * @default 600s. + * @schema io.k8s.api.apps.v1.DeploymentSpec#progressDeadlineSeconds + */ + readonly progressDeadlineSeconds?: number; + + /** + * Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + * + * @default 1. + * @schema io.k8s.api.apps.v1.DeploymentSpec#replicas + */ + readonly replicas?: number; + + /** + * The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + * + * @default 10. + * @schema io.k8s.api.apps.v1.DeploymentSpec#revisionHistoryLimit + */ + readonly revisionHistoryLimit?: number; + + /** + * Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels. + * + * @schema io.k8s.api.apps.v1.DeploymentSpec#selector + */ + readonly selector: LabelSelector; + + /** + * The deployment strategy to use to replace existing pods with new ones. + * + * @schema io.k8s.api.apps.v1.DeploymentSpec#strategy + */ + readonly strategy?: DeploymentStrategy; + + /** + * Template describes the pods that will be created. + * + * @schema io.k8s.api.apps.v1.DeploymentSpec#template + */ + readonly template: PodTemplateSpec; + +} + +/** + * Converts an object of type 'DeploymentSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_DeploymentSpec(obj: DeploymentSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'minReadySeconds': obj.minReadySeconds, + 'paused': obj.paused, + 'progressDeadlineSeconds': obj.progressDeadlineSeconds, + 'replicas': obj.replicas, + 'revisionHistoryLimit': obj.revisionHistoryLimit, + 'selector': toJson_LabelSelector(obj.selector), + 'strategy': toJson_DeploymentStrategy(obj.strategy), + 'template': toJson_PodTemplateSpec(obj.template), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ReplicaSetSpec is the specification of a ReplicaSet. + * + * @schema io.k8s.api.apps.v1.ReplicaSetSpec + */ +export interface ReplicaSetSpec { + /** + * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * + * @default 0 (pod will be considered available as soon as it is ready) + * @schema io.k8s.api.apps.v1.ReplicaSetSpec#minReadySeconds + */ + readonly minReadySeconds?: number; + + /** + * Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + * + * @default 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + * @schema io.k8s.api.apps.v1.ReplicaSetSpec#replicas + */ + readonly replicas?: number; + + /** + * Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * + * @schema io.k8s.api.apps.v1.ReplicaSetSpec#selector + */ + readonly selector: LabelSelector; + + /** + * Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * + * @schema io.k8s.api.apps.v1.ReplicaSetSpec#template + */ + readonly template?: PodTemplateSpec; + +} + +/** + * Converts an object of type 'ReplicaSetSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ReplicaSetSpec(obj: ReplicaSetSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'minReadySeconds': obj.minReadySeconds, + 'replicas': obj.replicas, + 'selector': toJson_LabelSelector(obj.selector), + 'template': toJson_PodTemplateSpec(obj.template), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * A StatefulSetSpec is the specification of a StatefulSet. + * + * @schema io.k8s.api.apps.v1.StatefulSetSpec + */ +export interface StatefulSetSpec { + /** + * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * + * @default 0 (pod will be considered available as soon as it is ready) + * @schema io.k8s.api.apps.v1.StatefulSetSpec#minReadySeconds + */ + readonly minReadySeconds?: number; + + /** + * persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is alpha. +optional + * + * @schema io.k8s.api.apps.v1.StatefulSetSpec#persistentVolumeClaimRetentionPolicy + */ + readonly persistentVolumeClaimRetentionPolicy?: StatefulSetPersistentVolumeClaimRetentionPolicy; + + /** + * podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. + * + * + * + * @schema io.k8s.api.apps.v1.StatefulSetSpec#podManagementPolicy + */ + readonly podManagementPolicy?: string; + + /** + * replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. + * + * @schema io.k8s.api.apps.v1.StatefulSetSpec#replicas + */ + readonly replicas?: number; + + /** + * revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. + * + * @schema io.k8s.api.apps.v1.StatefulSetSpec#revisionHistoryLimit + */ + readonly revisionHistoryLimit?: number; + + /** + * selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * + * @schema io.k8s.api.apps.v1.StatefulSetSpec#selector + */ + readonly selector: LabelSelector; + + /** + * serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where "pod-specific-string" is managed by the StatefulSet controller. + * + * @schema io.k8s.api.apps.v1.StatefulSetSpec#serviceName + */ + readonly serviceName: string; + + /** + * template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. + * + * @schema io.k8s.api.apps.v1.StatefulSetSpec#template + */ + readonly template: PodTemplateSpec; + + /** + * updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. + * + * @schema io.k8s.api.apps.v1.StatefulSetSpec#updateStrategy + */ + readonly updateStrategy?: StatefulSetUpdateStrategy; + + /** + * volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. + * + * @schema io.k8s.api.apps.v1.StatefulSetSpec#volumeClaimTemplates + */ + readonly volumeClaimTemplates?: KubePersistentVolumeClaimProps[]; + +} + +/** + * Converts an object of type 'StatefulSetSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_StatefulSetSpec(obj: StatefulSetSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'minReadySeconds': obj.minReadySeconds, + 'persistentVolumeClaimRetentionPolicy': toJson_StatefulSetPersistentVolumeClaimRetentionPolicy(obj.persistentVolumeClaimRetentionPolicy), + 'podManagementPolicy': obj.podManagementPolicy, + 'replicas': obj.replicas, + 'revisionHistoryLimit': obj.revisionHistoryLimit, + 'selector': toJson_LabelSelector(obj.selector), + 'serviceName': obj.serviceName, + 'template': toJson_PodTemplateSpec(obj.template), + 'updateStrategy': toJson_StatefulSetUpdateStrategy(obj.updateStrategy), + 'volumeClaimTemplates': obj.volumeClaimTemplates?.map(y => toJson_KubePersistentVolumeClaimProps(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * TokenRequestSpec contains client provided parameters of a token request. + * + * @schema io.k8s.api.authentication.v1.TokenRequestSpec + */ +export interface TokenRequestSpec { + /** + * Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences. + * + * @schema io.k8s.api.authentication.v1.TokenRequestSpec#audiences + */ + readonly audiences: string[]; + + /** + * BoundObjectRef is a reference to an object that the token will be bound to. The token will only be valid for as long as the bound object exists. NOTE: The API server's TokenReview endpoint will validate the BoundObjectRef, but other audiences may not. Keep ExpirationSeconds small if you want prompt revocation. + * + * @schema io.k8s.api.authentication.v1.TokenRequestSpec#boundObjectRef + */ + readonly boundObjectRef?: BoundObjectReference; + + /** + * ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response. + * + * @schema io.k8s.api.authentication.v1.TokenRequestSpec#expirationSeconds + */ + readonly expirationSeconds?: number; + +} + +/** + * Converts an object of type 'TokenRequestSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_TokenRequestSpec(obj: TokenRequestSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'audiences': obj.audiences?.map(y => y), + 'boundObjectRef': toJson_BoundObjectReference(obj.boundObjectRef), + 'expirationSeconds': obj.expirationSeconds, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * TokenReviewSpec is a description of the token authentication request. + * + * @schema io.k8s.api.authentication.v1.TokenReviewSpec + */ +export interface TokenReviewSpec { + /** + * Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. + * + * @schema io.k8s.api.authentication.v1.TokenReviewSpec#audiences + */ + readonly audiences?: string[]; + + /** + * Token is the opaque bearer token. + * + * @schema io.k8s.api.authentication.v1.TokenReviewSpec#token + */ + readonly token?: string; + +} + +/** + * Converts an object of type 'TokenReviewSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_TokenReviewSpec(obj: TokenReviewSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'audiences': obj.audiences?.map(y => y), + 'token': obj.token, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set + * + * @schema io.k8s.api.authorization.v1.SubjectAccessReviewSpec + */ +export interface SubjectAccessReviewSpec { + /** + * Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. + * + * @schema io.k8s.api.authorization.v1.SubjectAccessReviewSpec#extra + */ + readonly extra?: { [key: string]: string[] }; + + /** + * Groups is the groups you're testing for. + * + * @schema io.k8s.api.authorization.v1.SubjectAccessReviewSpec#groups + */ + readonly groups?: string[]; + + /** + * NonResourceAttributes describes information for a non-resource access request + * + * @schema io.k8s.api.authorization.v1.SubjectAccessReviewSpec#nonResourceAttributes + */ + readonly nonResourceAttributes?: NonResourceAttributes; + + /** + * ResourceAuthorizationAttributes describes information for a resource access request + * + * @schema io.k8s.api.authorization.v1.SubjectAccessReviewSpec#resourceAttributes + */ + readonly resourceAttributes?: ResourceAttributes; + + /** + * UID information about the requesting user. + * + * @schema io.k8s.api.authorization.v1.SubjectAccessReviewSpec#uid + */ + readonly uid?: string; + + /** + * User is the user you're testing for. If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups + * + * @schema io.k8s.api.authorization.v1.SubjectAccessReviewSpec#user + */ + readonly user?: string; + +} + +/** + * Converts an object of type 'SubjectAccessReviewSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_SubjectAccessReviewSpec(obj: SubjectAccessReviewSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'extra': ((obj.extra) === undefined) ? undefined : (Object.entries(obj.extra).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.map(y => y) }), {})), + 'groups': obj.groups?.map(y => y), + 'nonResourceAttributes': toJson_NonResourceAttributes(obj.nonResourceAttributes), + 'resourceAttributes': toJson_ResourceAttributes(obj.resourceAttributes), + 'uid': obj.uid, + 'user': obj.user, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set + * + * @schema io.k8s.api.authorization.v1.SelfSubjectAccessReviewSpec + */ +export interface SelfSubjectAccessReviewSpec { + /** + * NonResourceAttributes describes information for a non-resource access request + * + * @schema io.k8s.api.authorization.v1.SelfSubjectAccessReviewSpec#nonResourceAttributes + */ + readonly nonResourceAttributes?: NonResourceAttributes; + + /** + * ResourceAuthorizationAttributes describes information for a resource access request + * + * @schema io.k8s.api.authorization.v1.SelfSubjectAccessReviewSpec#resourceAttributes + */ + readonly resourceAttributes?: ResourceAttributes; + +} + +/** + * Converts an object of type 'SelfSubjectAccessReviewSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_SelfSubjectAccessReviewSpec(obj: SelfSubjectAccessReviewSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'nonResourceAttributes': toJson_NonResourceAttributes(obj.nonResourceAttributes), + 'resourceAttributes': toJson_ResourceAttributes(obj.resourceAttributes), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview. + * + * @schema io.k8s.api.authorization.v1.SelfSubjectRulesReviewSpec + */ +export interface SelfSubjectRulesReviewSpec { + /** + * Namespace to evaluate rules for. Required. + * + * @schema io.k8s.api.authorization.v1.SelfSubjectRulesReviewSpec#namespace + */ + readonly namespace?: string; + +} + +/** + * Converts an object of type 'SelfSubjectRulesReviewSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_SelfSubjectRulesReviewSpec(obj: SelfSubjectRulesReviewSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'namespace': obj.namespace, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * specification of a horizontal pod autoscaler. + * + * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec + */ +export interface HorizontalPodAutoscalerSpec { + /** + * upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. + * + * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec#maxReplicas + */ + readonly maxReplicas: number; + + /** + * minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. + * + * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec#minReplicas + */ + readonly minReplicas?: number; + + /** + * reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource. + * + * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec#scaleTargetRef + */ + readonly scaleTargetRef: CrossVersionObjectReference; + + /** + * target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used. + * + * @schema io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec#targetCPUUtilizationPercentage + */ + readonly targetCpuUtilizationPercentage?: number; + +} + +/** + * Converts an object of type 'HorizontalPodAutoscalerSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_HorizontalPodAutoscalerSpec(obj: HorizontalPodAutoscalerSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'maxReplicas': obj.maxReplicas, + 'minReplicas': obj.minReplicas, + 'scaleTargetRef': toJson_CrossVersionObjectReference(obj.scaleTargetRef), + 'targetCPUUtilizationPercentage': obj.targetCpuUtilizationPercentage, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ScaleSpec describes the attributes of a scale subresource. + * + * @schema io.k8s.api.autoscaling.v1.ScaleSpec + */ +export interface ScaleSpec { + /** + * desired number of instances for the scaled object. + * + * @schema io.k8s.api.autoscaling.v1.ScaleSpec#replicas + */ + readonly replicas?: number; + +} + +/** + * Converts an object of type 'ScaleSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ScaleSpec(obj: ScaleSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'replicas': obj.replicas, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler. + * + * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerSpec + */ +export interface HorizontalPodAutoscalerSpecV2 { + /** + * behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). If not set, the default HPAScalingRules for scale up and scale down are used. + * + * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerSpec#behavior + */ + readonly behavior?: HorizontalPodAutoscalerBehaviorV2; + + /** + * maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. + * + * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerSpec#maxReplicas + */ + readonly maxReplicas: number; + + /** + * metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization. + * + * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerSpec#metrics + */ + readonly metrics?: MetricSpecV2[]; + + /** + * minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. + * + * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerSpec#minReplicas + */ + readonly minReplicas?: number; + + /** + * scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. + * + * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerSpec#scaleTargetRef + */ + readonly scaleTargetRef: CrossVersionObjectReferenceV2; + +} + +/** + * Converts an object of type 'HorizontalPodAutoscalerSpecV2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_HorizontalPodAutoscalerSpecV2(obj: HorizontalPodAutoscalerSpecV2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'behavior': toJson_HorizontalPodAutoscalerBehaviorV2(obj.behavior), + 'maxReplicas': obj.maxReplicas, + 'metrics': obj.metrics?.map(y => toJson_MetricSpecV2(y)), + 'minReplicas': obj.minReplicas, + 'scaleTargetRef': toJson_CrossVersionObjectReferenceV2(obj.scaleTargetRef), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler. + * + * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerSpec + */ +export interface HorizontalPodAutoscalerSpecV2Beta2 { + /** + * behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). If not set, the default HPAScalingRules for scale up and scale down are used. + * + * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerSpec#behavior + */ + readonly behavior?: HorizontalPodAutoscalerBehaviorV2Beta2; + + /** + * maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. + * + * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerSpec#maxReplicas + */ + readonly maxReplicas: number; + + /** + * metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization. + * + * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerSpec#metrics + */ + readonly metrics?: MetricSpecV2Beta2[]; + + /** + * minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. + * + * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerSpec#minReplicas + */ + readonly minReplicas?: number; + + /** + * scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. + * + * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerSpec#scaleTargetRef + */ + readonly scaleTargetRef: CrossVersionObjectReferenceV2Beta2; + +} + +/** + * Converts an object of type 'HorizontalPodAutoscalerSpecV2Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_HorizontalPodAutoscalerSpecV2Beta2(obj: HorizontalPodAutoscalerSpecV2Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'behavior': toJson_HorizontalPodAutoscalerBehaviorV2Beta2(obj.behavior), + 'maxReplicas': obj.maxReplicas, + 'metrics': obj.metrics?.map(y => toJson_MetricSpecV2Beta2(y)), + 'minReplicas': obj.minReplicas, + 'scaleTargetRef': toJson_CrossVersionObjectReferenceV2Beta2(obj.scaleTargetRef), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CronJobSpec describes how the job execution will look like and when it will actually run. + * + * @schema io.k8s.api.batch.v1.CronJobSpec + */ +export interface CronJobSpec { + /** + * Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one + * + * + * + * @schema io.k8s.api.batch.v1.CronJobSpec#concurrencyPolicy + */ + readonly concurrencyPolicy?: string; + + /** + * The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1. + * + * @default 1. + * @schema io.k8s.api.batch.v1.CronJobSpec#failedJobsHistoryLimit + */ + readonly failedJobsHistoryLimit?: number; + + /** + * Specifies the job that will be created when executing a CronJob. + * + * @schema io.k8s.api.batch.v1.CronJobSpec#jobTemplate + */ + readonly jobTemplate: JobTemplateSpec; + + /** + * The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. + * + * @schema io.k8s.api.batch.v1.CronJobSpec#schedule + */ + readonly schedule: string; + + /** + * Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. + * + * @schema io.k8s.api.batch.v1.CronJobSpec#startingDeadlineSeconds + */ + readonly startingDeadlineSeconds?: number; + + /** + * The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3. + * + * @default 3. + * @schema io.k8s.api.batch.v1.CronJobSpec#successfulJobsHistoryLimit + */ + readonly successfulJobsHistoryLimit?: number; + + /** + * This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. + * + * @default false. + * @schema io.k8s.api.batch.v1.CronJobSpec#suspend + */ + readonly suspend?: boolean; + + /** + * The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones This is beta field and must be enabled via the `CronJobTimeZone` feature gate. + * + * @schema io.k8s.api.batch.v1.CronJobSpec#timeZone + */ + readonly timeZone?: string; + +} + +/** + * Converts an object of type 'CronJobSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CronJobSpec(obj: CronJobSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'concurrencyPolicy': obj.concurrencyPolicy, + 'failedJobsHistoryLimit': obj.failedJobsHistoryLimit, + 'jobTemplate': toJson_JobTemplateSpec(obj.jobTemplate), + 'schedule': obj.schedule, + 'startingDeadlineSeconds': obj.startingDeadlineSeconds, + 'successfulJobsHistoryLimit': obj.successfulJobsHistoryLimit, + 'suspend': obj.suspend, + 'timeZone': obj.timeZone, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * JobSpec describes how the job execution will look like. + * + * @schema io.k8s.api.batch.v1.JobSpec + */ +export interface JobSpec { + /** + * Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again. + * + * @schema io.k8s.api.batch.v1.JobSpec#activeDeadlineSeconds + */ + readonly activeDeadlineSeconds?: number; + + /** + * Specifies the number of retries before marking this job failed. Defaults to 6 + * + * @default 6 + * @schema io.k8s.api.batch.v1.JobSpec#backoffLimit + */ + readonly backoffLimit?: number; + + /** + * CompletionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`. + * + * `NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other. + * + * `Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`. + * + * More completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job. + * + * @schema io.k8s.api.batch.v1.JobSpec#completionMode + */ + readonly completionMode?: string; + + /** + * Specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + * + * @schema io.k8s.api.batch.v1.JobSpec#completions + */ + readonly completions?: number; + + /** + * manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector + * + * @schema io.k8s.api.batch.v1.JobSpec#manualSelector + */ + readonly manualSelector?: boolean; + + /** + * Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + * + * @schema io.k8s.api.batch.v1.JobSpec#parallelism + */ + readonly parallelism?: number; + + /** + * Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure. + * + * This field is alpha-level. To use this field, you must enable the `JobPodFailurePolicy` feature gate (disabled by default). + * + * @schema io.k8s.api.batch.v1.JobSpec#podFailurePolicy + */ + readonly podFailurePolicy?: PodFailurePolicy; + + /** + * A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * + * @schema io.k8s.api.batch.v1.JobSpec#selector + */ + readonly selector?: LabelSelector; + + /** + * Suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false. + * + * @default false. + * @schema io.k8s.api.batch.v1.JobSpec#suspend + */ + readonly suspend?: boolean; + + /** + * Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + * + * @schema io.k8s.api.batch.v1.JobSpec#template + */ + readonly template: PodTemplateSpec; + + /** + * ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. + * + * @schema io.k8s.api.batch.v1.JobSpec#ttlSecondsAfterFinished + */ + readonly ttlSecondsAfterFinished?: number; + +} + +/** + * Converts an object of type 'JobSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_JobSpec(obj: JobSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'activeDeadlineSeconds': obj.activeDeadlineSeconds, + 'backoffLimit': obj.backoffLimit, + 'completionMode': obj.completionMode, + 'completions': obj.completions, + 'manualSelector': obj.manualSelector, + 'parallelism': obj.parallelism, + 'podFailurePolicy': toJson_PodFailurePolicy(obj.podFailurePolicy), + 'selector': toJson_LabelSelector(obj.selector), + 'suspend': obj.suspend, + 'template': toJson_PodTemplateSpec(obj.template), + 'ttlSecondsAfterFinished': obj.ttlSecondsAfterFinished, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CertificateSigningRequestSpec contains the certificate request. + * + * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec + */ +export interface CertificateSigningRequestSpec { + /** + * expirationSeconds is the requested duration of validity of the issued certificate. The certificate signer may issue a certificate with a different validity duration so a client must check the delta between the notBefore and and notAfter fields in the issued certificate to determine the actual duration. + * + * The v1.22+ in-tree implementations of the well-known Kubernetes signers will honor this field as long as the requested duration is not greater than the maximum duration they will honor per the --cluster-signing-duration CLI flag to the Kubernetes controller manager. + * + * Certificate signers may not honor this field for various reasons: + * + * 1. Old signer that is unaware of the field (such as the in-tree + * implementations prior to v1.22) + * 2. Signer whose configured maximum is shorter than the requested duration + * 3. Signer whose configured minimum is longer than the requested duration + * + * The minimum valid value for expirationSeconds is 600, i.e. 10 minutes. + * + * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec#expirationSeconds + */ + readonly expirationSeconds?: number; + + /** + * extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. + * + * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec#extra + */ + readonly extra?: { [key: string]: string[] }; + + /** + * groups contains group membership of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. + * + * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec#groups + */ + readonly groups?: string[]; + + /** + * request contains an x509 certificate signing request encoded in a "CERTIFICATE REQUEST" PEM block. When serialized as JSON or YAML, the data is additionally base64-encoded. + * + * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec#request + */ + readonly request: string; + + /** + * signerName indicates the requested signer, and is a qualified name. + * + * List/watch requests for CertificateSigningRequests can filter on this field using a "spec.signerName=NAME" fieldSelector. + * + * Well-known Kubernetes signers are: + * 1. "kubernetes.io/kube-apiserver-client": issues client certificates that can be used to authenticate to kube-apiserver. + * Requests for this signer are never auto-approved by kube-controller-manager, can be issued by the "csrsigning" controller in kube-controller-manager. + * 2. "kubernetes.io/kube-apiserver-client-kubelet": issues client certificates that kubelets use to authenticate to kube-apiserver. + * Requests for this signer can be auto-approved by the "csrapproving" controller in kube-controller-manager, and can be issued by the "csrsigning" controller in kube-controller-manager. + * 3. "kubernetes.io/kubelet-serving" issues serving certificates that kubelets use to serve TLS endpoints, which kube-apiserver can connect to securely. + * Requests for this signer are never auto-approved by kube-controller-manager, and can be issued by the "csrsigning" controller in kube-controller-manager. + * + * More details are available at https://k8s.io/docs/reference/access-authn-authz/certificate-signing-requests/#kubernetes-signers + * + * Custom signerNames can also be specified. The signer defines: + * 1. Trust distribution: how trust (CA bundles) are distributed. + * 2. Permitted subjects: and behavior when a disallowed subject is requested. + * 3. Required, permitted, or forbidden x509 extensions in the request (including whether subjectAltNames are allowed, which types, restrictions on allowed values) and behavior when a disallowed extension is requested. + * 4. Required, permitted, or forbidden key usages / extended key usages. + * 5. Expiration/certificate lifetime: whether it is fixed by the signer, configurable by the admin. + * 6. Whether or not requests for CA certificates are allowed. + * + * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec#signerName + */ + readonly signerName: string; + + /** + * uid contains the uid of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. + * + * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec#uid + */ + readonly uid?: string; + + /** + * usages specifies a set of key usages requested in the issued certificate. + * + * Requests for TLS client certificates typically request: "digital signature", "key encipherment", "client auth". + * + * Requests for TLS serving certificates typically request: "key encipherment", "digital signature", "server auth". + * + * Valid values are: + * "signing", "digital signature", "content commitment", + * "key encipherment", "key agreement", "data encipherment", + * "cert sign", "crl sign", "encipher only", "decipher only", "any", + * "server auth", "client auth", + * "code signing", "email protection", "s/mime", + * "ipsec end system", "ipsec tunnel", "ipsec user", + * "timestamping", "ocsp signing", "microsoft sgc", "netscape sgc" + * + * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec#usages + */ + readonly usages?: string[]; + + /** + * username contains the name of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. + * + * @schema io.k8s.api.certificates.v1.CertificateSigningRequestSpec#username + */ + readonly username?: string; + +} + +/** + * Converts an object of type 'CertificateSigningRequestSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CertificateSigningRequestSpec(obj: CertificateSigningRequestSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'expirationSeconds': obj.expirationSeconds, + 'extra': ((obj.extra) === undefined) ? undefined : (Object.entries(obj.extra).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.map(y => y) }), {})), + 'groups': obj.groups?.map(y => y), + 'request': obj.request, + 'signerName': obj.signerName, + 'uid': obj.uid, + 'usages': obj.usages?.map(y => y), + 'username': obj.username, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * LeaseSpec is a specification of a Lease. + * + * @schema io.k8s.api.coordination.v1.LeaseSpec + */ +export interface LeaseSpec { + /** + * acquireTime is a time when the current lease was acquired. + * + * @schema io.k8s.api.coordination.v1.LeaseSpec#acquireTime + */ + readonly acquireTime?: Date; + + /** + * holderIdentity contains the identity of the holder of a current lease. + * + * @schema io.k8s.api.coordination.v1.LeaseSpec#holderIdentity + */ + readonly holderIdentity?: string; + + /** + * leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime. + * + * @schema io.k8s.api.coordination.v1.LeaseSpec#leaseDurationSeconds + */ + readonly leaseDurationSeconds?: number; + + /** + * leaseTransitions is the number of transitions of a lease between holders. + * + * @schema io.k8s.api.coordination.v1.LeaseSpec#leaseTransitions + */ + readonly leaseTransitions?: number; + + /** + * renewTime is a time when the current holder of a lease has last updated the lease. + * + * @schema io.k8s.api.coordination.v1.LeaseSpec#renewTime + */ + readonly renewTime?: Date; + +} + +/** + * Converts an object of type 'LeaseSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_LeaseSpec(obj: LeaseSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'acquireTime': obj.acquireTime?.toISOString(), + 'holderIdentity': obj.holderIdentity, + 'leaseDurationSeconds': obj.leaseDurationSeconds, + 'leaseTransitions': obj.leaseTransitions, + 'renewTime': obj.renewTime?.toISOString(), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ObjectReference contains enough information to let you inspect or modify the referred object. + * + * @schema io.k8s.api.core.v1.ObjectReference + */ +export interface ObjectReference { + /** + * API version of the referent. + * + * @schema io.k8s.api.core.v1.ObjectReference#apiVersion + */ + readonly apiVersion?: string; + + /** + * If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * + * @schema io.k8s.api.core.v1.ObjectReference#fieldPath + */ + readonly fieldPath?: string; + + /** + * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.api.core.v1.ObjectReference#kind + */ + readonly kind?: string; + + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * + * @schema io.k8s.api.core.v1.ObjectReference#name + */ + readonly name?: string; + + /** + * Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * + * @schema io.k8s.api.core.v1.ObjectReference#namespace + */ + readonly namespace?: string; + + /** + * Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * + * @schema io.k8s.api.core.v1.ObjectReference#resourceVersion + */ + readonly resourceVersion?: string; + + /** + * UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + * + * @schema io.k8s.api.core.v1.ObjectReference#uid + */ + readonly uid?: string; + +} + +/** + * Converts an object of type 'ObjectReference' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ObjectReference(obj: ObjectReference | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'apiVersion': obj.apiVersion, + 'fieldPath': obj.fieldPath, + 'kind': obj.kind, + 'name': obj.name, + 'namespace': obj.namespace, + 'resourceVersion': obj.resourceVersion, + 'uid': obj.uid, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Information about the condition of a component. + * + * @schema io.k8s.api.core.v1.ComponentCondition + */ +export interface ComponentCondition { + /** + * Condition error code for a component. For example, a health check error code. + * + * @schema io.k8s.api.core.v1.ComponentCondition#error + */ + readonly error?: string; + + /** + * Message about the condition for a component. For example, information about a health check. + * + * @schema io.k8s.api.core.v1.ComponentCondition#message + */ + readonly message?: string; + + /** + * Status of the condition for a component. Valid values for "Healthy": "True", "False", or "Unknown". + * + * @schema io.k8s.api.core.v1.ComponentCondition#status + */ + readonly status: string; + + /** + * Type of condition for a component. Valid value: "Healthy" + * + * @schema io.k8s.api.core.v1.ComponentCondition#type + */ + readonly type: string; + +} + +/** + * Converts an object of type 'ComponentCondition' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ComponentCondition(obj: ComponentCondition | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'error': obj.error, + 'message': obj.message, + 'status': obj.status, + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given: + * + * { + * Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], + * Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] + * } + * + * The resulting set of endpoints can be viewed as: + * + * a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], + * b: [ 10.10.1.1:309, 10.10.2.2:309 ] + * + * @schema io.k8s.api.core.v1.EndpointSubset + */ +export interface EndpointSubset { + /** + * IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize. + * + * @schema io.k8s.api.core.v1.EndpointSubset#addresses + */ + readonly addresses?: EndpointAddress[]; + + /** + * IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check. + * + * @schema io.k8s.api.core.v1.EndpointSubset#notReadyAddresses + */ + readonly notReadyAddresses?: EndpointAddress[]; + + /** + * Port numbers available on the related IP addresses. + * + * @schema io.k8s.api.core.v1.EndpointSubset#ports + */ + readonly ports?: EndpointPort[]; + +} + +/** + * Converts an object of type 'EndpointSubset' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_EndpointSubset(obj: EndpointSubset | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'addresses': obj.addresses?.map(y => toJson_EndpointAddress(y)), + 'notReadyAddresses': obj.notReadyAddresses?.map(y => toJson_EndpointAddress(y)), + 'ports': obj.ports?.map(y => toJson_EndpointPort(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * EventSource contains information for an event. + * + * @schema io.k8s.api.core.v1.EventSource + */ +export interface EventSource { + /** + * Component from which the event is generated. + * + * @schema io.k8s.api.core.v1.EventSource#component + */ + readonly component?: string; + + /** + * Node name on which the event is generated. + * + * @schema io.k8s.api.core.v1.EventSource#host + */ + readonly host?: string; + +} + +/** + * Converts an object of type 'EventSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_EventSource(obj: EventSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'component': obj.component, + 'host': obj.host, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. How often to update the EventSeries is up to the event reporters. The default event reporter in "k8s.io/client-go/tools/events/event_broadcaster.go" shows how this struct is updated on heartbeats and can guide customized reporter implementations. + * + * @schema io.k8s.api.events.v1.EventSeries + */ +export interface EventSeries { + /** + * count is the number of occurrences in this series up to the last heartbeat time. + * + * @schema io.k8s.api.events.v1.EventSeries#count + */ + readonly count: number; + + /** + * lastObservedTime is the time when last Event from the series was seen before last heartbeat. + * + * @schema io.k8s.api.events.v1.EventSeries#lastObservedTime + */ + readonly lastObservedTime: Date; + +} + +/** + * Converts an object of type 'EventSeries' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_EventSeries(obj: EventSeries | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'count': obj.count, + 'lastObservedTime': obj.lastObservedTime?.toISOString(), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * LimitRangeSpec defines a min/max usage limit for resources that match on kind. + * + * @schema io.k8s.api.core.v1.LimitRangeSpec + */ +export interface LimitRangeSpec { + /** + * Limits is the list of LimitRangeItem objects that are enforced. + * + * @schema io.k8s.api.core.v1.LimitRangeSpec#limits + */ + readonly limits: LimitRangeItem[]; + +} + +/** + * Converts an object of type 'LimitRangeSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_LimitRangeSpec(obj: LimitRangeSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'limits': obj.limits?.map(y => toJson_LimitRangeItem(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * NamespaceSpec describes the attributes on a Namespace. + * + * @schema io.k8s.api.core.v1.NamespaceSpec + */ +export interface NamespaceSpec { + /** + * Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ + * + * @schema io.k8s.api.core.v1.NamespaceSpec#finalizers + */ + readonly finalizers?: string[]; + +} + +/** + * Converts an object of type 'NamespaceSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_NamespaceSpec(obj: NamespaceSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'finalizers': obj.finalizers?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * NodeSpec describes the attributes that a node is created with. + * + * @schema io.k8s.api.core.v1.NodeSpec + */ +export interface NodeSpec { + /** + * Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed from Kubelets as of 1.24 and will be fully removed in 1.26. + * + * @schema io.k8s.api.core.v1.NodeSpec#configSource + */ + readonly configSource?: NodeConfigSource; + + /** + * Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966 + * + * @schema io.k8s.api.core.v1.NodeSpec#externalID + */ + readonly externalId?: string; + + /** + * PodCIDR represents the pod IP range assigned to the node. + * + * @schema io.k8s.api.core.v1.NodeSpec#podCIDR + */ + readonly podCidr?: string; + + /** + * podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6. + * + * @schema io.k8s.api.core.v1.NodeSpec#podCIDRs + */ + readonly podCidRs?: string[]; + + /** + * ID of the node assigned by the cloud provider in the format: :// + * + * @schema io.k8s.api.core.v1.NodeSpec#providerID + */ + readonly providerId?: string; + + /** + * If specified, the node's taints. + * + * @schema io.k8s.api.core.v1.NodeSpec#taints + */ + readonly taints?: Taint[]; + + /** + * Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration + * + * @schema io.k8s.api.core.v1.NodeSpec#unschedulable + */ + readonly unschedulable?: boolean; + +} + +/** + * Converts an object of type 'NodeSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_NodeSpec(obj: NodeSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'configSource': toJson_NodeConfigSource(obj.configSource), + 'externalID': obj.externalId, + 'podCIDR': obj.podCidr, + 'podCIDRs': obj.podCidRs?.map(y => y), + 'providerID': obj.providerId, + 'taints': obj.taints?.map(y => toJson_Taint(y)), + 'unschedulable': obj.unschedulable, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PersistentVolumeSpec is the specification of a persistent volume. + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec + */ +export interface PersistentVolumeSpec { + /** + * accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#accessModes + */ + readonly accessModes?: string[]; + + /** + * awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#awsElasticBlockStore + */ + readonly awsElasticBlockStore?: AwsElasticBlockStoreVolumeSource; + + /** + * azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#azureDisk + */ + readonly azureDisk?: AzureDiskVolumeSource; + + /** + * azureFile represents an Azure File Service mount on the host and bind mount to the pod. + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#azureFile + */ + readonly azureFile?: AzureFilePersistentVolumeSource; + + /** + * capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#capacity + */ + readonly capacity?: { [key: string]: Quantity }; + + /** + * cephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#cephfs + */ + readonly cephfs?: CephFsPersistentVolumeSource; + + /** + * cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#cinder + */ + readonly cinder?: CinderPersistentVolumeSource; + + /** + * claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#claimRef + */ + readonly claimRef?: ObjectReference; + + /** + * csi represents storage that is handled by an external CSI driver (Beta feature). + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#csi + */ + readonly csi?: CsiPersistentVolumeSource; + + /** + * fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#fc + */ + readonly fc?: FcVolumeSource; + + /** + * flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#flexVolume + */ + readonly flexVolume?: FlexPersistentVolumeSource; + + /** + * flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#flocker + */ + readonly flocker?: FlockerVolumeSource; + + /** + * gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#gcePersistentDisk + */ + readonly gcePersistentDisk?: GcePersistentDiskVolumeSource; + + /** + * glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#glusterfs + */ + readonly glusterfs?: GlusterfsPersistentVolumeSource; + + /** + * hostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#hostPath + */ + readonly hostPath?: HostPathVolumeSource; + + /** + * iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#iscsi + */ + readonly iscsi?: IscsiPersistentVolumeSource; + + /** + * local represents directly-attached storage with node affinity + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#local + */ + readonly local?: LocalVolumeSource; + + /** + * mountOptions is the list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#mountOptions + */ + readonly mountOptions?: string[]; + + /** + * nfs represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#nfs + */ + readonly nfs?: NfsVolumeSource; + + /** + * nodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#nodeAffinity + */ + readonly nodeAffinity?: VolumeNodeAffinity; + + /** + * persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming + * + * + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#persistentVolumeReclaimPolicy + */ + readonly persistentVolumeReclaimPolicy?: string; + + /** + * photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#photonPersistentDisk + */ + readonly photonPersistentDisk?: PhotonPersistentDiskVolumeSource; + + /** + * portworxVolume represents a portworx volume attached and mounted on kubelets host machine + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#portworxVolume + */ + readonly portworxVolume?: PortworxVolumeSource; + + /** + * quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#quobyte + */ + readonly quobyte?: QuobyteVolumeSource; + + /** + * rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#rbd + */ + readonly rbd?: RbdPersistentVolumeSource; + + /** + * scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#scaleIO + */ + readonly scaleIo?: ScaleIoPersistentVolumeSource; + + /** + * storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#storageClassName + */ + readonly storageClassName?: string; + + /** + * storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#storageos + */ + readonly storageos?: StorageOsPersistentVolumeSource; + + /** + * volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#volumeMode + */ + readonly volumeMode?: string; + + /** + * vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * + * @schema io.k8s.api.core.v1.PersistentVolumeSpec#vsphereVolume + */ + readonly vsphereVolume?: VsphereVirtualDiskVolumeSource; + +} + +/** + * Converts an object of type 'PersistentVolumeSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PersistentVolumeSpec(obj: PersistentVolumeSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'accessModes': obj.accessModes?.map(y => y), + 'awsElasticBlockStore': toJson_AwsElasticBlockStoreVolumeSource(obj.awsElasticBlockStore), + 'azureDisk': toJson_AzureDiskVolumeSource(obj.azureDisk), + 'azureFile': toJson_AzureFilePersistentVolumeSource(obj.azureFile), + 'capacity': ((obj.capacity) === undefined) ? undefined : (Object.entries(obj.capacity).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), + 'cephfs': toJson_CephFsPersistentVolumeSource(obj.cephfs), + 'cinder': toJson_CinderPersistentVolumeSource(obj.cinder), + 'claimRef': toJson_ObjectReference(obj.claimRef), + 'csi': toJson_CsiPersistentVolumeSource(obj.csi), + 'fc': toJson_FcVolumeSource(obj.fc), + 'flexVolume': toJson_FlexPersistentVolumeSource(obj.flexVolume), + 'flocker': toJson_FlockerVolumeSource(obj.flocker), + 'gcePersistentDisk': toJson_GcePersistentDiskVolumeSource(obj.gcePersistentDisk), + 'glusterfs': toJson_GlusterfsPersistentVolumeSource(obj.glusterfs), + 'hostPath': toJson_HostPathVolumeSource(obj.hostPath), + 'iscsi': toJson_IscsiPersistentVolumeSource(obj.iscsi), + 'local': toJson_LocalVolumeSource(obj.local), + 'mountOptions': obj.mountOptions?.map(y => y), + 'nfs': toJson_NfsVolumeSource(obj.nfs), + 'nodeAffinity': toJson_VolumeNodeAffinity(obj.nodeAffinity), + 'persistentVolumeReclaimPolicy': obj.persistentVolumeReclaimPolicy, + 'photonPersistentDisk': toJson_PhotonPersistentDiskVolumeSource(obj.photonPersistentDisk), + 'portworxVolume': toJson_PortworxVolumeSource(obj.portworxVolume), + 'quobyte': toJson_QuobyteVolumeSource(obj.quobyte), + 'rbd': toJson_RbdPersistentVolumeSource(obj.rbd), + 'scaleIO': toJson_ScaleIoPersistentVolumeSource(obj.scaleIo), + 'storageClassName': obj.storageClassName, + 'storageos': toJson_StorageOsPersistentVolumeSource(obj.storageos), + 'volumeMode': obj.volumeMode, + 'vsphereVolume': toJson_VsphereVirtualDiskVolumeSource(obj.vsphereVolume), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec + */ +export interface PersistentVolumeClaimSpec { + /** + * accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec#accessModes + */ + readonly accessModes?: string[]; + + /** + * dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field. + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec#dataSource + */ + readonly dataSource?: TypedLocalObjectReference; + + /** + * dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef + * allows any non-core object, as well as PersistentVolumeClaim objects. + * * While DataSource ignores disallowed values (dropping them), DataSourceRef + * preserves all values, and generates an error if a disallowed value is + * specified. + * (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec#dataSourceRef + */ + readonly dataSourceRef?: TypedLocalObjectReference; + + /** + * resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec#resources + */ + readonly resources?: ResourceRequirements; + + /** + * selector is a label query over volumes to consider for binding. + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec#selector + */ + readonly selector?: LabelSelector; + + /** + * storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec#storageClassName + */ + readonly storageClassName?: string; + + /** + * volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec#volumeMode + */ + readonly volumeMode?: string; + + /** + * volumeName is the binding reference to the PersistentVolume backing this claim. + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimSpec#volumeName + */ + readonly volumeName?: string; + +} + +/** + * Converts an object of type 'PersistentVolumeClaimSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PersistentVolumeClaimSpec(obj: PersistentVolumeClaimSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'accessModes': obj.accessModes?.map(y => y), + 'dataSource': toJson_TypedLocalObjectReference(obj.dataSource), + 'dataSourceRef': toJson_TypedLocalObjectReference(obj.dataSourceRef), + 'resources': toJson_ResourceRequirements(obj.resources), + 'selector': toJson_LabelSelector(obj.selector), + 'storageClassName': obj.storageClassName, + 'volumeMode': obj.volumeMode, + 'volumeName': obj.volumeName, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodSpec is a description of a pod. + * + * @schema io.k8s.api.core.v1.PodSpec + */ +export interface PodSpec { + /** + * Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * + * @schema io.k8s.api.core.v1.PodSpec#activeDeadlineSeconds + */ + readonly activeDeadlineSeconds?: number; + + /** + * If specified, the pod's scheduling constraints + * + * @schema io.k8s.api.core.v1.PodSpec#affinity + */ + readonly affinity?: Affinity; + + /** + * AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * + * @schema io.k8s.api.core.v1.PodSpec#automountServiceAccountToken + */ + readonly automountServiceAccountToken?: boolean; + + /** + * List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * + * @schema io.k8s.api.core.v1.PodSpec#containers + */ + readonly containers: Container[]; + + /** + * Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * + * @schema io.k8s.api.core.v1.PodSpec#dnsConfig + */ + readonly dnsConfig?: PodDnsConfig; + + /** + * Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * + * + * + * @default ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * @schema io.k8s.api.core.v1.PodSpec#dnsPolicy + */ + readonly dnsPolicy?: string; + + /** + * EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * + * @default true. + * @schema io.k8s.api.core.v1.PodSpec#enableServiceLinks + */ + readonly enableServiceLinks?: boolean; + + /** + * List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. + * + * @schema io.k8s.api.core.v1.PodSpec#ephemeralContainers + */ + readonly ephemeralContainers?: EphemeralContainer[]; + + /** + * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * + * @schema io.k8s.api.core.v1.PodSpec#hostAliases + */ + readonly hostAliases?: HostAlias[]; + + /** + * Use the host's ipc namespace. Optional: Default to false. + * + * @default false. + * @schema io.k8s.api.core.v1.PodSpec#hostIPC + */ + readonly hostIpc?: boolean; + + /** + * Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * + * @default false. + * @schema io.k8s.api.core.v1.PodSpec#hostNetwork + */ + readonly hostNetwork?: boolean; + + /** + * Use the host's pid namespace. Optional: Default to false. + * + * @default false. + * @schema io.k8s.api.core.v1.PodSpec#hostPID + */ + readonly hostPid?: boolean; + + /** + * Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. + * + * @default true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. + * @schema io.k8s.api.core.v1.PodSpec#hostUsers + */ + readonly hostUsers?: boolean; + + /** + * Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * + * @schema io.k8s.api.core.v1.PodSpec#hostname + */ + readonly hostname?: string; + + /** + * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * + * @schema io.k8s.api.core.v1.PodSpec#imagePullSecrets + */ + readonly imagePullSecrets?: LocalObjectReference[]; + + /** + * List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * + * @schema io.k8s.api.core.v1.PodSpec#initContainers + */ + readonly initContainers?: Container[]; + + /** + * NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * + * @schema io.k8s.api.core.v1.PodSpec#nodeName + */ + readonly nodeName?: string; + + /** + * NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * + * @schema io.k8s.api.core.v1.PodSpec#nodeSelector + */ + readonly nodeSelector?: { [key: string]: string }; + + /** + * Specifies the OS of the containers in the pod. Some pod and container fields are restricted if this is set. + * + * If the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions + * + * If the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup + * + * @schema io.k8s.api.core.v1.PodSpec#os + */ + readonly os?: PodOs; + + /** + * Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md + * + * @schema io.k8s.api.core.v1.PodSpec#overhead + */ + readonly overhead?: { [key: string]: Quantity }; + + /** + * PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. + * + * @default PreemptLowerPriority if unset. + * @schema io.k8s.api.core.v1.PodSpec#preemptionPolicy + */ + readonly preemptionPolicy?: string; + + /** + * The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * + * @schema io.k8s.api.core.v1.PodSpec#priority + */ + readonly priority?: number; + + /** + * If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * + * @schema io.k8s.api.core.v1.PodSpec#priorityClassName + */ + readonly priorityClassName?: string; + + /** + * If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates + * + * @schema io.k8s.api.core.v1.PodSpec#readinessGates + */ + readonly readinessGates?: PodReadinessGate[]; + + /** + * Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * + * + * + * @default Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * @schema io.k8s.api.core.v1.PodSpec#restartPolicy + */ + readonly restartPolicy?: string; + + /** + * RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class + * + * @schema io.k8s.api.core.v1.PodSpec#runtimeClassName + */ + readonly runtimeClassName?: string; + + /** + * If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * + * @schema io.k8s.api.core.v1.PodSpec#schedulerName + */ + readonly schedulerName?: string; + + /** + * SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * + * @default empty. See type description for default values of each field. + * @schema io.k8s.api.core.v1.PodSpec#securityContext + */ + readonly securityContext?: PodSecurityContext; + + /** + * DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * + * @schema io.k8s.api.core.v1.PodSpec#serviceAccount + */ + readonly serviceAccount?: string; + + /** + * ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * + * @schema io.k8s.api.core.v1.PodSpec#serviceAccountName + */ + readonly serviceAccountName?: string; + + /** + * If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false. + * + * @default false. + * @schema io.k8s.api.core.v1.PodSpec#setHostnameAsFQDN + */ + readonly setHostnameAsFqdn?: boolean; + + /** + * Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * + * @default false. + * @schema io.k8s.api.core.v1.PodSpec#shareProcessNamespace + */ + readonly shareProcessNamespace?: boolean; + + /** + * If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * + * @schema io.k8s.api.core.v1.PodSpec#subdomain + */ + readonly subdomain?: string; + + /** + * Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * + * @default 30 seconds. + * @schema io.k8s.api.core.v1.PodSpec#terminationGracePeriodSeconds + */ + readonly terminationGracePeriodSeconds?: number; + + /** + * If specified, the pod's tolerations. + * + * @schema io.k8s.api.core.v1.PodSpec#tolerations + */ + readonly tolerations?: Toleration[]; + + /** + * TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed. + * + * @schema io.k8s.api.core.v1.PodSpec#topologySpreadConstraints + */ + readonly topologySpreadConstraints?: TopologySpreadConstraint[]; + + /** + * List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * + * @schema io.k8s.api.core.v1.PodSpec#volumes + */ + readonly volumes?: Volume[]; + +} + +/** + * Converts an object of type 'PodSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PodSpec(obj: PodSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'activeDeadlineSeconds': obj.activeDeadlineSeconds, + 'affinity': toJson_Affinity(obj.affinity), + 'automountServiceAccountToken': obj.automountServiceAccountToken, + 'containers': obj.containers?.map(y => toJson_Container(y)), + 'dnsConfig': toJson_PodDnsConfig(obj.dnsConfig), + 'dnsPolicy': obj.dnsPolicy, + 'enableServiceLinks': obj.enableServiceLinks, + 'ephemeralContainers': obj.ephemeralContainers?.map(y => toJson_EphemeralContainer(y)), + 'hostAliases': obj.hostAliases?.map(y => toJson_HostAlias(y)), + 'hostIPC': obj.hostIpc, + 'hostNetwork': obj.hostNetwork, + 'hostPID': obj.hostPid, + 'hostUsers': obj.hostUsers, + 'hostname': obj.hostname, + 'imagePullSecrets': obj.imagePullSecrets?.map(y => toJson_LocalObjectReference(y)), + 'initContainers': obj.initContainers?.map(y => toJson_Container(y)), + 'nodeName': obj.nodeName, + 'nodeSelector': ((obj.nodeSelector) === undefined) ? undefined : (Object.entries(obj.nodeSelector).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + 'os': toJson_PodOs(obj.os), + 'overhead': ((obj.overhead) === undefined) ? undefined : (Object.entries(obj.overhead).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), + 'preemptionPolicy': obj.preemptionPolicy, + 'priority': obj.priority, + 'priorityClassName': obj.priorityClassName, + 'readinessGates': obj.readinessGates?.map(y => toJson_PodReadinessGate(y)), + 'restartPolicy': obj.restartPolicy, + 'runtimeClassName': obj.runtimeClassName, + 'schedulerName': obj.schedulerName, + 'securityContext': toJson_PodSecurityContext(obj.securityContext), + 'serviceAccount': obj.serviceAccount, + 'serviceAccountName': obj.serviceAccountName, + 'setHostnameAsFQDN': obj.setHostnameAsFqdn, + 'shareProcessNamespace': obj.shareProcessNamespace, + 'subdomain': obj.subdomain, + 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, + 'tolerations': obj.tolerations?.map(y => toJson_Toleration(y)), + 'topologySpreadConstraints': obj.topologySpreadConstraints?.map(y => toJson_TopologySpreadConstraint(y)), + 'volumes': obj.volumes?.map(y => toJson_Volume(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodTemplateSpec describes the data a pod should have when created from a template + * + * @schema io.k8s.api.core.v1.PodTemplateSpec + */ +export interface PodTemplateSpec { + /** + * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.core.v1.PodTemplateSpec#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.core.v1.PodTemplateSpec#spec + */ + readonly spec?: PodSpec; + +} + +/** + * Converts an object of type 'PodTemplateSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PodTemplateSpec(obj: PodTemplateSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_PodSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ReplicationControllerSpec is the specification of a replication controller. + * + * @schema io.k8s.api.core.v1.ReplicationControllerSpec + */ +export interface ReplicationControllerSpec { + /** + * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * + * @default 0 (pod will be considered available as soon as it is ready) + * @schema io.k8s.api.core.v1.ReplicationControllerSpec#minReadySeconds + */ + readonly minReadySeconds?: number; + + /** + * Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller + * + * @default 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller + * @schema io.k8s.api.core.v1.ReplicationControllerSpec#replicas + */ + readonly replicas?: number; + + /** + * Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * + * @schema io.k8s.api.core.v1.ReplicationControllerSpec#selector + */ + readonly selector?: { [key: string]: string }; + + /** + * Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * + * @schema io.k8s.api.core.v1.ReplicationControllerSpec#template + */ + readonly template?: PodTemplateSpec; + +} + +/** + * Converts an object of type 'ReplicationControllerSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ReplicationControllerSpec(obj: ReplicationControllerSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'minReadySeconds': obj.minReadySeconds, + 'replicas': obj.replicas, + 'selector': ((obj.selector) === undefined) ? undefined : (Object.entries(obj.selector).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + 'template': toJson_PodTemplateSpec(obj.template), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ResourceQuotaSpec defines the desired hard limits to enforce for Quota. + * + * @schema io.k8s.api.core.v1.ResourceQuotaSpec + */ +export interface ResourceQuotaSpec { + /** + * hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ + * + * @schema io.k8s.api.core.v1.ResourceQuotaSpec#hard + */ + readonly hard?: { [key: string]: Quantity }; + + /** + * scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched. + * + * @schema io.k8s.api.core.v1.ResourceQuotaSpec#scopeSelector + */ + readonly scopeSelector?: ScopeSelector; + + /** + * A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. + * + * @schema io.k8s.api.core.v1.ResourceQuotaSpec#scopes + */ + readonly scopes?: string[]; + +} + +/** + * Converts an object of type 'ResourceQuotaSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ResourceQuotaSpec(obj: ResourceQuotaSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'hard': ((obj.hard) === undefined) ? undefined : (Object.entries(obj.hard).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), + 'scopeSelector': toJson_ScopeSelector(obj.scopeSelector), + 'scopes': obj.scopes?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ServiceSpec describes the attributes that a user creates on a service. + * + * @schema io.k8s.api.core.v1.ServiceSpec + */ +export interface ServiceSpec { + /** + * allocateLoadBalancerNodePorts defines if NodePorts will be automatically allocated for services with type LoadBalancer. Default is "true". It may be set to "false" if the cluster load-balancer does not rely on NodePorts. If the caller requests specific NodePorts (by specifying a value), those requests will be respected, regardless of this field. This field may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type. + * + * @default true". It may be set to "false" if the cluster load-balancer does not rely on NodePorts. If the caller requests specific NodePorts (by specifying a value), those requests will be respected, regardless of this field. This field may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type. + * @schema io.k8s.api.core.v1.ServiceSpec#allocateLoadBalancerNodePorts + */ + readonly allocateLoadBalancerNodePorts?: boolean; + + /** + * clusterIP is the IP address of the service and is usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be blank) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are "None", empty string (""), or a valid IP address. Setting this to "None" makes a "headless service" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + * + * @schema io.k8s.api.core.v1.ServiceSpec#clusterIP + */ + readonly clusterIp?: string; + + /** + * ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are "None", empty string (""), or a valid IP address. Setting this to "None" makes a "headless service" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value. + * + * This field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + * + * @schema io.k8s.api.core.v1.ServiceSpec#clusterIPs + */ + readonly clusterIPs?: string[]; + + /** + * externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. + * + * @schema io.k8s.api.core.v1.ServiceSpec#externalIPs + */ + readonly externalIPs?: string[]; + + /** + * externalName is the external reference that discovery mechanisms will return as an alias for this service (e.g. a DNS CNAME record). No proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires `type` to be "ExternalName". + * + * @schema io.k8s.api.core.v1.ServiceSpec#externalName + */ + readonly externalName?: string; + + /** + * externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service's "externally-facing" addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to "Local", the proxy will configure the service in a way that assumes that external load balancers will take care of balancing the service traffic between nodes, and so each node will deliver traffic only to the node-local endpoints of the service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no endpoints will be dropped.) The default value, "Cluster", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always get "Cluster" semantics, but clients sending to a NodePort from within the cluster may need to take traffic policy into account when picking a node. + * + * + * + * @schema io.k8s.api.core.v1.ServiceSpec#externalTrafficPolicy + */ + readonly externalTrafficPolicy?: string; + + /** + * healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). This field cannot be updated once set. + * + * @schema io.k8s.api.core.v1.ServiceSpec#healthCheckNodePort + */ + readonly healthCheckNodePort?: number; + + /** + * InternalTrafficPolicy describes how nodes distribute service traffic they receive on the ClusterIP. If set to "Local", the proxy will assume that pods only want to talk to endpoints of the service on the same node as the pod, dropping the traffic if there are no local endpoints. The default value, "Cluster", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). + * + * @schema io.k8s.api.core.v1.ServiceSpec#internalTrafficPolicy + */ + readonly internalTrafficPolicy?: string; + + /** + * IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are "IPv4" and "IPv6". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to "headless" services. This field will be wiped when updating a Service to type ExternalName. + * + * This field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. + * + * @schema io.k8s.api.core.v1.ServiceSpec#ipFamilies + */ + readonly ipFamilies?: string[]; + + /** + * IPFamilyPolicy represents the dual-stack-ness requested or required by this Service. If there is no value provided, then this field will be set to SingleStack. Services can be "SingleStack" (a single IP family), "PreferDualStack" (two IP families on dual-stack configured clusters or a single IP family on single-stack clusters), or "RequireDualStack" (two IP families on dual-stack configured clusters, otherwise fail). The ipFamilies and clusterIPs fields depend on the value of this field. This field will be wiped when updating a service to type ExternalName. + * + * @schema io.k8s.api.core.v1.ServiceSpec#ipFamilyPolicy + */ + readonly ipFamilyPolicy?: string; + + /** + * loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. "internal-vip" or "example.com/internal-vip". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type. + * + * @schema io.k8s.api.core.v1.ServiceSpec#loadBalancerClass + */ + readonly loadBalancerClass?: string; + + /** + * Only applies to Service Type: LoadBalancer. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. Deprecated: This field was under-specified and its meaning varies across implementations, and it cannot support dual-stack. As of Kubernetes v1.24, users are encouraged to use implementation-specific annotations when available. This field may be removed in a future API version. + * + * @schema io.k8s.api.core.v1.ServiceSpec#loadBalancerIP + */ + readonly loadBalancerIp?: string; + + /** + * If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature." More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/ + * + * @schema io.k8s.api.core.v1.ServiceSpec#loadBalancerSourceRanges + */ + readonly loadBalancerSourceRanges?: string[]; + + /** + * The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + * + * @schema io.k8s.api.core.v1.ServiceSpec#ports + */ + readonly ports?: ServicePort[]; + + /** + * publishNotReadyAddresses indicates that any agent which deals with endpoints for this Service should disregard any indications of ready/not-ready. The primary use case for setting this field is for a StatefulSet's Headless Service to propagate SRV DNS records for its Pods for the purpose of peer discovery. The Kubernetes controllers that generate Endpoints and EndpointSlice resources for Services interpret this to mean that all endpoints are considered "ready" even if the Pods themselves are not. Agents which consume only Kubernetes generated endpoints through the Endpoints or EndpointSlice resources can safely assume this behavior. + * + * @schema io.k8s.api.core.v1.ServiceSpec#publishNotReadyAddresses + */ + readonly publishNotReadyAddresses?: boolean; + + /** + * Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ + * + * @schema io.k8s.api.core.v1.ServiceSpec#selector + */ + readonly selector?: { [key: string]: string }; + + /** + * Supports "ClientIP" and "None". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + * + * + * + * @default None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + * @schema io.k8s.api.core.v1.ServiceSpec#sessionAffinity + */ + readonly sessionAffinity?: string; + + /** + * sessionAffinityConfig contains the configurations of session affinity. + * + * @schema io.k8s.api.core.v1.ServiceSpec#sessionAffinityConfig + */ + readonly sessionAffinityConfig?: SessionAffinityConfig; + + /** + * type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. "ClusterIP" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object or EndpointSlice objects. If clusterIP is "None", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a virtual IP. "NodePort" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. "LoadBalancer" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the same endpoints as the clusterIP. "ExternalName" aliases this service to the specified externalName. Several other fields do not apply to ExternalName services. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types + * + * + * + * @default ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. "ClusterIP" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object or EndpointSlice objects. If clusterIP is "None", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a virtual IP. "NodePort" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. "LoadBalancer" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the same endpoints as the clusterIP. "ExternalName" aliases this service to the specified externalName. Several other fields do not apply to ExternalName services. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types + * @schema io.k8s.api.core.v1.ServiceSpec#type + */ + readonly type?: string; + +} + +/** + * Converts an object of type 'ServiceSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ServiceSpec(obj: ServiceSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'allocateLoadBalancerNodePorts': obj.allocateLoadBalancerNodePorts, + 'clusterIP': obj.clusterIp, + 'clusterIPs': obj.clusterIPs?.map(y => y), + 'externalIPs': obj.externalIPs?.map(y => y), + 'externalName': obj.externalName, + 'externalTrafficPolicy': obj.externalTrafficPolicy, + 'healthCheckNodePort': obj.healthCheckNodePort, + 'internalTrafficPolicy': obj.internalTrafficPolicy, + 'ipFamilies': obj.ipFamilies?.map(y => y), + 'ipFamilyPolicy': obj.ipFamilyPolicy, + 'loadBalancerClass': obj.loadBalancerClass, + 'loadBalancerIP': obj.loadBalancerIp, + 'loadBalancerSourceRanges': obj.loadBalancerSourceRanges?.map(y => y), + 'ports': obj.ports?.map(y => toJson_ServicePort(y)), + 'publishNotReadyAddresses': obj.publishNotReadyAddresses, + 'selector': ((obj.selector) === undefined) ? undefined : (Object.entries(obj.selector).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + 'sessionAffinity': obj.sessionAffinity, + 'sessionAffinityConfig': toJson_SessionAffinityConfig(obj.sessionAffinityConfig), + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. + * + * @schema io.k8s.api.core.v1.LocalObjectReference + */ +export interface LocalObjectReference { + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * + * @schema io.k8s.api.core.v1.LocalObjectReference#name + */ + readonly name?: string; + +} + +/** + * Converts an object of type 'LocalObjectReference' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_LocalObjectReference(obj: LocalObjectReference | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Endpoint represents a single logical "backend" implementing a service. + * + * @schema io.k8s.api.discovery.v1.Endpoint + */ +export interface Endpoint { + /** + * addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. These are all assumed to be fungible and clients may choose to only use the first element. Refer to: https://issue.k8s.io/106267 + * + * @schema io.k8s.api.discovery.v1.Endpoint#addresses + */ + readonly addresses: string[]; + + /** + * conditions contains information about the current status of the endpoint. + * + * @schema io.k8s.api.discovery.v1.Endpoint#conditions + */ + readonly conditions?: EndpointConditions; + + /** + * deprecatedTopology contains topology information part of the v1beta1 API. This field is deprecated, and will be removed when the v1beta1 API is removed (no sooner than kubernetes v1.24). While this field can hold values, it is not writable through the v1 API, and any attempts to write to it will be silently ignored. Topology information can be found in the zone and nodeName fields instead. + * + * @schema io.k8s.api.discovery.v1.Endpoint#deprecatedTopology + */ + readonly deprecatedTopology?: { [key: string]: string }; + + /** + * hints contains information associated with how an endpoint should be consumed. + * + * @schema io.k8s.api.discovery.v1.Endpoint#hints + */ + readonly hints?: EndpointHints; + + /** + * hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation. + * + * @schema io.k8s.api.discovery.v1.Endpoint#hostname + */ + readonly hostname?: string; + + /** + * nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. + * + * @schema io.k8s.api.discovery.v1.Endpoint#nodeName + */ + readonly nodeName?: string; + + /** + * targetRef is a reference to a Kubernetes object that represents this endpoint. + * + * @schema io.k8s.api.discovery.v1.Endpoint#targetRef + */ + readonly targetRef?: ObjectReference; + + /** + * zone is the name of the Zone this endpoint exists in. + * + * @schema io.k8s.api.discovery.v1.Endpoint#zone + */ + readonly zone?: string; + +} + +/** + * Converts an object of type 'Endpoint' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_Endpoint(obj: Endpoint | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'addresses': obj.addresses?.map(y => y), + 'conditions': toJson_EndpointConditions(obj.conditions), + 'deprecatedTopology': ((obj.deprecatedTopology) === undefined) ? undefined : (Object.entries(obj.deprecatedTopology).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + 'hints': toJson_EndpointHints(obj.hints), + 'hostname': obj.hostname, + 'nodeName': obj.nodeName, + 'targetRef': toJson_ObjectReference(obj.targetRef), + 'zone': obj.zone, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * EndpointPort is a tuple that describes a single port. + * + * @schema io.k8s.api.core.v1.EndpointPort + */ +export interface EndpointPort { + /** + * The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. + * + * @schema io.k8s.api.core.v1.EndpointPort#appProtocol + */ + readonly appProtocol?: string; + + /** + * The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined. + * + * @schema io.k8s.api.core.v1.EndpointPort#name + */ + readonly name?: string; + + /** + * The port number of the endpoint. + * + * @schema io.k8s.api.core.v1.EndpointPort#port + */ + readonly port: number; + + /** + * The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. + * + * + * + * @default TCP. + * @schema io.k8s.api.core.v1.EndpointPort#protocol + */ + readonly protocol?: string; + +} + +/** + * Converts an object of type 'EndpointPort' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_EndpointPort(obj: EndpointPort | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'appProtocol': obj.appProtocol, + 'name': obj.name, + 'port': obj.port, + 'protocol': obj.protocol, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * FlowSchemaSpec describes how the FlowSchema's specification looks like. + * + * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchemaSpec + */ +export interface FlowSchemaSpecV1Beta1 { + /** + * `distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string. + * + * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchemaSpec#distinguisherMethod + */ + readonly distinguisherMethod?: FlowDistinguisherMethodV1Beta1; + + /** + * `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default. + * + * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchemaSpec#matchingPrecedence + */ + readonly matchingPrecedence?: number; + + /** + * `priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchemaSpec#priorityLevelConfiguration + */ + readonly priorityLevelConfiguration: PriorityLevelConfigurationReferenceV1Beta1; + + /** + * `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema. + * + * @schema io.k8s.api.flowcontrol.v1beta1.FlowSchemaSpec#rules + */ + readonly rules?: PolicyRulesWithSubjectsV1Beta1[]; + +} + +/** + * Converts an object of type 'FlowSchemaSpecV1Beta1' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_FlowSchemaSpecV1Beta1(obj: FlowSchemaSpecV1Beta1 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'distinguisherMethod': toJson_FlowDistinguisherMethodV1Beta1(obj.distinguisherMethod), + 'matchingPrecedence': obj.matchingPrecedence, + 'priorityLevelConfiguration': toJson_PriorityLevelConfigurationReferenceV1Beta1(obj.priorityLevelConfiguration), + 'rules': obj.rules?.map(y => toJson_PolicyRulesWithSubjectsV1Beta1(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PriorityLevelConfigurationSpec specifies the configuration of a priority level. + * + * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationSpec + */ +export interface PriorityLevelConfigurationSpecV1Beta1 { + /** + * `limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `"Limited"`. + * + * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationSpec#limited + */ + readonly limited?: LimitedPriorityLevelConfigurationV1Beta1; + + /** + * `type` indicates whether this priority level is subject to limitation on request execution. A value of `"Exempt"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `"Limited"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationSpec#type + */ + readonly type: string; + +} + +/** + * Converts an object of type 'PriorityLevelConfigurationSpecV1Beta1' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PriorityLevelConfigurationSpecV1Beta1(obj: PriorityLevelConfigurationSpecV1Beta1 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'limited': toJson_LimitedPriorityLevelConfigurationV1Beta1(obj.limited), + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * FlowSchemaSpec describes how the FlowSchema's specification looks like. + * + * @schema io.k8s.api.flowcontrol.v1beta2.FlowSchemaSpec + */ +export interface FlowSchemaSpecV1Beta2 { + /** + * `distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string. + * + * @schema io.k8s.api.flowcontrol.v1beta2.FlowSchemaSpec#distinguisherMethod + */ + readonly distinguisherMethod?: FlowDistinguisherMethodV1Beta2; + + /** + * `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default. + * + * @schema io.k8s.api.flowcontrol.v1beta2.FlowSchemaSpec#matchingPrecedence + */ + readonly matchingPrecedence?: number; + + /** + * `priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta2.FlowSchemaSpec#priorityLevelConfiguration + */ + readonly priorityLevelConfiguration: PriorityLevelConfigurationReferenceV1Beta2; + + /** + * `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema. + * + * @schema io.k8s.api.flowcontrol.v1beta2.FlowSchemaSpec#rules + */ + readonly rules?: PolicyRulesWithSubjectsV1Beta2[]; + +} + +/** + * Converts an object of type 'FlowSchemaSpecV1Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_FlowSchemaSpecV1Beta2(obj: FlowSchemaSpecV1Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'distinguisherMethod': toJson_FlowDistinguisherMethodV1Beta2(obj.distinguisherMethod), + 'matchingPrecedence': obj.matchingPrecedence, + 'priorityLevelConfiguration': toJson_PriorityLevelConfigurationReferenceV1Beta2(obj.priorityLevelConfiguration), + 'rules': obj.rules?.map(y => toJson_PolicyRulesWithSubjectsV1Beta2(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PriorityLevelConfigurationSpec specifies the configuration of a priority level. + * + * @schema io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationSpec + */ +export interface PriorityLevelConfigurationSpecV1Beta2 { + /** + * `limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `"Limited"`. + * + * @schema io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationSpec#limited + */ + readonly limited?: LimitedPriorityLevelConfigurationV1Beta2; + + /** + * `type` indicates whether this priority level is subject to limitation on request execution. A value of `"Exempt"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `"Limited"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationSpec#type + */ + readonly type: string; + +} + +/** + * Converts an object of type 'PriorityLevelConfigurationSpecV1Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PriorityLevelConfigurationSpecV1Beta2(obj: PriorityLevelConfigurationSpecV1Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'limited': toJson_LimitedPriorityLevelConfigurationV1Beta2(obj.limited), + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * IngressSpec describes the Ingress the user wishes to exist. + * + * @schema io.k8s.api.networking.v1.IngressSpec + */ +export interface IngressSpec { + /** + * DefaultBackend is the backend that should handle requests that don't match any rule. If Rules are not specified, DefaultBackend must be specified. If DefaultBackend is not set, the handling of requests that do not match any of the rules will be up to the Ingress controller. + * + * @schema io.k8s.api.networking.v1.IngressSpec#defaultBackend + */ + readonly defaultBackend?: IngressBackend; + + /** + * IngressClassName is the name of an IngressClass cluster resource. Ingress controller implementations use this field to know whether they should be serving this Ingress resource, by a transitive connection (controller -> IngressClass -> Ingress resource). Although the `kubernetes.io/ingress.class` annotation (simple constant name) was never formally defined, it was widely supported by Ingress controllers to create a direct binding between Ingress controller and Ingress resources. Newly created Ingress resources should prefer using the field. However, even though the annotation is officially deprecated, for backwards compatibility reasons, ingress controllers should still honor that annotation if present. + * + * @schema io.k8s.api.networking.v1.IngressSpec#ingressClassName + */ + readonly ingressClassName?: string; + + /** + * A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. + * + * @schema io.k8s.api.networking.v1.IngressSpec#rules + */ + readonly rules?: IngressRule[]; + + /** + * TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. + * + * @schema io.k8s.api.networking.v1.IngressSpec#tls + */ + readonly tls?: IngressTls[]; + +} + +/** + * Converts an object of type 'IngressSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_IngressSpec(obj: IngressSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'defaultBackend': toJson_IngressBackend(obj.defaultBackend), + 'ingressClassName': obj.ingressClassName, + 'rules': obj.rules?.map(y => toJson_IngressRule(y)), + 'tls': obj.tls?.map(y => toJson_IngressTls(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * IngressClassSpec provides information about the class of an Ingress. + * + * @schema io.k8s.api.networking.v1.IngressClassSpec + */ +export interface IngressClassSpec { + /** + * Controller refers to the name of the controller that should handle this class. This allows for different "flavors" that are controlled by the same controller. For example, you may have different Parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. "acme.io/ingress-controller". This field is immutable. + * + * @schema io.k8s.api.networking.v1.IngressClassSpec#controller + */ + readonly controller?: string; + + /** + * Parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters. + * + * @schema io.k8s.api.networking.v1.IngressClassSpec#parameters + */ + readonly parameters?: IngressClassParametersReference; + +} + +/** + * Converts an object of type 'IngressClassSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_IngressClassSpec(obj: IngressClassSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'controller': obj.controller, + 'parameters': toJson_IngressClassParametersReference(obj.parameters), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * NetworkPolicySpec provides the specification of a NetworkPolicy + * + * @schema io.k8s.api.networking.v1.NetworkPolicySpec + */ +export interface NetworkPolicySpec { + /** + * List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 + * + * @schema io.k8s.api.networking.v1.NetworkPolicySpec#egress + */ + readonly egress?: NetworkPolicyEgressRule[]; + + /** + * List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default) + * + * @schema io.k8s.api.networking.v1.NetworkPolicySpec#ingress + */ + readonly ingress?: NetworkPolicyIngressRule[]; + + /** + * Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. + * + * @schema io.k8s.api.networking.v1.NetworkPolicySpec#podSelector + */ + readonly podSelector: LabelSelector; + + /** + * List of rule types that the NetworkPolicy relates to. Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"]. If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 + * + * @schema io.k8s.api.networking.v1.NetworkPolicySpec#policyTypes + */ + readonly policyTypes?: string[]; + +} + +/** + * Converts an object of type 'NetworkPolicySpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_NetworkPolicySpec(obj: NetworkPolicySpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'egress': obj.egress?.map(y => toJson_NetworkPolicyEgressRule(y)), + 'ingress': obj.ingress?.map(y => toJson_NetworkPolicyIngressRule(y)), + 'podSelector': toJson_LabelSelector(obj.podSelector), + 'policyTypes': obj.policyTypes?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ClusterCIDRSpec defines the desired state of ClusterCIDR. + * + * @schema io.k8s.api.networking.v1alpha1.ClusterCIDRSpec + */ +export interface ClusterCidrSpecV1Alpha1 { + /** + * IPv4 defines an IPv4 IP block in CIDR notation(e.g. "10.0.0.0/8"). At least one of IPv4 and IPv6 must be specified. This field is immutable. + * + * @schema io.k8s.api.networking.v1alpha1.ClusterCIDRSpec#ipv4 + */ + readonly ipv4?: string; + + /** + * IPv6 defines an IPv6 IP block in CIDR notation(e.g. "fd12:3456:789a:1::/64"). At least one of IPv4 and IPv6 must be specified. This field is immutable. + * + * @schema io.k8s.api.networking.v1alpha1.ClusterCIDRSpec#ipv6 + */ + readonly ipv6?: string; + + /** + * NodeSelector defines which nodes the config is applicable to. An empty or nil NodeSelector selects all nodes. This field is immutable. + * + * @schema io.k8s.api.networking.v1alpha1.ClusterCIDRSpec#nodeSelector + */ + readonly nodeSelector?: NodeSelector; + + /** + * PerNodeHostBits defines the number of host bits to be configured per node. A subnet mask determines how much of the address is used for network bits and host bits. For example an IPv4 address of 192.168.0.0/24, splits the address into 24 bits for the network portion and 8 bits for the host portion. To allocate 256 IPs, set this field to 8 (a /24 mask for IPv4 or a /120 for IPv6). Minimum value is 4 (16 IPs). This field is immutable. + * + * @schema io.k8s.api.networking.v1alpha1.ClusterCIDRSpec#perNodeHostBits + */ + readonly perNodeHostBits: number; + +} + +/** + * Converts an object of type 'ClusterCidrSpecV1Alpha1' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ClusterCidrSpecV1Alpha1(obj: ClusterCidrSpecV1Alpha1 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'ipv4': obj.ipv4, + 'ipv6': obj.ipv6, + 'nodeSelector': toJson_NodeSelector(obj.nodeSelector), + 'perNodeHostBits': obj.perNodeHostBits, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Overhead structure represents the resource overhead associated with running a pod. + * + * @schema io.k8s.api.node.v1.Overhead + */ +export interface Overhead { + /** + * PodFixed represents the fixed resource overhead associated with running a pod. + * + * @schema io.k8s.api.node.v1.Overhead#podFixed + */ + readonly podFixed?: { [key: string]: Quantity }; + +} + +/** + * Converts an object of type 'Overhead' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_Overhead(obj: Overhead | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'podFixed': ((obj.podFixed) === undefined) ? undefined : (Object.entries(obj.podFixed).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass. + * + * @schema io.k8s.api.node.v1.Scheduling + */ +export interface Scheduling { + /** + * nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. + * + * @schema io.k8s.api.node.v1.Scheduling#nodeSelector + */ + readonly nodeSelector?: { [key: string]: string }; + + /** + * tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. + * + * @schema io.k8s.api.node.v1.Scheduling#tolerations + */ + readonly tolerations?: Toleration[]; + +} + +/** + * Converts an object of type 'Scheduling' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_Scheduling(obj: Scheduling | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'nodeSelector': ((obj.nodeSelector) === undefined) ? undefined : (Object.entries(obj.nodeSelector).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + 'tolerations': obj.tolerations?.map(y => toJson_Toleration(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * DeleteOptions may be provided when deleting an API object. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions + */ +export interface DeleteOptions { + /** + * 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 + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions#apiVersion + */ + readonly apiVersion?: string; + + /** + * When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions#dryRun + */ + readonly dryRun?: string[]; + + /** + * The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * + * @default a per object value if not specified. zero means delete immediately. + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions#gracePeriodSeconds + */ + readonly gracePeriodSeconds?: number; + + /** + * 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 + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions#kind + */ + readonly kind?: IoK8SApimachineryPkgApisMetaV1DeleteOptionsKind; + + /** + * Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions#orphanDependents + */ + readonly orphanDependents?: boolean; + + /** + * Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions#preconditions + */ + readonly preconditions?: Preconditions; + + /** + * Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions#propagationPolicy + */ + readonly propagationPolicy?: string; + +} + +/** + * Converts an object of type 'DeleteOptions' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_DeleteOptions(obj: DeleteOptions | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'apiVersion': obj.apiVersion, + 'dryRun': obj.dryRun?.map(y => y), + 'gracePeriodSeconds': obj.gracePeriodSeconds, + 'kind': obj.kind, + 'orphanDependents': obj.orphanDependents, + 'preconditions': toJson_Preconditions(obj.preconditions), + 'propagationPolicy': obj.propagationPolicy, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. + * + * @schema io.k8s.api.policy.v1.PodDisruptionBudgetSpec + */ +export interface PodDisruptionBudgetSpec { + /** + * An eviction is allowed if at most "maxUnavailable" pods selected by "selector" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with "minAvailable". + * + * @schema io.k8s.api.policy.v1.PodDisruptionBudgetSpec#maxUnavailable + */ + readonly maxUnavailable?: IntOrString; + + /** + * An eviction is allowed if at least "minAvailable" pods selected by "selector" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying "100%". + * + * @schema io.k8s.api.policy.v1.PodDisruptionBudgetSpec#minAvailable + */ + readonly minAvailable?: IntOrString; + + /** + * Label query over pods whose evictions are managed by the disruption budget. A null selector will match no pods, while an empty ({}) selector will select all pods within the namespace. + * + * @schema io.k8s.api.policy.v1.PodDisruptionBudgetSpec#selector + */ + readonly selector?: LabelSelector; + +} + +/** + * Converts an object of type 'PodDisruptionBudgetSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PodDisruptionBudgetSpec(obj: PodDisruptionBudgetSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'maxUnavailable': obj.maxUnavailable?.value, + 'minAvailable': obj.minAvailable?.value, + 'selector': toJson_LabelSelector(obj.selector), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole + * + * @schema io.k8s.api.rbac.v1.AggregationRule + */ +export interface AggregationRule { + /** + * ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added + * + * @schema io.k8s.api.rbac.v1.AggregationRule#clusterRoleSelectors + */ + readonly clusterRoleSelectors?: LabelSelector[]; + +} + +/** + * Converts an object of type 'AggregationRule' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_AggregationRule(obj: AggregationRule | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'clusterRoleSelectors': obj.clusterRoleSelectors?.map(y => toJson_LabelSelector(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to. + * + * @schema io.k8s.api.rbac.v1.PolicyRule + */ +export interface PolicyRule { + /** + * APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "" represents the core API group and "*" represents all API groups. + * + * @schema io.k8s.api.rbac.v1.PolicyRule#apiGroups + */ + readonly apiGroups?: string[]; + + /** + * NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. + * + * @schema io.k8s.api.rbac.v1.PolicyRule#nonResourceURLs + */ + readonly nonResourceUrLs?: string[]; + + /** + * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + * + * @schema io.k8s.api.rbac.v1.PolicyRule#resourceNames + */ + readonly resourceNames?: string[]; + + /** + * Resources is a list of resources this rule applies to. '*' represents all resources. + * + * @schema io.k8s.api.rbac.v1.PolicyRule#resources + */ + readonly resources?: string[]; + + /** + * Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs. + * + * @schema io.k8s.api.rbac.v1.PolicyRule#verbs + */ + readonly verbs: string[]; + +} + +/** + * Converts an object of type 'PolicyRule' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PolicyRule(obj: PolicyRule | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'apiGroups': obj.apiGroups?.map(y => y), + 'nonResourceURLs': obj.nonResourceUrLs?.map(y => y), + 'resourceNames': obj.resourceNames?.map(y => y), + 'resources': obj.resources?.map(y => y), + 'verbs': obj.verbs?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * RoleRef contains information that points to the role being used + * + * @schema io.k8s.api.rbac.v1.RoleRef + */ +export interface RoleRef { + /** + * APIGroup is the group for the resource being referenced + * + * @schema io.k8s.api.rbac.v1.RoleRef#apiGroup + */ + readonly apiGroup: string; + + /** + * Kind is the type of resource being referenced + * + * @schema io.k8s.api.rbac.v1.RoleRef#kind + */ + readonly kind: string; + + /** + * Name is the name of resource being referenced + * + * @schema io.k8s.api.rbac.v1.RoleRef#name + */ + readonly name: string; + +} + +/** + * Converts an object of type 'RoleRef' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_RoleRef(obj: RoleRef | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'apiGroup': obj.apiGroup, + 'kind': obj.kind, + 'name': obj.name, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names. + * + * @schema io.k8s.api.rbac.v1.Subject + */ +export interface Subject { + /** + * APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. + * + * @default for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. + * @schema io.k8s.api.rbac.v1.Subject#apiGroup + */ + readonly apiGroup?: string; + + /** + * Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + * + * @schema io.k8s.api.rbac.v1.Subject#kind + */ + readonly kind: string; + + /** + * Name of the object being referenced. + * + * @schema io.k8s.api.rbac.v1.Subject#name + */ + readonly name: string; + + /** + * Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. + * + * @schema io.k8s.api.rbac.v1.Subject#namespace + */ + readonly namespace?: string; + +} + +/** + * Converts an object of type 'Subject' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_Subject(obj: Subject | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'apiGroup': obj.apiGroup, + 'kind': obj.kind, + 'name': obj.name, + 'namespace': obj.namespace, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CSIDriverSpec is the specification of a CSIDriver. + * + * @schema io.k8s.api.storage.v1.CSIDriverSpec + */ +export interface CsiDriverSpec { + /** + * attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. + * + * This field is immutable. + * + * @schema io.k8s.api.storage.v1.CSIDriverSpec#attachRequired + */ + readonly attachRequired?: boolean; + + /** + * Defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details. + * + * This field is immutable. + * + * Defaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce. + * + * @default ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce. + * @schema io.k8s.api.storage.v1.CSIDriverSpec#fsGroupPolicy + */ + readonly fsGroupPolicy?: string; + + /** + * If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. "csi.storage.k8s.io/pod.name": pod.Name "csi.storage.k8s.io/pod.namespace": pod.Namespace "csi.storage.k8s.io/pod.uid": string(pod.UID) "csi.storage.k8s.io/ephemeral": "true" if the volume is an ephemeral inline volume + * defined by a CSIVolumeSource, otherwise "false" + * + * "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver. + * + * This field is immutable. + * + * @default false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. "csi.storage.k8s.io/pod.name": pod.Name "csi.storage.k8s.io/pod.namespace": pod.Namespace "csi.storage.k8s.io/pod.uid": string(pod.UID) "csi.storage.k8s.io/ephemeral": "true" if the volume is an ephemeral inline volume + * @schema io.k8s.api.storage.v1.CSIDriverSpec#podInfoOnMount + */ + readonly podInfoOnMount?: boolean; + + /** + * RequiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false. + * + * Note: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container. + * + * @schema io.k8s.api.storage.v1.CSIDriverSpec#requiresRepublish + */ + readonly requiresRepublish?: boolean; + + /** + * SELinuxMount specifies if the CSI driver supports "-o context" mount option. + * + * When "true", the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different `-o context` options. This is typical for storage backends that provide volumes as filesystems on block devices or as independent shared volumes. Kubernetes will call NodeStage / NodePublish with "-o context=xyz" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context. + * + * When "false", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem. + * + * Default is "false". + * + * @default false". + * @schema io.k8s.api.storage.v1.CSIDriverSpec#seLinuxMount + */ + readonly seLinuxMount?: boolean; + + /** + * If set to true, storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information. + * + * The check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object. + * + * Alternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published. + * + * This field was immutable in Kubernetes <= 1.22 and now is mutable. + * + * @schema io.k8s.api.storage.v1.CSIDriverSpec#storageCapacity + */ + readonly storageCapacity?: boolean; + + /** + * TokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: "csi.storage.k8s.io/serviceAccount.tokens": { + * "": { + * "token": , + * "expirationTimestamp": , + * }, + * ... + * } + * + * Note: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically. + * + * @schema io.k8s.api.storage.v1.CSIDriverSpec#tokenRequests + */ + readonly tokenRequests?: TokenRequest[]; + + /** + * volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is "Persistent", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is "Ephemeral". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. This field is beta. + * + * This field is immutable. + * + * @schema io.k8s.api.storage.v1.CSIDriverSpec#volumeLifecycleModes + */ + readonly volumeLifecycleModes?: string[]; + +} + +/** + * Converts an object of type 'CsiDriverSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CsiDriverSpec(obj: CsiDriverSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'attachRequired': obj.attachRequired, + 'fsGroupPolicy': obj.fsGroupPolicy, + 'podInfoOnMount': obj.podInfoOnMount, + 'requiresRepublish': obj.requiresRepublish, + 'seLinuxMount': obj.seLinuxMount, + 'storageCapacity': obj.storageCapacity, + 'tokenRequests': obj.tokenRequests?.map(y => toJson_TokenRequest(y)), + 'volumeLifecycleModes': obj.volumeLifecycleModes?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CSINodeSpec holds information about the specification of all CSI drivers installed on a node + * + * @schema io.k8s.api.storage.v1.CSINodeSpec + */ +export interface CsiNodeSpec { + /** + * drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty. + * + * @schema io.k8s.api.storage.v1.CSINodeSpec#drivers + */ + readonly drivers: CsiNodeDriver[]; + +} + +/** + * Converts an object of type 'CsiNodeSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CsiNodeSpec(obj: CsiNodeSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'drivers': obj.drivers?.map(y => toJson_CsiNodeDriver(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * @schema io.k8s.apimachinery.pkg.api.resource.Quantity + */ +export class Quantity { + public static fromString(value: string): Quantity { + return new Quantity(value); + } + public static fromNumber(value: number): Quantity { + return new Quantity(value); + } + private constructor(public readonly value: string | number) { + } +} + +/** + * A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector + */ +export interface LabelSelector { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector#matchExpressions + */ + readonly matchExpressions?: LabelSelectorRequirement[]; + + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector#matchLabels + */ + readonly matchLabels?: { [key: string]: string }; + +} + +/** + * Converts an object of type 'LabelSelector' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_LabelSelector(obj: LabelSelector | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'matchExpressions': obj.matchExpressions?.map(y => toJson_LabelSelectorRequirement(y)), + 'matchLabels': ((obj.matchLabels) === undefined) ? undefined : (Object.entries(obj.matchLabels).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future. + * + * @schema io.k8s.api.core.v1.TopologySelectorTerm + */ +export interface TopologySelectorTerm { + /** + * A list of topology selector requirements by labels. + * + * @schema io.k8s.api.core.v1.TopologySelectorTerm#matchLabelExpressions + */ + readonly matchLabelExpressions?: TopologySelectorLabelRequirement[]; + +} + +/** + * Converts an object of type 'TopologySelectorTerm' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_TopologySelectorTerm(obj: TopologySelectorTerm | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'matchLabelExpressions': obj.matchLabelExpressions?.map(y => toJson_TopologySelectorLabelRequirement(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * VolumeAttachmentSpec is the specification of a VolumeAttachment request. + * + * @schema io.k8s.api.storage.v1.VolumeAttachmentSpec + */ +export interface VolumeAttachmentSpec { + /** + * Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). + * + * @schema io.k8s.api.storage.v1.VolumeAttachmentSpec#attacher + */ + readonly attacher: string; + + /** + * The node that the volume should be attached to. + * + * @schema io.k8s.api.storage.v1.VolumeAttachmentSpec#nodeName + */ + readonly nodeName: string; + + /** + * Source represents the volume that should be attached. + * + * @schema io.k8s.api.storage.v1.VolumeAttachmentSpec#source + */ + readonly source: VolumeAttachmentSource; + +} + +/** + * Converts an object of type 'VolumeAttachmentSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_VolumeAttachmentSpec(obj: VolumeAttachmentSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'attacher': obj.attacher, + 'nodeName': obj.nodeName, + 'source': toJson_VolumeAttachmentSource(obj.source), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CustomResourceDefinitionSpec describes how a user wants their resource to appear + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec + */ +export interface CustomResourceDefinitionSpec { + /** + * conversion defines conversion settings for the CRD. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec#conversion + */ + readonly conversion?: CustomResourceConversion; + + /** + * group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`). + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec#group + */ + readonly group: string; + + /** + * names specify the resource and kind names for the custom resource. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec#names + */ + readonly names: CustomResourceDefinitionNames; + + /** + * preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec#preserveUnknownFields + */ + readonly preserveUnknownFields?: boolean; + + /** + * scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec#scope + */ + readonly scope: string; + + /** + * versions is the list of all API versions of the defined custom resource. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec#versions + */ + readonly versions: CustomResourceDefinitionVersion[]; + +} + +/** + * Converts an object of type 'CustomResourceDefinitionSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CustomResourceDefinitionSpec(obj: CustomResourceDefinitionSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'conversion': toJson_CustomResourceConversion(obj.conversion), + 'group': obj.group, + 'names': toJson_CustomResourceDefinitionNames(obj.names), + 'preserveUnknownFields': obj.preserveUnknownFields, + 'scope': obj.scope, + 'versions': obj.versions?.map(y => toJson_CustomResourceDefinitionVersion(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails + */ +export interface StatusDetails { + /** + * The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails#causes + */ + readonly causes?: StatusCause[]; + + /** + * The group attribute of the resource associated with the status StatusReason. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails#group + */ + readonly group?: string; + + /** + * The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails#kind + */ + readonly kind?: string; + + /** + * The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails#name + */ + readonly name?: string; + + /** + * If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails#retryAfterSeconds + */ + readonly retryAfterSeconds?: number; + + /** + * UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails#uid + */ + readonly uid?: string; + +} + +/** + * Converts an object of type 'StatusDetails' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_StatusDetails(obj: StatusDetails | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'causes': obj.causes?.map(y => toJson_StatusCause(y)), + 'group': obj.group, + 'kind': obj.kind, + 'name': obj.name, + 'retryAfterSeconds': obj.retryAfterSeconds, + 'uid': obj.uid, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification. + * + * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec + */ +export interface ApiServiceSpec { + /** + * CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used. + * + * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec#caBundle + */ + readonly caBundle?: string; + + /** + * Group is the API group name this server hosts + * + * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec#group + */ + readonly group?: string; + + /** + * GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s + * + * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec#groupPriorityMinimum + */ + readonly groupPriorityMinimum: number; + + /** + * InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. + * + * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec#insecureSkipTLSVerify + */ + readonly insecureSkipTlsVerify?: boolean; + + /** + * Service is a reference to the service for this API server. It must communicate on port 443. If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled. + * + * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec#service + */ + readonly service?: ServiceReference; + + /** + * Version is the API version this server hosts. For example, "v1" + * + * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec#version + */ + readonly version?: string; + + /** + * VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. + * + * @schema io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec#versionPriority + */ + readonly versionPriority: number; + +} + +/** + * Converts an object of type 'ApiServiceSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ApiServiceSpec(obj: ApiServiceSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'caBundle': obj.caBundle, + 'group': obj.group, + 'groupPriorityMinimum': obj.groupPriorityMinimum, + 'insecureSkipTLSVerify': obj.insecureSkipTlsVerify, + 'service': toJson_ServiceReference(obj.service), + 'version': obj.version, + 'versionPriority': obj.versionPriority, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry + */ +export interface ManagedFieldsEntry { + /** + * APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry#apiVersion + */ + readonly apiVersion?: string; + + /** + * FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry#fieldsType + */ + readonly fieldsType?: string; + + /** + * FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry#fieldsV1 + */ + readonly fieldsV1?: any; + + /** + * Manager is an identifier of the workflow managing these fields. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry#manager + */ + readonly manager?: string; + + /** + * Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry#operation + */ + readonly operation?: string; + + /** + * Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry#subresource + */ + readonly subresource?: string; + + /** + * Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry#time + */ + readonly time?: Date; + +} + +/** + * Converts an object of type 'ManagedFieldsEntry' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ManagedFieldsEntry(obj: ManagedFieldsEntry | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'apiVersion': obj.apiVersion, + 'fieldsType': obj.fieldsType, + 'fieldsV1': obj.fieldsV1, + 'manager': obj.manager, + 'operation': obj.operation, + 'subresource': obj.subresource, + 'time': obj.time?.toISOString(), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference + */ +export interface OwnerReference { + /** + * API version of the referent. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference#apiVersion + */ + readonly apiVersion: string; + + /** + * If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * + * @default false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference#blockOwnerDeletion + */ + readonly blockOwnerDeletion?: boolean; + + /** + * If true, this reference points to the managing controller. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference#controller + */ + readonly controller?: boolean; + + /** + * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference#kind + */ + readonly kind: string; + + /** + * Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference#name + */ + readonly name: string; + + /** + * UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference#uid + */ + readonly uid: string; + +} + +/** + * Converts an object of type 'OwnerReference' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_OwnerReference(obj: OwnerReference | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'apiVersion': obj.apiVersion, + 'blockOwnerDeletion': obj.blockOwnerDeletion, + 'controller': obj.controller, + 'kind': obj.kind, + 'name': obj.name, + 'uid': obj.uid, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * WebhookClientConfig contains the information to make a TLS connection with the webhook + * + * @schema io.k8s.api.admissionregistration.v1.WebhookClientConfig + */ +export interface WebhookClientConfig { + /** + * `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + * + * @schema io.k8s.api.admissionregistration.v1.WebhookClientConfig#caBundle + */ + readonly caBundle?: string; + + /** + * `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. + * + * If the webhook is running within the cluster, then you should use `service`. + * + * @schema io.k8s.api.admissionregistration.v1.WebhookClientConfig#service + */ + readonly service?: ServiceReference; + + /** + * `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + * + * The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + * + * Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + * + * The scheme must be "https"; the URL must begin with "https://". + * + * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + * + * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * + * @schema io.k8s.api.admissionregistration.v1.WebhookClientConfig#url + */ + readonly url?: string; + +} + +/** + * Converts an object of type 'WebhookClientConfig' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_WebhookClientConfig(obj: WebhookClientConfig | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'caBundle': obj.caBundle, + 'service': toJson_ServiceReference(obj.service), + 'url': obj.url, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid. + * + * @schema io.k8s.api.admissionregistration.v1.RuleWithOperations + */ +export interface RuleWithOperations { + /** + * APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. + * + * @schema io.k8s.api.admissionregistration.v1.RuleWithOperations#apiGroups + */ + readonly apiGroups?: string[]; + + /** + * APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. + * + * @schema io.k8s.api.admissionregistration.v1.RuleWithOperations#apiVersions + */ + readonly apiVersions?: string[]; + + /** + * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. + * + * @schema io.k8s.api.admissionregistration.v1.RuleWithOperations#operations + */ + readonly operations?: string[]; + + /** + * Resources is a list of resources this rule applies to. + * + * For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '_/scale' means all scale subresources. '_/*' means all resources and their subresources. + * + * If wildcard is present, the validation rule will ensure resources do not overlap with each other. + * + * Depending on the enclosing object, subresources might not be allowed. Required. + * + * @schema io.k8s.api.admissionregistration.v1.RuleWithOperations#resources + */ + readonly resources?: string[]; + + /** + * scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". + * + * @default . + * @schema io.k8s.api.admissionregistration.v1.RuleWithOperations#scope + */ + readonly scope?: string; + +} + +/** + * Converts an object of type 'RuleWithOperations' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_RuleWithOperations(obj: RuleWithOperations | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'apiGroups': obj.apiGroups?.map(y => y), + 'apiVersions': obj.apiVersions?.map(y => y), + 'operations': obj.operations?.map(y => y), + 'resources': obj.resources?.map(y => y), + 'scope': obj.scope, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet. + * + * @schema io.k8s.api.apps.v1.DaemonSetUpdateStrategy + */ +export interface DaemonSetUpdateStrategy { + /** + * Rolling update config params. Present only if type = "RollingUpdate". + * + * @schema io.k8s.api.apps.v1.DaemonSetUpdateStrategy#rollingUpdate + */ + readonly rollingUpdate?: RollingUpdateDaemonSet; + + /** + * Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate. + * + * + * + * @default RollingUpdate. + * @schema io.k8s.api.apps.v1.DaemonSetUpdateStrategy#type + */ + readonly type?: string; + +} + +/** + * Converts an object of type 'DaemonSetUpdateStrategy' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_DaemonSetUpdateStrategy(obj: DaemonSetUpdateStrategy | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'rollingUpdate': toJson_RollingUpdateDaemonSet(obj.rollingUpdate), + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * DeploymentStrategy describes how to replace existing pods with new ones. + * + * @schema io.k8s.api.apps.v1.DeploymentStrategy + */ +export interface DeploymentStrategy { + /** + * Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + * + * @schema io.k8s.api.apps.v1.DeploymentStrategy#rollingUpdate + */ + readonly rollingUpdate?: RollingUpdateDeployment; + + /** + * Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. + * + * + * + * @default RollingUpdate. + * @schema io.k8s.api.apps.v1.DeploymentStrategy#type + */ + readonly type?: string; + +} + +/** + * Converts an object of type 'DeploymentStrategy' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_DeploymentStrategy(obj: DeploymentStrategy | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'rollingUpdate': toJson_RollingUpdateDeployment(obj.rollingUpdate), + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates. + * + * @schema io.k8s.api.apps.v1.StatefulSetPersistentVolumeClaimRetentionPolicy + */ +export interface StatefulSetPersistentVolumeClaimRetentionPolicy { + /** + * WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted. + * + * @schema io.k8s.api.apps.v1.StatefulSetPersistentVolumeClaimRetentionPolicy#whenDeleted + */ + readonly whenDeleted?: string; + + /** + * WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of `Retain` causes PVCs to not be affected by a scaledown. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted. + * + * @schema io.k8s.api.apps.v1.StatefulSetPersistentVolumeClaimRetentionPolicy#whenScaled + */ + readonly whenScaled?: string; + +} + +/** + * Converts an object of type 'StatefulSetPersistentVolumeClaimRetentionPolicy' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_StatefulSetPersistentVolumeClaimRetentionPolicy(obj: StatefulSetPersistentVolumeClaimRetentionPolicy | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'whenDeleted': obj.whenDeleted, + 'whenScaled': obj.whenScaled, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy. + * + * @schema io.k8s.api.apps.v1.StatefulSetUpdateStrategy + */ +export interface StatefulSetUpdateStrategy { + /** + * RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. + * + * @schema io.k8s.api.apps.v1.StatefulSetUpdateStrategy#rollingUpdate + */ + readonly rollingUpdate?: RollingUpdateStatefulSetStrategy; + + /** + * Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. + * + * + * + * @default RollingUpdate. + * @schema io.k8s.api.apps.v1.StatefulSetUpdateStrategy#type + */ + readonly type?: string; + +} + +/** + * Converts an object of type 'StatefulSetUpdateStrategy' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_StatefulSetUpdateStrategy(obj: StatefulSetUpdateStrategy | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'rollingUpdate': toJson_RollingUpdateStatefulSetStrategy(obj.rollingUpdate), + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * BoundObjectReference is a reference to an object that a token is bound to. + * + * @schema io.k8s.api.authentication.v1.BoundObjectReference + */ +export interface BoundObjectReference { + /** + * API version of the referent. + * + * @schema io.k8s.api.authentication.v1.BoundObjectReference#apiVersion + */ + readonly apiVersion?: string; + + /** + * Kind of the referent. Valid kinds are 'Pod' and 'Secret'. + * + * @schema io.k8s.api.authentication.v1.BoundObjectReference#kind + */ + readonly kind?: string; + + /** + * Name of the referent. + * + * @schema io.k8s.api.authentication.v1.BoundObjectReference#name + */ + readonly name?: string; + + /** + * UID of the referent. + * + * @schema io.k8s.api.authentication.v1.BoundObjectReference#uid + */ + readonly uid?: string; + +} + +/** + * Converts an object of type 'BoundObjectReference' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_BoundObjectReference(obj: BoundObjectReference | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'apiVersion': obj.apiVersion, + 'kind': obj.kind, + 'name': obj.name, + 'uid': obj.uid, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface + * + * @schema io.k8s.api.authorization.v1.NonResourceAttributes + */ +export interface NonResourceAttributes { + /** + * Path is the URL path of the request + * + * @schema io.k8s.api.authorization.v1.NonResourceAttributes#path + */ + readonly path?: string; + + /** + * Verb is the standard HTTP verb + * + * @schema io.k8s.api.authorization.v1.NonResourceAttributes#verb + */ + readonly verb?: string; + +} + +/** + * Converts an object of type 'NonResourceAttributes' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_NonResourceAttributes(obj: NonResourceAttributes | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'path': obj.path, + 'verb': obj.verb, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface + * + * @schema io.k8s.api.authorization.v1.ResourceAttributes + */ +export interface ResourceAttributes { + /** + * Group is the API Group of the Resource. "*" means all. + * + * @schema io.k8s.api.authorization.v1.ResourceAttributes#group + */ + readonly group?: string; + + /** + * Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. + * + * @schema io.k8s.api.authorization.v1.ResourceAttributes#name + */ + readonly name?: string; + + /** + * Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview + * + * @schema io.k8s.api.authorization.v1.ResourceAttributes#namespace + */ + readonly namespace?: string; + + /** + * Resource is one of the existing resource types. "*" means all. + * + * @schema io.k8s.api.authorization.v1.ResourceAttributes#resource + */ + readonly resource?: string; + + /** + * Subresource is one of the existing resource types. "" means none. + * + * @schema io.k8s.api.authorization.v1.ResourceAttributes#subresource + */ + readonly subresource?: string; + + /** + * Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. + * + * @schema io.k8s.api.authorization.v1.ResourceAttributes#verb + */ + readonly verb?: string; + + /** + * Version is the API Version of the Resource. "*" means all. + * + * @schema io.k8s.api.authorization.v1.ResourceAttributes#version + */ + readonly version?: string; + +} + +/** + * Converts an object of type 'ResourceAttributes' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ResourceAttributes(obj: ResourceAttributes | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'group': obj.group, + 'name': obj.name, + 'namespace': obj.namespace, + 'resource': obj.resource, + 'subresource': obj.subresource, + 'verb': obj.verb, + 'version': obj.version, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CrossVersionObjectReference contains enough information to let you identify the referred resource. + * + * @schema io.k8s.api.autoscaling.v1.CrossVersionObjectReference + */ +export interface CrossVersionObjectReference { + /** + * API version of the referent + * + * @schema io.k8s.api.autoscaling.v1.CrossVersionObjectReference#apiVersion + */ + readonly apiVersion?: string; + + /** + * Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + * + * @schema io.k8s.api.autoscaling.v1.CrossVersionObjectReference#kind + */ + readonly kind: string; + + /** + * Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + * + * @schema io.k8s.api.autoscaling.v1.CrossVersionObjectReference#name + */ + readonly name: string; + +} + +/** + * Converts an object of type 'CrossVersionObjectReference' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CrossVersionObjectReference(obj: CrossVersionObjectReference | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'apiVersion': obj.apiVersion, + 'kind': obj.kind, + 'name': obj.name, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). + * + * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerBehavior + */ +export interface HorizontalPodAutoscalerBehaviorV2 { + /** + * scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used). + * + * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerBehavior#scaleDown + */ + readonly scaleDown?: HpaScalingRulesV2; + + /** + * scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of: + * * increase no more than 4 pods per 60 seconds + * * double the number of pods per 60 seconds + * No stabilization is used. + * + * @schema io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerBehavior#scaleUp + */ + readonly scaleUp?: HpaScalingRulesV2; + +} + +/** + * Converts an object of type 'HorizontalPodAutoscalerBehaviorV2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_HorizontalPodAutoscalerBehaviorV2(obj: HorizontalPodAutoscalerBehaviorV2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'scaleDown': toJson_HpaScalingRulesV2(obj.scaleDown), + 'scaleUp': toJson_HpaScalingRulesV2(obj.scaleUp), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once). + * + * @schema io.k8s.api.autoscaling.v2.MetricSpec + */ +export interface MetricSpecV2 { + /** + * containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag. + * + * @schema io.k8s.api.autoscaling.v2.MetricSpec#containerResource + */ + readonly containerResource?: ContainerResourceMetricSourceV2; + + /** + * external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). + * + * @schema io.k8s.api.autoscaling.v2.MetricSpec#external + */ + readonly external?: ExternalMetricSourceV2; + + /** + * object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). + * + * @schema io.k8s.api.autoscaling.v2.MetricSpec#object + */ + readonly object?: ObjectMetricSourceV2; + + /** + * pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. + * + * @schema io.k8s.api.autoscaling.v2.MetricSpec#pods + */ + readonly pods?: PodsMetricSourceV2; + + /** + * resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. + * + * @schema io.k8s.api.autoscaling.v2.MetricSpec#resource + */ + readonly resource?: ResourceMetricSourceV2; + + /** + * type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled + * + * @schema io.k8s.api.autoscaling.v2.MetricSpec#type + */ + readonly type: string; + +} + +/** + * Converts an object of type 'MetricSpecV2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_MetricSpecV2(obj: MetricSpecV2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'containerResource': toJson_ContainerResourceMetricSourceV2(obj.containerResource), + 'external': toJson_ExternalMetricSourceV2(obj.external), + 'object': toJson_ObjectMetricSourceV2(obj.object), + 'pods': toJson_PodsMetricSourceV2(obj.pods), + 'resource': toJson_ResourceMetricSourceV2(obj.resource), + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CrossVersionObjectReference contains enough information to let you identify the referred resource. + * + * @schema io.k8s.api.autoscaling.v2.CrossVersionObjectReference + */ +export interface CrossVersionObjectReferenceV2 { + /** + * API version of the referent + * + * @schema io.k8s.api.autoscaling.v2.CrossVersionObjectReference#apiVersion + */ + readonly apiVersion?: string; + + /** + * Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + * + * @schema io.k8s.api.autoscaling.v2.CrossVersionObjectReference#kind + */ + readonly kind: string; + + /** + * Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + * + * @schema io.k8s.api.autoscaling.v2.CrossVersionObjectReference#name + */ + readonly name: string; + +} + +/** + * Converts an object of type 'CrossVersionObjectReferenceV2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CrossVersionObjectReferenceV2(obj: CrossVersionObjectReferenceV2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'apiVersion': obj.apiVersion, + 'kind': obj.kind, + 'name': obj.name, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). + * + * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerBehavior + */ +export interface HorizontalPodAutoscalerBehaviorV2Beta2 { + /** + * scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used). + * + * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerBehavior#scaleDown + */ + readonly scaleDown?: HpaScalingRulesV2Beta2; + + /** + * scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of: + * * increase no more than 4 pods per 60 seconds + * * double the number of pods per 60 seconds + * No stabilization is used. + * + * @schema io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerBehavior#scaleUp + */ + readonly scaleUp?: HpaScalingRulesV2Beta2; + +} + +/** + * Converts an object of type 'HorizontalPodAutoscalerBehaviorV2Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_HorizontalPodAutoscalerBehaviorV2Beta2(obj: HorizontalPodAutoscalerBehaviorV2Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'scaleDown': toJson_HpaScalingRulesV2Beta2(obj.scaleDown), + 'scaleUp': toJson_HpaScalingRulesV2Beta2(obj.scaleUp), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once). + * + * @schema io.k8s.api.autoscaling.v2beta2.MetricSpec + */ +export interface MetricSpecV2Beta2 { + /** + * container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag. + * + * @schema io.k8s.api.autoscaling.v2beta2.MetricSpec#containerResource + */ + readonly containerResource?: ContainerResourceMetricSourceV2Beta2; + + /** + * external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). + * + * @schema io.k8s.api.autoscaling.v2beta2.MetricSpec#external + */ + readonly external?: ExternalMetricSourceV2Beta2; + + /** + * object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). + * + * @schema io.k8s.api.autoscaling.v2beta2.MetricSpec#object + */ + readonly object?: ObjectMetricSourceV2Beta2; + + /** + * pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. + * + * @schema io.k8s.api.autoscaling.v2beta2.MetricSpec#pods + */ + readonly pods?: PodsMetricSourceV2Beta2; + + /** + * resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. + * + * @schema io.k8s.api.autoscaling.v2beta2.MetricSpec#resource + */ + readonly resource?: ResourceMetricSourceV2Beta2; + + /** + * type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled + * + * @schema io.k8s.api.autoscaling.v2beta2.MetricSpec#type + */ + readonly type: string; + +} + +/** + * Converts an object of type 'MetricSpecV2Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_MetricSpecV2Beta2(obj: MetricSpecV2Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'containerResource': toJson_ContainerResourceMetricSourceV2Beta2(obj.containerResource), + 'external': toJson_ExternalMetricSourceV2Beta2(obj.external), + 'object': toJson_ObjectMetricSourceV2Beta2(obj.object), + 'pods': toJson_PodsMetricSourceV2Beta2(obj.pods), + 'resource': toJson_ResourceMetricSourceV2Beta2(obj.resource), + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CrossVersionObjectReference contains enough information to let you identify the referred resource. + * + * @schema io.k8s.api.autoscaling.v2beta2.CrossVersionObjectReference + */ +export interface CrossVersionObjectReferenceV2Beta2 { + /** + * API version of the referent + * + * @schema io.k8s.api.autoscaling.v2beta2.CrossVersionObjectReference#apiVersion + */ + readonly apiVersion?: string; + + /** + * Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + * + * @schema io.k8s.api.autoscaling.v2beta2.CrossVersionObjectReference#kind + */ + readonly kind: string; + + /** + * Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + * + * @schema io.k8s.api.autoscaling.v2beta2.CrossVersionObjectReference#name + */ + readonly name: string; + +} + +/** + * Converts an object of type 'CrossVersionObjectReferenceV2Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CrossVersionObjectReferenceV2Beta2(obj: CrossVersionObjectReferenceV2Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'apiVersion': obj.apiVersion, + 'kind': obj.kind, + 'name': obj.name, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * JobTemplateSpec describes the data a Job should have when created from a template + * + * @schema io.k8s.api.batch.v1.JobTemplateSpec + */ +export interface JobTemplateSpec { + /** + * Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * + * @schema io.k8s.api.batch.v1.JobTemplateSpec#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * + * @schema io.k8s.api.batch.v1.JobTemplateSpec#spec + */ + readonly spec?: JobSpec; + +} + +/** + * Converts an object of type 'JobTemplateSpec' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_JobTemplateSpec(obj: JobTemplateSpec | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_JobSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodFailurePolicy describes how failed pods influence the backoffLimit. + * + * @schema io.k8s.api.batch.v1.PodFailurePolicy + */ +export interface PodFailurePolicy { + /** + * A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed. + * + * @schema io.k8s.api.batch.v1.PodFailurePolicy#rules + */ + readonly rules: PodFailurePolicyRule[]; + +} + +/** + * Converts an object of type 'PodFailurePolicy' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PodFailurePolicy(obj: PodFailurePolicy | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'rules': obj.rules?.map(y => toJson_PodFailurePolicyRule(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * EndpointAddress is a tuple that describes single IP address. + * + * @schema io.k8s.api.core.v1.EndpointAddress + */ +export interface EndpointAddress { + /** + * The Hostname of this endpoint + * + * @schema io.k8s.api.core.v1.EndpointAddress#hostname + */ + readonly hostname?: string; + + /** + * The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready. + * + * @schema io.k8s.api.core.v1.EndpointAddress#ip + */ + readonly ip: string; + + /** + * Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. + * + * @schema io.k8s.api.core.v1.EndpointAddress#nodeName + */ + readonly nodeName?: string; + + /** + * Reference to object providing the endpoint. + * + * @schema io.k8s.api.core.v1.EndpointAddress#targetRef + */ + readonly targetRef?: ObjectReference; + +} + +/** + * Converts an object of type 'EndpointAddress' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_EndpointAddress(obj: EndpointAddress | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'hostname': obj.hostname, + 'ip': obj.ip, + 'nodeName': obj.nodeName, + 'targetRef': toJson_ObjectReference(obj.targetRef), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * LimitRangeItem defines a min/max usage limit for any resource that matches on kind. + * + * @schema io.k8s.api.core.v1.LimitRangeItem + */ +export interface LimitRangeItem { + /** + * Default resource requirement limit value by resource name if resource limit is omitted. + * + * @schema io.k8s.api.core.v1.LimitRangeItem#default + */ + readonly default?: { [key: string]: Quantity }; + + /** + * DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. + * + * @schema io.k8s.api.core.v1.LimitRangeItem#defaultRequest + */ + readonly defaultRequest?: { [key: string]: Quantity }; + + /** + * Max usage constraints on this kind by resource name. + * + * @schema io.k8s.api.core.v1.LimitRangeItem#max + */ + readonly max?: { [key: string]: Quantity }; + + /** + * MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. + * + * @schema io.k8s.api.core.v1.LimitRangeItem#maxLimitRequestRatio + */ + readonly maxLimitRequestRatio?: { [key: string]: Quantity }; + + /** + * Min usage constraints on this kind by resource name. + * + * @schema io.k8s.api.core.v1.LimitRangeItem#min + */ + readonly min?: { [key: string]: Quantity }; + + /** + * Type of resource that this limit applies to. + * + * @schema io.k8s.api.core.v1.LimitRangeItem#type + */ + readonly type: string; + +} + +/** + * Converts an object of type 'LimitRangeItem' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_LimitRangeItem(obj: LimitRangeItem | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'default': ((obj.default) === undefined) ? undefined : (Object.entries(obj.default).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), + 'defaultRequest': ((obj.defaultRequest) === undefined) ? undefined : (Object.entries(obj.defaultRequest).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), + 'max': ((obj.max) === undefined) ? undefined : (Object.entries(obj.max).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), + 'maxLimitRequestRatio': ((obj.maxLimitRequestRatio) === undefined) ? undefined : (Object.entries(obj.maxLimitRequestRatio).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), + 'min': ((obj.min) === undefined) ? undefined : (Object.entries(obj.min).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22 + * + * @schema io.k8s.api.core.v1.NodeConfigSource + */ +export interface NodeConfigSource { + /** + * ConfigMap is a reference to a Node's ConfigMap + * + * @schema io.k8s.api.core.v1.NodeConfigSource#configMap + */ + readonly configMap?: ConfigMapNodeConfigSource; + +} + +/** + * Converts an object of type 'NodeConfigSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_NodeConfigSource(obj: NodeConfigSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'configMap': toJson_ConfigMapNodeConfigSource(obj.configMap), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * The node this Taint is attached to has the "effect" on any pod that does not tolerate the Taint. + * + * @schema io.k8s.api.core.v1.Taint + */ +export interface Taint { + /** + * Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. + * + * + * + * @schema io.k8s.api.core.v1.Taint#effect + */ + readonly effect: string; + + /** + * Required. The taint key to be applied to a node. + * + * @schema io.k8s.api.core.v1.Taint#key + */ + readonly key: string; + + /** + * TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. + * + * @schema io.k8s.api.core.v1.Taint#timeAdded + */ + readonly timeAdded?: Date; + + /** + * The taint value corresponding to the taint key. + * + * @schema io.k8s.api.core.v1.Taint#value + */ + readonly value?: string; + +} + +/** + * Converts an object of type 'Taint' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_Taint(obj: Taint | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'effect': obj.effect, + 'key': obj.key, + 'timeAdded': obj.timeAdded?.toISOString(), + 'value': obj.value, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a Persistent Disk resource in AWS. + * + * An AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling. + * + * @schema io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource + */ +export interface AwsElasticBlockStoreVolumeSource { + /** + * fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * + * @schema io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * + * @schema io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource#partition + */ + readonly partition?: number; + + /** + * readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * + * @schema io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * + * @schema io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource#volumeID + */ + readonly volumeId: string; + +} + +/** + * Converts an object of type 'AwsElasticBlockStoreVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_AwsElasticBlockStoreVolumeSource(obj: AwsElasticBlockStoreVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'fsType': obj.fsType, + 'partition': obj.partition, + 'readOnly': obj.readOnly, + 'volumeID': obj.volumeId, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * + * @schema io.k8s.api.core.v1.AzureDiskVolumeSource + */ +export interface AzureDiskVolumeSource { + /** + * cachingMode is the Host Caching mode: None, Read Only, Read Write. + * + * @schema io.k8s.api.core.v1.AzureDiskVolumeSource#cachingMode + */ + readonly cachingMode?: string; + + /** + * diskName is the Name of the data disk in the blob storage + * + * @schema io.k8s.api.core.v1.AzureDiskVolumeSource#diskName + */ + readonly diskName: string; + + /** + * diskURI is the URI of data disk in the blob storage + * + * @schema io.k8s.api.core.v1.AzureDiskVolumeSource#diskURI + */ + readonly diskUri: string; + + /** + * fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * + * @schema io.k8s.api.core.v1.AzureDiskVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * + * @schema io.k8s.api.core.v1.AzureDiskVolumeSource#kind + */ + readonly kind?: string; + + /** + * readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * + * @default false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * @schema io.k8s.api.core.v1.AzureDiskVolumeSource#readOnly + */ + readonly readOnly?: boolean; + +} + +/** + * Converts an object of type 'AzureDiskVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_AzureDiskVolumeSource(obj: AzureDiskVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'cachingMode': obj.cachingMode, + 'diskName': obj.diskName, + 'diskURI': obj.diskUri, + 'fsType': obj.fsType, + 'kind': obj.kind, + 'readOnly': obj.readOnly, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * + * @schema io.k8s.api.core.v1.AzureFilePersistentVolumeSource + */ +export interface AzureFilePersistentVolumeSource { + /** + * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * + * @schema io.k8s.api.core.v1.AzureFilePersistentVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * secretName is the name of secret that contains Azure Storage Account Name and Key + * + * @schema io.k8s.api.core.v1.AzureFilePersistentVolumeSource#secretName + */ + readonly secretName: string; + + /** + * secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod + * + * @schema io.k8s.api.core.v1.AzureFilePersistentVolumeSource#secretNamespace + */ + readonly secretNamespace?: string; + + /** + * shareName is the azure Share Name + * + * @schema io.k8s.api.core.v1.AzureFilePersistentVolumeSource#shareName + */ + readonly shareName: string; + +} + +/** + * Converts an object of type 'AzureFilePersistentVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_AzureFilePersistentVolumeSource(obj: AzureFilePersistentVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'readOnly': obj.readOnly, + 'secretName': obj.secretName, + 'secretNamespace': obj.secretNamespace, + 'shareName': obj.shareName, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. + * + * @schema io.k8s.api.core.v1.CephFSPersistentVolumeSource + */ +export interface CephFsPersistentVolumeSource { + /** + * monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * + * @schema io.k8s.api.core.v1.CephFSPersistentVolumeSource#monitors + */ + readonly monitors: string[]; + + /** + * path is Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * + * @schema io.k8s.api.core.v1.CephFSPersistentVolumeSource#path + */ + readonly path?: string; + + /** + * readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * + * @default false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * @schema io.k8s.api.core.v1.CephFSPersistentVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * + * @schema io.k8s.api.core.v1.CephFSPersistentVolumeSource#secretFile + */ + readonly secretFile?: string; + + /** + * secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * + * @schema io.k8s.api.core.v1.CephFSPersistentVolumeSource#secretRef + */ + readonly secretRef?: SecretReference; + + /** + * user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * + * @schema io.k8s.api.core.v1.CephFSPersistentVolumeSource#user + */ + readonly user?: string; + +} + +/** + * Converts an object of type 'CephFsPersistentVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CephFsPersistentVolumeSource(obj: CephFsPersistentVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'monitors': obj.monitors?.map(y => y), + 'path': obj.path, + 'readOnly': obj.readOnly, + 'secretFile': obj.secretFile, + 'secretRef': toJson_SecretReference(obj.secretRef), + 'user': obj.user, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling. + * + * @schema io.k8s.api.core.v1.CinderPersistentVolumeSource + */ +export interface CinderPersistentVolumeSource { + /** + * fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * + * @schema io.k8s.api.core.v1.CinderPersistentVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * + * @default false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * @schema io.k8s.api.core.v1.CinderPersistentVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack. + * + * @schema io.k8s.api.core.v1.CinderPersistentVolumeSource#secretRef + */ + readonly secretRef?: SecretReference; + + /** + * volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * + * @schema io.k8s.api.core.v1.CinderPersistentVolumeSource#volumeID + */ + readonly volumeId: string; + +} + +/** + * Converts an object of type 'CinderPersistentVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CinderPersistentVolumeSource(obj: CinderPersistentVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'fsType': obj.fsType, + 'readOnly': obj.readOnly, + 'secretRef': toJson_SecretReference(obj.secretRef), + 'volumeID': obj.volumeId, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents storage that is managed by an external CSI volume driver (Beta feature) + * + * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource + */ +export interface CsiPersistentVolumeSource { + /** + * controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an beta field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * + * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#controllerExpandSecretRef + */ + readonly controllerExpandSecretRef?: SecretReference; + + /** + * controllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * + * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#controllerPublishSecretRef + */ + readonly controllerPublishSecretRef?: SecretReference; + + /** + * driver is the name of the driver to use for this volume. Required. + * + * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#driver + */ + readonly driver: string; + + /** + * fsType to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". + * + * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * nodeExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeExpandVolume call. This is an alpha field and requires enabling CSINodeExpandSecret feature gate. This field is optional, may be omitted if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * + * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#nodeExpandSecretRef + */ + readonly nodeExpandSecretRef?: SecretReference; + + /** + * nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * + * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#nodePublishSecretRef + */ + readonly nodePublishSecretRef?: SecretReference; + + /** + * nodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * + * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#nodeStageSecretRef + */ + readonly nodeStageSecretRef?: SecretReference; + + /** + * readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). + * + * @default false (read/write). + * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * volumeAttributes of the volume to publish. + * + * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#volumeAttributes + */ + readonly volumeAttributes?: { [key: string]: string }; + + /** + * volumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. + * + * @schema io.k8s.api.core.v1.CSIPersistentVolumeSource#volumeHandle + */ + readonly volumeHandle: string; + +} + +/** + * Converts an object of type 'CsiPersistentVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CsiPersistentVolumeSource(obj: CsiPersistentVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'controllerExpandSecretRef': toJson_SecretReference(obj.controllerExpandSecretRef), + 'controllerPublishSecretRef': toJson_SecretReference(obj.controllerPublishSecretRef), + 'driver': obj.driver, + 'fsType': obj.fsType, + 'nodeExpandSecretRef': toJson_SecretReference(obj.nodeExpandSecretRef), + 'nodePublishSecretRef': toJson_SecretReference(obj.nodePublishSecretRef), + 'nodeStageSecretRef': toJson_SecretReference(obj.nodeStageSecretRef), + 'readOnly': obj.readOnly, + 'volumeAttributes': ((obj.volumeAttributes) === undefined) ? undefined : (Object.entries(obj.volumeAttributes).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + 'volumeHandle': obj.volumeHandle, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling. + * + * @schema io.k8s.api.core.v1.FCVolumeSource + */ +export interface FcVolumeSource { + /** + * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * + * @schema io.k8s.api.core.v1.FCVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * lun is Optional: FC target lun number + * + * @schema io.k8s.api.core.v1.FCVolumeSource#lun + */ + readonly lun?: number; + + /** + * readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * + * @default false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * @schema io.k8s.api.core.v1.FCVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * targetWWNs is Optional: FC target worldwide names (WWNs) + * + * @schema io.k8s.api.core.v1.FCVolumeSource#targetWWNs + */ + readonly targetWwNs?: string[]; + + /** + * wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + * + * @schema io.k8s.api.core.v1.FCVolumeSource#wwids + */ + readonly wwids?: string[]; + +} + +/** + * Converts an object of type 'FcVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_FcVolumeSource(obj: FcVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'fsType': obj.fsType, + 'lun': obj.lun, + 'readOnly': obj.readOnly, + 'targetWWNs': obj.targetWwNs?.map(y => y), + 'wwids': obj.wwids?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin. + * + * @schema io.k8s.api.core.v1.FlexPersistentVolumeSource + */ +export interface FlexPersistentVolumeSource { + /** + * driver is the name of the driver to use for this volume. + * + * @schema io.k8s.api.core.v1.FlexPersistentVolumeSource#driver + */ + readonly driver: string; + + /** + * fsType is the Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * + * @schema io.k8s.api.core.v1.FlexPersistentVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * options is Optional: this field holds extra command options if any. + * + * @schema io.k8s.api.core.v1.FlexPersistentVolumeSource#options + */ + readonly options?: { [key: string]: string }; + + /** + * readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * + * @schema io.k8s.api.core.v1.FlexPersistentVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * secretRef is Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + * + * @schema io.k8s.api.core.v1.FlexPersistentVolumeSource#secretRef + */ + readonly secretRef?: SecretReference; + +} + +/** + * Converts an object of type 'FlexPersistentVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_FlexPersistentVolumeSource(obj: FlexPersistentVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'driver': obj.driver, + 'fsType': obj.fsType, + 'options': ((obj.options) === undefined) ? undefined : (Object.entries(obj.options).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + 'readOnly': obj.readOnly, + 'secretRef': toJson_SecretReference(obj.secretRef), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling. + * + * @schema io.k8s.api.core.v1.FlockerVolumeSource + */ +export interface FlockerVolumeSource { + /** + * datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * + * @schema io.k8s.api.core.v1.FlockerVolumeSource#datasetName + */ + readonly datasetName?: string; + + /** + * datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset + * + * @schema io.k8s.api.core.v1.FlockerVolumeSource#datasetUUID + */ + readonly datasetUuid?: string; + +} + +/** + * Converts an object of type 'FlockerVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_FlockerVolumeSource(obj: FlockerVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'datasetName': obj.datasetName, + 'datasetUUID': obj.datasetUuid, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a Persistent Disk resource in Google Compute Engine. + * + * A GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling. + * + * @schema io.k8s.api.core.v1.GCEPersistentDiskVolumeSource + */ +export interface GcePersistentDiskVolumeSource { + /** + * fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * + * @schema io.k8s.api.core.v1.GCEPersistentDiskVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * + * @schema io.k8s.api.core.v1.GCEPersistentDiskVolumeSource#partition + */ + readonly partition?: number; + + /** + * pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * + * @schema io.k8s.api.core.v1.GCEPersistentDiskVolumeSource#pdName + */ + readonly pdName: string; + + /** + * readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * + * @default false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * @schema io.k8s.api.core.v1.GCEPersistentDiskVolumeSource#readOnly + */ + readonly readOnly?: boolean; + +} + +/** + * Converts an object of type 'GcePersistentDiskVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_GcePersistentDiskVolumeSource(obj: GcePersistentDiskVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'fsType': obj.fsType, + 'partition': obj.partition, + 'pdName': obj.pdName, + 'readOnly': obj.readOnly, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling. + * + * @schema io.k8s.api.core.v1.GlusterfsPersistentVolumeSource + */ +export interface GlusterfsPersistentVolumeSource { + /** + * endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * + * @schema io.k8s.api.core.v1.GlusterfsPersistentVolumeSource#endpoints + */ + readonly endpoints: string; + + /** + * endpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * + * @schema io.k8s.api.core.v1.GlusterfsPersistentVolumeSource#endpointsNamespace + */ + readonly endpointsNamespace?: string; + + /** + * path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * + * @schema io.k8s.api.core.v1.GlusterfsPersistentVolumeSource#path + */ + readonly path: string; + + /** + * readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * + * @default false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * @schema io.k8s.api.core.v1.GlusterfsPersistentVolumeSource#readOnly + */ + readonly readOnly?: boolean; + +} + +/** + * Converts an object of type 'GlusterfsPersistentVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_GlusterfsPersistentVolumeSource(obj: GlusterfsPersistentVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'endpoints': obj.endpoints, + 'endpointsNamespace': obj.endpointsNamespace, + 'path': obj.path, + 'readOnly': obj.readOnly, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling. + * + * @schema io.k8s.api.core.v1.HostPathVolumeSource + */ +export interface HostPathVolumeSource { + /** + * path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * + * @schema io.k8s.api.core.v1.HostPathVolumeSource#path + */ + readonly path: string; + + /** + * type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * + * @default More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * @schema io.k8s.api.core.v1.HostPathVolumeSource#type + */ + readonly type?: string; + +} + +/** + * Converts an object of type 'HostPathVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_HostPathVolumeSource(obj: HostPathVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'path': obj.path, + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling. + * + * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource + */ +export interface IscsiPersistentVolumeSource { + /** + * chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication + * + * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#chapAuthDiscovery + */ + readonly chapAuthDiscovery?: boolean; + + /** + * chapAuthSession defines whether support iSCSI Session CHAP authentication + * + * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#chapAuthSession + */ + readonly chapAuthSession?: boolean; + + /** + * fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * + * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * + * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#initiatorName + */ + readonly initiatorName?: string; + + /** + * iqn is Target iSCSI Qualified Name. + * + * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#iqn + */ + readonly iqn: string; + + /** + * iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * + * @default default' (tcp). + * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#iscsiInterface + */ + readonly iscsiInterface?: string; + + /** + * lun is iSCSI Target Lun number. + * + * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#lun + */ + readonly lun: number; + + /** + * portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * + * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#portals + */ + readonly portals?: string[]; + + /** + * readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * + * @default false. + * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * secretRef is the CHAP Secret for iSCSI target and initiator authentication + * + * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#secretRef + */ + readonly secretRef?: SecretReference; + + /** + * targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * + * @schema io.k8s.api.core.v1.ISCSIPersistentVolumeSource#targetPortal + */ + readonly targetPortal: string; + +} + +/** + * Converts an object of type 'IscsiPersistentVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_IscsiPersistentVolumeSource(obj: IscsiPersistentVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'chapAuthDiscovery': obj.chapAuthDiscovery, + 'chapAuthSession': obj.chapAuthSession, + 'fsType': obj.fsType, + 'initiatorName': obj.initiatorName, + 'iqn': obj.iqn, + 'iscsiInterface': obj.iscsiInterface, + 'lun': obj.lun, + 'portals': obj.portals?.map(y => y), + 'readOnly': obj.readOnly, + 'secretRef': toJson_SecretReference(obj.secretRef), + 'targetPortal': obj.targetPortal, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Local represents directly-attached storage with node affinity (Beta feature) + * + * @schema io.k8s.api.core.v1.LocalVolumeSource + */ +export interface LocalVolumeSource { + /** + * fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a filesystem if unspecified. + * + * @schema io.k8s.api.core.v1.LocalVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). + * + * @schema io.k8s.api.core.v1.LocalVolumeSource#path + */ + readonly path: string; + +} + +/** + * Converts an object of type 'LocalVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_LocalVolumeSource(obj: LocalVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'fsType': obj.fsType, + 'path': obj.path, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling. + * + * @schema io.k8s.api.core.v1.NFSVolumeSource + */ +export interface NfsVolumeSource { + /** + * path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * + * @schema io.k8s.api.core.v1.NFSVolumeSource#path + */ + readonly path: string; + + /** + * readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * + * @default false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * @schema io.k8s.api.core.v1.NFSVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * + * @schema io.k8s.api.core.v1.NFSVolumeSource#server + */ + readonly server: string; + +} + +/** + * Converts an object of type 'NfsVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_NfsVolumeSource(obj: NfsVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'path': obj.path, + 'readOnly': obj.readOnly, + 'server': obj.server, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from. + * + * @schema io.k8s.api.core.v1.VolumeNodeAffinity + */ +export interface VolumeNodeAffinity { + /** + * required specifies hard node constraints that must be met. + * + * @schema io.k8s.api.core.v1.VolumeNodeAffinity#required + */ + readonly required?: NodeSelector; + +} + +/** + * Converts an object of type 'VolumeNodeAffinity' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_VolumeNodeAffinity(obj: VolumeNodeAffinity | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'required': toJson_NodeSelector(obj.required), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a Photon Controller persistent disk resource. + * + * @schema io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource + */ +export interface PhotonPersistentDiskVolumeSource { + /** + * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * + * @schema io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * pdID is the ID that identifies Photon Controller persistent disk + * + * @schema io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource#pdID + */ + readonly pdId: string; + +} + +/** + * Converts an object of type 'PhotonPersistentDiskVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PhotonPersistentDiskVolumeSource(obj: PhotonPersistentDiskVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'fsType': obj.fsType, + 'pdID': obj.pdId, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PortworxVolumeSource represents a Portworx volume resource. + * + * @schema io.k8s.api.core.v1.PortworxVolumeSource + */ +export interface PortworxVolumeSource { + /** + * fSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * + * @schema io.k8s.api.core.v1.PortworxVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * + * @schema io.k8s.api.core.v1.PortworxVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * volumeID uniquely identifies a Portworx volume + * + * @schema io.k8s.api.core.v1.PortworxVolumeSource#volumeID + */ + readonly volumeId: string; + +} + +/** + * Converts an object of type 'PortworxVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PortworxVolumeSource(obj: PortworxVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'fsType': obj.fsType, + 'readOnly': obj.readOnly, + 'volumeID': obj.volumeId, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling. + * + * @schema io.k8s.api.core.v1.QuobyteVolumeSource + */ +export interface QuobyteVolumeSource { + /** + * group to map volume access to Default is no group + * + * @default no group + * @schema io.k8s.api.core.v1.QuobyteVolumeSource#group + */ + readonly group?: string; + + /** + * readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * + * @default false. + * @schema io.k8s.api.core.v1.QuobyteVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * + * @schema io.k8s.api.core.v1.QuobyteVolumeSource#registry + */ + readonly registry: string; + + /** + * tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * + * @schema io.k8s.api.core.v1.QuobyteVolumeSource#tenant + */ + readonly tenant?: string; + + /** + * user to map volume access to Defaults to serivceaccount user + * + * @default serivceaccount user + * @schema io.k8s.api.core.v1.QuobyteVolumeSource#user + */ + readonly user?: string; + + /** + * volume is a string that references an already created Quobyte volume by name. + * + * @schema io.k8s.api.core.v1.QuobyteVolumeSource#volume + */ + readonly volume: string; + +} + +/** + * Converts an object of type 'QuobyteVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_QuobyteVolumeSource(obj: QuobyteVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'group': obj.group, + 'readOnly': obj.readOnly, + 'registry': obj.registry, + 'tenant': obj.tenant, + 'user': obj.user, + 'volume': obj.volume, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. + * + * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource + */ +export interface RbdPersistentVolumeSource { + /** + * fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * + * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * + * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource#image + */ + readonly image: string; + + /** + * keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * + * @default etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource#keyring + */ + readonly keyring?: string; + + /** + * monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * + * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource#monitors + */ + readonly monitors: string[]; + + /** + * pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * + * @default rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource#pool + */ + readonly pool?: string; + + /** + * readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * + * @default false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * + * @default nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource#secretRef + */ + readonly secretRef?: SecretReference; + + /** + * user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * + * @default admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * @schema io.k8s.api.core.v1.RBDPersistentVolumeSource#user + */ + readonly user?: string; + +} + +/** + * Converts an object of type 'RbdPersistentVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_RbdPersistentVolumeSource(obj: RbdPersistentVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'fsType': obj.fsType, + 'image': obj.image, + 'keyring': obj.keyring, + 'monitors': obj.monitors?.map(y => y), + 'pool': obj.pool, + 'readOnly': obj.readOnly, + 'secretRef': toJson_SecretReference(obj.secretRef), + 'user': obj.user, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume + * + * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource + */ +export interface ScaleIoPersistentVolumeSource { + /** + * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" + * + * @default xfs" + * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * gateway is the host address of the ScaleIO API Gateway. + * + * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#gateway + */ + readonly gateway: string; + + /** + * protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. + * + * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#protectionDomain + */ + readonly protectionDomain?: string; + + /** + * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * + * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * + * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#secretRef + */ + readonly secretRef: SecretReference; + + /** + * sslEnabled is the flag to enable/disable SSL communication with Gateway, default false + * + * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#sslEnabled + */ + readonly sslEnabled?: boolean; + + /** + * storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * + * @default ThinProvisioned. + * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#storageMode + */ + readonly storageMode?: string; + + /** + * storagePool is the ScaleIO Storage Pool associated with the protection domain. + * + * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#storagePool + */ + readonly storagePool?: string; + + /** + * system is the name of the storage system as configured in ScaleIO. + * + * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#system + */ + readonly system: string; + + /** + * volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source. + * + * @schema io.k8s.api.core.v1.ScaleIOPersistentVolumeSource#volumeName + */ + readonly volumeName?: string; + +} + +/** + * Converts an object of type 'ScaleIoPersistentVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ScaleIoPersistentVolumeSource(obj: ScaleIoPersistentVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'fsType': obj.fsType, + 'gateway': obj.gateway, + 'protectionDomain': obj.protectionDomain, + 'readOnly': obj.readOnly, + 'secretRef': toJson_SecretReference(obj.secretRef), + 'sslEnabled': obj.sslEnabled, + 'storageMode': obj.storageMode, + 'storagePool': obj.storagePool, + 'system': obj.system, + 'volumeName': obj.volumeName, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a StorageOS persistent volume resource. + * + * @schema io.k8s.api.core.v1.StorageOSPersistentVolumeSource + */ +export interface StorageOsPersistentVolumeSource { + /** + * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * + * @schema io.k8s.api.core.v1.StorageOSPersistentVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * + * @schema io.k8s.api.core.v1.StorageOSPersistentVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * + * @schema io.k8s.api.core.v1.StorageOSPersistentVolumeSource#secretRef + */ + readonly secretRef?: ObjectReference; + + /** + * volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * + * @schema io.k8s.api.core.v1.StorageOSPersistentVolumeSource#volumeName + */ + readonly volumeName?: string; + + /** + * volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + * + * @schema io.k8s.api.core.v1.StorageOSPersistentVolumeSource#volumeNamespace + */ + readonly volumeNamespace?: string; + +} + +/** + * Converts an object of type 'StorageOsPersistentVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_StorageOsPersistentVolumeSource(obj: StorageOsPersistentVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'fsType': obj.fsType, + 'readOnly': obj.readOnly, + 'secretRef': toJson_ObjectReference(obj.secretRef), + 'volumeName': obj.volumeName, + 'volumeNamespace': obj.volumeNamespace, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a vSphere volume resource. + * + * @schema io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource + */ +export interface VsphereVirtualDiskVolumeSource { + /** + * fsType is filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * + * @schema io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * + * @schema io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource#storagePolicyID + */ + readonly storagePolicyId?: string; + + /** + * storagePolicyName is the storage Policy Based Management (SPBM) profile name. + * + * @schema io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource#storagePolicyName + */ + readonly storagePolicyName?: string; + + /** + * volumePath is the path that identifies vSphere volume vmdk + * + * @schema io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource#volumePath + */ + readonly volumePath: string; + +} + +/** + * Converts an object of type 'VsphereVirtualDiskVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_VsphereVirtualDiskVolumeSource(obj: VsphereVirtualDiskVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'fsType': obj.fsType, + 'storagePolicyID': obj.storagePolicyId, + 'storagePolicyName': obj.storagePolicyName, + 'volumePath': obj.volumePath, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace. + * + * @schema io.k8s.api.core.v1.TypedLocalObjectReference + */ +export interface TypedLocalObjectReference { + /** + * APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + * + * @schema io.k8s.api.core.v1.TypedLocalObjectReference#apiGroup + */ + readonly apiGroup?: string; + + /** + * Kind is the type of resource being referenced + * + * @schema io.k8s.api.core.v1.TypedLocalObjectReference#kind + */ + readonly kind: string; + + /** + * Name is the name of resource being referenced + * + * @schema io.k8s.api.core.v1.TypedLocalObjectReference#name + */ + readonly name: string; + +} + +/** + * Converts an object of type 'TypedLocalObjectReference' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_TypedLocalObjectReference(obj: TypedLocalObjectReference | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'apiGroup': obj.apiGroup, + 'kind': obj.kind, + 'name': obj.name, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ResourceRequirements describes the compute resource requirements. + * + * @schema io.k8s.api.core.v1.ResourceRequirements + */ +export interface ResourceRequirements { + /** + * Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + * + * @schema io.k8s.api.core.v1.ResourceRequirements#limits + */ + readonly limits?: { [key: string]: Quantity }; + + /** + * Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + * + * @schema io.k8s.api.core.v1.ResourceRequirements#requests + */ + readonly requests?: { [key: string]: Quantity }; + +} + +/** + * Converts an object of type 'ResourceRequirements' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ResourceRequirements(obj: ResourceRequirements | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'limits': ((obj.limits) === undefined) ? undefined : (Object.entries(obj.limits).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), + 'requests': ((obj.requests) === undefined) ? undefined : (Object.entries(obj.requests).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1]?.value }), {})), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Affinity is a group of affinity scheduling rules. + * + * @schema io.k8s.api.core.v1.Affinity + */ +export interface Affinity { + /** + * Describes node affinity scheduling rules for the pod. + * + * @schema io.k8s.api.core.v1.Affinity#nodeAffinity + */ + readonly nodeAffinity?: NodeAffinity; + + /** + * Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * + * @schema io.k8s.api.core.v1.Affinity#podAffinity + */ + readonly podAffinity?: PodAffinity; + + /** + * Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * + * @schema io.k8s.api.core.v1.Affinity#podAntiAffinity + */ + readonly podAntiAffinity?: PodAntiAffinity; + +} + +/** + * Converts an object of type 'Affinity' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_Affinity(obj: Affinity | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'nodeAffinity': toJson_NodeAffinity(obj.nodeAffinity), + 'podAffinity': toJson_PodAffinity(obj.podAffinity), + 'podAntiAffinity': toJson_PodAntiAffinity(obj.podAntiAffinity), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * A single application container that you want to run within a pod. + * + * @schema io.k8s.api.core.v1.Container + */ +export interface Container { + /** + * Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * + * @schema io.k8s.api.core.v1.Container#args + */ + readonly args?: string[]; + + /** + * Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * + * @schema io.k8s.api.core.v1.Container#command + */ + readonly command?: string[]; + + /** + * List of environment variables to set in the container. Cannot be updated. + * + * @schema io.k8s.api.core.v1.Container#env + */ + readonly env?: EnvVar[]; + + /** + * List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * + * @schema io.k8s.api.core.v1.Container#envFrom + */ + readonly envFrom?: EnvFromSource[]; + + /** + * Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * + * @schema io.k8s.api.core.v1.Container#image + */ + readonly image?: string; + + /** + * Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * + * + * + * @default Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * @schema io.k8s.api.core.v1.Container#imagePullPolicy + */ + readonly imagePullPolicy?: string; + + /** + * Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * + * @schema io.k8s.api.core.v1.Container#lifecycle + */ + readonly lifecycle?: Lifecycle; + + /** + * Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * + * @schema io.k8s.api.core.v1.Container#livenessProbe + */ + readonly livenessProbe?: Probe; + + /** + * Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * + * @schema io.k8s.api.core.v1.Container#name + */ + readonly name: string; + + /** + * List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. + * + * @schema io.k8s.api.core.v1.Container#ports + */ + readonly ports?: ContainerPort[]; + + /** + * Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * + * @schema io.k8s.api.core.v1.Container#readinessProbe + */ + readonly readinessProbe?: Probe; + + /** + * Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + * + * @schema io.k8s.api.core.v1.Container#resources + */ + readonly resources?: ResourceRequirements; + + /** + * SecurityContext defines the security options the container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * + * @schema io.k8s.api.core.v1.Container#securityContext + */ + readonly securityContext?: SecurityContext; + + /** + * StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * + * @schema io.k8s.api.core.v1.Container#startupProbe + */ + readonly startupProbe?: Probe; + + /** + * Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * + * @default false. + * @schema io.k8s.api.core.v1.Container#stdin + */ + readonly stdin?: boolean; + + /** + * Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * + * @default false + * @schema io.k8s.api.core.v1.Container#stdinOnce + */ + readonly stdinOnce?: boolean; + + /** + * Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * + * @default dev/termination-log. Cannot be updated. + * @schema io.k8s.api.core.v1.Container#terminationMessagePath + */ + readonly terminationMessagePath?: string; + + /** + * Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * + * + * + * @default File. Cannot be updated. + * @schema io.k8s.api.core.v1.Container#terminationMessagePolicy + */ + readonly terminationMessagePolicy?: string; + + /** + * Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * + * @default false. + * @schema io.k8s.api.core.v1.Container#tty + */ + readonly tty?: boolean; + + /** + * volumeDevices is the list of block devices to be used by the container. + * + * @schema io.k8s.api.core.v1.Container#volumeDevices + */ + readonly volumeDevices?: VolumeDevice[]; + + /** + * Pod volumes to mount into the container's filesystem. Cannot be updated. + * + * @schema io.k8s.api.core.v1.Container#volumeMounts + */ + readonly volumeMounts?: VolumeMount[]; + + /** + * Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + * + * @schema io.k8s.api.core.v1.Container#workingDir + */ + readonly workingDir?: string; + +} + +/** + * Converts an object of type 'Container' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_Container(obj: Container | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'args': obj.args?.map(y => y), + 'command': obj.command?.map(y => y), + 'env': obj.env?.map(y => toJson_EnvVar(y)), + 'envFrom': obj.envFrom?.map(y => toJson_EnvFromSource(y)), + 'image': obj.image, + 'imagePullPolicy': obj.imagePullPolicy, + 'lifecycle': toJson_Lifecycle(obj.lifecycle), + 'livenessProbe': toJson_Probe(obj.livenessProbe), + 'name': obj.name, + 'ports': obj.ports?.map(y => toJson_ContainerPort(y)), + 'readinessProbe': toJson_Probe(obj.readinessProbe), + 'resources': toJson_ResourceRequirements(obj.resources), + 'securityContext': toJson_SecurityContext(obj.securityContext), + 'startupProbe': toJson_Probe(obj.startupProbe), + 'stdin': obj.stdin, + 'stdinOnce': obj.stdinOnce, + 'terminationMessagePath': obj.terminationMessagePath, + 'terminationMessagePolicy': obj.terminationMessagePolicy, + 'tty': obj.tty, + 'volumeDevices': obj.volumeDevices?.map(y => toJson_VolumeDevice(y)), + 'volumeMounts': obj.volumeMounts?.map(y => toJson_VolumeMount(y)), + 'workingDir': obj.workingDir, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy. + * + * @schema io.k8s.api.core.v1.PodDNSConfig + */ +export interface PodDnsConfig { + /** + * A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * + * @schema io.k8s.api.core.v1.PodDNSConfig#nameservers + */ + readonly nameservers?: string[]; + + /** + * A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * + * @schema io.k8s.api.core.v1.PodDNSConfig#options + */ + readonly options?: PodDnsConfigOption[]; + + /** + * A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + * + * @schema io.k8s.api.core.v1.PodDNSConfig#searches + */ + readonly searches?: string[]; + +} + +/** + * Converts an object of type 'PodDnsConfig' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PodDnsConfig(obj: PodDnsConfig | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'nameservers': obj.nameservers?.map(y => y), + 'options': obj.options?.map(y => toJson_PodDnsConfigOption(y)), + 'searches': obj.searches?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * An EphemeralContainer is a temporary container that you may add to an existing Pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a Pod is removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation. + * + * To add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted. + * + * @schema io.k8s.api.core.v1.EphemeralContainer + */ +export interface EphemeralContainer { + /** + * Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * + * @schema io.k8s.api.core.v1.EphemeralContainer#args + */ + readonly args?: string[]; + + /** + * Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * + * @schema io.k8s.api.core.v1.EphemeralContainer#command + */ + readonly command?: string[]; + + /** + * List of environment variables to set in the container. Cannot be updated. + * + * @schema io.k8s.api.core.v1.EphemeralContainer#env + */ + readonly env?: EnvVar[]; + + /** + * List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * + * @schema io.k8s.api.core.v1.EphemeralContainer#envFrom + */ + readonly envFrom?: EnvFromSource[]; + + /** + * Container image name. More info: https://kubernetes.io/docs/concepts/containers/images + * + * @schema io.k8s.api.core.v1.EphemeralContainer#image + */ + readonly image?: string; + + /** + * Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * + * + * + * @default Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * @schema io.k8s.api.core.v1.EphemeralContainer#imagePullPolicy + */ + readonly imagePullPolicy?: string; + + /** + * Lifecycle is not allowed for ephemeral containers. + * + * @schema io.k8s.api.core.v1.EphemeralContainer#lifecycle + */ + readonly lifecycle?: Lifecycle; + + /** + * Probes are not allowed for ephemeral containers. + * + * @schema io.k8s.api.core.v1.EphemeralContainer#livenessProbe + */ + readonly livenessProbe?: Probe; + + /** + * Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * + * @schema io.k8s.api.core.v1.EphemeralContainer#name + */ + readonly name: string; + + /** + * Ports are not allowed for ephemeral containers. + * + * @schema io.k8s.api.core.v1.EphemeralContainer#ports + */ + readonly ports?: ContainerPort[]; + + /** + * Probes are not allowed for ephemeral containers. + * + * @schema io.k8s.api.core.v1.EphemeralContainer#readinessProbe + */ + readonly readinessProbe?: Probe; + + /** + * Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * + * @schema io.k8s.api.core.v1.EphemeralContainer#resources + */ + readonly resources?: ResourceRequirements; + + /** + * Optional: SecurityContext defines the security options the ephemeral container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. + * + * @schema io.k8s.api.core.v1.EphemeralContainer#securityContext + */ + readonly securityContext?: SecurityContext; + + /** + * Probes are not allowed for ephemeral containers. + * + * @schema io.k8s.api.core.v1.EphemeralContainer#startupProbe + */ + readonly startupProbe?: Probe; + + /** + * Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * + * @default false. + * @schema io.k8s.api.core.v1.EphemeralContainer#stdin + */ + readonly stdin?: boolean; + + /** + * Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * + * @default false + * @schema io.k8s.api.core.v1.EphemeralContainer#stdinOnce + */ + readonly stdinOnce?: boolean; + + /** + * If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec. + * + * The container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined. + * + * @schema io.k8s.api.core.v1.EphemeralContainer#targetContainerName + */ + readonly targetContainerName?: string; + + /** + * Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * + * @default dev/termination-log. Cannot be updated. + * @schema io.k8s.api.core.v1.EphemeralContainer#terminationMessagePath + */ + readonly terminationMessagePath?: string; + + /** + * Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * + * + * + * @default File. Cannot be updated. + * @schema io.k8s.api.core.v1.EphemeralContainer#terminationMessagePolicy + */ + readonly terminationMessagePolicy?: string; + + /** + * Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * + * @default false. + * @schema io.k8s.api.core.v1.EphemeralContainer#tty + */ + readonly tty?: boolean; + + /** + * volumeDevices is the list of block devices to be used by the container. + * + * @schema io.k8s.api.core.v1.EphemeralContainer#volumeDevices + */ + readonly volumeDevices?: VolumeDevice[]; + + /** + * Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated. + * + * @schema io.k8s.api.core.v1.EphemeralContainer#volumeMounts + */ + readonly volumeMounts?: VolumeMount[]; + + /** + * Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + * + * @schema io.k8s.api.core.v1.EphemeralContainer#workingDir + */ + readonly workingDir?: string; + +} + +/** + * Converts an object of type 'EphemeralContainer' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_EphemeralContainer(obj: EphemeralContainer | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'args': obj.args?.map(y => y), + 'command': obj.command?.map(y => y), + 'env': obj.env?.map(y => toJson_EnvVar(y)), + 'envFrom': obj.envFrom?.map(y => toJson_EnvFromSource(y)), + 'image': obj.image, + 'imagePullPolicy': obj.imagePullPolicy, + 'lifecycle': toJson_Lifecycle(obj.lifecycle), + 'livenessProbe': toJson_Probe(obj.livenessProbe), + 'name': obj.name, + 'ports': obj.ports?.map(y => toJson_ContainerPort(y)), + 'readinessProbe': toJson_Probe(obj.readinessProbe), + 'resources': toJson_ResourceRequirements(obj.resources), + 'securityContext': toJson_SecurityContext(obj.securityContext), + 'startupProbe': toJson_Probe(obj.startupProbe), + 'stdin': obj.stdin, + 'stdinOnce': obj.stdinOnce, + 'targetContainerName': obj.targetContainerName, + 'terminationMessagePath': obj.terminationMessagePath, + 'terminationMessagePolicy': obj.terminationMessagePolicy, + 'tty': obj.tty, + 'volumeDevices': obj.volumeDevices?.map(y => toJson_VolumeDevice(y)), + 'volumeMounts': obj.volumeMounts?.map(y => toJson_VolumeMount(y)), + 'workingDir': obj.workingDir, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file. + * + * @schema io.k8s.api.core.v1.HostAlias + */ +export interface HostAlias { + /** + * Hostnames for the above IP address. + * + * @schema io.k8s.api.core.v1.HostAlias#hostnames + */ + readonly hostnames?: string[]; + + /** + * IP address of the host file entry. + * + * @schema io.k8s.api.core.v1.HostAlias#ip + */ + readonly ip?: string; + +} + +/** + * Converts an object of type 'HostAlias' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_HostAlias(obj: HostAlias | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'hostnames': obj.hostnames?.map(y => y), + 'ip': obj.ip, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodOS defines the OS parameters of a pod. + * + * @schema io.k8s.api.core.v1.PodOS + */ +export interface PodOs { + /** + * Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null + * + * @schema io.k8s.api.core.v1.PodOS#name + */ + readonly name: string; + +} + +/** + * Converts an object of type 'PodOs' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PodOs(obj: PodOs | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodReadinessGate contains the reference to a pod condition + * + * @schema io.k8s.api.core.v1.PodReadinessGate + */ +export interface PodReadinessGate { + /** + * ConditionType refers to a condition in the pod's condition list with matching type. + * + * @schema io.k8s.api.core.v1.PodReadinessGate#conditionType + */ + readonly conditionType: string; + +} + +/** + * Converts an object of type 'PodReadinessGate' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PodReadinessGate(obj: PodReadinessGate | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'conditionType': obj.conditionType, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext. + * + * @schema io.k8s.api.core.v1.PodSecurityContext + */ +export interface PodSecurityContext { + /** + * A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + * + * 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + * + * If unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows. + * + * @schema io.k8s.api.core.v1.PodSecurityContext#fsGroup + */ + readonly fsGroup?: number; + + /** + * fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used. Note that this field cannot be set when spec.os.name is windows. + * + * @schema io.k8s.api.core.v1.PodSecurityContext#fsGroupChangePolicy + */ + readonly fsGroupChangePolicy?: string; + + /** + * The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. + * + * @schema io.k8s.api.core.v1.PodSecurityContext#runAsGroup + */ + readonly runAsGroup?: number; + + /** + * Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * + * @schema io.k8s.api.core.v1.PodSecurityContext#runAsNonRoot + */ + readonly runAsNonRoot?: boolean; + + /** + * The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. + * + * @default user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. + * @schema io.k8s.api.core.v1.PodSecurityContext#runAsUser + */ + readonly runAsUser?: number; + + /** + * The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. + * + * @schema io.k8s.api.core.v1.PodSecurityContext#seLinuxOptions + */ + readonly seLinuxOptions?: SeLinuxOptions; + + /** + * The seccomp options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows. + * + * @schema io.k8s.api.core.v1.PodSecurityContext#seccompProfile + */ + readonly seccompProfile?: SeccompProfile; + + /** + * A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. Note that this field cannot be set when spec.os.name is windows. + * + * @schema io.k8s.api.core.v1.PodSecurityContext#supplementalGroups + */ + readonly supplementalGroups?: number[]; + + /** + * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows. + * + * @schema io.k8s.api.core.v1.PodSecurityContext#sysctls + */ + readonly sysctls?: Sysctl[]; + + /** + * The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux. + * + * @schema io.k8s.api.core.v1.PodSecurityContext#windowsOptions + */ + readonly windowsOptions?: WindowsSecurityContextOptions; + +} + +/** + * Converts an object of type 'PodSecurityContext' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PodSecurityContext(obj: PodSecurityContext | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'fsGroup': obj.fsGroup, + 'fsGroupChangePolicy': obj.fsGroupChangePolicy, + 'runAsGroup': obj.runAsGroup, + 'runAsNonRoot': obj.runAsNonRoot, + 'runAsUser': obj.runAsUser, + 'seLinuxOptions': toJson_SeLinuxOptions(obj.seLinuxOptions), + 'seccompProfile': toJson_SeccompProfile(obj.seccompProfile), + 'supplementalGroups': obj.supplementalGroups?.map(y => y), + 'sysctls': obj.sysctls?.map(y => toJson_Sysctl(y)), + 'windowsOptions': toJson_WindowsSecurityContextOptions(obj.windowsOptions), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator . + * + * @schema io.k8s.api.core.v1.Toleration + */ +export interface Toleration { + /** + * Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * + * + * + * @schema io.k8s.api.core.v1.Toleration#effect + */ + readonly effect?: string; + + /** + * Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * + * @schema io.k8s.api.core.v1.Toleration#key + */ + readonly key?: string; + + /** + * Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * + * + * + * @default Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * @schema io.k8s.api.core.v1.Toleration#operator + */ + readonly operator?: string; + + /** + * TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * + * @schema io.k8s.api.core.v1.Toleration#tolerationSeconds + */ + readonly tolerationSeconds?: number; + + /** + * Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + * + * @schema io.k8s.api.core.v1.Toleration#value + */ + readonly value?: string; + +} + +/** + * Converts an object of type 'Toleration' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_Toleration(obj: Toleration | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'effect': obj.effect, + 'key': obj.key, + 'operator': obj.operator, + 'tolerationSeconds': obj.tolerationSeconds, + 'value': obj.value, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * TopologySpreadConstraint specifies how to spread matching pods among the given topology. + * + * @schema io.k8s.api.core.v1.TopologySpreadConstraint + */ +export interface TopologySpreadConstraint { + /** + * LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * + * @schema io.k8s.api.core.v1.TopologySpreadConstraint#labelSelector + */ + readonly labelSelector?: LabelSelector; + + /** + * MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. + * + * @schema io.k8s.api.core.v1.TopologySpreadConstraint#matchLabelKeys + */ + readonly matchLabelKeys?: string[]; + + /** + * MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed. + * + * @schema io.k8s.api.core.v1.TopologySpreadConstraint#maxSkew + */ + readonly maxSkew: number; + + /** + * MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. + * + * For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. + * + * This is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default). + * + * @schema io.k8s.api.core.v1.TopologySpreadConstraint#minDomains + */ + readonly minDomains?: number; + + /** + * NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. + * + * If this value is nil, the behavior is equivalent to the Honor policy. This is a alpha-level feature enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. + * + * @schema io.k8s.api.core.v1.TopologySpreadConstraint#nodeAffinityPolicy + */ + readonly nodeAffinityPolicy?: string; + + /** + * NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. + * + * If this value is nil, the behavior is equivalent to the Ignore policy. This is a alpha-level feature enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. + * + * @schema io.k8s.api.core.v1.TopologySpreadConstraint#nodeTaintsPolicy + */ + readonly nodeTaintsPolicy?: string; + + /** + * TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is "kubernetes.io/hostname", each Node is a domain of that topology. And, if TopologyKey is "topology.kubernetes.io/zone", each zone is a domain of that topology. It's a required field. + * + * @schema io.k8s.api.core.v1.TopologySpreadConstraint#topologyKey + */ + readonly topologyKey: string; + + /** + * WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location, + * but giving higher precedence to topologies that would help reduce the + * skew. + * A constraint is considered "Unsatisfiable" for an incoming pod if and only if every possible node assignment for that pod would violate "MaxSkew" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + * + * + * + * @schema io.k8s.api.core.v1.TopologySpreadConstraint#whenUnsatisfiable + */ + readonly whenUnsatisfiable: string; + +} + +/** + * Converts an object of type 'TopologySpreadConstraint' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_TopologySpreadConstraint(obj: TopologySpreadConstraint | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'labelSelector': toJson_LabelSelector(obj.labelSelector), + 'matchLabelKeys': obj.matchLabelKeys?.map(y => y), + 'maxSkew': obj.maxSkew, + 'minDomains': obj.minDomains, + 'nodeAffinityPolicy': obj.nodeAffinityPolicy, + 'nodeTaintsPolicy': obj.nodeTaintsPolicy, + 'topologyKey': obj.topologyKey, + 'whenUnsatisfiable': obj.whenUnsatisfiable, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Volume represents a named volume in a pod that may be accessed by any container in the pod. + * + * @schema io.k8s.api.core.v1.Volume + */ +export interface Volume { + /** + * awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * + * @schema io.k8s.api.core.v1.Volume#awsElasticBlockStore + */ + readonly awsElasticBlockStore?: AwsElasticBlockStoreVolumeSource; + + /** + * azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * + * @schema io.k8s.api.core.v1.Volume#azureDisk + */ + readonly azureDisk?: AzureDiskVolumeSource; + + /** + * azureFile represents an Azure File Service mount on the host and bind mount to the pod. + * + * @schema io.k8s.api.core.v1.Volume#azureFile + */ + readonly azureFile?: AzureFileVolumeSource; + + /** + * cephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * + * @schema io.k8s.api.core.v1.Volume#cephfs + */ + readonly cephfs?: CephFsVolumeSource; + + /** + * cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * + * @schema io.k8s.api.core.v1.Volume#cinder + */ + readonly cinder?: CinderVolumeSource; + + /** + * configMap represents a configMap that should populate this volume + * + * @schema io.k8s.api.core.v1.Volume#configMap + */ + readonly configMap?: ConfigMapVolumeSource; + + /** + * csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature). + * + * @schema io.k8s.api.core.v1.Volume#csi + */ + readonly csi?: CsiVolumeSource; + + /** + * downwardAPI represents downward API about the pod that should populate this volume + * + * @schema io.k8s.api.core.v1.Volume#downwardAPI + */ + readonly downwardApi?: DownwardApiVolumeSource; + + /** + * emptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * + * @schema io.k8s.api.core.v1.Volume#emptyDir + */ + readonly emptyDir?: EmptyDirVolumeSource; + + /** + * ephemeral represents a volume that is handled by a cluster storage driver. The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts, and deleted when the pod is removed. + * + * Use this if: a) the volume is only needed while the pod runs, b) features of normal volumes like restoring from snapshot or capacity + * tracking are needed, + * c) the storage driver is specified through a storage class, and d) the storage driver supports dynamic volume provisioning through + * a PersistentVolumeClaim (see EphemeralVolumeSource for more + * information on the connection between this volume type + * and PersistentVolumeClaim). + * + * Use PersistentVolumeClaim or one of the vendor-specific APIs for volumes that persist for longer than the lifecycle of an individual pod. + * + * Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to be used that way - see the documentation of the driver for more information. + * + * A pod can use both types of ephemeral volumes and persistent volumes at the same time. + * + * @schema io.k8s.api.core.v1.Volume#ephemeral + */ + readonly ephemeral?: EphemeralVolumeSource; + + /** + * fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * + * @schema io.k8s.api.core.v1.Volume#fc + */ + readonly fc?: FcVolumeSource; + + /** + * flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * + * @schema io.k8s.api.core.v1.Volume#flexVolume + */ + readonly flexVolume?: FlexVolumeSource; + + /** + * flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * + * @schema io.k8s.api.core.v1.Volume#flocker + */ + readonly flocker?: FlockerVolumeSource; + + /** + * gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * + * @schema io.k8s.api.core.v1.Volume#gcePersistentDisk + */ + readonly gcePersistentDisk?: GcePersistentDiskVolumeSource; + + /** + * gitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * + * @schema io.k8s.api.core.v1.Volume#gitRepo + */ + readonly gitRepo?: GitRepoVolumeSource; + + /** + * glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * + * @schema io.k8s.api.core.v1.Volume#glusterfs + */ + readonly glusterfs?: GlusterfsVolumeSource; + + /** + * hostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * + * @schema io.k8s.api.core.v1.Volume#hostPath + */ + readonly hostPath?: HostPathVolumeSource; + + /** + * iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * + * @schema io.k8s.api.core.v1.Volume#iscsi + */ + readonly iscsi?: IscsiVolumeSource; + + /** + * name of the volume. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * + * @schema io.k8s.api.core.v1.Volume#name + */ + readonly name: string; + + /** + * nfs represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * + * @schema io.k8s.api.core.v1.Volume#nfs + */ + readonly nfs?: NfsVolumeSource; + + /** + * persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * + * @schema io.k8s.api.core.v1.Volume#persistentVolumeClaim + */ + readonly persistentVolumeClaim?: PersistentVolumeClaimVolumeSource; + + /** + * photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * + * @schema io.k8s.api.core.v1.Volume#photonPersistentDisk + */ + readonly photonPersistentDisk?: PhotonPersistentDiskVolumeSource; + + /** + * portworxVolume represents a portworx volume attached and mounted on kubelets host machine + * + * @schema io.k8s.api.core.v1.Volume#portworxVolume + */ + readonly portworxVolume?: PortworxVolumeSource; + + /** + * projected items for all in one resources secrets, configmaps, and downward API + * + * @schema io.k8s.api.core.v1.Volume#projected + */ + readonly projected?: ProjectedVolumeSource; + + /** + * quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * + * @schema io.k8s.api.core.v1.Volume#quobyte + */ + readonly quobyte?: QuobyteVolumeSource; + + /** + * rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * + * @schema io.k8s.api.core.v1.Volume#rbd + */ + readonly rbd?: RbdVolumeSource; + + /** + * scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * + * @schema io.k8s.api.core.v1.Volume#scaleIO + */ + readonly scaleIo?: ScaleIoVolumeSource; + + /** + * secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * + * @schema io.k8s.api.core.v1.Volume#secret + */ + readonly secret?: SecretVolumeSource; + + /** + * storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * + * @schema io.k8s.api.core.v1.Volume#storageos + */ + readonly storageos?: StorageOsVolumeSource; + + /** + * vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * + * @schema io.k8s.api.core.v1.Volume#vsphereVolume + */ + readonly vsphereVolume?: VsphereVirtualDiskVolumeSource; + +} + +/** + * Converts an object of type 'Volume' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_Volume(obj: Volume | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'awsElasticBlockStore': toJson_AwsElasticBlockStoreVolumeSource(obj.awsElasticBlockStore), + 'azureDisk': toJson_AzureDiskVolumeSource(obj.azureDisk), + 'azureFile': toJson_AzureFileVolumeSource(obj.azureFile), + 'cephfs': toJson_CephFsVolumeSource(obj.cephfs), + 'cinder': toJson_CinderVolumeSource(obj.cinder), + 'configMap': toJson_ConfigMapVolumeSource(obj.configMap), + 'csi': toJson_CsiVolumeSource(obj.csi), + 'downwardAPI': toJson_DownwardApiVolumeSource(obj.downwardApi), + 'emptyDir': toJson_EmptyDirVolumeSource(obj.emptyDir), + 'ephemeral': toJson_EphemeralVolumeSource(obj.ephemeral), + 'fc': toJson_FcVolumeSource(obj.fc), + 'flexVolume': toJson_FlexVolumeSource(obj.flexVolume), + 'flocker': toJson_FlockerVolumeSource(obj.flocker), + 'gcePersistentDisk': toJson_GcePersistentDiskVolumeSource(obj.gcePersistentDisk), + 'gitRepo': toJson_GitRepoVolumeSource(obj.gitRepo), + 'glusterfs': toJson_GlusterfsVolumeSource(obj.glusterfs), + 'hostPath': toJson_HostPathVolumeSource(obj.hostPath), + 'iscsi': toJson_IscsiVolumeSource(obj.iscsi), + 'name': obj.name, + 'nfs': toJson_NfsVolumeSource(obj.nfs), + 'persistentVolumeClaim': toJson_PersistentVolumeClaimVolumeSource(obj.persistentVolumeClaim), + 'photonPersistentDisk': toJson_PhotonPersistentDiskVolumeSource(obj.photonPersistentDisk), + 'portworxVolume': toJson_PortworxVolumeSource(obj.portworxVolume), + 'projected': toJson_ProjectedVolumeSource(obj.projected), + 'quobyte': toJson_QuobyteVolumeSource(obj.quobyte), + 'rbd': toJson_RbdVolumeSource(obj.rbd), + 'scaleIO': toJson_ScaleIoVolumeSource(obj.scaleIo), + 'secret': toJson_SecretVolumeSource(obj.secret), + 'storageos': toJson_StorageOsVolumeSource(obj.storageos), + 'vsphereVolume': toJson_VsphereVirtualDiskVolumeSource(obj.vsphereVolume), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements. + * + * @schema io.k8s.api.core.v1.ScopeSelector + */ +export interface ScopeSelector { + /** + * A list of scope selector requirements by scope of the resources. + * + * @schema io.k8s.api.core.v1.ScopeSelector#matchExpressions + */ + readonly matchExpressions?: ScopedResourceSelectorRequirement[]; + +} + +/** + * Converts an object of type 'ScopeSelector' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ScopeSelector(obj: ScopeSelector | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'matchExpressions': obj.matchExpressions?.map(y => toJson_ScopedResourceSelectorRequirement(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ServicePort contains information on service's port. + * + * @schema io.k8s.api.core.v1.ServicePort + */ +export interface ServicePort { + /** + * The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. + * + * @schema io.k8s.api.core.v1.ServicePort#appProtocol + */ + readonly appProtocol?: string; + + /** + * The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service. + * + * @schema io.k8s.api.core.v1.ServicePort#name + */ + readonly name?: string; + + /** + * The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport + * + * @schema io.k8s.api.core.v1.ServicePort#nodePort + */ + readonly nodePort?: number; + + /** + * The port that will be exposed by this service. + * + * @schema io.k8s.api.core.v1.ServicePort#port + */ + readonly port: number; + + /** + * The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". Default is TCP. + * + * + * + * @default TCP. + * @schema io.k8s.api.core.v1.ServicePort#protocol + */ + readonly protocol?: string; + + /** + * Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service + * + * @schema io.k8s.api.core.v1.ServicePort#targetPort + */ + readonly targetPort?: IntOrString; + +} + +/** + * Converts an object of type 'ServicePort' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ServicePort(obj: ServicePort | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'appProtocol': obj.appProtocol, + 'name': obj.name, + 'nodePort': obj.nodePort, + 'port': obj.port, + 'protocol': obj.protocol, + 'targetPort': obj.targetPort?.value, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * SessionAffinityConfig represents the configurations of session affinity. + * + * @schema io.k8s.api.core.v1.SessionAffinityConfig + */ +export interface SessionAffinityConfig { + /** + * clientIP contains the configurations of Client IP based session affinity. + * + * @schema io.k8s.api.core.v1.SessionAffinityConfig#clientIP + */ + readonly clientIp?: ClientIpConfig; + +} + +/** + * Converts an object of type 'SessionAffinityConfig' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_SessionAffinityConfig(obj: SessionAffinityConfig | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'clientIP': toJson_ClientIpConfig(obj.clientIp), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * EndpointConditions represents the current condition of an endpoint. + * + * @schema io.k8s.api.discovery.v1.EndpointConditions + */ +export interface EndpointConditions { + /** + * ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be "true" for terminating endpoints. + * + * @schema io.k8s.api.discovery.v1.EndpointConditions#ready + */ + readonly ready?: boolean; + + /** + * serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition. This field can be enabled with the EndpointSliceTerminatingCondition feature gate. + * + * @schema io.k8s.api.discovery.v1.EndpointConditions#serving + */ + readonly serving?: boolean; + + /** + * terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating. This field can be enabled with the EndpointSliceTerminatingCondition feature gate. + * + * @schema io.k8s.api.discovery.v1.EndpointConditions#terminating + */ + readonly terminating?: boolean; + +} + +/** + * Converts an object of type 'EndpointConditions' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_EndpointConditions(obj: EndpointConditions | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'ready': obj.ready, + 'serving': obj.serving, + 'terminating': obj.terminating, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * EndpointHints provides hints describing how an endpoint should be consumed. + * + * @schema io.k8s.api.discovery.v1.EndpointHints + */ +export interface EndpointHints { + /** + * forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing. + * + * @schema io.k8s.api.discovery.v1.EndpointHints#forZones + */ + readonly forZones?: ForZone[]; + +} + +/** + * Converts an object of type 'EndpointHints' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_EndpointHints(obj: EndpointHints | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'forZones': obj.forZones?.map(y => toJson_ForZone(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * FlowDistinguisherMethod specifies the method of a flow distinguisher. + * + * @schema io.k8s.api.flowcontrol.v1beta1.FlowDistinguisherMethod + */ +export interface FlowDistinguisherMethodV1Beta1 { + /** + * `type` is the type of flow distinguisher method The supported types are "ByUser" and "ByNamespace". Required. + * + * @schema io.k8s.api.flowcontrol.v1beta1.FlowDistinguisherMethod#type + */ + readonly type: string; + +} + +/** + * Converts an object of type 'FlowDistinguisherMethodV1Beta1' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_FlowDistinguisherMethodV1Beta1(obj: FlowDistinguisherMethodV1Beta1 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PriorityLevelConfigurationReference contains information that points to the "request-priority" being used. + * + * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationReference + */ +export interface PriorityLevelConfigurationReferenceV1Beta1 { + /** + * `name` is the name of the priority level configuration being referenced Required. + * + * @schema io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationReference#name + */ + readonly name: string; + +} + +/** + * Converts an object of type 'PriorityLevelConfigurationReferenceV1Beta1' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PriorityLevelConfigurationReferenceV1Beta1(obj: PriorityLevelConfigurationReferenceV1Beta1 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * 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. + * + * @schema io.k8s.api.flowcontrol.v1beta1.PolicyRulesWithSubjects + */ +export interface PolicyRulesWithSubjectsV1Beta1 { + /** + * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. + * + * @schema io.k8s.api.flowcontrol.v1beta1.PolicyRulesWithSubjects#nonResourceRules + */ + readonly nonResourceRules?: NonResourcePolicyRuleV1Beta1[]; + + /** + * `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. + * + * @schema io.k8s.api.flowcontrol.v1beta1.PolicyRulesWithSubjects#resourceRules + */ + readonly resourceRules?: ResourcePolicyRuleV1Beta1[]; + + /** + * 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. + * + * @schema io.k8s.api.flowcontrol.v1beta1.PolicyRulesWithSubjects#subjects + */ + readonly subjects: SubjectV1Beta1[]; + +} + +/** + * Converts an object of type 'PolicyRulesWithSubjectsV1Beta1' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PolicyRulesWithSubjectsV1Beta1(obj: PolicyRulesWithSubjectsV1Beta1 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'nonResourceRules': obj.nonResourceRules?.map(y => toJson_NonResourcePolicyRuleV1Beta1(y)), + 'resourceRules': obj.resourceRules?.map(y => toJson_ResourcePolicyRuleV1Beta1(y)), + 'subjects': obj.subjects?.map(y => toJson_SubjectV1Beta1(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues: + * - How are requests for this priority level limited? + * - What should be done with requests that exceed the limit? + * + * @schema io.k8s.api.flowcontrol.v1beta1.LimitedPriorityLevelConfiguration + */ +export interface LimitedPriorityLevelConfigurationV1Beta1 { + /** + * `assuredConcurrencyShares` (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be exeucting at a given time. ACS must be a positive number. The server's concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) --- the number of requests that may be executing at a time --- for each such priority level: + * + * ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) ) + * + * bigger numbers of ACS mean more reserved concurrent requests (at the expense of every other PL). This field has a default value of 30. + * + * @schema io.k8s.api.flowcontrol.v1beta1.LimitedPriorityLevelConfiguration#assuredConcurrencyShares + */ + readonly assuredConcurrencyShares?: number; + + /** + * `limitResponse` indicates what to do with requests that can not be executed right now + * + * @schema io.k8s.api.flowcontrol.v1beta1.LimitedPriorityLevelConfiguration#limitResponse + */ + readonly limitResponse?: LimitResponseV1Beta1; + +} + +/** + * Converts an object of type 'LimitedPriorityLevelConfigurationV1Beta1' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_LimitedPriorityLevelConfigurationV1Beta1(obj: LimitedPriorityLevelConfigurationV1Beta1 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'assuredConcurrencyShares': obj.assuredConcurrencyShares, + 'limitResponse': toJson_LimitResponseV1Beta1(obj.limitResponse), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * FlowDistinguisherMethod specifies the method of a flow distinguisher. + * + * @schema io.k8s.api.flowcontrol.v1beta2.FlowDistinguisherMethod + */ +export interface FlowDistinguisherMethodV1Beta2 { + /** + * `type` is the type of flow distinguisher method The supported types are "ByUser" and "ByNamespace". Required. + * + * @schema io.k8s.api.flowcontrol.v1beta2.FlowDistinguisherMethod#type + */ + readonly type: string; + +} + +/** + * Converts an object of type 'FlowDistinguisherMethodV1Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_FlowDistinguisherMethodV1Beta2(obj: FlowDistinguisherMethodV1Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PriorityLevelConfigurationReference contains information that points to the "request-priority" being used. + * + * @schema io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationReference + */ +export interface PriorityLevelConfigurationReferenceV1Beta2 { + /** + * `name` is the name of the priority level configuration being referenced Required. + * + * @schema io.k8s.api.flowcontrol.v1beta2.PriorityLevelConfigurationReference#name + */ + readonly name: string; + +} + +/** + * Converts an object of type 'PriorityLevelConfigurationReferenceV1Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PriorityLevelConfigurationReferenceV1Beta2(obj: PriorityLevelConfigurationReferenceV1Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * 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. + * + * @schema io.k8s.api.flowcontrol.v1beta2.PolicyRulesWithSubjects + */ +export interface PolicyRulesWithSubjectsV1Beta2 { + /** + * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. + * + * @schema io.k8s.api.flowcontrol.v1beta2.PolicyRulesWithSubjects#nonResourceRules + */ + readonly nonResourceRules?: NonResourcePolicyRuleV1Beta2[]; + + /** + * `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. + * + * @schema io.k8s.api.flowcontrol.v1beta2.PolicyRulesWithSubjects#resourceRules + */ + readonly resourceRules?: ResourcePolicyRuleV1Beta2[]; + + /** + * 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. + * + * @schema io.k8s.api.flowcontrol.v1beta2.PolicyRulesWithSubjects#subjects + */ + readonly subjects: SubjectV1Beta2[]; + +} + +/** + * Converts an object of type 'PolicyRulesWithSubjectsV1Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PolicyRulesWithSubjectsV1Beta2(obj: PolicyRulesWithSubjectsV1Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'nonResourceRules': obj.nonResourceRules?.map(y => toJson_NonResourcePolicyRuleV1Beta2(y)), + 'resourceRules': obj.resourceRules?.map(y => toJson_ResourcePolicyRuleV1Beta2(y)), + 'subjects': obj.subjects?.map(y => toJson_SubjectV1Beta2(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues: + * - How are requests for this priority level limited? + * - What should be done with requests that exceed the limit? + * + * @schema io.k8s.api.flowcontrol.v1beta2.LimitedPriorityLevelConfiguration + */ +export interface LimitedPriorityLevelConfigurationV1Beta2 { + /** + * `assuredConcurrencyShares` (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be exeucting at a given time. ACS must be a positive number. The server's concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) --- the number of requests that may be executing at a time --- for each such priority level: + * + * ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) ) + * + * bigger numbers of ACS mean more reserved concurrent requests (at the expense of every other PL). This field has a default value of 30. + * + * @schema io.k8s.api.flowcontrol.v1beta2.LimitedPriorityLevelConfiguration#assuredConcurrencyShares + */ + readonly assuredConcurrencyShares?: number; + + /** + * `limitResponse` indicates what to do with requests that can not be executed right now + * + * @schema io.k8s.api.flowcontrol.v1beta2.LimitedPriorityLevelConfiguration#limitResponse + */ + readonly limitResponse?: LimitResponseV1Beta2; + +} + +/** + * Converts an object of type 'LimitedPriorityLevelConfigurationV1Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_LimitedPriorityLevelConfigurationV1Beta2(obj: LimitedPriorityLevelConfigurationV1Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'assuredConcurrencyShares': obj.assuredConcurrencyShares, + 'limitResponse': toJson_LimitResponseV1Beta2(obj.limitResponse), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * IngressBackend describes all endpoints for a given service and port. + * + * @schema io.k8s.api.networking.v1.IngressBackend + */ +export interface IngressBackend { + /** + * Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with "Service". + * + * @schema io.k8s.api.networking.v1.IngressBackend#resource + */ + readonly resource?: TypedLocalObjectReference; + + /** + * Service references a Service as a Backend. This is a mutually exclusive setting with "Resource". + * + * @schema io.k8s.api.networking.v1.IngressBackend#service + */ + readonly service?: IngressServiceBackend; + +} + +/** + * Converts an object of type 'IngressBackend' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_IngressBackend(obj: IngressBackend | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'resource': toJson_TypedLocalObjectReference(obj.resource), + 'service': toJson_IngressServiceBackend(obj.service), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue. + * + * @schema io.k8s.api.networking.v1.IngressRule + */ +export interface IngressRule { + /** + * Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the "host" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to + * the IP in the Spec of the parent Ingress. + * 2. The `:` delimiter is not respected because ports are not allowed. + * Currently the port of an Ingress is implicitly :80 for http and + * :443 for https. + * Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. + * + * Host can be "precise" which is a domain name without the terminating dot of a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. "*.foo.com"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). Requests will be matched against the Host field in the following way: 1. If Host is precise, the request matches this rule if the http host header is equal to Host. 2. If Host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule. + * + * @schema io.k8s.api.networking.v1.IngressRule#host + */ + readonly host?: string; + + /** + * @schema io.k8s.api.networking.v1.IngressRule#http + */ + readonly http?: HttpIngressRuleValue; + +} + +/** + * Converts an object of type 'IngressRule' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_IngressRule(obj: IngressRule | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'host': obj.host, + 'http': toJson_HttpIngressRuleValue(obj.http), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * IngressTLS describes the transport layer security associated with an Ingress. + * + * @schema io.k8s.api.networking.v1.IngressTLS + */ +export interface IngressTls { + /** + * Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. + * + * @default the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. + * @schema io.k8s.api.networking.v1.IngressTLS#hosts + */ + readonly hosts?: string[]; + + /** + * SecretName is the name of the secret used to terminate TLS traffic on port 443. Field is left optional to allow TLS routing based on SNI hostname alone. If the SNI host in a listener conflicts with the "Host" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. + * + * @schema io.k8s.api.networking.v1.IngressTLS#secretName + */ + readonly secretName?: string; + +} + +/** + * Converts an object of type 'IngressTls' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_IngressTls(obj: IngressTls | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'hosts': obj.hosts?.map(y => y), + 'secretName': obj.secretName, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource. + * + * @schema io.k8s.api.networking.v1.IngressClassParametersReference + */ +export interface IngressClassParametersReference { + /** + * APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + * + * @schema io.k8s.api.networking.v1.IngressClassParametersReference#apiGroup + */ + readonly apiGroup?: string; + + /** + * Kind is the type of resource being referenced. + * + * @schema io.k8s.api.networking.v1.IngressClassParametersReference#kind + */ + readonly kind: string; + + /** + * Name is the name of resource being referenced. + * + * @schema io.k8s.api.networking.v1.IngressClassParametersReference#name + */ + readonly name: string; + + /** + * Namespace is the namespace of the resource being referenced. This field is required when scope is set to "Namespace" and must be unset when scope is set to "Cluster". + * + * @schema io.k8s.api.networking.v1.IngressClassParametersReference#namespace + */ + readonly namespace?: string; + + /** + * Scope represents if this refers to a cluster or namespace scoped resource. This may be set to "Cluster" (default) or "Namespace". + * + * @schema io.k8s.api.networking.v1.IngressClassParametersReference#scope + */ + readonly scope?: string; + +} + +/** + * Converts an object of type 'IngressClassParametersReference' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_IngressClassParametersReference(obj: IngressClassParametersReference | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'apiGroup': obj.apiGroup, + 'kind': obj.kind, + 'name': obj.name, + 'namespace': obj.namespace, + 'scope': obj.scope, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8 + * + * @schema io.k8s.api.networking.v1.NetworkPolicyEgressRule + */ +export interface NetworkPolicyEgressRule { + /** + * List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + * + * @schema io.k8s.api.networking.v1.NetworkPolicyEgressRule#ports + */ + readonly ports?: NetworkPolicyPort[]; + + /** + * List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. + * + * @schema io.k8s.api.networking.v1.NetworkPolicyEgressRule#to + */ + readonly to?: NetworkPolicyPeer[]; + +} + +/** + * Converts an object of type 'NetworkPolicyEgressRule' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_NetworkPolicyEgressRule(obj: NetworkPolicyEgressRule | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'ports': obj.ports?.map(y => toJson_NetworkPolicyPort(y)), + 'to': obj.to?.map(y => toJson_NetworkPolicyPeer(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from. + * + * @schema io.k8s.api.networking.v1.NetworkPolicyIngressRule + */ +export interface NetworkPolicyIngressRule { + /** + * List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. + * + * @schema io.k8s.api.networking.v1.NetworkPolicyIngressRule#from + */ + readonly from?: NetworkPolicyPeer[]; + + /** + * List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + * + * @schema io.k8s.api.networking.v1.NetworkPolicyIngressRule#ports + */ + readonly ports?: NetworkPolicyPort[]; + +} + +/** + * Converts an object of type 'NetworkPolicyIngressRule' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_NetworkPolicyIngressRule(obj: NetworkPolicyIngressRule | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'from': obj.from?.map(y => toJson_NetworkPolicyPeer(y)), + 'ports': obj.ports?.map(y => toJson_NetworkPolicyPort(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms. + * + * @schema io.k8s.api.core.v1.NodeSelector + */ +export interface NodeSelector { + /** + * Required. A list of node selector terms. The terms are ORed. + * + * @schema io.k8s.api.core.v1.NodeSelector#nodeSelectorTerms + */ + readonly nodeSelectorTerms: NodeSelectorTerm[]; + +} + +/** + * Converts an object of type 'NodeSelector' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_NodeSelector(obj: NodeSelector | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'nodeSelectorTerms': obj.nodeSelectorTerms?.map(y => toJson_NodeSelectorTerm(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * 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 + * + * @schema IoK8SApimachineryPkgApisMetaV1DeleteOptionsKind + */ +export enum IoK8SApimachineryPkgApisMetaV1DeleteOptionsKind { + /** DeleteOptions */ + DELETE_OPTIONS = "DeleteOptions", +} + +/** + * Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions + */ +export interface Preconditions { + /** + * Specifies the target ResourceVersion + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions#resourceVersion + */ + readonly resourceVersion?: string; + + /** + * Specifies the target UID. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions#uid + */ + readonly uid?: string; + +} + +/** + * Converts an object of type 'Preconditions' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_Preconditions(obj: Preconditions | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'resourceVersion': obj.resourceVersion, + 'uid': obj.uid, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * @schema io.k8s.apimachinery.pkg.util.intstr.IntOrString + */ +export class IntOrString { + public static fromString(value: string): IntOrString { + return new IntOrString(value); + } + public static fromNumber(value: number): IntOrString { + return new IntOrString(value); + } + private constructor(public readonly value: string | number) { + } +} + +/** + * TokenRequest contains parameters of a service account token. + * + * @schema io.k8s.api.storage.v1.TokenRequest + */ +export interface TokenRequest { + /** + * Audience is the intended audience of the token in "TokenRequestSpec". It will default to the audiences of kube apiserver. + * + * @schema io.k8s.api.storage.v1.TokenRequest#audience + */ + readonly audience: string; + + /** + * ExpirationSeconds is the duration of validity of the token in "TokenRequestSpec". It has the same default value of "ExpirationSeconds" in "TokenRequestSpec". + * + * @schema io.k8s.api.storage.v1.TokenRequest#expirationSeconds + */ + readonly expirationSeconds?: number; + +} + +/** + * Converts an object of type 'TokenRequest' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_TokenRequest(obj: TokenRequest | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'audience': obj.audience, + 'expirationSeconds': obj.expirationSeconds, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CSINodeDriver holds information about the specification of one CSI driver installed on a node + * + * @schema io.k8s.api.storage.v1.CSINodeDriver + */ +export interface CsiNodeDriver { + /** + * allocatable represents the volume resources of a node that are available for scheduling. This field is beta. + * + * @schema io.k8s.api.storage.v1.CSINodeDriver#allocatable + */ + readonly allocatable?: VolumeNodeResources; + + /** + * This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver. + * + * @schema io.k8s.api.storage.v1.CSINodeDriver#name + */ + readonly name: string; + + /** + * nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as "node1", but the storage system may refer to the same node as "nodeA". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. "nodeA" instead of "node1". This field is required. + * + * @schema io.k8s.api.storage.v1.CSINodeDriver#nodeID + */ + readonly nodeId: string; + + /** + * topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. "company.com/zone", "company.com/region"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology. + * + * @schema io.k8s.api.storage.v1.CSINodeDriver#topologyKeys + */ + readonly topologyKeys?: string[]; + +} + +/** + * Converts an object of type 'CsiNodeDriver' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CsiNodeDriver(obj: CsiNodeDriver | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'allocatable': toJson_VolumeNodeResources(obj.allocatable), + 'name': obj.name, + 'nodeID': obj.nodeId, + 'topologyKeys': obj.topologyKeys?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement + */ +export interface LabelSelectorRequirement { + /** + * key is the label key that the selector applies to. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement#key + */ + readonly key: string; + + /** + * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement#operator + */ + readonly operator: string; + + /** + * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement#values + */ + readonly values?: string[]; + +} + +/** + * Converts an object of type 'LabelSelectorRequirement' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_LabelSelectorRequirement(obj: LabelSelectorRequirement | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'key': obj.key, + 'operator': obj.operator, + 'values': obj.values?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future. + * + * @schema io.k8s.api.core.v1.TopologySelectorLabelRequirement + */ +export interface TopologySelectorLabelRequirement { + /** + * The label key that the selector applies to. + * + * @schema io.k8s.api.core.v1.TopologySelectorLabelRequirement#key + */ + readonly key: string; + + /** + * An array of string values. One value must match the label to be selected. Each entry in Values is ORed. + * + * @schema io.k8s.api.core.v1.TopologySelectorLabelRequirement#values + */ + readonly values: string[]; + +} + +/** + * Converts an object of type 'TopologySelectorLabelRequirement' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_TopologySelectorLabelRequirement(obj: TopologySelectorLabelRequirement | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'key': obj.key, + 'values': obj.values?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set. + * + * @schema io.k8s.api.storage.v1.VolumeAttachmentSource + */ +export interface VolumeAttachmentSource { + /** + * inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature. + * + * @schema io.k8s.api.storage.v1.VolumeAttachmentSource#inlineVolumeSpec + */ + readonly inlineVolumeSpec?: PersistentVolumeSpec; + + /** + * Name of the persistent volume to attach. + * + * @schema io.k8s.api.storage.v1.VolumeAttachmentSource#persistentVolumeName + */ + readonly persistentVolumeName?: string; + +} + +/** + * Converts an object of type 'VolumeAttachmentSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_VolumeAttachmentSource(obj: VolumeAttachmentSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'inlineVolumeSpec': toJson_PersistentVolumeSpec(obj.inlineVolumeSpec), + 'persistentVolumeName': obj.persistentVolumeName, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CustomResourceConversion describes how to convert different versions of a CR. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceConversion + */ +export interface CustomResourceConversion { + /** + * strategy specifies how custom resources are converted between versions. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information + * is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceConversion#strategy + */ + readonly strategy: string; + + /** + * webhook describes how to call the conversion webhook. Required when `strategy` is set to `Webhook`. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceConversion#webhook + */ + readonly webhook?: WebhookConversion; + +} + +/** + * Converts an object of type 'CustomResourceConversion' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CustomResourceConversion(obj: CustomResourceConversion | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'strategy': obj.strategy, + 'webhook': toJson_WebhookConversion(obj.webhook), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames + */ +export interface CustomResourceDefinitionNames { + /** + * categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames#categories + */ + readonly categories?: string[]; + + /** + * kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames#kind + */ + readonly kind: string; + + /** + * listKind is the serialized kind of the list for this resource. Defaults to "`kind`List". + * + * @default kind`List". + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames#listKind + */ + readonly listKind?: string; + + /** + * plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames#plural + */ + readonly plural: string; + + /** + * shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames#shortNames + */ + readonly shortNames?: string[]; + + /** + * singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. + * + * @default lowercased `kind`. + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames#singular + */ + readonly singular?: string; + +} + +/** + * Converts an object of type 'CustomResourceDefinitionNames' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CustomResourceDefinitionNames(obj: CustomResourceDefinitionNames | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'categories': obj.categories?.map(y => y), + 'kind': obj.kind, + 'listKind': obj.listKind, + 'plural': obj.plural, + 'shortNames': obj.shortNames?.map(y => y), + 'singular': obj.singular, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CustomResourceDefinitionVersion describes a version for CRD. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion + */ +export interface CustomResourceDefinitionVersion { + /** + * additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If no columns are specified, a single column displaying the age of the custom resource is used. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion#additionalPrinterColumns + */ + readonly additionalPrinterColumns?: CustomResourceColumnDefinition[]; + + /** + * deprecated indicates this version of the custom resource API is deprecated. When set to true, API requests to this version receive a warning header in the server response. Defaults to false. + * + * @default false. + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion#deprecated + */ + readonly deprecated?: boolean; + + /** + * deprecationWarning overrides the default warning returned to API clients. May only be set when `deprecated` is true. The default warning indicates this version is deprecated and recommends use of the newest served version of equal or greater stability, if one exists. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion#deprecationWarning + */ + readonly deprecationWarning?: string; + + /** + * name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis///...` if `served` is true. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion#name + */ + readonly name: string; + + /** + * schema describes the schema used for validation, pruning, and defaulting of this version of the custom resource. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion#schema + */ + readonly schema?: CustomResourceValidation; + + /** + * served is a flag enabling/disabling this version from being served via REST APIs + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion#served + */ + readonly served: boolean; + + /** + * storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion#storage + */ + readonly storage: boolean; + + /** + * subresources specify what subresources this version of the defined custom resource have. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion#subresources + */ + readonly subresources?: CustomResourceSubresources; + +} + +/** + * Converts an object of type 'CustomResourceDefinitionVersion' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CustomResourceDefinitionVersion(obj: CustomResourceDefinitionVersion | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'additionalPrinterColumns': obj.additionalPrinterColumns?.map(y => toJson_CustomResourceColumnDefinition(y)), + 'deprecated': obj.deprecated, + 'deprecationWarning': obj.deprecationWarning, + 'name': obj.name, + 'schema': toJson_CustomResourceValidation(obj.schema), + 'served': obj.served, + 'storage': obj.storage, + 'subresources': toJson_CustomResourceSubresources(obj.subresources), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause + */ +export interface StatusCause { + /** + * The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. + * + * Examples: + * "name" - the field "name" on the current resource + * "items[0].name" - the field "name" on the first array entry in "items" + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause#field + */ + readonly field?: string; + + /** + * A human-readable description of the cause of the error. This field may be presented as-is to a reader. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause#message + */ + readonly message?: string; + + /** + * A machine-readable description of the cause of the error. If this value is empty there is no information available. + * + * @schema io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause#reason + */ + readonly reason?: string; + +} + +/** + * Converts an object of type 'StatusCause' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_StatusCause(obj: StatusCause | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'field': obj.field, + 'message': obj.message, + 'reason': obj.reason, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ServiceReference holds a reference to Service.legacy.k8s.io + * + * @schema io.k8s.api.admissionregistration.v1.ServiceReference + */ +export interface ServiceReference { + /** + * `name` is the name of the service. Required + * + * @schema io.k8s.api.admissionregistration.v1.ServiceReference#name + */ + readonly name: string; + + /** + * `namespace` is the namespace of the service. Required + * + * @schema io.k8s.api.admissionregistration.v1.ServiceReference#namespace + */ + readonly namespace: string; + + /** + * `path` is an optional URL path which will be sent in any request to this service. + * + * @schema io.k8s.api.admissionregistration.v1.ServiceReference#path + */ + readonly path?: string; + + /** + * If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + * + * @default 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + * @schema io.k8s.api.admissionregistration.v1.ServiceReference#port + */ + readonly port?: number; + +} + +/** + * Converts an object of type 'ServiceReference' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ServiceReference(obj: ServiceReference | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + 'namespace': obj.namespace, + 'path': obj.path, + 'port': obj.port, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Spec to control the desired behavior of daemon set rolling update. + * + * @schema io.k8s.api.apps.v1.RollingUpdateDaemonSet + */ +export interface RollingUpdateDaemonSet { + /** + * The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption. + * + * @schema io.k8s.api.apps.v1.RollingUpdateDaemonSet#maxSurge + */ + readonly maxSurge?: IntOrString; + + /** + * The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0 if MaxSurge is 0 Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. + * + * @schema io.k8s.api.apps.v1.RollingUpdateDaemonSet#maxUnavailable + */ + readonly maxUnavailable?: IntOrString; + +} + +/** + * Converts an object of type 'RollingUpdateDaemonSet' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_RollingUpdateDaemonSet(obj: RollingUpdateDaemonSet | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'maxSurge': obj.maxSurge?.value, + 'maxUnavailable': obj.maxUnavailable?.value, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Spec to control the desired behavior of rolling update. + * + * @schema io.k8s.api.apps.v1.RollingUpdateDeployment + */ +export interface RollingUpdateDeployment { + /** + * The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. + * + * @default 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. + * @schema io.k8s.api.apps.v1.RollingUpdateDeployment#maxSurge + */ + readonly maxSurge?: IntOrString; + + /** + * The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + * + * @default 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + * @schema io.k8s.api.apps.v1.RollingUpdateDeployment#maxUnavailable + */ + readonly maxUnavailable?: IntOrString; + +} + +/** + * Converts an object of type 'RollingUpdateDeployment' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_RollingUpdateDeployment(obj: RollingUpdateDeployment | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'maxSurge': obj.maxSurge?.value, + 'maxUnavailable': obj.maxUnavailable?.value, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. + * + * @schema io.k8s.api.apps.v1.RollingUpdateStatefulSetStrategy + */ +export interface RollingUpdateStatefulSetStrategy { + /** + * The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0. Defaults to 1. This field is alpha-level and is only honored by servers that enable the MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable. + * + * @default 1. This field is alpha-level and is only honored by servers that enable the MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable. + * @schema io.k8s.api.apps.v1.RollingUpdateStatefulSetStrategy#maxUnavailable + */ + readonly maxUnavailable?: IntOrString; + + /** + * Partition indicates the ordinal at which the StatefulSet should be partitioned for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0. + * + * @schema io.k8s.api.apps.v1.RollingUpdateStatefulSetStrategy#partition + */ + readonly partition?: number; + +} + +/** + * Converts an object of type 'RollingUpdateStatefulSetStrategy' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_RollingUpdateStatefulSetStrategy(obj: RollingUpdateStatefulSetStrategy | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'maxUnavailable': obj.maxUnavailable?.value, + 'partition': obj.partition, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen. + * + * @schema io.k8s.api.autoscaling.v2.HPAScalingRules + */ +export interface HpaScalingRulesV2 { + /** + * policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid + * + * @schema io.k8s.api.autoscaling.v2.HPAScalingRules#policies + */ + readonly policies?: HpaScalingPolicyV2[]; + + /** + * selectPolicy is used to specify which policy should be used. If not set, the default value Max is used. + * + * @schema io.k8s.api.autoscaling.v2.HPAScalingRules#selectPolicy + */ + readonly selectPolicy?: string; + + /** + * StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long). + * + * @schema io.k8s.api.autoscaling.v2.HPAScalingRules#stabilizationWindowSeconds + */ + readonly stabilizationWindowSeconds?: number; + +} + +/** + * Converts an object of type 'HpaScalingRulesV2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_HpaScalingRulesV2(obj: HpaScalingRulesV2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'policies': obj.policies?.map(y => toJson_HpaScalingPolicyV2(y)), + 'selectPolicy': obj.selectPolicy, + 'stabilizationWindowSeconds': obj.stabilizationWindowSeconds, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Only one "target" type should be set. + * + * @schema io.k8s.api.autoscaling.v2.ContainerResourceMetricSource + */ +export interface ContainerResourceMetricSourceV2 { + /** + * container is the name of the container in the pods of the scaling target + * + * @schema io.k8s.api.autoscaling.v2.ContainerResourceMetricSource#container + */ + readonly container: string; + + /** + * name is the name of the resource in question. + * + * @schema io.k8s.api.autoscaling.v2.ContainerResourceMetricSource#name + */ + readonly name: string; + + /** + * target specifies the target value for the given metric + * + * @schema io.k8s.api.autoscaling.v2.ContainerResourceMetricSource#target + */ + readonly target: MetricTargetV2; + +} + +/** + * Converts an object of type 'ContainerResourceMetricSourceV2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ContainerResourceMetricSourceV2(obj: ContainerResourceMetricSourceV2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'container': obj.container, + 'name': obj.name, + 'target': toJson_MetricTargetV2(obj.target), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). + * + * @schema io.k8s.api.autoscaling.v2.ExternalMetricSource + */ +export interface ExternalMetricSourceV2 { + /** + * metric identifies the target metric by name and selector + * + * @schema io.k8s.api.autoscaling.v2.ExternalMetricSource#metric + */ + readonly metric: MetricIdentifierV2; + + /** + * target specifies the target value for the given metric + * + * @schema io.k8s.api.autoscaling.v2.ExternalMetricSource#target + */ + readonly target: MetricTargetV2; + +} + +/** + * Converts an object of type 'ExternalMetricSourceV2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ExternalMetricSourceV2(obj: ExternalMetricSourceV2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metric': toJson_MetricIdentifierV2(obj.metric), + 'target': toJson_MetricTargetV2(obj.target), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). + * + * @schema io.k8s.api.autoscaling.v2.ObjectMetricSource + */ +export interface ObjectMetricSourceV2 { + /** + * describedObject specifies the descriptions of a object,such as kind,name apiVersion + * + * @schema io.k8s.api.autoscaling.v2.ObjectMetricSource#describedObject + */ + readonly describedObject: CrossVersionObjectReferenceV2; + + /** + * metric identifies the target metric by name and selector + * + * @schema io.k8s.api.autoscaling.v2.ObjectMetricSource#metric + */ + readonly metric: MetricIdentifierV2; + + /** + * target specifies the target value for the given metric + * + * @schema io.k8s.api.autoscaling.v2.ObjectMetricSource#target + */ + readonly target: MetricTargetV2; + +} + +/** + * Converts an object of type 'ObjectMetricSourceV2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ObjectMetricSourceV2(obj: ObjectMetricSourceV2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'describedObject': toJson_CrossVersionObjectReferenceV2(obj.describedObject), + 'metric': toJson_MetricIdentifierV2(obj.metric), + 'target': toJson_MetricTargetV2(obj.target), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. + * + * @schema io.k8s.api.autoscaling.v2.PodsMetricSource + */ +export interface PodsMetricSourceV2 { + /** + * metric identifies the target metric by name and selector + * + * @schema io.k8s.api.autoscaling.v2.PodsMetricSource#metric + */ + readonly metric: MetricIdentifierV2; + + /** + * target specifies the target value for the given metric + * + * @schema io.k8s.api.autoscaling.v2.PodsMetricSource#target + */ + readonly target: MetricTargetV2; + +} + +/** + * Converts an object of type 'PodsMetricSourceV2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PodsMetricSourceV2(obj: PodsMetricSourceV2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metric': toJson_MetricIdentifierV2(obj.metric), + 'target': toJson_MetricTargetV2(obj.target), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Only one "target" type should be set. + * + * @schema io.k8s.api.autoscaling.v2.ResourceMetricSource + */ +export interface ResourceMetricSourceV2 { + /** + * name is the name of the resource in question. + * + * @schema io.k8s.api.autoscaling.v2.ResourceMetricSource#name + */ + readonly name: string; + + /** + * target specifies the target value for the given metric + * + * @schema io.k8s.api.autoscaling.v2.ResourceMetricSource#target + */ + readonly target: MetricTargetV2; + +} + +/** + * Converts an object of type 'ResourceMetricSourceV2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ResourceMetricSourceV2(obj: ResourceMetricSourceV2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + 'target': toJson_MetricTargetV2(obj.target), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen. + * + * @schema io.k8s.api.autoscaling.v2beta2.HPAScalingRules + */ +export interface HpaScalingRulesV2Beta2 { + /** + * policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid + * + * @schema io.k8s.api.autoscaling.v2beta2.HPAScalingRules#policies + */ + readonly policies?: HpaScalingPolicyV2Beta2[]; + + /** + * selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used. + * + * @schema io.k8s.api.autoscaling.v2beta2.HPAScalingRules#selectPolicy + */ + readonly selectPolicy?: string; + + /** + * StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long). + * + * @schema io.k8s.api.autoscaling.v2beta2.HPAScalingRules#stabilizationWindowSeconds + */ + readonly stabilizationWindowSeconds?: number; + +} + +/** + * Converts an object of type 'HpaScalingRulesV2Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_HpaScalingRulesV2Beta2(obj: HpaScalingRulesV2Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'policies': obj.policies?.map(y => toJson_HpaScalingPolicyV2Beta2(y)), + 'selectPolicy': obj.selectPolicy, + 'stabilizationWindowSeconds': obj.stabilizationWindowSeconds, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Only one "target" type should be set. + * + * @schema io.k8s.api.autoscaling.v2beta2.ContainerResourceMetricSource + */ +export interface ContainerResourceMetricSourceV2Beta2 { + /** + * container is the name of the container in the pods of the scaling target + * + * @schema io.k8s.api.autoscaling.v2beta2.ContainerResourceMetricSource#container + */ + readonly container: string; + + /** + * name is the name of the resource in question. + * + * @schema io.k8s.api.autoscaling.v2beta2.ContainerResourceMetricSource#name + */ + readonly name: string; + + /** + * target specifies the target value for the given metric + * + * @schema io.k8s.api.autoscaling.v2beta2.ContainerResourceMetricSource#target + */ + readonly target: MetricTargetV2Beta2; + +} + +/** + * Converts an object of type 'ContainerResourceMetricSourceV2Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ContainerResourceMetricSourceV2Beta2(obj: ContainerResourceMetricSourceV2Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'container': obj.container, + 'name': obj.name, + 'target': toJson_MetricTargetV2Beta2(obj.target), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). + * + * @schema io.k8s.api.autoscaling.v2beta2.ExternalMetricSource + */ +export interface ExternalMetricSourceV2Beta2 { + /** + * metric identifies the target metric by name and selector + * + * @schema io.k8s.api.autoscaling.v2beta2.ExternalMetricSource#metric + */ + readonly metric: MetricIdentifierV2Beta2; + + /** + * target specifies the target value for the given metric + * + * @schema io.k8s.api.autoscaling.v2beta2.ExternalMetricSource#target + */ + readonly target: MetricTargetV2Beta2; + +} + +/** + * Converts an object of type 'ExternalMetricSourceV2Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ExternalMetricSourceV2Beta2(obj: ExternalMetricSourceV2Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metric': toJson_MetricIdentifierV2Beta2(obj.metric), + 'target': toJson_MetricTargetV2Beta2(obj.target), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). + * + * @schema io.k8s.api.autoscaling.v2beta2.ObjectMetricSource + */ +export interface ObjectMetricSourceV2Beta2 { + /** + * @schema io.k8s.api.autoscaling.v2beta2.ObjectMetricSource#describedObject + */ + readonly describedObject: CrossVersionObjectReferenceV2Beta2; + + /** + * metric identifies the target metric by name and selector + * + * @schema io.k8s.api.autoscaling.v2beta2.ObjectMetricSource#metric + */ + readonly metric: MetricIdentifierV2Beta2; + + /** + * target specifies the target value for the given metric + * + * @schema io.k8s.api.autoscaling.v2beta2.ObjectMetricSource#target + */ + readonly target: MetricTargetV2Beta2; + +} + +/** + * Converts an object of type 'ObjectMetricSourceV2Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ObjectMetricSourceV2Beta2(obj: ObjectMetricSourceV2Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'describedObject': toJson_CrossVersionObjectReferenceV2Beta2(obj.describedObject), + 'metric': toJson_MetricIdentifierV2Beta2(obj.metric), + 'target': toJson_MetricTargetV2Beta2(obj.target), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. + * + * @schema io.k8s.api.autoscaling.v2beta2.PodsMetricSource + */ +export interface PodsMetricSourceV2Beta2 { + /** + * metric identifies the target metric by name and selector + * + * @schema io.k8s.api.autoscaling.v2beta2.PodsMetricSource#metric + */ + readonly metric: MetricIdentifierV2Beta2; + + /** + * target specifies the target value for the given metric + * + * @schema io.k8s.api.autoscaling.v2beta2.PodsMetricSource#target + */ + readonly target: MetricTargetV2Beta2; + +} + +/** + * Converts an object of type 'PodsMetricSourceV2Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PodsMetricSourceV2Beta2(obj: PodsMetricSourceV2Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metric': toJson_MetricIdentifierV2Beta2(obj.metric), + 'target': toJson_MetricTargetV2Beta2(obj.target), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Only one "target" type should be set. + * + * @schema io.k8s.api.autoscaling.v2beta2.ResourceMetricSource + */ +export interface ResourceMetricSourceV2Beta2 { + /** + * name is the name of the resource in question. + * + * @schema io.k8s.api.autoscaling.v2beta2.ResourceMetricSource#name + */ + readonly name: string; + + /** + * target specifies the target value for the given metric + * + * @schema io.k8s.api.autoscaling.v2beta2.ResourceMetricSource#target + */ + readonly target: MetricTargetV2Beta2; + +} + +/** + * Converts an object of type 'ResourceMetricSourceV2Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ResourceMetricSourceV2Beta2(obj: ResourceMetricSourceV2Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + 'target': toJson_MetricTargetV2Beta2(obj.target), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of OnExitCodes and onPodConditions, but not both, can be used in each rule. + * + * @schema io.k8s.api.batch.v1.PodFailurePolicyRule + */ +export interface PodFailurePolicyRule { + /** + * Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are: - FailJob: indicates that the pod's job is marked as Failed and all + * running pods are terminated. + * - Ignore: indicates that the counter towards the .backoffLimit is not + * incremented and a replacement pod is created. + * - Count: indicates that the pod is handled in the default way - the + * counter towards the .backoffLimit is incremented. + * Additional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule. + * + * + * + * @schema io.k8s.api.batch.v1.PodFailurePolicyRule#action + */ + readonly action: string; + + /** + * Represents the requirement on the container exit codes. + * + * @schema io.k8s.api.batch.v1.PodFailurePolicyRule#onExitCodes + */ + readonly onExitCodes?: PodFailurePolicyOnExitCodesRequirement; + + /** + * Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed. + * + * @schema io.k8s.api.batch.v1.PodFailurePolicyRule#onPodConditions + */ + readonly onPodConditions: PodFailurePolicyOnPodConditionsPattern[]; + +} + +/** + * Converts an object of type 'PodFailurePolicyRule' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PodFailurePolicyRule(obj: PodFailurePolicyRule | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'action': obj.action, + 'onExitCodes': toJson_PodFailurePolicyOnExitCodesRequirement(obj.onExitCodes), + 'onPodConditions': obj.onPodConditions?.map(y => toJson_PodFailurePolicyOnPodConditionsPattern(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration + * + * @schema io.k8s.api.core.v1.ConfigMapNodeConfigSource + */ +export interface ConfigMapNodeConfigSource { + /** + * KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases. + * + * @schema io.k8s.api.core.v1.ConfigMapNodeConfigSource#kubeletConfigKey + */ + readonly kubeletConfigKey: string; + + /** + * Name is the metadata.name of the referenced ConfigMap. This field is required in all cases. + * + * @schema io.k8s.api.core.v1.ConfigMapNodeConfigSource#name + */ + readonly name: string; + + /** + * Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases. + * + * @schema io.k8s.api.core.v1.ConfigMapNodeConfigSource#namespace + */ + readonly namespace: string; + + /** + * ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. + * + * @schema io.k8s.api.core.v1.ConfigMapNodeConfigSource#resourceVersion + */ + readonly resourceVersion?: string; + + /** + * UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. + * + * @schema io.k8s.api.core.v1.ConfigMapNodeConfigSource#uid + */ + readonly uid?: string; + +} + +/** + * Converts an object of type 'ConfigMapNodeConfigSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ConfigMapNodeConfigSource(obj: ConfigMapNodeConfigSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'kubeletConfigKey': obj.kubeletConfigKey, + 'name': obj.name, + 'namespace': obj.namespace, + 'resourceVersion': obj.resourceVersion, + 'uid': obj.uid, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace + * + * @schema io.k8s.api.core.v1.SecretReference + */ +export interface SecretReference { + /** + * name is unique within a namespace to reference a secret resource. + * + * @schema io.k8s.api.core.v1.SecretReference#name + */ + readonly name?: string; + + /** + * namespace defines the space within which the secret name must be unique. + * + * @schema io.k8s.api.core.v1.SecretReference#namespace + */ + readonly namespace?: string; + +} + +/** + * Converts an object of type 'SecretReference' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_SecretReference(obj: SecretReference | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + 'namespace': obj.namespace, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Node affinity is a group of node affinity scheduling rules. + * + * @schema io.k8s.api.core.v1.NodeAffinity + */ +export interface NodeAffinity { + /** + * The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * + * @schema io.k8s.api.core.v1.NodeAffinity#preferredDuringSchedulingIgnoredDuringExecution + */ + readonly preferredDuringSchedulingIgnoredDuringExecution?: PreferredSchedulingTerm[]; + + /** + * If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * + * @schema io.k8s.api.core.v1.NodeAffinity#requiredDuringSchedulingIgnoredDuringExecution + */ + readonly requiredDuringSchedulingIgnoredDuringExecution?: NodeSelector; + +} + +/** + * Converts an object of type 'NodeAffinity' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_NodeAffinity(obj: NodeAffinity | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'preferredDuringSchedulingIgnoredDuringExecution': obj.preferredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_PreferredSchedulingTerm(y)), + 'requiredDuringSchedulingIgnoredDuringExecution': toJson_NodeSelector(obj.requiredDuringSchedulingIgnoredDuringExecution), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Pod affinity is a group of inter pod affinity scheduling rules. + * + * @schema io.k8s.api.core.v1.PodAffinity + */ +export interface PodAffinity { + /** + * The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * + * @schema io.k8s.api.core.v1.PodAffinity#preferredDuringSchedulingIgnoredDuringExecution + */ + readonly preferredDuringSchedulingIgnoredDuringExecution?: WeightedPodAffinityTerm[]; + + /** + * If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + * + * @schema io.k8s.api.core.v1.PodAffinity#requiredDuringSchedulingIgnoredDuringExecution + */ + readonly requiredDuringSchedulingIgnoredDuringExecution?: PodAffinityTerm[]; + +} + +/** + * Converts an object of type 'PodAffinity' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PodAffinity(obj: PodAffinity | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'preferredDuringSchedulingIgnoredDuringExecution': obj.preferredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_WeightedPodAffinityTerm(y)), + 'requiredDuringSchedulingIgnoredDuringExecution': obj.requiredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_PodAffinityTerm(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Pod anti affinity is a group of inter pod anti affinity scheduling rules. + * + * @schema io.k8s.api.core.v1.PodAntiAffinity + */ +export interface PodAntiAffinity { + /** + * The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * + * @schema io.k8s.api.core.v1.PodAntiAffinity#preferredDuringSchedulingIgnoredDuringExecution + */ + readonly preferredDuringSchedulingIgnoredDuringExecution?: WeightedPodAffinityTerm[]; + + /** + * If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + * + * @schema io.k8s.api.core.v1.PodAntiAffinity#requiredDuringSchedulingIgnoredDuringExecution + */ + readonly requiredDuringSchedulingIgnoredDuringExecution?: PodAffinityTerm[]; + +} + +/** + * Converts an object of type 'PodAntiAffinity' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PodAntiAffinity(obj: PodAntiAffinity | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'preferredDuringSchedulingIgnoredDuringExecution': obj.preferredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_WeightedPodAffinityTerm(y)), + 'requiredDuringSchedulingIgnoredDuringExecution': obj.requiredDuringSchedulingIgnoredDuringExecution?.map(y => toJson_PodAffinityTerm(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * EnvVar represents an environment variable present in a Container. + * + * @schema io.k8s.api.core.v1.EnvVar + */ +export interface EnvVar { + /** + * Name of the environment variable. Must be a C_IDENTIFIER. + * + * @schema io.k8s.api.core.v1.EnvVar#name + */ + readonly name: string; + + /** + * Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * + * @default . + * @schema io.k8s.api.core.v1.EnvVar#value + */ + readonly value?: string; + + /** + * Source for the environment variable's value. Cannot be used if value is not empty. + * + * @schema io.k8s.api.core.v1.EnvVar#valueFrom + */ + readonly valueFrom?: EnvVarSource; + +} + +/** + * Converts an object of type 'EnvVar' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_EnvVar(obj: EnvVar | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + 'value': obj.value, + 'valueFrom': toJson_EnvVarSource(obj.valueFrom), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * EnvFromSource represents the source of a set of ConfigMaps + * + * @schema io.k8s.api.core.v1.EnvFromSource + */ +export interface EnvFromSource { + /** + * The ConfigMap to select from + * + * @schema io.k8s.api.core.v1.EnvFromSource#configMapRef + */ + readonly configMapRef?: ConfigMapEnvSource; + + /** + * An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * + * @schema io.k8s.api.core.v1.EnvFromSource#prefix + */ + readonly prefix?: string; + + /** + * The Secret to select from + * + * @schema io.k8s.api.core.v1.EnvFromSource#secretRef + */ + readonly secretRef?: SecretEnvSource; + +} + +/** + * Converts an object of type 'EnvFromSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_EnvFromSource(obj: EnvFromSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'configMapRef': toJson_ConfigMapEnvSource(obj.configMapRef), + 'prefix': obj.prefix, + 'secretRef': toJson_SecretEnvSource(obj.secretRef), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted. + * + * @schema io.k8s.api.core.v1.Lifecycle + */ +export interface Lifecycle { + /** + * PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * + * @schema io.k8s.api.core.v1.Lifecycle#postStart + */ + readonly postStart?: LifecycleHandler; + + /** + * PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The Pod's termination grace period countdown begins before the PreStop hook is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period (unless delayed by finalizers). Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * + * @schema io.k8s.api.core.v1.Lifecycle#preStop + */ + readonly preStop?: LifecycleHandler; + +} + +/** + * Converts an object of type 'Lifecycle' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_Lifecycle(obj: Lifecycle | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'postStart': toJson_LifecycleHandler(obj.postStart), + 'preStop': toJson_LifecycleHandler(obj.preStop), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic. + * + * @schema io.k8s.api.core.v1.Probe + */ +export interface Probe { + /** + * Exec specifies the action to take. + * + * @schema io.k8s.api.core.v1.Probe#exec + */ + readonly exec?: ExecAction; + + /** + * Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * + * @default 3. Minimum value is 1. + * @schema io.k8s.api.core.v1.Probe#failureThreshold + */ + readonly failureThreshold?: number; + + /** + * GRPC specifies an action involving a GRPC port. This is a beta field and requires enabling GRPCContainerProbe feature gate. + * + * @schema io.k8s.api.core.v1.Probe#grpc + */ + readonly grpc?: GrpcAction; + + /** + * HTTPGet specifies the http request to perform. + * + * @schema io.k8s.api.core.v1.Probe#httpGet + */ + readonly httpGet?: HttpGetAction; + + /** + * Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * + * @schema io.k8s.api.core.v1.Probe#initialDelaySeconds + */ + readonly initialDelaySeconds?: number; + + /** + * How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * + * @default 10 seconds. Minimum value is 1. + * @schema io.k8s.api.core.v1.Probe#periodSeconds + */ + readonly periodSeconds?: number; + + /** + * Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * + * @default 1. Must be 1 for liveness and startup. Minimum value is 1. + * @schema io.k8s.api.core.v1.Probe#successThreshold + */ + readonly successThreshold?: number; + + /** + * TCPSocket specifies an action involving a TCP port. + * + * @schema io.k8s.api.core.v1.Probe#tcpSocket + */ + readonly tcpSocket?: TcpSocketAction; + + /** + * Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset. + * + * @schema io.k8s.api.core.v1.Probe#terminationGracePeriodSeconds + */ + readonly terminationGracePeriodSeconds?: number; + + /** + * Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * + * @default 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * @schema io.k8s.api.core.v1.Probe#timeoutSeconds + */ + readonly timeoutSeconds?: number; + +} + +/** + * Converts an object of type 'Probe' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_Probe(obj: Probe | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'exec': toJson_ExecAction(obj.exec), + 'failureThreshold': obj.failureThreshold, + 'grpc': toJson_GrpcAction(obj.grpc), + 'httpGet': toJson_HttpGetAction(obj.httpGet), + 'initialDelaySeconds': obj.initialDelaySeconds, + 'periodSeconds': obj.periodSeconds, + 'successThreshold': obj.successThreshold, + 'tcpSocket': toJson_TcpSocketAction(obj.tcpSocket), + 'terminationGracePeriodSeconds': obj.terminationGracePeriodSeconds, + 'timeoutSeconds': obj.timeoutSeconds, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ContainerPort represents a network port in a single container. + * + * @schema io.k8s.api.core.v1.ContainerPort + */ +export interface ContainerPort { + /** + * Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * + * @schema io.k8s.api.core.v1.ContainerPort#containerPort + */ + readonly containerPort: number; + + /** + * What host IP to bind the external port to. + * + * @schema io.k8s.api.core.v1.ContainerPort#hostIP + */ + readonly hostIp?: string; + + /** + * Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * + * @schema io.k8s.api.core.v1.ContainerPort#hostPort + */ + readonly hostPort?: number; + + /** + * If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * + * @schema io.k8s.api.core.v1.ContainerPort#name + */ + readonly name?: string; + + /** + * Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + * + * + * + * @default TCP". + * @schema io.k8s.api.core.v1.ContainerPort#protocol + */ + readonly protocol?: string; + +} + +/** + * Converts an object of type 'ContainerPort' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ContainerPort(obj: ContainerPort | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'containerPort': obj.containerPort, + 'hostIP': obj.hostIp, + 'hostPort': obj.hostPort, + 'name': obj.name, + 'protocol': obj.protocol, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence. + * + * @schema io.k8s.api.core.v1.SecurityContext + */ +export interface SecurityContext { + /** + * AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows. + * + * @schema io.k8s.api.core.v1.SecurityContext#allowPrivilegeEscalation + */ + readonly allowPrivilegeEscalation?: boolean; + + /** + * The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows. + * + * @default the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows. + * @schema io.k8s.api.core.v1.SecurityContext#capabilities + */ + readonly capabilities?: Capabilities; + + /** + * Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows. + * + * @default false. Note that this field cannot be set when spec.os.name is windows. + * @schema io.k8s.api.core.v1.SecurityContext#privileged + */ + readonly privileged?: boolean; + + /** + * procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows. + * + * @schema io.k8s.api.core.v1.SecurityContext#procMount + */ + readonly procMount?: string; + + /** + * Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows. + * + * @default false. Note that this field cannot be set when spec.os.name is windows. + * @schema io.k8s.api.core.v1.SecurityContext#readOnlyRootFilesystem + */ + readonly readOnlyRootFilesystem?: boolean; + + /** + * The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. + * + * @schema io.k8s.api.core.v1.SecurityContext#runAsGroup + */ + readonly runAsGroup?: number; + + /** + * Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * + * @schema io.k8s.api.core.v1.SecurityContext#runAsNonRoot + */ + readonly runAsNonRoot?: boolean; + + /** + * The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. + * + * @default user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. + * @schema io.k8s.api.core.v1.SecurityContext#runAsUser + */ + readonly runAsUser?: number; + + /** + * The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. + * + * @schema io.k8s.api.core.v1.SecurityContext#seLinuxOptions + */ + readonly seLinuxOptions?: SeLinuxOptions; + + /** + * The seccomp options to use by this container. If seccomp options are provided at both the pod & container level, the container options override the pod options. Note that this field cannot be set when spec.os.name is windows. + * + * @schema io.k8s.api.core.v1.SecurityContext#seccompProfile + */ + readonly seccompProfile?: SeccompProfile; + + /** + * The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux. + * + * @schema io.k8s.api.core.v1.SecurityContext#windowsOptions + */ + readonly windowsOptions?: WindowsSecurityContextOptions; + +} + +/** + * Converts an object of type 'SecurityContext' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_SecurityContext(obj: SecurityContext | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'allowPrivilegeEscalation': obj.allowPrivilegeEscalation, + 'capabilities': toJson_Capabilities(obj.capabilities), + 'privileged': obj.privileged, + 'procMount': obj.procMount, + 'readOnlyRootFilesystem': obj.readOnlyRootFilesystem, + 'runAsGroup': obj.runAsGroup, + 'runAsNonRoot': obj.runAsNonRoot, + 'runAsUser': obj.runAsUser, + 'seLinuxOptions': toJson_SeLinuxOptions(obj.seLinuxOptions), + 'seccompProfile': toJson_SeccompProfile(obj.seccompProfile), + 'windowsOptions': toJson_WindowsSecurityContextOptions(obj.windowsOptions), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * volumeDevice describes a mapping of a raw block device within a container. + * + * @schema io.k8s.api.core.v1.VolumeDevice + */ +export interface VolumeDevice { + /** + * devicePath is the path inside of the container that the device will be mapped to. + * + * @schema io.k8s.api.core.v1.VolumeDevice#devicePath + */ + readonly devicePath: string; + + /** + * name must match the name of a persistentVolumeClaim in the pod + * + * @schema io.k8s.api.core.v1.VolumeDevice#name + */ + readonly name: string; + +} + +/** + * Converts an object of type 'VolumeDevice' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_VolumeDevice(obj: VolumeDevice | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'devicePath': obj.devicePath, + 'name': obj.name, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * VolumeMount describes a mounting of a Volume within a container. + * + * @schema io.k8s.api.core.v1.VolumeMount + */ +export interface VolumeMount { + /** + * Path within the container at which the volume should be mounted. Must not contain ':'. + * + * @schema io.k8s.api.core.v1.VolumeMount#mountPath + */ + readonly mountPath: string; + + /** + * mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * + * @schema io.k8s.api.core.v1.VolumeMount#mountPropagation + */ + readonly mountPropagation?: string; + + /** + * This must match the Name of a Volume. + * + * @schema io.k8s.api.core.v1.VolumeMount#name + */ + readonly name: string; + + /** + * Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * + * @default false. + * @schema io.k8s.api.core.v1.VolumeMount#readOnly + */ + readonly readOnly?: boolean; + + /** + * Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * + * @default volume's root). + * @schema io.k8s.api.core.v1.VolumeMount#subPath + */ + readonly subPath?: string; + + /** + * Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + * + * @default volume's root). SubPathExpr and SubPath are mutually exclusive. + * @schema io.k8s.api.core.v1.VolumeMount#subPathExpr + */ + readonly subPathExpr?: string; + +} + +/** + * Converts an object of type 'VolumeMount' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_VolumeMount(obj: VolumeMount | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'mountPath': obj.mountPath, + 'mountPropagation': obj.mountPropagation, + 'name': obj.name, + 'readOnly': obj.readOnly, + 'subPath': obj.subPath, + 'subPathExpr': obj.subPathExpr, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodDNSConfigOption defines DNS resolver options of a pod. + * + * @schema io.k8s.api.core.v1.PodDNSConfigOption + */ +export interface PodDnsConfigOption { + /** + * Required. + * + * @schema io.k8s.api.core.v1.PodDNSConfigOption#name + */ + readonly name?: string; + + /** + * @schema io.k8s.api.core.v1.PodDNSConfigOption#value + */ + readonly value?: string; + +} + +/** + * Converts an object of type 'PodDnsConfigOption' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PodDnsConfigOption(obj: PodDnsConfigOption | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + 'value': obj.value, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * SELinuxOptions are the labels to be applied to the container + * + * @schema io.k8s.api.core.v1.SELinuxOptions + */ +export interface SeLinuxOptions { + /** + * Level is SELinux level label that applies to the container. + * + * @schema io.k8s.api.core.v1.SELinuxOptions#level + */ + readonly level?: string; + + /** + * Role is a SELinux role label that applies to the container. + * + * @schema io.k8s.api.core.v1.SELinuxOptions#role + */ + readonly role?: string; + + /** + * Type is a SELinux type label that applies to the container. + * + * @schema io.k8s.api.core.v1.SELinuxOptions#type + */ + readonly type?: string; + + /** + * User is a SELinux user label that applies to the container. + * + * @schema io.k8s.api.core.v1.SELinuxOptions#user + */ + readonly user?: string; + +} + +/** + * Converts an object of type 'SeLinuxOptions' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_SeLinuxOptions(obj: SeLinuxOptions | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'level': obj.level, + 'role': obj.role, + 'type': obj.type, + 'user': obj.user, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set. + * + * @schema io.k8s.api.core.v1.SeccompProfile + */ +export interface SeccompProfile { + /** + * localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must only be set if type is "Localhost". + * + * @schema io.k8s.api.core.v1.SeccompProfile#localhostProfile + */ + readonly localhostProfile?: string; + + /** + * type indicates which kind of seccomp profile will be applied. Valid options are: + * + * Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied. + * + * + * + * @schema io.k8s.api.core.v1.SeccompProfile#type + */ + readonly type: string; + +} + +/** + * Converts an object of type 'SeccompProfile' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_SeccompProfile(obj: SeccompProfile | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'localhostProfile': obj.localhostProfile, + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Sysctl defines a kernel parameter to be set + * + * @schema io.k8s.api.core.v1.Sysctl + */ +export interface Sysctl { + /** + * Name of a property to set + * + * @schema io.k8s.api.core.v1.Sysctl#name + */ + readonly name: string; + + /** + * Value of a property to set + * + * @schema io.k8s.api.core.v1.Sysctl#value + */ + readonly value: string; + +} + +/** + * Converts an object of type 'Sysctl' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_Sysctl(obj: Sysctl | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + 'value': obj.value, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * WindowsSecurityContextOptions contain Windows-specific options and credentials. + * + * @schema io.k8s.api.core.v1.WindowsSecurityContextOptions + */ +export interface WindowsSecurityContextOptions { + /** + * GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * + * @schema io.k8s.api.core.v1.WindowsSecurityContextOptions#gmsaCredentialSpec + */ + readonly gmsaCredentialSpec?: string; + + /** + * GMSACredentialSpecName is the name of the GMSA credential spec to use. + * + * @schema io.k8s.api.core.v1.WindowsSecurityContextOptions#gmsaCredentialSpecName + */ + readonly gmsaCredentialSpecName?: string; + + /** + * HostProcess determines if a container should be run as a 'Host Process' container. This field is alpha-level and will only be honored by components that enable the WindowsHostProcessContainers feature flag. Setting this field without the feature flag will result in errors when validating the Pod. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true. + * + * @schema io.k8s.api.core.v1.WindowsSecurityContextOptions#hostProcess + */ + readonly hostProcess?: boolean; + + /** + * The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * + * @default the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * @schema io.k8s.api.core.v1.WindowsSecurityContextOptions#runAsUserName + */ + readonly runAsUserName?: string; + +} + +/** + * Converts an object of type 'WindowsSecurityContextOptions' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_WindowsSecurityContextOptions(obj: WindowsSecurityContextOptions | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'gmsaCredentialSpec': obj.gmsaCredentialSpec, + 'gmsaCredentialSpecName': obj.gmsaCredentialSpecName, + 'hostProcess': obj.hostProcess, + 'runAsUserName': obj.runAsUserName, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * + * @schema io.k8s.api.core.v1.AzureFileVolumeSource + */ +export interface AzureFileVolumeSource { + /** + * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * + * @schema io.k8s.api.core.v1.AzureFileVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * secretName is the name of secret that contains Azure Storage Account Name and Key + * + * @schema io.k8s.api.core.v1.AzureFileVolumeSource#secretName + */ + readonly secretName: string; + + /** + * shareName is the azure share Name + * + * @schema io.k8s.api.core.v1.AzureFileVolumeSource#shareName + */ + readonly shareName: string; + +} + +/** + * Converts an object of type 'AzureFileVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_AzureFileVolumeSource(obj: AzureFileVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'readOnly': obj.readOnly, + 'secretName': obj.secretName, + 'shareName': obj.shareName, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. + * + * @schema io.k8s.api.core.v1.CephFSVolumeSource + */ +export interface CephFsVolumeSource { + /** + * monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * + * @schema io.k8s.api.core.v1.CephFSVolumeSource#monitors + */ + readonly monitors: string[]; + + /** + * path is Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * + * @schema io.k8s.api.core.v1.CephFSVolumeSource#path + */ + readonly path?: string; + + /** + * readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * + * @default false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * @schema io.k8s.api.core.v1.CephFSVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * + * @schema io.k8s.api.core.v1.CephFSVolumeSource#secretFile + */ + readonly secretFile?: string; + + /** + * secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * + * @schema io.k8s.api.core.v1.CephFSVolumeSource#secretRef + */ + readonly secretRef?: LocalObjectReference; + + /** + * user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * + * @schema io.k8s.api.core.v1.CephFSVolumeSource#user + */ + readonly user?: string; + +} + +/** + * Converts an object of type 'CephFsVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CephFsVolumeSource(obj: CephFsVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'monitors': obj.monitors?.map(y => y), + 'path': obj.path, + 'readOnly': obj.readOnly, + 'secretFile': obj.secretFile, + 'secretRef': toJson_LocalObjectReference(obj.secretRef), + 'user': obj.user, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling. + * + * @schema io.k8s.api.core.v1.CinderVolumeSource + */ +export interface CinderVolumeSource { + /** + * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * + * @schema io.k8s.api.core.v1.CinderVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * + * @schema io.k8s.api.core.v1.CinderVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * secretRef is optional: points to a secret object containing parameters used to connect to OpenStack. + * + * @schema io.k8s.api.core.v1.CinderVolumeSource#secretRef + */ + readonly secretRef?: LocalObjectReference; + + /** + * volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * + * @schema io.k8s.api.core.v1.CinderVolumeSource#volumeID + */ + readonly volumeId: string; + +} + +/** + * Converts an object of type 'CinderVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CinderVolumeSource(obj: CinderVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'fsType': obj.fsType, + 'readOnly': obj.readOnly, + 'secretRef': toJson_LocalObjectReference(obj.secretRef), + 'volumeID': obj.volumeId, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Adapts a ConfigMap into a volume. + * + * The contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling. + * + * @schema io.k8s.api.core.v1.ConfigMapVolumeSource + */ +export interface ConfigMapVolumeSource { + /** + * defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + * + * @default 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + * @schema io.k8s.api.core.v1.ConfigMapVolumeSource#defaultMode + */ + readonly defaultMode?: number; + + /** + * items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * + * @schema io.k8s.api.core.v1.ConfigMapVolumeSource#items + */ + readonly items?: KeyToPath[]; + + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * + * @schema io.k8s.api.core.v1.ConfigMapVolumeSource#name + */ + readonly name?: string; + + /** + * optional specify whether the ConfigMap or its keys must be defined + * + * @schema io.k8s.api.core.v1.ConfigMapVolumeSource#optional + */ + readonly optional?: boolean; + +} + +/** + * Converts an object of type 'ConfigMapVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ConfigMapVolumeSource(obj: ConfigMapVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'defaultMode': obj.defaultMode, + 'items': obj.items?.map(y => toJson_KeyToPath(y)), + 'name': obj.name, + 'optional': obj.optional, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a source location of a volume to mount, managed by an external CSI driver + * + * @schema io.k8s.api.core.v1.CSIVolumeSource + */ +export interface CsiVolumeSource { + /** + * driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * + * @schema io.k8s.api.core.v1.CSIVolumeSource#driver + */ + readonly driver: string; + + /** + * fsType to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * + * @schema io.k8s.api.core.v1.CSIVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * + * @schema io.k8s.api.core.v1.CSIVolumeSource#nodePublishSecretRef + */ + readonly nodePublishSecretRef?: LocalObjectReference; + + /** + * readOnly specifies a read-only configuration for the volume. Defaults to false (read/write). + * + * @default false (read/write). + * @schema io.k8s.api.core.v1.CSIVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + * + * @schema io.k8s.api.core.v1.CSIVolumeSource#volumeAttributes + */ + readonly volumeAttributes?: { [key: string]: string }; + +} + +/** + * Converts an object of type 'CsiVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CsiVolumeSource(obj: CsiVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'driver': obj.driver, + 'fsType': obj.fsType, + 'nodePublishSecretRef': toJson_LocalObjectReference(obj.nodePublishSecretRef), + 'readOnly': obj.readOnly, + 'volumeAttributes': ((obj.volumeAttributes) === undefined) ? undefined : (Object.entries(obj.volumeAttributes).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling. + * + * @schema io.k8s.api.core.v1.DownwardAPIVolumeSource + */ +export interface DownwardApiVolumeSource { + /** + * Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + * + * @default 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + * @schema io.k8s.api.core.v1.DownwardAPIVolumeSource#defaultMode + */ + readonly defaultMode?: number; + + /** + * Items is a list of downward API volume file + * + * @schema io.k8s.api.core.v1.DownwardAPIVolumeSource#items + */ + readonly items?: DownwardApiVolumeFile[]; + +} + +/** + * Converts an object of type 'DownwardApiVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_DownwardApiVolumeSource(obj: DownwardApiVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'defaultMode': obj.defaultMode, + 'items': obj.items?.map(y => toJson_DownwardApiVolumeFile(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling. + * + * @schema io.k8s.api.core.v1.EmptyDirVolumeSource + */ +export interface EmptyDirVolumeSource { + /** + * medium represents what type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * + * @schema io.k8s.api.core.v1.EmptyDirVolumeSource#medium + */ + readonly medium?: string; + + /** + * sizeLimit is the total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + * + * @schema io.k8s.api.core.v1.EmptyDirVolumeSource#sizeLimit + */ + readonly sizeLimit?: Quantity; + +} + +/** + * Converts an object of type 'EmptyDirVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_EmptyDirVolumeSource(obj: EmptyDirVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'medium': obj.medium, + 'sizeLimit': obj.sizeLimit?.value, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents an ephemeral volume that is handled by a normal storage driver. + * + * @schema io.k8s.api.core.v1.EphemeralVolumeSource + */ +export interface EphemeralVolumeSource { + /** + * Will be used to create a stand-alone PVC to provision the volume. The pod in which this EphemeralVolumeSource is embedded will be the owner of the PVC, i.e. the PVC will be deleted together with the pod. The name of the PVC will be `-` where `` is the name from the `PodSpec.Volumes` array entry. Pod validation will reject the pod if the concatenated name is not valid for a PVC (for example, too long). + * + * An existing PVC with that name that is not owned by the pod will *not* be used for the pod to avoid using an unrelated volume by mistake. Starting the pod is then blocked until the unrelated PVC is removed. If such a pre-created PVC is meant to be used by the pod, the PVC has to updated with an owner reference to the pod once the pod exists. Normally this should not be necessary, but it may be useful when manually reconstructing a broken cluster. + * + * This field is read-only and no changes will be made by Kubernetes to the PVC after it has been created. + * + * Required, must not be nil. + * + * @schema io.k8s.api.core.v1.EphemeralVolumeSource#volumeClaimTemplate + */ + readonly volumeClaimTemplate?: PersistentVolumeClaimTemplate; + +} + +/** + * Converts an object of type 'EphemeralVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_EphemeralVolumeSource(obj: EphemeralVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'volumeClaimTemplate': toJson_PersistentVolumeClaimTemplate(obj.volumeClaimTemplate), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * + * @schema io.k8s.api.core.v1.FlexVolumeSource + */ +export interface FlexVolumeSource { + /** + * driver is the name of the driver to use for this volume. + * + * @schema io.k8s.api.core.v1.FlexVolumeSource#driver + */ + readonly driver: string; + + /** + * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * + * @schema io.k8s.api.core.v1.FlexVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * options is Optional: this field holds extra command options if any. + * + * @schema io.k8s.api.core.v1.FlexVolumeSource#options + */ + readonly options?: { [key: string]: string }; + + /** + * readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * + * @schema io.k8s.api.core.v1.FlexVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * secretRef is Optional: secretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + * + * @schema io.k8s.api.core.v1.FlexVolumeSource#secretRef + */ + readonly secretRef?: LocalObjectReference; + +} + +/** + * Converts an object of type 'FlexVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_FlexVolumeSource(obj: FlexVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'driver': obj.driver, + 'fsType': obj.fsType, + 'options': ((obj.options) === undefined) ? undefined : (Object.entries(obj.options).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + 'readOnly': obj.readOnly, + 'secretRef': toJson_LocalObjectReference(obj.secretRef), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling. + * + * DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * + * @schema io.k8s.api.core.v1.GitRepoVolumeSource + */ +export interface GitRepoVolumeSource { + /** + * directory is the target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * + * @schema io.k8s.api.core.v1.GitRepoVolumeSource#directory + */ + readonly directory?: string; + + /** + * repository is the URL + * + * @schema io.k8s.api.core.v1.GitRepoVolumeSource#repository + */ + readonly repository: string; + + /** + * revision is the commit hash for the specified revision. + * + * @schema io.k8s.api.core.v1.GitRepoVolumeSource#revision + */ + readonly revision?: string; + +} + +/** + * Converts an object of type 'GitRepoVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_GitRepoVolumeSource(obj: GitRepoVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'directory': obj.directory, + 'repository': obj.repository, + 'revision': obj.revision, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling. + * + * @schema io.k8s.api.core.v1.GlusterfsVolumeSource + */ +export interface GlusterfsVolumeSource { + /** + * endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * + * @schema io.k8s.api.core.v1.GlusterfsVolumeSource#endpoints + */ + readonly endpoints: string; + + /** + * path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * + * @schema io.k8s.api.core.v1.GlusterfsVolumeSource#path + */ + readonly path: string; + + /** + * readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * + * @default false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * @schema io.k8s.api.core.v1.GlusterfsVolumeSource#readOnly + */ + readonly readOnly?: boolean; + +} + +/** + * Converts an object of type 'GlusterfsVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_GlusterfsVolumeSource(obj: GlusterfsVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'endpoints': obj.endpoints, + 'path': obj.path, + 'readOnly': obj.readOnly, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling. + * + * @schema io.k8s.api.core.v1.ISCSIVolumeSource + */ +export interface IscsiVolumeSource { + /** + * chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication + * + * @schema io.k8s.api.core.v1.ISCSIVolumeSource#chapAuthDiscovery + */ + readonly chapAuthDiscovery?: boolean; + + /** + * chapAuthSession defines whether support iSCSI Session CHAP authentication + * + * @schema io.k8s.api.core.v1.ISCSIVolumeSource#chapAuthSession + */ + readonly chapAuthSession?: boolean; + + /** + * fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * + * @schema io.k8s.api.core.v1.ISCSIVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * + * @schema io.k8s.api.core.v1.ISCSIVolumeSource#initiatorName + */ + readonly initiatorName?: string; + + /** + * iqn is the target iSCSI Qualified Name. + * + * @schema io.k8s.api.core.v1.ISCSIVolumeSource#iqn + */ + readonly iqn: string; + + /** + * iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * + * @default default' (tcp). + * @schema io.k8s.api.core.v1.ISCSIVolumeSource#iscsiInterface + */ + readonly iscsiInterface?: string; + + /** + * lun represents iSCSI Target Lun number. + * + * @schema io.k8s.api.core.v1.ISCSIVolumeSource#lun + */ + readonly lun: number; + + /** + * portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * + * @schema io.k8s.api.core.v1.ISCSIVolumeSource#portals + */ + readonly portals?: string[]; + + /** + * readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * + * @default false. + * @schema io.k8s.api.core.v1.ISCSIVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * secretRef is the CHAP Secret for iSCSI target and initiator authentication + * + * @schema io.k8s.api.core.v1.ISCSIVolumeSource#secretRef + */ + readonly secretRef?: LocalObjectReference; + + /** + * targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * + * @schema io.k8s.api.core.v1.ISCSIVolumeSource#targetPortal + */ + readonly targetPortal: string; + +} + +/** + * Converts an object of type 'IscsiVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_IscsiVolumeSource(obj: IscsiVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'chapAuthDiscovery': obj.chapAuthDiscovery, + 'chapAuthSession': obj.chapAuthSession, + 'fsType': obj.fsType, + 'initiatorName': obj.initiatorName, + 'iqn': obj.iqn, + 'iscsiInterface': obj.iscsiInterface, + 'lun': obj.lun, + 'portals': obj.portals?.map(y => y), + 'readOnly': obj.readOnly, + 'secretRef': toJson_LocalObjectReference(obj.secretRef), + 'targetPortal': obj.targetPortal, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system). + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimVolumeSource + */ +export interface PersistentVolumeClaimVolumeSource { + /** + * claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimVolumeSource#claimName + */ + readonly claimName: string; + + /** + * readOnly Will force the ReadOnly setting in VolumeMounts. Default false. + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimVolumeSource#readOnly + */ + readonly readOnly?: boolean; + +} + +/** + * Converts an object of type 'PersistentVolumeClaimVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PersistentVolumeClaimVolumeSource(obj: PersistentVolumeClaimVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'claimName': obj.claimName, + 'readOnly': obj.readOnly, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a projected volume source + * + * @schema io.k8s.api.core.v1.ProjectedVolumeSource + */ +export interface ProjectedVolumeSource { + /** + * defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + * + * @schema io.k8s.api.core.v1.ProjectedVolumeSource#defaultMode + */ + readonly defaultMode?: number; + + /** + * sources is the list of volume projections + * + * @schema io.k8s.api.core.v1.ProjectedVolumeSource#sources + */ + readonly sources?: VolumeProjection[]; + +} + +/** + * Converts an object of type 'ProjectedVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ProjectedVolumeSource(obj: ProjectedVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'defaultMode': obj.defaultMode, + 'sources': obj.sources?.map(y => toJson_VolumeProjection(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. + * + * @schema io.k8s.api.core.v1.RBDVolumeSource + */ +export interface RbdVolumeSource { + /** + * fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * + * @schema io.k8s.api.core.v1.RBDVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * + * @schema io.k8s.api.core.v1.RBDVolumeSource#image + */ + readonly image: string; + + /** + * keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * + * @default etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * @schema io.k8s.api.core.v1.RBDVolumeSource#keyring + */ + readonly keyring?: string; + + /** + * monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * + * @schema io.k8s.api.core.v1.RBDVolumeSource#monitors + */ + readonly monitors: string[]; + + /** + * pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * + * @default rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * @schema io.k8s.api.core.v1.RBDVolumeSource#pool + */ + readonly pool?: string; + + /** + * readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * + * @default false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * @schema io.k8s.api.core.v1.RBDVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * + * @default nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * @schema io.k8s.api.core.v1.RBDVolumeSource#secretRef + */ + readonly secretRef?: LocalObjectReference; + + /** + * user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * + * @default admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * @schema io.k8s.api.core.v1.RBDVolumeSource#user + */ + readonly user?: string; + +} + +/** + * Converts an object of type 'RbdVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_RbdVolumeSource(obj: RbdVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'fsType': obj.fsType, + 'image': obj.image, + 'keyring': obj.keyring, + 'monitors': obj.monitors?.map(y => y), + 'pool': obj.pool, + 'readOnly': obj.readOnly, + 'secretRef': toJson_LocalObjectReference(obj.secretRef), + 'user': obj.user, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ScaleIOVolumeSource represents a persistent ScaleIO volume + * + * @schema io.k8s.api.core.v1.ScaleIOVolumeSource + */ +export interface ScaleIoVolumeSource { + /** + * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * + * @default xfs". + * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * gateway is the host address of the ScaleIO API Gateway. + * + * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#gateway + */ + readonly gateway: string; + + /** + * protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. + * + * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#protectionDomain + */ + readonly protectionDomain?: string; + + /** + * readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * + * @default false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * + * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#secretRef + */ + readonly secretRef: LocalObjectReference; + + /** + * sslEnabled Flag enable/disable SSL communication with Gateway, default false + * + * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#sslEnabled + */ + readonly sslEnabled?: boolean; + + /** + * storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * + * @default ThinProvisioned. + * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#storageMode + */ + readonly storageMode?: string; + + /** + * storagePool is the ScaleIO Storage Pool associated with the protection domain. + * + * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#storagePool + */ + readonly storagePool?: string; + + /** + * system is the name of the storage system as configured in ScaleIO. + * + * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#system + */ + readonly system: string; + + /** + * volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source. + * + * @schema io.k8s.api.core.v1.ScaleIOVolumeSource#volumeName + */ + readonly volumeName?: string; + +} + +/** + * Converts an object of type 'ScaleIoVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ScaleIoVolumeSource(obj: ScaleIoVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'fsType': obj.fsType, + 'gateway': obj.gateway, + 'protectionDomain': obj.protectionDomain, + 'readOnly': obj.readOnly, + 'secretRef': toJson_LocalObjectReference(obj.secretRef), + 'sslEnabled': obj.sslEnabled, + 'storageMode': obj.storageMode, + 'storagePool': obj.storagePool, + 'system': obj.system, + 'volumeName': obj.volumeName, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Adapts a Secret into a volume. + * + * The contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling. + * + * @schema io.k8s.api.core.v1.SecretVolumeSource + */ +export interface SecretVolumeSource { + /** + * defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + * + * @default 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + * @schema io.k8s.api.core.v1.SecretVolumeSource#defaultMode + */ + readonly defaultMode?: number; + + /** + * items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * + * @schema io.k8s.api.core.v1.SecretVolumeSource#items + */ + readonly items?: KeyToPath[]; + + /** + * optional field specify whether the Secret or its keys must be defined + * + * @schema io.k8s.api.core.v1.SecretVolumeSource#optional + */ + readonly optional?: boolean; + + /** + * secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * + * @schema io.k8s.api.core.v1.SecretVolumeSource#secretName + */ + readonly secretName?: string; + +} + +/** + * Converts an object of type 'SecretVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_SecretVolumeSource(obj: SecretVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'defaultMode': obj.defaultMode, + 'items': obj.items?.map(y => toJson_KeyToPath(y)), + 'optional': obj.optional, + 'secretName': obj.secretName, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents a StorageOS persistent volume resource. + * + * @schema io.k8s.api.core.v1.StorageOSVolumeSource + */ +export interface StorageOsVolumeSource { + /** + * fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * + * @schema io.k8s.api.core.v1.StorageOSVolumeSource#fsType + */ + readonly fsType?: string; + + /** + * readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * + * @schema io.k8s.api.core.v1.StorageOSVolumeSource#readOnly + */ + readonly readOnly?: boolean; + + /** + * secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * + * @schema io.k8s.api.core.v1.StorageOSVolumeSource#secretRef + */ + readonly secretRef?: LocalObjectReference; + + /** + * volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * + * @schema io.k8s.api.core.v1.StorageOSVolumeSource#volumeName + */ + readonly volumeName?: string; + + /** + * volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + * + * @schema io.k8s.api.core.v1.StorageOSVolumeSource#volumeNamespace + */ + readonly volumeNamespace?: string; + +} + +/** + * Converts an object of type 'StorageOsVolumeSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_StorageOsVolumeSource(obj: StorageOsVolumeSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'fsType': obj.fsType, + 'readOnly': obj.readOnly, + 'secretRef': toJson_LocalObjectReference(obj.secretRef), + 'volumeName': obj.volumeName, + 'volumeNamespace': obj.volumeNamespace, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values. + * + * @schema io.k8s.api.core.v1.ScopedResourceSelectorRequirement + */ +export interface ScopedResourceSelectorRequirement { + /** + * Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. + * + * + * + * @schema io.k8s.api.core.v1.ScopedResourceSelectorRequirement#operator + */ + readonly operator: string; + + /** + * The name of the scope that the selector applies to. + * + * + * + * @schema io.k8s.api.core.v1.ScopedResourceSelectorRequirement#scopeName + */ + readonly scopeName: string; + + /** + * An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. + * + * @schema io.k8s.api.core.v1.ScopedResourceSelectorRequirement#values + */ + readonly values?: string[]; + +} + +/** + * Converts an object of type 'ScopedResourceSelectorRequirement' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ScopedResourceSelectorRequirement(obj: ScopedResourceSelectorRequirement | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'operator': obj.operator, + 'scopeName': obj.scopeName, + 'values': obj.values?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ClientIPConfig represents the configurations of Client IP based session affinity. + * + * @schema io.k8s.api.core.v1.ClientIPConfig + */ +export interface ClientIpConfig { + /** + * timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP". Default value is 10800(for 3 hours). + * + * @schema io.k8s.api.core.v1.ClientIPConfig#timeoutSeconds + */ + readonly timeoutSeconds?: number; + +} + +/** + * Converts an object of type 'ClientIpConfig' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ClientIpConfig(obj: ClientIpConfig | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'timeoutSeconds': obj.timeoutSeconds, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ForZone provides information about which zones should consume this endpoint. + * + * @schema io.k8s.api.discovery.v1.ForZone + */ +export interface ForZone { + /** + * name represents the name of the zone. + * + * @schema io.k8s.api.discovery.v1.ForZone#name + */ + readonly name: string; + +} + +/** + * Converts an object of type 'ForZone' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ForZone(obj: ForZone | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * 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. + * + * @schema io.k8s.api.flowcontrol.v1beta1.NonResourcePolicyRule + */ +export interface NonResourcePolicyRuleV1Beta1 { + /** + * `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. + * + * @schema io.k8s.api.flowcontrol.v1beta1.NonResourcePolicyRule#nonResourceURLs + */ + readonly nonResourceUrLs: string[]; + + /** + * `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. + * + * @schema io.k8s.api.flowcontrol.v1beta1.NonResourcePolicyRule#verbs + */ + readonly verbs: string[]; + +} + +/** + * Converts an object of type 'NonResourcePolicyRuleV1Beta1' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_NonResourcePolicyRuleV1Beta1(obj: NonResourcePolicyRuleV1Beta1 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'nonResourceURLs': obj.nonResourceUrLs?.map(y => y), + 'verbs': obj.verbs?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==""`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace. + * + * @schema io.k8s.api.flowcontrol.v1beta1.ResourcePolicyRule + */ +export interface ResourcePolicyRuleV1Beta1 { + /** + * `apiGroups` is a list of matching API groups and may not be empty. "*" matches all API groups and, if present, must be the only entry. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta1.ResourcePolicyRule#apiGroups + */ + readonly apiGroups: string[]; + + /** + * `clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list. + * + * @schema io.k8s.api.flowcontrol.v1beta1.ResourcePolicyRule#clusterScope + */ + readonly clusterScope?: boolean; + + /** + * `namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains "*". Note that "*" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true. + * + * @schema io.k8s.api.flowcontrol.v1beta1.ResourcePolicyRule#namespaces + */ + readonly namespaces?: string[]; + + /** + * `resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ "services", "nodes/status" ]. This list may not be empty. "*" matches all resources and, if present, must be the only entry. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta1.ResourcePolicyRule#resources + */ + readonly resources: string[]; + + /** + * `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs and, if present, must be the only entry. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta1.ResourcePolicyRule#verbs + */ + readonly verbs: string[]; + +} + +/** + * Converts an object of type 'ResourcePolicyRuleV1Beta1' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ResourcePolicyRuleV1Beta1(obj: ResourcePolicyRuleV1Beta1 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'apiGroups': obj.apiGroups?.map(y => y), + 'clusterScope': obj.clusterScope, + 'namespaces': obj.namespaces?.map(y => y), + 'resources': obj.resources?.map(y => y), + 'verbs': obj.verbs?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account. + * + * @schema io.k8s.api.flowcontrol.v1beta1.Subject + */ +export interface SubjectV1Beta1 { + /** + * `group` matches based on user group name. + * + * @schema io.k8s.api.flowcontrol.v1beta1.Subject#group + */ + readonly group?: GroupSubjectV1Beta1; + + /** + * `kind` indicates which one of the other fields is non-empty. Required + * + * @schema io.k8s.api.flowcontrol.v1beta1.Subject#kind + */ + readonly kind: string; + + /** + * `serviceAccount` matches ServiceAccounts. + * + * @schema io.k8s.api.flowcontrol.v1beta1.Subject#serviceAccount + */ + readonly serviceAccount?: ServiceAccountSubjectV1Beta1; + + /** + * `user` matches based on username. + * + * @schema io.k8s.api.flowcontrol.v1beta1.Subject#user + */ + readonly user?: UserSubjectV1Beta1; + +} + +/** + * Converts an object of type 'SubjectV1Beta1' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_SubjectV1Beta1(obj: SubjectV1Beta1 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'group': toJson_GroupSubjectV1Beta1(obj.group), + 'kind': obj.kind, + 'serviceAccount': toJson_ServiceAccountSubjectV1Beta1(obj.serviceAccount), + 'user': toJson_UserSubjectV1Beta1(obj.user), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * LimitResponse defines how to handle requests that can not be executed right now. + * + * @schema io.k8s.api.flowcontrol.v1beta1.LimitResponse + */ +export interface LimitResponseV1Beta1 { + /** + * `queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `"Queue"`. + * + * @schema io.k8s.api.flowcontrol.v1beta1.LimitResponse#queuing + */ + readonly queuing?: QueuingConfigurationV1Beta1; + + /** + * `type` is "Queue" or "Reject". "Queue" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. "Reject" means that requests that can not be executed upon arrival are rejected. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta1.LimitResponse#type + */ + readonly type: string; + +} + +/** + * Converts an object of type 'LimitResponseV1Beta1' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_LimitResponseV1Beta1(obj: LimitResponseV1Beta1 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'queuing': toJson_QueuingConfigurationV1Beta1(obj.queuing), + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * 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. + * + * @schema io.k8s.api.flowcontrol.v1beta2.NonResourcePolicyRule + */ +export interface NonResourcePolicyRuleV1Beta2 { + /** + * `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. + * + * @schema io.k8s.api.flowcontrol.v1beta2.NonResourcePolicyRule#nonResourceURLs + */ + readonly nonResourceUrLs: string[]; + + /** + * `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. + * + * @schema io.k8s.api.flowcontrol.v1beta2.NonResourcePolicyRule#verbs + */ + readonly verbs: string[]; + +} + +/** + * Converts an object of type 'NonResourcePolicyRuleV1Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_NonResourcePolicyRuleV1Beta2(obj: NonResourcePolicyRuleV1Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'nonResourceURLs': obj.nonResourceUrLs?.map(y => y), + 'verbs': obj.verbs?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==""`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace. + * + * @schema io.k8s.api.flowcontrol.v1beta2.ResourcePolicyRule + */ +export interface ResourcePolicyRuleV1Beta2 { + /** + * `apiGroups` is a list of matching API groups and may not be empty. "*" matches all API groups and, if present, must be the only entry. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta2.ResourcePolicyRule#apiGroups + */ + readonly apiGroups: string[]; + + /** + * `clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list. + * + * @schema io.k8s.api.flowcontrol.v1beta2.ResourcePolicyRule#clusterScope + */ + readonly clusterScope?: boolean; + + /** + * `namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains "*". Note that "*" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true. + * + * @schema io.k8s.api.flowcontrol.v1beta2.ResourcePolicyRule#namespaces + */ + readonly namespaces?: string[]; + + /** + * `resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ "services", "nodes/status" ]. This list may not be empty. "*" matches all resources and, if present, must be the only entry. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta2.ResourcePolicyRule#resources + */ + readonly resources: string[]; + + /** + * `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs and, if present, must be the only entry. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta2.ResourcePolicyRule#verbs + */ + readonly verbs: string[]; + +} + +/** + * Converts an object of type 'ResourcePolicyRuleV1Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ResourcePolicyRuleV1Beta2(obj: ResourcePolicyRuleV1Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'apiGroups': obj.apiGroups?.map(y => y), + 'clusterScope': obj.clusterScope, + 'namespaces': obj.namespaces?.map(y => y), + 'resources': obj.resources?.map(y => y), + 'verbs': obj.verbs?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account. + * + * @schema io.k8s.api.flowcontrol.v1beta2.Subject + */ +export interface SubjectV1Beta2 { + /** + * `group` matches based on user group name. + * + * @schema io.k8s.api.flowcontrol.v1beta2.Subject#group + */ + readonly group?: GroupSubjectV1Beta2; + + /** + * `kind` indicates which one of the other fields is non-empty. Required + * + * @schema io.k8s.api.flowcontrol.v1beta2.Subject#kind + */ + readonly kind: string; + + /** + * `serviceAccount` matches ServiceAccounts. + * + * @schema io.k8s.api.flowcontrol.v1beta2.Subject#serviceAccount + */ + readonly serviceAccount?: ServiceAccountSubjectV1Beta2; + + /** + * `user` matches based on username. + * + * @schema io.k8s.api.flowcontrol.v1beta2.Subject#user + */ + readonly user?: UserSubjectV1Beta2; + +} + +/** + * Converts an object of type 'SubjectV1Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_SubjectV1Beta2(obj: SubjectV1Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'group': toJson_GroupSubjectV1Beta2(obj.group), + 'kind': obj.kind, + 'serviceAccount': toJson_ServiceAccountSubjectV1Beta2(obj.serviceAccount), + 'user': toJson_UserSubjectV1Beta2(obj.user), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * LimitResponse defines how to handle requests that can not be executed right now. + * + * @schema io.k8s.api.flowcontrol.v1beta2.LimitResponse + */ +export interface LimitResponseV1Beta2 { + /** + * `queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `"Queue"`. + * + * @schema io.k8s.api.flowcontrol.v1beta2.LimitResponse#queuing + */ + readonly queuing?: QueuingConfigurationV1Beta2; + + /** + * `type` is "Queue" or "Reject". "Queue" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. "Reject" means that requests that can not be executed upon arrival are rejected. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta2.LimitResponse#type + */ + readonly type: string; + +} + +/** + * Converts an object of type 'LimitResponseV1Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_LimitResponseV1Beta2(obj: LimitResponseV1Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'queuing': toJson_QueuingConfigurationV1Beta2(obj.queuing), + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * IngressServiceBackend references a Kubernetes Service as a Backend. + * + * @schema io.k8s.api.networking.v1.IngressServiceBackend + */ +export interface IngressServiceBackend { + /** + * Name is the referenced service. The service must exist in the same namespace as the Ingress object. + * + * @schema io.k8s.api.networking.v1.IngressServiceBackend#name + */ + readonly name: string; + + /** + * Port of the referenced service. A port name or port number is required for a IngressServiceBackend. + * + * @schema io.k8s.api.networking.v1.IngressServiceBackend#port + */ + readonly port?: ServiceBackendPort; + +} + +/** + * Converts an object of type 'IngressServiceBackend' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_IngressServiceBackend(obj: IngressServiceBackend | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + 'port': toJson_ServiceBackendPort(obj.port), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http:///? -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'. + * + * @schema io.k8s.api.networking.v1.HTTPIngressRuleValue + */ +export interface HttpIngressRuleValue { + /** + * A collection of paths that map requests to backends. + * + * @schema io.k8s.api.networking.v1.HTTPIngressRuleValue#paths + */ + readonly paths: HttpIngressPath[]; + +} + +/** + * Converts an object of type 'HttpIngressRuleValue' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_HttpIngressRuleValue(obj: HttpIngressRuleValue | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'paths': obj.paths?.map(y => toJson_HttpIngressPath(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * NetworkPolicyPort describes a port to allow traffic on + * + * @schema io.k8s.api.networking.v1.NetworkPolicyPort + */ +export interface NetworkPolicyPort { + /** + * If set, indicates that the range of ports from port to endPort, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port. + * + * @schema io.k8s.api.networking.v1.NetworkPolicyPort#endPort + */ + readonly endPort?: number; + + /** + * The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. + * + * @schema io.k8s.api.networking.v1.NetworkPolicyPort#port + */ + readonly port?: IntOrString; + + /** + * The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. + * + * @schema io.k8s.api.networking.v1.NetworkPolicyPort#protocol + */ + readonly protocol?: string; + +} + +/** + * Converts an object of type 'NetworkPolicyPort' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_NetworkPolicyPort(obj: NetworkPolicyPort | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'endPort': obj.endPort, + 'port': obj.port?.value, + 'protocol': obj.protocol, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed + * + * @schema io.k8s.api.networking.v1.NetworkPolicyPeer + */ +export interface NetworkPolicyPeer { + /** + * IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be. + * + * @schema io.k8s.api.networking.v1.NetworkPolicyPeer#ipBlock + */ + readonly ipBlock?: IpBlock; + + /** + * Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. + * + * If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. + * + * @schema io.k8s.api.networking.v1.NetworkPolicyPeer#namespaceSelector + */ + readonly namespaceSelector?: LabelSelector; + + /** + * This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods. + * + * If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. + * + * @schema io.k8s.api.networking.v1.NetworkPolicyPeer#podSelector + */ + readonly podSelector?: LabelSelector; + +} + +/** + * Converts an object of type 'NetworkPolicyPeer' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_NetworkPolicyPeer(obj: NetworkPolicyPeer | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'ipBlock': toJson_IpBlock(obj.ipBlock), + 'namespaceSelector': toJson_LabelSelector(obj.namespaceSelector), + 'podSelector': toJson_LabelSelector(obj.podSelector), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm. + * + * @schema io.k8s.api.core.v1.NodeSelectorTerm + */ +export interface NodeSelectorTerm { + /** + * A list of node selector requirements by node's labels. + * + * @schema io.k8s.api.core.v1.NodeSelectorTerm#matchExpressions + */ + readonly matchExpressions?: NodeSelectorRequirement[]; + + /** + * A list of node selector requirements by node's fields. + * + * @schema io.k8s.api.core.v1.NodeSelectorTerm#matchFields + */ + readonly matchFields?: NodeSelectorRequirement[]; + +} + +/** + * Converts an object of type 'NodeSelectorTerm' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_NodeSelectorTerm(obj: NodeSelectorTerm | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'matchExpressions': obj.matchExpressions?.map(y => toJson_NodeSelectorRequirement(y)), + 'matchFields': obj.matchFields?.map(y => toJson_NodeSelectorRequirement(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * VolumeNodeResources is a set of resource limits for scheduling of volumes. + * + * @schema io.k8s.api.storage.v1.VolumeNodeResources + */ +export interface VolumeNodeResources { + /** + * Maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded. + * + * @schema io.k8s.api.storage.v1.VolumeNodeResources#count + */ + readonly count?: number; + +} + +/** + * Converts an object of type 'VolumeNodeResources' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_VolumeNodeResources(obj: VolumeNodeResources | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'count': obj.count, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * WebhookConversion describes how to call a conversion webhook + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookConversion + */ +export interface WebhookConversion { + /** + * clientConfig is the instructions for how to call the webhook if strategy is `Webhook`. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookConversion#clientConfig + */ + readonly clientConfig?: WebhookClientConfig; + + /** + * conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookConversion#conversionReviewVersions + */ + readonly conversionReviewVersions: string[]; + +} + +/** + * Converts an object of type 'WebhookConversion' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_WebhookConversion(obj: WebhookConversion | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'clientConfig': toJson_WebhookClientConfig(obj.clientConfig), + 'conversionReviewVersions': obj.conversionReviewVersions?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CustomResourceColumnDefinition specifies a column for server side printing. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition + */ +export interface CustomResourceColumnDefinition { + /** + * description is a human readable description of this column. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition#description + */ + readonly description?: string; + + /** + * format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition#format + */ + readonly format?: string; + + /** + * jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition#jsonPath + */ + readonly jsonPath: string; + + /** + * name is a human readable name for the column. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition#name + */ + readonly name: string; + + /** + * priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition#priority + */ + readonly priority?: number; + + /** + * type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition#type + */ + readonly type: string; + +} + +/** + * Converts an object of type 'CustomResourceColumnDefinition' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CustomResourceColumnDefinition(obj: CustomResourceColumnDefinition | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'description': obj.description, + 'format': obj.format, + 'jsonPath': obj.jsonPath, + 'name': obj.name, + 'priority': obj.priority, + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CustomResourceValidation is a list of validation methods for CustomResources. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceValidation + */ +export interface CustomResourceValidation { + /** + * openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceValidation#openAPIV3Schema + */ + readonly openApiv3Schema?: JsonSchemaProps; + +} + +/** + * Converts an object of type 'CustomResourceValidation' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CustomResourceValidation(obj: CustomResourceValidation | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'openAPIV3Schema': toJson_JsonSchemaProps(obj.openApiv3Schema), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CustomResourceSubresources defines the status and scale subresources for CustomResources. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresources + */ +export interface CustomResourceSubresources { + /** + * scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresources#scale + */ + readonly scale?: CustomResourceSubresourceScale; + + /** + * status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresources#status + */ + readonly status?: any; + +} + +/** + * Converts an object of type 'CustomResourceSubresources' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CustomResourceSubresources(obj: CustomResourceSubresources | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'scale': toJson_CustomResourceSubresourceScale(obj.scale), + 'status': obj.status, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * HPAScalingPolicy is a single policy which must hold true for a specified past interval. + * + * @schema io.k8s.api.autoscaling.v2.HPAScalingPolicy + */ +export interface HpaScalingPolicyV2 { + /** + * PeriodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). + * + * @schema io.k8s.api.autoscaling.v2.HPAScalingPolicy#periodSeconds + */ + readonly periodSeconds: number; + + /** + * Type is used to specify the scaling policy. + * + * @schema io.k8s.api.autoscaling.v2.HPAScalingPolicy#type + */ + readonly type: string; + + /** + * Value contains the amount of change which is permitted by the policy. It must be greater than zero + * + * @schema io.k8s.api.autoscaling.v2.HPAScalingPolicy#value + */ + readonly value: number; + +} + +/** + * Converts an object of type 'HpaScalingPolicyV2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_HpaScalingPolicyV2(obj: HpaScalingPolicyV2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'periodSeconds': obj.periodSeconds, + 'type': obj.type, + 'value': obj.value, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * MetricTarget defines the target value, average value, or average utilization of a specific metric + * + * @schema io.k8s.api.autoscaling.v2.MetricTarget + */ +export interface MetricTargetV2 { + /** + * averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type + * + * @schema io.k8s.api.autoscaling.v2.MetricTarget#averageUtilization + */ + readonly averageUtilization?: number; + + /** + * averageValue is the target value of the average of the metric across all relevant pods (as a quantity) + * + * @schema io.k8s.api.autoscaling.v2.MetricTarget#averageValue + */ + readonly averageValue?: Quantity; + + /** + * type represents whether the metric type is Utilization, Value, or AverageValue + * + * @schema io.k8s.api.autoscaling.v2.MetricTarget#type + */ + readonly type: string; + + /** + * value is the target value of the metric (as a quantity). + * + * @schema io.k8s.api.autoscaling.v2.MetricTarget#value + */ + readonly value?: Quantity; + +} + +/** + * Converts an object of type 'MetricTargetV2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_MetricTargetV2(obj: MetricTargetV2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'averageUtilization': obj.averageUtilization, + 'averageValue': obj.averageValue?.value, + 'type': obj.type, + 'value': obj.value?.value, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * MetricIdentifier defines the name and optionally selector for a metric + * + * @schema io.k8s.api.autoscaling.v2.MetricIdentifier + */ +export interface MetricIdentifierV2 { + /** + * name is the name of the given metric + * + * @schema io.k8s.api.autoscaling.v2.MetricIdentifier#name + */ + readonly name: string; + + /** + * selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. + * + * @schema io.k8s.api.autoscaling.v2.MetricIdentifier#selector + */ + readonly selector?: LabelSelector; + +} + +/** + * Converts an object of type 'MetricIdentifierV2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_MetricIdentifierV2(obj: MetricIdentifierV2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + 'selector': toJson_LabelSelector(obj.selector), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * HPAScalingPolicy is a single policy which must hold true for a specified past interval. + * + * @schema io.k8s.api.autoscaling.v2beta2.HPAScalingPolicy + */ +export interface HpaScalingPolicyV2Beta2 { + /** + * PeriodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). + * + * @schema io.k8s.api.autoscaling.v2beta2.HPAScalingPolicy#periodSeconds + */ + readonly periodSeconds: number; + + /** + * Type is used to specify the scaling policy. + * + * @schema io.k8s.api.autoscaling.v2beta2.HPAScalingPolicy#type + */ + readonly type: string; + + /** + * Value contains the amount of change which is permitted by the policy. It must be greater than zero + * + * @schema io.k8s.api.autoscaling.v2beta2.HPAScalingPolicy#value + */ + readonly value: number; + +} + +/** + * Converts an object of type 'HpaScalingPolicyV2Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_HpaScalingPolicyV2Beta2(obj: HpaScalingPolicyV2Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'periodSeconds': obj.periodSeconds, + 'type': obj.type, + 'value': obj.value, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * MetricTarget defines the target value, average value, or average utilization of a specific metric + * + * @schema io.k8s.api.autoscaling.v2beta2.MetricTarget + */ +export interface MetricTargetV2Beta2 { + /** + * averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type + * + * @schema io.k8s.api.autoscaling.v2beta2.MetricTarget#averageUtilization + */ + readonly averageUtilization?: number; + + /** + * averageValue is the target value of the average of the metric across all relevant pods (as a quantity) + * + * @schema io.k8s.api.autoscaling.v2beta2.MetricTarget#averageValue + */ + readonly averageValue?: Quantity; + + /** + * type represents whether the metric type is Utilization, Value, or AverageValue + * + * @schema io.k8s.api.autoscaling.v2beta2.MetricTarget#type + */ + readonly type: string; + + /** + * value is the target value of the metric (as a quantity). + * + * @schema io.k8s.api.autoscaling.v2beta2.MetricTarget#value + */ + readonly value?: Quantity; + +} + +/** + * Converts an object of type 'MetricTargetV2Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_MetricTargetV2Beta2(obj: MetricTargetV2Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'averageUtilization': obj.averageUtilization, + 'averageValue': obj.averageValue?.value, + 'type': obj.type, + 'value': obj.value?.value, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * MetricIdentifier defines the name and optionally selector for a metric + * + * @schema io.k8s.api.autoscaling.v2beta2.MetricIdentifier + */ +export interface MetricIdentifierV2Beta2 { + /** + * name is the name of the given metric + * + * @schema io.k8s.api.autoscaling.v2beta2.MetricIdentifier#name + */ + readonly name: string; + + /** + * selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. + * + * @schema io.k8s.api.autoscaling.v2beta2.MetricIdentifier#selector + */ + readonly selector?: LabelSelector; + +} + +/** + * Converts an object of type 'MetricIdentifierV2Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_MetricIdentifierV2Beta2(obj: MetricIdentifierV2Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + 'selector': toJson_LabelSelector(obj.selector), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check. + * + * @schema io.k8s.api.batch.v1.PodFailurePolicyOnExitCodesRequirement + */ +export interface PodFailurePolicyOnExitCodesRequirement { + /** + * Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template. + * + * @schema io.k8s.api.batch.v1.PodFailurePolicyOnExitCodesRequirement#containerName + */ + readonly containerName?: string; + + /** + * Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are: - In: the requirement is satisfied if at least one container exit code + * (might be multiple if there are multiple containers not restricted + * by the 'containerName' field) is in the set of specified values. + * - NotIn: the requirement is satisfied if at least one container exit code + * (might be multiple if there are multiple containers not restricted + * by the 'containerName' field) is not in the set of specified values. + * Additional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied. + * + * + * + * @schema io.k8s.api.batch.v1.PodFailurePolicyOnExitCodesRequirement#operator + */ + readonly operator: string; + + /** + * Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed. + * + * @schema io.k8s.api.batch.v1.PodFailurePolicyOnExitCodesRequirement#values + */ + readonly values: number[]; + +} + +/** + * Converts an object of type 'PodFailurePolicyOnExitCodesRequirement' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PodFailurePolicyOnExitCodesRequirement(obj: PodFailurePolicyOnExitCodesRequirement | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'containerName': obj.containerName, + 'operator': obj.operator, + 'values': obj.values?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type. + * + * @schema io.k8s.api.batch.v1.PodFailurePolicyOnPodConditionsPattern + */ +export interface PodFailurePolicyOnPodConditionsPattern { + /** + * Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True. + * + * @default True. + * @schema io.k8s.api.batch.v1.PodFailurePolicyOnPodConditionsPattern#status + */ + readonly status: string; + + /** + * Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type. + * + * @schema io.k8s.api.batch.v1.PodFailurePolicyOnPodConditionsPattern#type + */ + readonly type: string; + +} + +/** + * Converts an object of type 'PodFailurePolicyOnPodConditionsPattern' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PodFailurePolicyOnPodConditionsPattern(obj: PodFailurePolicyOnPodConditionsPattern | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'status': obj.status, + 'type': obj.type, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). + * + * @schema io.k8s.api.core.v1.PreferredSchedulingTerm + */ +export interface PreferredSchedulingTerm { + /** + * A node selector term, associated with the corresponding weight. + * + * @schema io.k8s.api.core.v1.PreferredSchedulingTerm#preference + */ + readonly preference: NodeSelectorTerm; + + /** + * Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + * + * @schema io.k8s.api.core.v1.PreferredSchedulingTerm#weight + */ + readonly weight: number; + +} + +/** + * Converts an object of type 'PreferredSchedulingTerm' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PreferredSchedulingTerm(obj: PreferredSchedulingTerm | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'preference': toJson_NodeSelectorTerm(obj.preference), + 'weight': obj.weight, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) + * + * @schema io.k8s.api.core.v1.WeightedPodAffinityTerm + */ +export interface WeightedPodAffinityTerm { + /** + * Required. A pod affinity term, associated with the corresponding weight. + * + * @schema io.k8s.api.core.v1.WeightedPodAffinityTerm#podAffinityTerm + */ + readonly podAffinityTerm: PodAffinityTerm; + + /** + * weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + * + * @schema io.k8s.api.core.v1.WeightedPodAffinityTerm#weight + */ + readonly weight: number; + +} + +/** + * Converts an object of type 'WeightedPodAffinityTerm' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_WeightedPodAffinityTerm(obj: WeightedPodAffinityTerm | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'podAffinityTerm': toJson_PodAffinityTerm(obj.podAffinityTerm), + 'weight': obj.weight, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running + * + * @schema io.k8s.api.core.v1.PodAffinityTerm + */ +export interface PodAffinityTerm { + /** + * A label query over a set of resources, in this case pods. + * + * @schema io.k8s.api.core.v1.PodAffinityTerm#labelSelector + */ + readonly labelSelector?: LabelSelector; + + /** + * A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. + * + * @schema io.k8s.api.core.v1.PodAffinityTerm#namespaceSelector + */ + readonly namespaceSelector?: LabelSelector; + + /** + * namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". + * + * @schema io.k8s.api.core.v1.PodAffinityTerm#namespaces + */ + readonly namespaces?: string[]; + + /** + * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + * + * @schema io.k8s.api.core.v1.PodAffinityTerm#topologyKey + */ + readonly topologyKey: string; + +} + +/** + * Converts an object of type 'PodAffinityTerm' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PodAffinityTerm(obj: PodAffinityTerm | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'labelSelector': toJson_LabelSelector(obj.labelSelector), + 'namespaceSelector': toJson_LabelSelector(obj.namespaceSelector), + 'namespaces': obj.namespaces?.map(y => y), + 'topologyKey': obj.topologyKey, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * EnvVarSource represents a source for the value of an EnvVar. + * + * @schema io.k8s.api.core.v1.EnvVarSource + */ +export interface EnvVarSource { + /** + * Selects a key of a ConfigMap. + * + * @schema io.k8s.api.core.v1.EnvVarSource#configMapKeyRef + */ + readonly configMapKeyRef?: ConfigMapKeySelector; + + /** + * Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs. + * + * @schema io.k8s.api.core.v1.EnvVarSource#fieldRef + */ + readonly fieldRef?: ObjectFieldSelector; + + /** + * Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * + * @schema io.k8s.api.core.v1.EnvVarSource#resourceFieldRef + */ + readonly resourceFieldRef?: ResourceFieldSelector; + + /** + * Selects a key of a secret in the pod's namespace + * + * @schema io.k8s.api.core.v1.EnvVarSource#secretKeyRef + */ + readonly secretKeyRef?: SecretKeySelector; + +} + +/** + * Converts an object of type 'EnvVarSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_EnvVarSource(obj: EnvVarSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'configMapKeyRef': toJson_ConfigMapKeySelector(obj.configMapKeyRef), + 'fieldRef': toJson_ObjectFieldSelector(obj.fieldRef), + 'resourceFieldRef': toJson_ResourceFieldSelector(obj.resourceFieldRef), + 'secretKeyRef': toJson_SecretKeySelector(obj.secretKeyRef), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. + * + * The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables. + * + * @schema io.k8s.api.core.v1.ConfigMapEnvSource + */ +export interface ConfigMapEnvSource { + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * + * @schema io.k8s.api.core.v1.ConfigMapEnvSource#name + */ + readonly name?: string; + + /** + * Specify whether the ConfigMap must be defined + * + * @schema io.k8s.api.core.v1.ConfigMapEnvSource#optional + */ + readonly optional?: boolean; + +} + +/** + * Converts an object of type 'ConfigMapEnvSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ConfigMapEnvSource(obj: ConfigMapEnvSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + 'optional': obj.optional, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * SecretEnvSource selects a Secret to populate the environment variables with. + * + * The contents of the target Secret's Data field will represent the key-value pairs as environment variables. + * + * @schema io.k8s.api.core.v1.SecretEnvSource + */ +export interface SecretEnvSource { + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * + * @schema io.k8s.api.core.v1.SecretEnvSource#name + */ + readonly name?: string; + + /** + * Specify whether the Secret must be defined + * + * @schema io.k8s.api.core.v1.SecretEnvSource#optional + */ + readonly optional?: boolean; + +} + +/** + * Converts an object of type 'SecretEnvSource' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_SecretEnvSource(obj: SecretEnvSource | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + 'optional': obj.optional, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified. + * + * @schema io.k8s.api.core.v1.LifecycleHandler + */ +export interface LifecycleHandler { + /** + * Exec specifies the action to take. + * + * @schema io.k8s.api.core.v1.LifecycleHandler#exec + */ + readonly exec?: ExecAction; + + /** + * HTTPGet specifies the http request to perform. + * + * @schema io.k8s.api.core.v1.LifecycleHandler#httpGet + */ + readonly httpGet?: HttpGetAction; + + /** + * Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified. + * + * @schema io.k8s.api.core.v1.LifecycleHandler#tcpSocket + */ + readonly tcpSocket?: TcpSocketAction; + +} + +/** + * Converts an object of type 'LifecycleHandler' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_LifecycleHandler(obj: LifecycleHandler | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'exec': toJson_ExecAction(obj.exec), + 'httpGet': toJson_HttpGetAction(obj.httpGet), + 'tcpSocket': toJson_TcpSocketAction(obj.tcpSocket), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ExecAction describes a "run in container" action. + * + * @schema io.k8s.api.core.v1.ExecAction + */ +export interface ExecAction { + /** + * Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + * + * @schema io.k8s.api.core.v1.ExecAction#command + */ + readonly command?: string[]; + +} + +/** + * Converts an object of type 'ExecAction' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ExecAction(obj: ExecAction | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'command': obj.command?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * @schema io.k8s.api.core.v1.GRPCAction + */ +export interface GrpcAction { + /** + * Port number of the gRPC service. Number must be in the range 1 to 65535. + * + * @schema io.k8s.api.core.v1.GRPCAction#port + */ + readonly port: number; + + /** + * Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). + * + * If this is not specified, the default behavior is defined by gRPC. + * + * @schema io.k8s.api.core.v1.GRPCAction#service + */ + readonly service?: string; + +} + +/** + * Converts an object of type 'GrpcAction' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_GrpcAction(obj: GrpcAction | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'port': obj.port, + 'service': obj.service, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * HTTPGetAction describes an action based on HTTP Get requests. + * + * @schema io.k8s.api.core.v1.HTTPGetAction + */ +export interface HttpGetAction { + /** + * Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * + * @schema io.k8s.api.core.v1.HTTPGetAction#host + */ + readonly host?: string; + + /** + * Custom headers to set in the request. HTTP allows repeated headers. + * + * @schema io.k8s.api.core.v1.HTTPGetAction#httpHeaders + */ + readonly httpHeaders?: HttpHeader[]; + + /** + * Path to access on the HTTP server. + * + * @schema io.k8s.api.core.v1.HTTPGetAction#path + */ + readonly path?: string; + + /** + * Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * + * @schema io.k8s.api.core.v1.HTTPGetAction#port + */ + readonly port: IntOrString; + + /** + * Scheme to use for connecting to the host. Defaults to HTTP. + * + * + * + * @default HTTP. + * @schema io.k8s.api.core.v1.HTTPGetAction#scheme + */ + readonly scheme?: string; + +} + +/** + * Converts an object of type 'HttpGetAction' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_HttpGetAction(obj: HttpGetAction | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'host': obj.host, + 'httpHeaders': obj.httpHeaders?.map(y => toJson_HttpHeader(y)), + 'path': obj.path, + 'port': obj.port?.value, + 'scheme': obj.scheme, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * TCPSocketAction describes an action based on opening a socket + * + * @schema io.k8s.api.core.v1.TCPSocketAction + */ +export interface TcpSocketAction { + /** + * Optional: Host name to connect to, defaults to the pod IP. + * + * @schema io.k8s.api.core.v1.TCPSocketAction#host + */ + readonly host?: string; + + /** + * Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * + * @schema io.k8s.api.core.v1.TCPSocketAction#port + */ + readonly port: IntOrString; + +} + +/** + * Converts an object of type 'TcpSocketAction' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_TcpSocketAction(obj: TcpSocketAction | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'host': obj.host, + 'port': obj.port?.value, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Adds and removes POSIX capabilities from running containers. + * + * @schema io.k8s.api.core.v1.Capabilities + */ +export interface Capabilities { + /** + * Added capabilities + * + * @schema io.k8s.api.core.v1.Capabilities#add + */ + readonly add?: string[]; + + /** + * Removed capabilities + * + * @schema io.k8s.api.core.v1.Capabilities#drop + */ + readonly drop?: string[]; + +} + +/** + * Converts an object of type 'Capabilities' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_Capabilities(obj: Capabilities | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'add': obj.add?.map(y => y), + 'drop': obj.drop?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Maps a string key to a path within a volume. + * + * @schema io.k8s.api.core.v1.KeyToPath + */ +export interface KeyToPath { + /** + * key is the key to project. + * + * @schema io.k8s.api.core.v1.KeyToPath#key + */ + readonly key: string; + + /** + * mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + * + * @schema io.k8s.api.core.v1.KeyToPath#mode + */ + readonly mode?: number; + + /** + * path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + * + * @schema io.k8s.api.core.v1.KeyToPath#path + */ + readonly path: string; + +} + +/** + * Converts an object of type 'KeyToPath' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_KeyToPath(obj: KeyToPath | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'key': obj.key, + 'mode': obj.mode, + 'path': obj.path, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * DownwardAPIVolumeFile represents information to create the file containing the pod field + * + * @schema io.k8s.api.core.v1.DownwardAPIVolumeFile + */ +export interface DownwardApiVolumeFile { + /** + * Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * + * @schema io.k8s.api.core.v1.DownwardAPIVolumeFile#fieldRef + */ + readonly fieldRef?: ObjectFieldSelector; + + /** + * Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + * + * @schema io.k8s.api.core.v1.DownwardAPIVolumeFile#mode + */ + readonly mode?: number; + + /** + * Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * + * @schema io.k8s.api.core.v1.DownwardAPIVolumeFile#path + */ + readonly path: string; + + /** + * Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + * + * @schema io.k8s.api.core.v1.DownwardAPIVolumeFile#resourceFieldRef + */ + readonly resourceFieldRef?: ResourceFieldSelector; + +} + +/** + * Converts an object of type 'DownwardApiVolumeFile' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_DownwardApiVolumeFile(obj: DownwardApiVolumeFile | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'fieldRef': toJson_ObjectFieldSelector(obj.fieldRef), + 'mode': obj.mode, + 'path': obj.path, + 'resourceFieldRef': toJson_ResourceFieldSelector(obj.resourceFieldRef), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource. + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimTemplate + */ +export interface PersistentVolumeClaimTemplate { + /** + * May contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation. + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimTemplate#metadata + */ + readonly metadata?: ObjectMeta; + + /** + * The specification for the PersistentVolumeClaim. The entire content is copied unchanged into the PVC that gets created from this template. The same fields as in a PersistentVolumeClaim are also valid here. + * + * @schema io.k8s.api.core.v1.PersistentVolumeClaimTemplate#spec + */ + readonly spec: PersistentVolumeClaimSpec; + +} + +/** + * Converts an object of type 'PersistentVolumeClaimTemplate' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_PersistentVolumeClaimTemplate(obj: PersistentVolumeClaimTemplate | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'metadata': toJson_ObjectMeta(obj.metadata), + 'spec': toJson_PersistentVolumeClaimSpec(obj.spec), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Projection that may be projected along with other supported volume types + * + * @schema io.k8s.api.core.v1.VolumeProjection + */ +export interface VolumeProjection { + /** + * configMap information about the configMap data to project + * + * @schema io.k8s.api.core.v1.VolumeProjection#configMap + */ + readonly configMap?: ConfigMapProjection; + + /** + * downwardAPI information about the downwardAPI data to project + * + * @schema io.k8s.api.core.v1.VolumeProjection#downwardAPI + */ + readonly downwardApi?: DownwardApiProjection; + + /** + * secret information about the secret data to project + * + * @schema io.k8s.api.core.v1.VolumeProjection#secret + */ + readonly secret?: SecretProjection; + + /** + * serviceAccountToken is information about the serviceAccountToken data to project + * + * @schema io.k8s.api.core.v1.VolumeProjection#serviceAccountToken + */ + readonly serviceAccountToken?: ServiceAccountTokenProjection; + +} + +/** + * Converts an object of type 'VolumeProjection' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_VolumeProjection(obj: VolumeProjection | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'configMap': toJson_ConfigMapProjection(obj.configMap), + 'downwardAPI': toJson_DownwardApiProjection(obj.downwardApi), + 'secret': toJson_SecretProjection(obj.secret), + 'serviceAccountToken': toJson_ServiceAccountTokenProjection(obj.serviceAccountToken), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * GroupSubject holds detailed information for group-kind subject. + * + * @schema io.k8s.api.flowcontrol.v1beta1.GroupSubject + */ +export interface GroupSubjectV1Beta1 { + /** + * name is the user group that matches, or "*" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta1.GroupSubject#name + */ + readonly name: string; + +} + +/** + * Converts an object of type 'GroupSubjectV1Beta1' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_GroupSubjectV1Beta1(obj: GroupSubjectV1Beta1 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ServiceAccountSubject holds detailed information for service-account-kind subject. + * + * @schema io.k8s.api.flowcontrol.v1beta1.ServiceAccountSubject + */ +export interface ServiceAccountSubjectV1Beta1 { + /** + * `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta1.ServiceAccountSubject#name + */ + readonly name: string; + + /** + * `namespace` is the namespace of matching ServiceAccount objects. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta1.ServiceAccountSubject#namespace + */ + readonly namespace: string; + +} + +/** + * Converts an object of type 'ServiceAccountSubjectV1Beta1' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ServiceAccountSubjectV1Beta1(obj: ServiceAccountSubjectV1Beta1 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + 'namespace': obj.namespace, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * UserSubject holds detailed information for user-kind subject. + * + * @schema io.k8s.api.flowcontrol.v1beta1.UserSubject + */ +export interface UserSubjectV1Beta1 { + /** + * `name` is the username that matches, or "*" to match all usernames. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta1.UserSubject#name + */ + readonly name: string; + +} + +/** + * Converts an object of type 'UserSubjectV1Beta1' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_UserSubjectV1Beta1(obj: UserSubjectV1Beta1 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * QueuingConfiguration holds the configuration parameters for queuing + * + * @schema io.k8s.api.flowcontrol.v1beta1.QueuingConfiguration + */ +export interface QueuingConfigurationV1Beta1 { + /** + * `handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8. + * + * @schema io.k8s.api.flowcontrol.v1beta1.QueuingConfiguration#handSize + */ + readonly handSize?: number; + + /** + * `queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50. + * + * @schema io.k8s.api.flowcontrol.v1beta1.QueuingConfiguration#queueLengthLimit + */ + readonly queueLengthLimit?: number; + + /** + * `queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64. + * + * @schema io.k8s.api.flowcontrol.v1beta1.QueuingConfiguration#queues + */ + readonly queues?: number; + +} + +/** + * Converts an object of type 'QueuingConfigurationV1Beta1' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_QueuingConfigurationV1Beta1(obj: QueuingConfigurationV1Beta1 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'handSize': obj.handSize, + 'queueLengthLimit': obj.queueLengthLimit, + 'queues': obj.queues, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * GroupSubject holds detailed information for group-kind subject. + * + * @schema io.k8s.api.flowcontrol.v1beta2.GroupSubject + */ +export interface GroupSubjectV1Beta2 { + /** + * name is the user group that matches, or "*" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta2.GroupSubject#name + */ + readonly name: string; + +} + +/** + * Converts an object of type 'GroupSubjectV1Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_GroupSubjectV1Beta2(obj: GroupSubjectV1Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ServiceAccountSubject holds detailed information for service-account-kind subject. + * + * @schema io.k8s.api.flowcontrol.v1beta2.ServiceAccountSubject + */ +export interface ServiceAccountSubjectV1Beta2 { + /** + * `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta2.ServiceAccountSubject#name + */ + readonly name: string; + + /** + * `namespace` is the namespace of matching ServiceAccount objects. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta2.ServiceAccountSubject#namespace + */ + readonly namespace: string; + +} + +/** + * Converts an object of type 'ServiceAccountSubjectV1Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ServiceAccountSubjectV1Beta2(obj: ServiceAccountSubjectV1Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + 'namespace': obj.namespace, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * UserSubject holds detailed information for user-kind subject. + * + * @schema io.k8s.api.flowcontrol.v1beta2.UserSubject + */ +export interface UserSubjectV1Beta2 { + /** + * `name` is the username that matches, or "*" to match all usernames. Required. + * + * @schema io.k8s.api.flowcontrol.v1beta2.UserSubject#name + */ + readonly name: string; + +} + +/** + * Converts an object of type 'UserSubjectV1Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_UserSubjectV1Beta2(obj: UserSubjectV1Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * QueuingConfiguration holds the configuration parameters for queuing + * + * @schema io.k8s.api.flowcontrol.v1beta2.QueuingConfiguration + */ +export interface QueuingConfigurationV1Beta2 { + /** + * `handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8. + * + * @schema io.k8s.api.flowcontrol.v1beta2.QueuingConfiguration#handSize + */ + readonly handSize?: number; + + /** + * `queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50. + * + * @schema io.k8s.api.flowcontrol.v1beta2.QueuingConfiguration#queueLengthLimit + */ + readonly queueLengthLimit?: number; + + /** + * `queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64. + * + * @schema io.k8s.api.flowcontrol.v1beta2.QueuingConfiguration#queues + */ + readonly queues?: number; + +} + +/** + * Converts an object of type 'QueuingConfigurationV1Beta2' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_QueuingConfigurationV1Beta2(obj: QueuingConfigurationV1Beta2 | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'handSize': obj.handSize, + 'queueLengthLimit': obj.queueLengthLimit, + 'queues': obj.queues, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ServiceBackendPort is the service port being referenced. + * + * @schema io.k8s.api.networking.v1.ServiceBackendPort + */ +export interface ServiceBackendPort { + /** + * Name is the name of the port on the Service. This is a mutually exclusive setting with "Number". + * + * @schema io.k8s.api.networking.v1.ServiceBackendPort#name + */ + readonly name?: string; + + /** + * Number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with "Name". + * + * @schema io.k8s.api.networking.v1.ServiceBackendPort#number + */ + readonly number?: number; + +} + +/** + * Converts an object of type 'ServiceBackendPort' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ServiceBackendPort(obj: ServiceBackendPort | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + 'number': obj.number, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend. + * + * @schema io.k8s.api.networking.v1.HTTPIngressPath + */ +export interface HttpIngressPath { + /** + * Backend defines the referenced service endpoint to which the traffic will be forwarded to. + * + * @schema io.k8s.api.networking.v1.HTTPIngressPath#backend + */ + readonly backend: IngressBackend; + + /** + * Path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional "path" part of a URL as defined by RFC 3986. Paths must begin with a '/' and must be present when using PathType with value "Exact" or "Prefix". + * + * @schema io.k8s.api.networking.v1.HTTPIngressPath#path + */ + readonly path?: string; + + /** + * PathType determines the interpretation of the Path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is + * done on a path element by element basis. A path element refers is the + * list of labels in the path split by the '/' separator. A request is a + * match for path p if every p is an element-wise prefix of p of the + * request path. Note that if the last element of the path is a substring + * of the last element in request path, it is not a match (e.g. /foo/bar + * matches /foo/bar/baz, but does not match /foo/barbaz). + * * ImplementationSpecific: Interpretation of the Path matching is up to + * the IngressClass. Implementations can treat this as a separate PathType + * or treat it identically to Prefix or Exact path types. + * Implementations are required to support all path types. + * + * @schema io.k8s.api.networking.v1.HTTPIngressPath#pathType + */ + readonly pathType: string; + +} + +/** + * Converts an object of type 'HttpIngressPath' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_HttpIngressPath(obj: HttpIngressPath | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'backend': toJson_IngressBackend(obj.backend), + 'path': obj.path, + 'pathType': obj.pathType, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * IPBlock describes a particular CIDR (Ex. "192.168.1.1/24","2001:db9::/64") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule. + * + * @schema io.k8s.api.networking.v1.IPBlock + */ +export interface IpBlock { + /** + * CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" + * + * @schema io.k8s.api.networking.v1.IPBlock#cidr + */ + readonly cidr: string; + + /** + * Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range + * + * @schema io.k8s.api.networking.v1.IPBlock#except + */ + readonly except?: string[]; + +} + +/** + * Converts an object of type 'IpBlock' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_IpBlock(obj: IpBlock | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'cidr': obj.cidr, + 'except': obj.except?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. + * + * @schema io.k8s.api.core.v1.NodeSelectorRequirement + */ +export interface NodeSelectorRequirement { + /** + * The label key that the selector applies to. + * + * @schema io.k8s.api.core.v1.NodeSelectorRequirement#key + */ + readonly key: string; + + /** + * Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * + * + * + * @schema io.k8s.api.core.v1.NodeSelectorRequirement#operator + */ + readonly operator: string; + + /** + * An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. + * + * @schema io.k8s.api.core.v1.NodeSelectorRequirement#values + */ + readonly values?: string[]; + +} + +/** + * Converts an object of type 'NodeSelectorRequirement' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_NodeSelectorRequirement(obj: NodeSelectorRequirement | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'key': obj.key, + 'operator': obj.operator, + 'values': obj.values?.map(y => y), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/). + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps + */ +export interface JsonSchemaProps { + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#$ref + */ + readonly ref?: string; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#$schema + */ + readonly schema?: string; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#additionalItems + */ + readonly additionalItems?: any; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#additionalProperties + */ + readonly additionalProperties?: any; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#allOf + */ + readonly allOf?: JsonSchemaProps[]; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#anyOf + */ + readonly anyOf?: JsonSchemaProps[]; + + /** + * default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#default + */ + readonly default?: any; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#definitions + */ + readonly definitions?: { [key: string]: JsonSchemaProps }; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#dependencies + */ + readonly dependencies?: { [key: string]: any }; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#description + */ + readonly description?: string; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#enum + */ + readonly enum?: any[]; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#example + */ + readonly example?: any; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#exclusiveMaximum + */ + readonly exclusiveMaximum?: boolean; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#exclusiveMinimum + */ + readonly exclusiveMinimum?: boolean; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#externalDocs + */ + readonly externalDocs?: ExternalDocumentation; + + /** + * format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated: + * + * - bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041" - isbn10: an ISBN10 number string like "0321751043" - isbn13: an ISBN13 number string like "978-0321751041" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\d{3}[- ]?\d{2}[- ]?\d{4}$ - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559" - byte: base64 encoded binary data - password: any kind of string - date: a date string like "2006-01-02" as defined by full-date in RFC3339 - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#format + */ + readonly format?: string; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#id + */ + readonly id?: string; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#items + */ + readonly items?: any; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#maxItems + */ + readonly maxItems?: number; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#maxLength + */ + readonly maxLength?: number; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#maxProperties + */ + readonly maxProperties?: number; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#maximum + */ + readonly maximum?: number; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#minItems + */ + readonly minItems?: number; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#minLength + */ + readonly minLength?: number; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#minProperties + */ + readonly minProperties?: number; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#minimum + */ + readonly minimum?: number; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#multipleOf + */ + readonly multipleOf?: number; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#not + */ + readonly not?: JsonSchemaProps; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#nullable + */ + readonly nullable?: boolean; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#oneOf + */ + readonly oneOf?: JsonSchemaProps[]; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#pattern + */ + readonly pattern?: string; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#patternProperties + */ + readonly patternProperties?: { [key: string]: JsonSchemaProps }; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#properties + */ + readonly properties?: { [key: string]: JsonSchemaProps }; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#required + */ + readonly required?: string[]; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#title + */ + readonly title?: string; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#type + */ + readonly type?: string; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#uniqueItems + */ + readonly uniqueItems?: boolean; + + /** + * x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata). + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#x-kubernetes-embedded-resource + */ + readonly xKubernetesEmbeddedResource?: boolean; + + /** + * x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns: + * + * 1) anyOf: + * - type: integer + * - type: string + * 2) allOf: + * - anyOf: + * - type: integer + * - type: string + * - ... zero or more + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#x-kubernetes-int-or-string + */ + readonly xKubernetesIntOrString?: boolean; + + /** + * x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map. + * + * This tag MUST only be used on lists that have the "x-kubernetes-list-type" extension set to "map". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported). + * + * The properties specified must either be required or have a default value, to ensure those properties are present for all list items. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#x-kubernetes-list-map-keys + */ + readonly xKubernetesListMapKeys?: string[]; + + /** + * x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values: + * + * 1) `atomic`: the list is treated as a single entity, like a scalar. + * Atomic lists will be entirely replaced when updated. This extension + * may be used on any type of list (struct, scalar, ...). + * 2) `set`: + * Sets are lists that must not have multiple items with the same value. Each + * value must be a scalar, an object with x-kubernetes-map-type `atomic` or an + * array with x-kubernetes-list-type `atomic`. + * 3) `map`: + * These lists are like maps in that their elements have a non-index key + * used to identify them. Order is preserved upon merge. The map tag + * must only be used on a list with elements of type object. + * Defaults to atomic for arrays. + * + * @default atomic for arrays. + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#x-kubernetes-list-type + */ + readonly xKubernetesListType?: string; + + /** + * x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values: + * + * 1) `granular`: + * These maps are actual maps (key-value pairs) and each fields are independent + * from each other (they can each be manipulated by separate actors). This is + * the default behaviour for all maps. + * 2) `atomic`: the list is treated as a single entity, like a scalar. + * Atomic maps will be entirely replaced when updated. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#x-kubernetes-map-type + */ + readonly xKubernetesMapType?: string; + + /** + * x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#x-kubernetes-preserve-unknown-fields + */ + readonly xKubernetesPreserveUnknownFields?: boolean; + + /** + * x-kubernetes-validations describes a list of validation rules written in the CEL expression language. This field is an alpha-level. Using this field requires the feature gate `CustomResourceValidationExpressions` to be enabled. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps#x-kubernetes-validations + */ + readonly xKubernetesValidations?: ValidationRule[]; + +} + +/** + * Converts an object of type 'JsonSchemaProps' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_JsonSchemaProps(obj: JsonSchemaProps | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + '$ref': obj.ref, + '$schema': obj.schema, + 'additionalItems': obj.additionalItems, + 'additionalProperties': obj.additionalProperties, + 'allOf': obj.allOf?.map(y => toJson_JsonSchemaProps(y)), + 'anyOf': obj.anyOf?.map(y => toJson_JsonSchemaProps(y)), + 'default': obj.default, + 'definitions': ((obj.definitions) === undefined) ? undefined : (Object.entries(obj.definitions).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: toJson_JsonSchemaProps(i[1]) }), {})), + 'dependencies': ((obj.dependencies) === undefined) ? undefined : (Object.entries(obj.dependencies).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {})), + 'description': obj.description, + 'enum': obj.enum?.map(y => y), + 'example': obj.example, + 'exclusiveMaximum': obj.exclusiveMaximum, + 'exclusiveMinimum': obj.exclusiveMinimum, + 'externalDocs': toJson_ExternalDocumentation(obj.externalDocs), + 'format': obj.format, + 'id': obj.id, + 'items': obj.items, + 'maxItems': obj.maxItems, + 'maxLength': obj.maxLength, + 'maxProperties': obj.maxProperties, + 'maximum': obj.maximum, + 'minItems': obj.minItems, + 'minLength': obj.minLength, + 'minProperties': obj.minProperties, + 'minimum': obj.minimum, + 'multipleOf': obj.multipleOf, + 'not': toJson_JsonSchemaProps(obj.not), + 'nullable': obj.nullable, + 'oneOf': obj.oneOf?.map(y => toJson_JsonSchemaProps(y)), + 'pattern': obj.pattern, + 'patternProperties': ((obj.patternProperties) === undefined) ? undefined : (Object.entries(obj.patternProperties).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: toJson_JsonSchemaProps(i[1]) }), {})), + 'properties': ((obj.properties) === undefined) ? undefined : (Object.entries(obj.properties).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: toJson_JsonSchemaProps(i[1]) }), {})), + 'required': obj.required?.map(y => y), + 'title': obj.title, + 'type': obj.type, + 'uniqueItems': obj.uniqueItems, + 'x-kubernetes-embedded-resource': obj.xKubernetesEmbeddedResource, + 'x-kubernetes-int-or-string': obj.xKubernetesIntOrString, + 'x-kubernetes-list-map-keys': obj.xKubernetesListMapKeys?.map(y => y), + 'x-kubernetes-list-type': obj.xKubernetesListType, + 'x-kubernetes-map-type': obj.xKubernetesMapType, + 'x-kubernetes-preserve-unknown-fields': obj.xKubernetesPreserveUnknownFields, + 'x-kubernetes-validations': obj.xKubernetesValidations?.map(y => toJson_ValidationRule(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceScale + */ +export interface CustomResourceSubresourceScale { + /** + * labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceScale#labelSelectorPath + */ + readonly labelSelectorPath?: string; + + /** + * specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceScale#specReplicasPath + */ + readonly specReplicasPath: string; + + /** + * statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceScale#statusReplicasPath + */ + readonly statusReplicasPath: string; + +} + +/** + * Converts an object of type 'CustomResourceSubresourceScale' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_CustomResourceSubresourceScale(obj: CustomResourceSubresourceScale | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'labelSelectorPath': obj.labelSelectorPath, + 'specReplicasPath': obj.specReplicasPath, + 'statusReplicasPath': obj.statusReplicasPath, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Selects a key from a ConfigMap. + * + * @schema io.k8s.api.core.v1.ConfigMapKeySelector + */ +export interface ConfigMapKeySelector { + /** + * The key to select. + * + * @schema io.k8s.api.core.v1.ConfigMapKeySelector#key + */ + readonly key: string; + + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * + * @schema io.k8s.api.core.v1.ConfigMapKeySelector#name + */ + readonly name?: string; + + /** + * Specify whether the ConfigMap or its key must be defined + * + * @schema io.k8s.api.core.v1.ConfigMapKeySelector#optional + */ + readonly optional?: boolean; + +} + +/** + * Converts an object of type 'ConfigMapKeySelector' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ConfigMapKeySelector(obj: ConfigMapKeySelector | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'key': obj.key, + 'name': obj.name, + 'optional': obj.optional, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ObjectFieldSelector selects an APIVersioned field of an object. + * + * @schema io.k8s.api.core.v1.ObjectFieldSelector + */ +export interface ObjectFieldSelector { + /** + * Version of the schema the FieldPath is written in terms of, defaults to "v1". + * + * @schema io.k8s.api.core.v1.ObjectFieldSelector#apiVersion + */ + readonly apiVersion?: string; + + /** + * Path of the field to select in the specified API version. + * + * @schema io.k8s.api.core.v1.ObjectFieldSelector#fieldPath + */ + readonly fieldPath: string; + +} + +/** + * Converts an object of type 'ObjectFieldSelector' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ObjectFieldSelector(obj: ObjectFieldSelector | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'apiVersion': obj.apiVersion, + 'fieldPath': obj.fieldPath, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ResourceFieldSelector represents container resources (cpu, memory) and their output format + * + * @schema io.k8s.api.core.v1.ResourceFieldSelector + */ +export interface ResourceFieldSelector { + /** + * Container name: required for volumes, optional for env vars + * + * @schema io.k8s.api.core.v1.ResourceFieldSelector#containerName + */ + readonly containerName?: string; + + /** + * Specifies the output format of the exposed resources, defaults to "1" + * + * @schema io.k8s.api.core.v1.ResourceFieldSelector#divisor + */ + readonly divisor?: Quantity; + + /** + * Required: resource to select + * + * @schema io.k8s.api.core.v1.ResourceFieldSelector#resource + */ + readonly resource: string; + +} + +/** + * Converts an object of type 'ResourceFieldSelector' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ResourceFieldSelector(obj: ResourceFieldSelector | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'containerName': obj.containerName, + 'divisor': obj.divisor?.value, + 'resource': obj.resource, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * SecretKeySelector selects a key of a Secret. + * + * @schema io.k8s.api.core.v1.SecretKeySelector + */ +export interface SecretKeySelector { + /** + * The key of the secret to select from. Must be a valid secret key. + * + * @schema io.k8s.api.core.v1.SecretKeySelector#key + */ + readonly key: string; + + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * + * @schema io.k8s.api.core.v1.SecretKeySelector#name + */ + readonly name?: string; + + /** + * Specify whether the Secret or its key must be defined + * + * @schema io.k8s.api.core.v1.SecretKeySelector#optional + */ + readonly optional?: boolean; + +} + +/** + * Converts an object of type 'SecretKeySelector' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_SecretKeySelector(obj: SecretKeySelector | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'key': obj.key, + 'name': obj.name, + 'optional': obj.optional, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * HTTPHeader describes a custom header to be used in HTTP probes + * + * @schema io.k8s.api.core.v1.HTTPHeader + */ +export interface HttpHeader { + /** + * The header field name + * + * @schema io.k8s.api.core.v1.HTTPHeader#name + */ + readonly name: string; + + /** + * The header field value + * + * @schema io.k8s.api.core.v1.HTTPHeader#value + */ + readonly value: string; + +} + +/** + * Converts an object of type 'HttpHeader' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_HttpHeader(obj: HttpHeader | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'name': obj.name, + 'value': obj.value, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Adapts a ConfigMap into a projected volume. + * + * The contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode. + * + * @schema io.k8s.api.core.v1.ConfigMapProjection + */ +export interface ConfigMapProjection { + /** + * items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * + * @schema io.k8s.api.core.v1.ConfigMapProjection#items + */ + readonly items?: KeyToPath[]; + + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * + * @schema io.k8s.api.core.v1.ConfigMapProjection#name + */ + readonly name?: string; + + /** + * optional specify whether the ConfigMap or its keys must be defined + * + * @schema io.k8s.api.core.v1.ConfigMapProjection#optional + */ + readonly optional?: boolean; + +} + +/** + * Converts an object of type 'ConfigMapProjection' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ConfigMapProjection(obj: ConfigMapProjection | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'items': obj.items?.map(y => toJson_KeyToPath(y)), + 'name': obj.name, + 'optional': obj.optional, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode. + * + * @schema io.k8s.api.core.v1.DownwardAPIProjection + */ +export interface DownwardApiProjection { + /** + * Items is a list of DownwardAPIVolume file + * + * @schema io.k8s.api.core.v1.DownwardAPIProjection#items + */ + readonly items?: DownwardApiVolumeFile[]; + +} + +/** + * Converts an object of type 'DownwardApiProjection' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_DownwardApiProjection(obj: DownwardApiProjection | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'items': obj.items?.map(y => toJson_DownwardApiVolumeFile(y)), + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * Adapts a secret into a projected volume. + * + * The contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode. + * + * @schema io.k8s.api.core.v1.SecretProjection + */ +export interface SecretProjection { + /** + * items if unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * + * @schema io.k8s.api.core.v1.SecretProjection#items + */ + readonly items?: KeyToPath[]; + + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * + * @schema io.k8s.api.core.v1.SecretProjection#name + */ + readonly name?: string; + + /** + * optional field specify whether the Secret or its key must be defined + * + * @schema io.k8s.api.core.v1.SecretProjection#optional + */ + readonly optional?: boolean; + +} + +/** + * Converts an object of type 'SecretProjection' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_SecretProjection(obj: SecretProjection | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'items': obj.items?.map(y => toJson_KeyToPath(y)), + 'name': obj.name, + 'optional': obj.optional, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise). + * + * @schema io.k8s.api.core.v1.ServiceAccountTokenProjection + */ +export interface ServiceAccountTokenProjection { + /** + * audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * + * @schema io.k8s.api.core.v1.ServiceAccountTokenProjection#audience + */ + readonly audience?: string; + + /** + * expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * + * @default 1 hour and must be at least 10 minutes. + * @schema io.k8s.api.core.v1.ServiceAccountTokenProjection#expirationSeconds + */ + readonly expirationSeconds?: number; + + /** + * path is the path relative to the mount point of the file to project the token into. + * + * @schema io.k8s.api.core.v1.ServiceAccountTokenProjection#path + */ + readonly path: string; + +} + +/** + * Converts an object of type 'ServiceAccountTokenProjection' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ServiceAccountTokenProjection(obj: ServiceAccountTokenProjection | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'audience': obj.audience, + 'expirationSeconds': obj.expirationSeconds, + 'path': obj.path, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ExternalDocumentation allows referencing an external resource for extended documentation. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ExternalDocumentation + */ +export interface ExternalDocumentation { + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ExternalDocumentation#description + */ + readonly description?: string; + + /** + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ExternalDocumentation#url + */ + readonly url?: string; + +} + +/** + * Converts an object of type 'ExternalDocumentation' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ExternalDocumentation(obj: ExternalDocumentation | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'description': obj.description, + 'url': obj.url, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + +/** + * ValidationRule describes a validation rule written in the CEL expression language. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ValidationRule + */ +export interface ValidationRule { + /** + * Message represents the message displayed when validation fails. The message is required if the Rule contains line breaks. The message must not contain line breaks. If unset, the message is "failed rule: {Rule}". e.g. "must be a URL with the host matching spec.host" + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ValidationRule#message + */ + readonly message?: string; + + /** + * Rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the x-kubernetes-validations extension in the schema. The `self` variable in the CEL expression is bound to the scoped value. Example: - Rule scoped to the root of a resource with a status subresource: {"rule": "self.status.actual <= self.spec.maxDesired"} + * + * If the Rule is scoped to an object with properties, the accessible properties of the object are field selectable via `self.field` and field presence can be checked via `has(self.field)`. Null valued fields are treated as absent fields in CEL expressions. If the Rule is scoped to an object with additionalProperties (i.e. a map) the value of the map are accessible via `self[mapKey]`, map containment can be checked via `mapKey in self` and all entries of the map are accessible via CEL macros and functions such as `self.all(...)`. If the Rule is scoped to an array, the elements of the array are accessible via `self[i]` and also by macros and functions. If the Rule is scoped to a scalar, `self` is bound to the scalar value. Examples: - Rule scoped to a map of objects: {"rule": "self.components['Widget'].priority < 10"} - Rule scoped to a list of integers: {"rule": "self.values.all(value, value >= 0 && value < 100)"} - Rule scoped to a string value: {"rule": "self.startsWith('kube')"} + * + * The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object and from any x-kubernetes-embedded-resource annotated objects. No other metadata properties are accessible. + * + * Unknown data preserved in custom resources via x-kubernetes-preserve-unknown-fields is not accessible in CEL expressions. This includes: - Unknown field values that are preserved by object schemas with x-kubernetes-preserve-unknown-fields. - Object properties where the property schema is of an "unknown type". An "unknown type" is recursively defined as: + * - A schema with no type and x-kubernetes-preserve-unknown-fields set to true + * - An array where the items schema is of an "unknown type" + * - An object where the additionalProperties schema is of an "unknown type" + * + * Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: + * "true", "false", "null", "in", "as", "break", "const", "continue", "else", "for", "function", "if", + * "import", "let", "loop", "package", "namespace", "return". + * Examples: + * - Rule accessing a property named "namespace": {"rule": "self.__namespace__ > 0"} + * - Rule accessing a property named "x-prop": {"rule": "self.x__dash__prop > 0"} + * - Rule accessing a property named "redact__d": {"rule": "self.redact__underscores__d > 0"} + * + * Equality on arrays with x-kubernetes-list-type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: + * - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and + * non-intersecting elements in `Y` are appended, retaining their partial order. + * - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values + * are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with + * non-intersecting keys are appended, retaining their partial order. + * + * @schema io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ValidationRule#rule + */ + readonly rule: string; + +} + +/** + * Converts an object of type 'ValidationRule' to JSON representation. + */ +/* eslint-disable max-len, quote-props */ +export function toJson_ValidationRule(obj: ValidationRule | undefined): Record | undefined { + if (obj === undefined) { return undefined; } + const result = { + 'message': obj.message, + 'rule': obj.rule, + }; + // filter undefined values + return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {}); +} +/* eslint-enable max-len, quote-props */ + diff --git a/tools/cdk8s/yggdrasil-discord-client/jest.config.js b/tools/cdk8s/yggdrasil-discord-client/jest.config.js new file mode 100644 index 0000000..bcd81f8 --- /dev/null +++ b/tools/cdk8s/yggdrasil-discord-client/jest.config.js @@ -0,0 +1,9 @@ +module.exports = { + "roots": [ + "" + ], + testMatch: [ '**/*.test.ts'], + "transform": { + "^.+\\.tsx?$": "ts-jest" + }, +} diff --git a/tools/cdk8s/yggdrasil-discord-client/main.test.ts b/tools/cdk8s/yggdrasil-discord-client/main.test.ts new file mode 100644 index 0000000..5851e33 --- /dev/null +++ b/tools/cdk8s/yggdrasil-discord-client/main.test.ts @@ -0,0 +1,11 @@ +import {MyChart} from './main'; +import {Testing} from 'cdk8s'; + +describe('Placeholder', () => { + test('Empty', () => { + const app = Testing.app(); + const chart = new MyChart(app, 'test-chart'); + const results = Testing.synth(chart) + expect(results).toMatchSnapshot(); + }); +}); diff --git a/tools/cdk8s/yggdrasil-discord-client/main.ts b/tools/cdk8s/yggdrasil-discord-client/main.ts new file mode 100644 index 0000000..a82ece1 --- /dev/null +++ b/tools/cdk8s/yggdrasil-discord-client/main.ts @@ -0,0 +1,148 @@ +import { Construct } from 'constructs'; +import { App, Chart, ChartProps } from 'cdk8s'; +import { + IntOrString, + KubeDeployment, + KubeNamespace, + KubeRoleBinding, + KubeServiceAccount, + Quantity, +} from './imports/k8s'; +import { Helper } from './utils/helper'; + +import path = require('path'); +require('dotenv').config({ + path: Helper.isProd + ? path.resolve(__dirname, './env', '.env') + : path.resolve(__dirname, './env', `.env.${process.env.NODE_ENV}`), +}); + +export class MyChart extends Chart { + appContainerName = process.env.CONTAINERNAME ?? 'yggdrasil-discord-client'; + + serviceLabel = { + app: `${this.appContainerName}-services-${process.env.NODE_ENV}`, + }; + + constructor(scope: Construct, id: string, props: ChartProps = {}) { + super(scope, id, props); + + // apply namespace + new KubeNamespace(this, 'namespace', { + metadata: { + name: props.namespace, + }, + }); + + this.setupApp(); + + // setup cronjob service account + new KubeServiceAccount(this, 'service-account', { + metadata: { + name: this.labels.service, + namespace: this.namespace, + }, + }); + + // setup cronjob service account role binding + new KubeRoleBinding(this, 'role-binding', { + metadata: { + name: this.labels.service, + namespace: this.namespace, + }, + roleRef: { + apiGroup: 'rbac.authorization.k8s.io', + kind: 'ClusterRole', + name: 'cluster-admin', + }, + subjects: [ + { + kind: 'ServiceAccount', + name: this.labels.service, + namespace: this.namespace, + }, + ], + }); + } + + private setupApp() { + new KubeDeployment(this, 'deployment', { + metadata: { + name: this.labels.app, + namespace: this.namespace, + }, + spec: { + replicas: 1, + selector: { + matchLabels: this.labels, + }, + template: { + metadata: { + labels: this.labels, + name: this.labels.app, + }, + spec: { + nodeSelector: Helper.isProd + ? { + 'cloud.google.com/gke-spot': 'true', + } + : undefined, + terminationGracePeriodSeconds: Helper.isProd ? 25 : undefined, + imagePullSecrets: [ + { + name: process.env.IMAGE_PULL_SECRETS ?? 'registry-credentials', + }, + ], + containers: [ + { + name: this.appContainerName, + image: `${process.env.IMAGE_PATH}${ + process.env.CI_COMMIT_SHA ?? 'latest' + }`, + imagePullPolicy: + process.env.IMAGE_PULL_POLICY ?? 'IfNotPresent', + resources: { + limits: { + cpu: Quantity.fromString(Helper.isProd ? '0.25' : '0.25'), + memory: Quantity.fromString( + Helper.isProd ? '512Mi' : '512Mi' + ), + }, + }, + env: [ + { + name: 'NODE_ENV', + value: `${process.env.SERVICE_TAGS ?? 'development'}`, + }, + { + name: 'SERVICE_TAGS', + value: `${process.env.SERVICE_TAGS ?? 'development'}`, + }, + ], + livenessProbe: { + httpGet: { + path: '/', + port: IntOrString.fromNumber(3000), + }, + initialDelaySeconds: 10, + }, + }, + ], + }, + }, + }, + }); + } +} + +const app = new App(); +const appContainerName = + process.env.CONTAINERNAME ?? 'yggdrasil-discord-client'; +new MyChart(app, appContainerName, { + namespace: `${appContainerName}-${process.env.NODE_ENV}`, + labels: { + app: `${appContainerName}-deployment-${process.env.NODE_ENV}`, + service: `${appContainerName}-services-${process.env.NODE_ENV}`, + }, +}); +app.synth(); diff --git a/tools/cdk8s/yggdrasil-discord-client/package-lock.json b/tools/cdk8s/yggdrasil-discord-client/package-lock.json new file mode 100644 index 0000000..1882c9d --- /dev/null +++ b/tools/cdk8s/yggdrasil-discord-client/package-lock.json @@ -0,0 +1,9724 @@ +{ + "name": "yggdrasil-core-engine", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "yggdrasil-core-engine", + "version": "1.0.0", + "license": "Apache-2.0", + "dependencies": { + "cdk8s": "^2.7.83", + "cdk8s-plus-25": "^2.8.49", + "constructs": "^10.2.58", + "dotenv": "^16.3.1" + }, + "devDependencies": { + "@types/jest": "^26.0.24", + "@types/node": "^14.18.51", + "cdk8s-cli": "^2.2.73", + "jest": "^26.6.3", + "ts-jest": "^26.5.6", + "ts-node": "^10.9.1", + "typescript": "^4.9.5" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", + "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.5.tgz", + "integrity": "sha512-Xmwn266vad+6DAqEB2A6V/CcZVp62BbwVmcOJc2RPuwih1kw02TjQvWVWlcKGbBPd+8/0V5DEkOcizRGYsspYQ==", + "dev": true, + "dependencies": { + "@babel/highlight": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.5.tgz", + "integrity": "sha512-4Jc/YuIaYqKnDDz892kPIledykKg12Aw1PYX5i/TY28anJtacvM1Rrr8wbieB9GfEJwlzqT0hUEao0CxEebiDA==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.22.5.tgz", + "integrity": "sha512-SBuTAjg91A3eKOvD+bPEz3LlhHZRNu1nFOVts9lzDJTXshHTjII0BAtDS3Y2DAkdZdDKWVZGVwkDfc4Clxn1dg==", + "dev": true, + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.22.5", + "@babel/generator": "^7.22.5", + "@babel/helper-compilation-targets": "^7.22.5", + "@babel/helper-module-transforms": "^7.22.5", + "@babel/helpers": "^7.22.5", + "@babel/parser": "^7.22.5", + "@babel/template": "^7.22.5", + "@babel/traverse": "^7.22.5", + "@babel/types": "^7.22.5", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.2", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/generator": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.22.5.tgz", + "integrity": "sha512-+lcUbnTRhd0jOewtFSedLyiPsD5tswKkbgcezOqqWFUVNEwoUTlpPOBmvhG7OXWLR4jMdv0czPGH5XbflnD1EA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5", + "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.5.tgz", + "integrity": "sha512-Ji+ywpHeuqxB8WDxraCiqR0xfhYjiDE/e6k7FuIaANnoOFxAHskHChz4vA1mJC9Lbm01s1PVAGhQY4FUKSkGZw==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.22.5", + "@babel/helper-validator-option": "^7.22.5", + "browserslist": "^4.21.3", + "lru-cache": "^5.1.1", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-environment-visitor": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.5.tgz", + "integrity": "sha512-XGmhECfVA/5sAt+H+xpSg0mfrHq6FzNr9Oxh7PSEBBRUb/mL7Kz3NICXb194rCqAEdxkhPT1a88teizAFyvk8Q==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.22.5.tgz", + "integrity": "sha512-wtHSq6jMRE3uF2otvfuD3DIvVhOsSNshQl0Qrd7qC9oQJzHvOL4qQXlQn2916+CXGywIjpGuIkoyZRRxHPiNQQ==", + "dev": true, + "dependencies": { + "@babel/template": "^7.22.5", + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-hoist-variables": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", + "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.5.tgz", + "integrity": "sha512-8Dl6+HD/cKifutF5qGd/8ZJi84QeAKh+CEe1sBzz8UayBBGg1dAIJrdHOcOM5b2MpzWL2yuotJTtGjETq0qjXg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.22.5.tgz", + "integrity": "sha512-+hGKDt/Ze8GFExiVHno/2dvG5IdstpzCq0y4Qc9OJ25D4q3pKfiIP/4Vp3/JvhDkLKsDK2api3q3fpIgiIF5bw==", + "dev": true, + "dependencies": { + "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-module-imports": "^7.22.5", + "@babel/helper-simple-access": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.5", + "@babel/template": "^7.22.5", + "@babel/traverse": "^7.22.5", + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz", + "integrity": "sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", + "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.5.tgz", + "integrity": "sha512-thqK5QFghPKWLhAV321lxF95yCg2K3Ob5yw+M3VHWfdia0IkPXUtoLH8x/6Fh486QUvzhb8YOWHChTVen2/PoQ==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz", + "integrity": "sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.5.tgz", + "integrity": "sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.22.5.tgz", + "integrity": "sha512-R3oB6xlIVKUnxNUxbmgq7pKjxpru24zlimpE8WK47fACIlM0II/Hm1RS8IaOI7NgCr6LNS+jl5l75m20npAziw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.22.5.tgz", + "integrity": "sha512-pSXRmfE1vzcUIDFQcSGA5Mr+GxBV9oiRKDuDxXvWQQBCh8HoIjs/2DlDB7H8smac1IVrB9/xdXj2N3Wol9Cr+Q==", + "dev": true, + "dependencies": { + "@babel/template": "^7.22.5", + "@babel/traverse": "^7.22.5", + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.5.tgz", + "integrity": "sha512-BSKlD1hgnedS5XRnGOljZawtag7H1yPfQp0tdNJCHoH6AZ+Pcm9VvkrK59/Yy593Ypg0zMxH2BxD1VPYUQ7UIw==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.22.5", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@babel/highlight/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "node_modules/@babel/highlight/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/parser": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.5.tgz", + "integrity": "sha512-DFZMC9LJUG9PLOclRC32G63UXwzqS2koQC8dkx+PLdmt1xSePYpbT/NbsrJy8Q/muXz7o/h/d4A7Fuyixm559Q==", + "dev": true, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/template": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.5.tgz", + "integrity": "sha512-X7yV7eiwAxdj9k94NEylvbVHLiVG1nvzCV2EAowhxLTwODV1jl9UzZ48leOC0sH7OnuHrIkllaBgneUykIcZaw==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.22.5", + "@babel/parser": "^7.22.5", + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.22.5.tgz", + "integrity": "sha512-7DuIjPgERaNo6r+PZwItpjCZEa5vyw4eJGufeLxrPdBXBoLcCJCIasvK6pK/9DVNrLZTLFhUGqaC6X/PA007TQ==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.22.5", + "@babel/generator": "^7.22.5", + "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-function-name": "^7.22.5", + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.5", + "@babel/parser": "^7.22.5", + "@babel/types": "^7.22.5", + "debug": "^4.1.0", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.5.tgz", + "integrity": "sha512-zo3MIHGOkPOfoRXitsgHLjEXmlDaD/5KU1Uzuc9GNiZPhSqVxVRtxuPaSBZDsYZ9qV88AjtMtWW7ww98loJ9KA==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.5", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true + }, + "node_modules/@cnakazawa/watch": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@cnakazawa/watch/-/watch-1.0.4.tgz", + "integrity": "sha512-v9kIhKwjeZThiWrLmj0y17CWoyddASLj9O2yvbZkbvw/N3rWOYy9zkV66ursAoVr0mV15bL8g0c4QZUE6cdDoQ==", + "dev": true, + "dependencies": { + "exec-sh": "^0.3.2", + "minimist": "^1.2.0" + }, + "bin": { + "watch": "cli.js" + }, + "engines": { + "node": ">=0.1.95" + } + }, + "node_modules/@colors/colors": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz", + "integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==", + "optional": true, + "engines": { + "node": ">=0.1.90" + } + }, + "node_modules/@cspotcode/source-map-support": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", + "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "0.3.9" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "node_modules/@dabh/diagnostics": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@dabh/diagnostics/-/diagnostics-2.0.3.tgz", + "integrity": "sha512-hrlQOIi7hAfzsMqlGSFyVucrx38O+j6wiGOf//H2ecvIEqYN4ADBSS2iLMh5UFyDunCNniUIPk/q3riFv45xRA==", + "optional": true, + "dependencies": { + "colorspace": "1.1.x", + "enabled": "2.0.x", + "kuler": "^2.0.0" + } + }, + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-26.6.2.tgz", + "integrity": "sha512-IY1R2i2aLsLr7Id3S6p2BA82GNWryt4oSvEXLAKc+L2zdi89dSkE8xC1C+0kpATG4JhBJREnQOH7/zmccM2B0g==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^26.6.2", + "jest-util": "^26.6.2", + "slash": "^3.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/core": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-26.6.3.tgz", + "integrity": "sha512-xvV1kKbhfUqFVuZ8Cyo+JPpipAHHAV3kcDBftiduK8EICXmTFddryy3P7NfZt8Pv37rA9nEJBKCCkglCPt/Xjw==", + "dev": true, + "dependencies": { + "@jest/console": "^26.6.2", + "@jest/reporters": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/transform": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.4", + "jest-changed-files": "^26.6.2", + "jest-config": "^26.6.3", + "jest-haste-map": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-regex-util": "^26.0.0", + "jest-resolve": "^26.6.2", + "jest-resolve-dependencies": "^26.6.3", + "jest-runner": "^26.6.3", + "jest-runtime": "^26.6.3", + "jest-snapshot": "^26.6.2", + "jest-util": "^26.6.2", + "jest-validate": "^26.6.2", + "jest-watcher": "^26.6.2", + "micromatch": "^4.0.2", + "p-each-series": "^2.1.0", + "rimraf": "^3.0.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/environment": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-26.6.2.tgz", + "integrity": "sha512-nFy+fHl28zUrRsCeMB61VDThV1pVTtlEokBRgqPrcT1JNq4yRNIyTHfyht6PqtUvY9IsuLGTrbG8kPXjSZIZwA==", + "dev": true, + "dependencies": { + "@jest/fake-timers": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "jest-mock": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/fake-timers": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-26.6.2.tgz", + "integrity": "sha512-14Uleatt7jdzefLPYM3KLcnUl1ZNikaKq34enpb5XG9i81JpppDb5muZvonvKyrl7ftEHkKS5L5/eB/kxJ+bvA==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "@sinonjs/fake-timers": "^6.0.1", + "@types/node": "*", + "jest-message-util": "^26.6.2", + "jest-mock": "^26.6.2", + "jest-util": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/globals": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-26.6.2.tgz", + "integrity": "sha512-85Ltnm7HlB/KesBUuALwQ68YTU72w9H2xW9FjZ1eL1U3lhtefjjl5c2MiUbpXt/i6LaPRvoOFJ22yCBSfQ0JIA==", + "dev": true, + "dependencies": { + "@jest/environment": "^26.6.2", + "@jest/types": "^26.6.2", + "expect": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/reporters": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-26.6.2.tgz", + "integrity": "sha512-h2bW53APG4HvkOnVMo8q3QXa6pcaNt1HkwVsOPMBV6LD/q9oSpxNSYZQYkAnjdMjrJ86UuYeLo+aEZClV6opnw==", + "dev": true, + "dependencies": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/transform": "^26.6.2", + "@jest/types": "^26.6.2", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.2", + "graceful-fs": "^4.2.4", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^4.0.3", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.0.2", + "jest-haste-map": "^26.6.2", + "jest-resolve": "^26.6.2", + "jest-util": "^26.6.2", + "jest-worker": "^26.6.2", + "slash": "^3.0.0", + "source-map": "^0.6.0", + "string-length": "^4.0.1", + "terminal-link": "^2.0.0", + "v8-to-istanbul": "^7.0.0" + }, + "engines": { + "node": ">= 10.14.2" + }, + "optionalDependencies": { + "node-notifier": "^8.0.0" + } + }, + "node_modules/@jest/source-map": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-26.6.2.tgz", + "integrity": "sha512-YwYcCwAnNmOVsZ8mr3GfnzdXDAl4LaenZP5z+G0c8bzC9/dugL8zRmxZzdoTl4IaS3CryS1uWnROLPFmb6lVvA==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0", + "graceful-fs": "^4.2.4", + "source-map": "^0.6.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/test-result": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-26.6.2.tgz", + "integrity": "sha512-5O7H5c/7YlojphYNrK02LlDIV2GNPYisKwHm2QTKjNZeEzezCbwYs9swJySv2UfPMyZ0VdsmMv7jIlD/IKYQpQ==", + "dev": true, + "dependencies": { + "@jest/console": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-26.6.3.tgz", + "integrity": "sha512-YHlVIjP5nfEyjlrSr8t/YdNfU/1XEt7c5b4OxcXCjyRhjzLYu/rO69/WHPuYcbCWkz8kAeZVZp2N2+IOLLEPGw==", + "dev": true, + "dependencies": { + "@jest/test-result": "^26.6.2", + "graceful-fs": "^4.2.4", + "jest-haste-map": "^26.6.2", + "jest-runner": "^26.6.3", + "jest-runtime": "^26.6.3" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/transform": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-26.6.2.tgz", + "integrity": "sha512-E9JjhUgNzvuQ+vVAL21vlyfy12gP0GhazGgJC4h6qUt1jSdUXGWJ1wfu/X7Sd8etSgxV4ovT1pb9v5D6QW4XgA==", + "dev": true, + "dependencies": { + "@babel/core": "^7.1.0", + "@jest/types": "^26.6.2", + "babel-plugin-istanbul": "^6.0.0", + "chalk": "^4.0.0", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.0.0", + "graceful-fs": "^4.2.4", + "jest-haste-map": "^26.6.2", + "jest-regex-util": "^26.0.0", + "jest-util": "^26.6.2", + "micromatch": "^4.0.2", + "pirates": "^4.0.1", + "slash": "^3.0.0", + "source-map": "^0.6.1", + "write-file-atomic": "^3.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", + "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", + "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.18", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz", + "integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "3.1.0", + "@jridgewell/sourcemap-codec": "1.4.14" + } + }, + "node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", + "dev": true + }, + "node_modules/@jsii/check-node": { + "version": "1.84.0", + "resolved": "https://registry.npmjs.org/@jsii/check-node/-/check-node-1.84.0.tgz", + "integrity": "sha512-gLa+N1WKksCjTXaK8VMjTbEXf58QlrDOovoTOEzhGNgTFyAUX8woIRAUmk+X70ssDzBvgh3E98mIsDKoWOp6zA==", + "dev": true, + "dependencies": { + "chalk": "^4.1.2", + "semver": "^7.5.1" + }, + "engines": { + "node": ">= 14.17.0" + } + }, + "node_modules/@jsii/check-node/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@jsii/check-node/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@jsii/check-node/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/@jsii/spec": { + "version": "1.84.0", + "resolved": "https://registry.npmjs.org/@jsii/spec/-/spec-1.84.0.tgz", + "integrity": "sha512-P2PCE4jlmuTh5Oj7Be2jdn5qyzIWHX4rcyYspddc0DLZAuLB/LRQYytrxgfdy4+NroGhrPeKPBoF9MwJ5CzfXA==", + "dev": true, + "dependencies": { + "ajv": "^8.12.0" + }, + "engines": { + "node": ">= 14.17.0" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "devOptional": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "devOptional": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "devOptional": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@octokit/auth-token": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.5.0.tgz", + "integrity": "sha512-r5FVUJCOLl19AxiuZD2VRZ/ORjp/4IN98Of6YJoJOkY75CIBuYfmiNHGrDwXr+aLGG55igl9QrxX3hbiXlLb+g==", + "optional": true, + "dependencies": { + "@octokit/types": "^6.0.3" + } + }, + "node_modules/@octokit/core": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.6.0.tgz", + "integrity": "sha512-7RKRKuA4xTjMhY+eG3jthb3hlZCsOwg3rztWh75Xc+ShDWOfDDATWbeZpAHBNRpm4Tv9WgBMOy1zEJYXG6NJ7Q==", + "optional": true, + "dependencies": { + "@octokit/auth-token": "^2.4.4", + "@octokit/graphql": "^4.5.8", + "@octokit/request": "^5.6.3", + "@octokit/request-error": "^2.0.5", + "@octokit/types": "^6.0.3", + "before-after-hook": "^2.2.0", + "universal-user-agent": "^6.0.0" + } + }, + "node_modules/@octokit/endpoint": { + "version": "6.0.12", + "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.12.tgz", + "integrity": "sha512-lF3puPwkQWGfkMClXb4k/eUT/nZKQfxinRWJrdZaJO85Dqwo/G0yOC434Jr2ojwafWJMYqFGFa5ms4jJUgujdA==", + "optional": true, + "dependencies": { + "@octokit/types": "^6.0.3", + "is-plain-object": "^5.0.0", + "universal-user-agent": "^6.0.0" + } + }, + "node_modules/@octokit/graphql": { + "version": "4.8.0", + "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.8.0.tgz", + "integrity": "sha512-0gv+qLSBLKF0z8TKaSKTsS39scVKF9dbMxJpj3U0vC7wjNWFuIpL/z76Qe2fiuCbDRcJSavkXsVtMS6/dtQQsg==", + "optional": true, + "dependencies": { + "@octokit/request": "^5.6.0", + "@octokit/types": "^6.0.3", + "universal-user-agent": "^6.0.0" + } + }, + "node_modules/@octokit/openapi-types": { + "version": "12.11.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-12.11.0.tgz", + "integrity": "sha512-VsXyi8peyRq9PqIz/tpqiL2w3w80OgVMwBHltTml3LmVvXiphgeqmY9mvBw9Wu7e0QWk/fqD37ux8yP5uVekyQ==", + "optional": true + }, + "node_modules/@octokit/plugin-paginate-rest": { + "version": "2.21.3", + "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.21.3.tgz", + "integrity": "sha512-aCZTEf0y2h3OLbrgKkrfFdjRL6eSOo8komneVQJnYecAxIej7Bafor2xhuDJOIFau4pk0i/P28/XgtbyPF0ZHw==", + "optional": true, + "dependencies": { + "@octokit/types": "^6.40.0" + }, + "peerDependencies": { + "@octokit/core": ">=2" + } + }, + "node_modules/@octokit/plugin-request-log": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-1.0.4.tgz", + "integrity": "sha512-mLUsMkgP7K/cnFEw07kWqXGF5LKrOkD+lhCrKvPHXWDywAwuDUeDwWBpc69XK3pNX0uKiVt8g5z96PJ6z9xCFA==", + "optional": true, + "peerDependencies": { + "@octokit/core": ">=3" + } + }, + "node_modules/@octokit/plugin-rest-endpoint-methods": { + "version": "5.16.2", + "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.16.2.tgz", + "integrity": "sha512-8QFz29Fg5jDuTPXVtey05BLm7OB+M8fnvE64RNegzX7U+5NUXcOcnpTIK0YfSHBg8gYd0oxIq3IZTe9SfPZiRw==", + "optional": true, + "dependencies": { + "@octokit/types": "^6.39.0", + "deprecation": "^2.3.1" + }, + "peerDependencies": { + "@octokit/core": ">=3" + } + }, + "node_modules/@octokit/request": { + "version": "5.6.3", + "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.6.3.tgz", + "integrity": "sha512-bFJl0I1KVc9jYTe9tdGGpAMPy32dLBXXo1dS/YwSCTL/2nd9XeHsY616RE3HPXDVk+a+dBuzyz5YdlXwcDTr2A==", + "optional": true, + "dependencies": { + "@octokit/endpoint": "^6.0.1", + "@octokit/request-error": "^2.1.0", + "@octokit/types": "^6.16.1", + "is-plain-object": "^5.0.0", + "node-fetch": "^2.6.7", + "universal-user-agent": "^6.0.0" + } + }, + "node_modules/@octokit/request-error": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.1.0.tgz", + "integrity": "sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg==", + "optional": true, + "dependencies": { + "@octokit/types": "^6.0.3", + "deprecation": "^2.0.0", + "once": "^1.4.0" + } + }, + "node_modules/@octokit/rest": { + "version": "18.12.0", + "resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-18.12.0.tgz", + "integrity": "sha512-gDPiOHlyGavxr72y0guQEhLsemgVjwRePayJ+FcKc2SJqKUbxbkvf5kAZEWA/MKvsfYlQAMVzNJE3ezQcxMJ2Q==", + "optional": true, + "dependencies": { + "@octokit/core": "^3.5.1", + "@octokit/plugin-paginate-rest": "^2.16.8", + "@octokit/plugin-request-log": "^1.0.4", + "@octokit/plugin-rest-endpoint-methods": "^5.12.0" + } + }, + "node_modules/@octokit/types": { + "version": "6.41.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.41.0.tgz", + "integrity": "sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg==", + "optional": true, + "dependencies": { + "@octokit/openapi-types": "^12.11.0" + } + }, + "node_modules/@sinonjs/commons": { + "version": "1.8.6", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.6.tgz", + "integrity": "sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==", + "dev": true, + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-6.0.1.tgz", + "integrity": "sha512-MZPUxrmFubI36XS1DI3qmI0YdN1gks62JtFZvxR67ljjSNCeK6U08Zx4msEWOXuofgqUt6zPHSi1H9fbjR/NRA==", + "dev": true, + "dependencies": { + "@sinonjs/commons": "^1.7.0" + } + }, + "node_modules/@tootallnate/once": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", + "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/@tsconfig/node10": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", + "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", + "dev": true + }, + "node_modules/@tsconfig/node12": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", + "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", + "dev": true + }, + "node_modules/@tsconfig/node14": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", + "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", + "dev": true + }, + "node_modules/@tsconfig/node16": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", + "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", + "dev": true + }, + "node_modules/@types/babel__core": { + "version": "7.20.1", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.1.tgz", + "integrity": "sha512-aACu/U/omhdk15O4Nfb+fHgH/z3QsfQzpnvRZhYhThms83ZnAOZz7zZAWO7mn2yyNQaA4xTO8GLK3uqFU4bYYw==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.6.4", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.4.tgz", + "integrity": "sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.1.tgz", + "integrity": "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.20.1", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.1.tgz", + "integrity": "sha512-MitHFXnhtgwsGZWtT68URpOvLN4EREih1u3QtQiN4VdAxWKRVvGCSvw/Qth0M0Qq3pJpnGOu5JaM/ydK7OGbqg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.20.7" + } + }, + "node_modules/@types/graceful-fs": { + "version": "4.1.6", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.6.tgz", + "integrity": "sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", + "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==", + "dev": true + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", + "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/jest": { + "version": "26.0.24", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-26.0.24.tgz", + "integrity": "sha512-E/X5Vib8BWqZNRlDxj9vYXhsDwPYbPINqKF9BsnSoon4RQ0D9moEuLD8txgyypFLH7J4+Lho9Nr/c8H0Fi+17w==", + "dev": true, + "dependencies": { + "jest-diff": "^26.0.0", + "pretty-format": "^26.0.0" + } + }, + "node_modules/@types/node": { + "version": "14.18.51", + "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.51.tgz", + "integrity": "sha512-P9bsdGFPpVtofEKlhWMVS2qqx1A/rt9QBfihWlklfHHpUpjtYse5AzFz6j4DWrARLYh6gRnw9+5+DJcrq3KvBA==", + "dev": true + }, + "node_modules/@types/normalize-package-data": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz", + "integrity": "sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==", + "dev": true + }, + "node_modules/@types/prettier": { + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.3.tgz", + "integrity": "sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA==", + "dev": true + }, + "node_modules/@types/stack-utils": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", + "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", + "dev": true + }, + "node_modules/@types/triple-beam": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@types/triple-beam/-/triple-beam-1.3.2.tgz", + "integrity": "sha512-txGIh+0eDFzKGC25zORnswy+br1Ha7hj5cMVwKIU7+s0U2AxxJru/jZSMU6OC9MJWP6+pc/hc6ZjyZShpsyY2g==", + "optional": true + }, + "node_modules/@types/yargs": { + "version": "15.0.15", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.15.tgz", + "integrity": "sha512-IziEYMU9XoVj8hWg7k+UJrXALkGFjWJhn5QFEv9q4p+v40oZhSuC135M38st8XPjICL7Ey4TV64ferBGUoJhBg==", + "dev": true, + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.0", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", + "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==", + "dev": true + }, + "node_modules/@xmldom/xmldom": { + "version": "0.8.8", + "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.8.tgz", + "integrity": "sha512-0LNz4EY8B/8xXY86wMrQ4tz6zEHZv9ehFMJPm8u2gq5lQ71cfRKdaKyxfJAx5aUoyzx0qzgURblTisPGgz3d+Q==", + "dev": true, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/abab": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", + "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==", + "dev": true + }, + "node_modules/acorn": { + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.9.0.tgz", + "integrity": "sha512-jaVNAFBHNLXspO543WnNNPZFRtavh3skAkITqD0/2aeMkKZTN+254PyhwxFYrk3vQ1xfY+2wbesJMs/JC8/PwQ==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-globals": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz", + "integrity": "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==", + "dev": true, + "dependencies": { + "acorn": "^7.1.1", + "acorn-walk": "^7.1.1" + } + }, + "node_modules/acorn-globals/node_modules/acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-walk": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", + "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dev": true, + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/aggregate-error": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", + "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", + "optional": true, + "dependencies": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "devOptional": true, + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "devOptional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "devOptional": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true + }, + "node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/arr-flatten": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", + "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/arr-union": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", + "integrity": "sha512-sKpyeERZ02v1FeCZT8lrfJq5u6goHCtpTAzPwJYe7c8SPFOboNjNg1vz2L4VTn9T4PQxEx13TbXLmYUcS6Ug7Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "optional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/array-unique": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", + "integrity": "sha512-SleRWjh9JUud2wH1hPs9rZBZ33H6T9HOiL0uwGnGx9FpE6wKGyfWugmbkEOIs6qWrZhg0LWeLziLrEwQJhs5mQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/assign-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", + "integrity": "sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/astral-regex": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", + "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/async": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", + "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==", + "optional": true + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "devOptional": true + }, + "node_modules/at-least-node": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", + "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", + "dev": true, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/atob": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", + "dev": true, + "bin": { + "atob": "bin/atob.js" + }, + "engines": { + "node": ">= 4.5.0" + } + }, + "node_modules/axios": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.27.2.tgz", + "integrity": "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==", + "optional": true, + "dependencies": { + "follow-redirects": "^1.14.9", + "form-data": "^4.0.0" + } + }, + "node_modules/babel-jest": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-26.6.3.tgz", + "integrity": "sha512-pl4Q+GAVOHwvjrck6jKjvmGhnO3jHX/xuB9d27f+EJZ/6k+6nMuPjorrYp7s++bKKdANwzElBWnLWaObvTnaZA==", + "dev": true, + "dependencies": { + "@jest/transform": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/babel__core": "^7.1.7", + "babel-plugin-istanbul": "^6.0.0", + "babel-preset-jest": "^26.6.2", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.4", + "slash": "^3.0.0" + }, + "engines": { + "node": ">= 10.14.2" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dev": true, + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-jest-hoist": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-26.6.2.tgz", + "integrity": "sha512-PO9t0697lNTmcEHH69mdtYiOIkkOlj9fySqfO3K1eCcdISevLAE0xY59VLLUj0SoiPiTX/JU2CYFpILydUa5Lw==", + "dev": true, + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.0.0", + "@types/babel__traverse": "^7.0.6" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/babel-preset-current-node-syntax": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", + "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", + "dev": true, + "dependencies": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.8.3", + "@babel/plugin-syntax-import-meta": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.8.3", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-top-level-await": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/babel-preset-jest": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-26.6.2.tgz", + "integrity": "sha512-YvdtlVm9t3k777c5NPQIv6cxFFFapys25HiUmuSgHwIZhfifweR5c5Sf5nwE3MAbfu327CYSvps8Yx6ANLyleQ==", + "dev": true, + "dependencies": { + "babel-plugin-jest-hoist": "^26.6.2", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": ">= 10.14.2" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/backport": { + "version": "8.5.0", + "resolved": "https://registry.npmjs.org/backport/-/backport-8.5.0.tgz", + "integrity": "sha512-gX8v+l+BTue2lmmqD/yQiR6JUUY+5OWNZTI1qyusViqC9R2iv4YFPqT23IcJfpYqlYb3DOiwunfVjKLickdQ6g==", + "hasInstallScript": true, + "optional": true, + "dependencies": { + "@octokit/rest": "^18.12.0", + "axios": "^0.27.2", + "dedent": "^0.7.0", + "del": "^6.1.1", + "dotenv": "^16.0.1", + "find-up": "^5.0.0", + "graphql": "^16.5.0", + "graphql-tag": "^2.12.6", + "inquirer": "^8.2.3", + "lodash": "^4.17.21", + "make-dir": "^3.1.0", + "ora": "^5.4.1", + "safe-json-stringify": "^1.2.0", + "strip-json-comments": "^3.1.1", + "terminal-link": "^2.1.1", + "utility-types": "^3.10.0", + "winston": "^3.7.2", + "yargs": "^17.5.1", + "yargs-parser": "^21.0.1" + }, + "bin": { + "backport": "bin/backport" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "devOptional": true + }, + "node_modules/base": { + "version": "0.11.2", + "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", + "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", + "dev": true, + "dependencies": { + "cache-base": "^1.0.1", + "class-utils": "^0.3.5", + "component-emitter": "^1.2.1", + "define-property": "^1.0.0", + "isobject": "^3.0.1", + "mixin-deep": "^1.2.0", + "pascalcase": "^0.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/base/node_modules/define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==", + "dev": true, + "dependencies": { + "is-descriptor": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "optional": true + }, + "node_modules/before-after-hook": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz", + "integrity": "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==", + "optional": true + }, + "node_modules/bl": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", + "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", + "optional": true, + "dependencies": { + "buffer": "^5.5.0", + "inherits": "^2.0.4", + "readable-stream": "^3.4.0" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "devOptional": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "devOptional": true, + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browser-process-hrtime": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", + "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==", + "dev": true + }, + "node_modules/browserslist": { + "version": "4.21.9", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.9.tgz", + "integrity": "sha512-M0MFoZzbUrRU4KNfCrDLnvyE7gub+peetoTid3TBIqtunaDJyXlwhakT+/VkvSXcfIzFfK/nkCs4nmyTmxdNSg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001503", + "electron-to-chromium": "^1.4.431", + "node-releases": "^2.0.12", + "update-browserslist-db": "^1.0.11" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bs-logger": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", + "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", + "dev": true, + "dependencies": { + "fast-json-stable-stringify": "2.x" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "dependencies": { + "node-int64": "^0.4.0" + } + }, + "node_modules/buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "optional": true, + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "node_modules/cache-base": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", + "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", + "dev": true, + "dependencies": { + "collection-visit": "^1.0.0", + "component-emitter": "^1.2.1", + "get-value": "^2.0.6", + "has-value": "^1.0.0", + "isobject": "^3.0.1", + "set-value": "^2.0.0", + "to-object-path": "^0.3.0", + "union-value": "^1.0.0", + "unset-value": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001507", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001507.tgz", + "integrity": "sha512-SFpUDoSLCaE5XYL2jfqe9ova/pbQHEmbheDf5r4diNwbAgR3qxM9NQtfsiSscjqoya5K7kFcHPUQ+VsUkIJR4A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ] + }, + "node_modules/capture-exit": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/capture-exit/-/capture-exit-2.0.0.tgz", + "integrity": "sha512-PiT/hQmTonHhl/HFGN+Lx3JJUznrVYJ3+AQsnthneZbvW7x+f08Tk7yLJTLEOUvBTbduLeeBkxEaYXUOUrRq6g==", + "dev": true, + "dependencies": { + "rsvp": "^4.8.4" + }, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/case": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/case/-/case-1.6.3.tgz", + "integrity": "sha512-mzDSXIPaFwVDvZAHqZ9VlbyF4yyXRuX6IvB06WvPYkqJVO24kX1PPhv9bfpKNFZyxYFmmgo03HUiD8iklmJYRQ==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/cdk8s": { + "version": "2.7.83", + "resolved": "https://registry.npmjs.org/cdk8s/-/cdk8s-2.7.83.tgz", + "integrity": "sha512-hVeoXCDZ14qRcYxDK9PoDQv5kSVyTp+PtNM+E/uAHa03VLYQLx0DA8933C8mMQzRjqRi7mvg1ql+AzW+xSy6QA==", + "bundleDependencies": [ + "fast-json-patch", + "follow-redirects", + "yaml" + ], + "dependencies": { + "fast-json-patch": "^3.1.1", + "follow-redirects": "^1.15.2", + "yaml": "2.2.2" + }, + "engines": { + "node": ">= 16.20.0" + }, + "optionalDependencies": { + "backport": "8.5.0" + }, + "peerDependencies": { + "constructs": "^10" + } + }, + "node_modules/cdk8s-cli": { + "version": "2.2.73", + "resolved": "https://registry.npmjs.org/cdk8s-cli/-/cdk8s-cli-2.2.73.tgz", + "integrity": "sha512-OtAIVYEJ7yvjSVhSlNm0SBM6iYRziZbM8mFZaDg9Bob1CLzTQjSE6G23I2OUGyedYFMzNRoKWo2Vukb05fq3Iw==", + "dev": true, + "dependencies": { + "@types/node": "^16", + "ajv": "^8.12.0", + "cdk8s": "^2.7.81", + "cdk8s-plus-25": "^2.8.45", + "codemaker": "^1.84.0", + "colors": "1.4.0", + "constructs": "^10.2.57", + "fs-extra": "^8", + "jsii-pacmak": "^1.84.0", + "jsii-srcmak": "^0.1.937", + "json2jsii": "^0.3.374", + "semver": "^7.5.3", + "sscaff": "^1.2.274", + "table": "^6.8.1", + "yaml": "2.3.1", + "yargs": "^15" + }, + "bin": { + "cdk8s": "bin/cdk8s" + }, + "engines": { + "node": ">= 16.20.0" + }, + "optionalDependencies": { + "backport": "8.5.0" + } + }, + "node_modules/cdk8s-cli/node_modules/@types/node": { + "version": "16.18.36", + "resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.36.tgz", + "integrity": "sha512-8egDX8dE50XyXWH6C6PRCNkTP106DuUrvdrednFouDSmCi7IOvrqr0frznfZaHifHH/3aq/7a7v9N4wdXMqhBQ==", + "dev": true + }, + "node_modules/cdk8s-cli/node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/cdk8s-cli/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cdk8s-cli/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cdk8s-cli/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/cdk8s-cli/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cdk8s-cli/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cdk8s-cli/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/cdk8s-cli/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cdk8s-cli/node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "dev": true + }, + "node_modules/cdk8s-cli/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/cdk8s-cli/node_modules/yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "dev": true, + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cdk8s-cli/node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/cdk8s-plus-25": { + "version": "2.8.49", + "resolved": "https://registry.npmjs.org/cdk8s-plus-25/-/cdk8s-plus-25-2.8.49.tgz", + "integrity": "sha512-+kY/ITwJ/v9t5WXuZVbvwHhl+TGUVpwaNrgAZM7LUzz6NFMJez4/jmfC2O0l/VLgHtCk0XnEGk5Xn6aL+6V/vA==", + "bundleDependencies": [ + "minimatch" + ], + "dependencies": { + "minimatch": "^3.1.2" + }, + "engines": { + "node": ">= 16.20.0" + }, + "peerDependencies": { + "cdk8s": "^2.7.83", + "constructs": "^10.2.58" + } + }, + "node_modules/cdk8s-plus-25/node_modules/balanced-match": { + "version": "1.0.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/cdk8s-plus-25/node_modules/concat-map": { + "version": "0.0.1", + "inBundle": true, + "license": "MIT" + }, + "node_modules/cdk8s-plus-25/node_modules/minimatch": { + "version": "3.1.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/cdk8s-plus-25/node_modules/minimatch/node_modules/brace-expansion": { + "version": "1.1.11", + "inBundle": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/cdk8s/node_modules/fast-json-patch": { + "version": "3.1.1", + "inBundle": true, + "license": "MIT" + }, + "node_modules/cdk8s/node_modules/follow-redirects": { + "version": "1.15.2", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/cdk8s/node_modules/yaml": { + "version": "2.2.2", + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">= 14" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "devOptional": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/chardet": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", + "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", + "optional": true + }, + "node_modules/ci-info": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", + "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", + "dev": true + }, + "node_modules/cjs-module-lexer": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-0.6.0.tgz", + "integrity": "sha512-uc2Vix1frTfnuzxxu1Hp4ktSvM3QaI4oXl4ZUqL1wjTu/BGki9TrCWoqLTg/drR1KwAEarXuRFCG2Svr1GxPFw==", + "dev": true + }, + "node_modules/class-utils": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", + "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", + "dev": true, + "dependencies": { + "arr-union": "^3.1.0", + "define-property": "^0.2.5", + "isobject": "^3.0.0", + "static-extend": "^0.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/is-accessor-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/is-data-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/clean-stack": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", + "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", + "optional": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/cli-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", + "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", + "optional": true, + "dependencies": { + "restore-cursor": "^3.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cli-spinners": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.0.tgz", + "integrity": "sha512-4/aL9X3Wh0yiMQlE+eeRhWP6vclO3QRtw1JHKIT0FFUs5FjpFmESqtMvYZ0+lbzBw900b95mS0hohy+qn2VK/g==", + "optional": true, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cli-width": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-3.0.0.tgz", + "integrity": "sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==", + "optional": true, + "engines": { + "node": ">= 10" + } + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "devOptional": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/clone": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", + "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", + "optional": true, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", + "dev": true, + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/codemaker": { + "version": "1.84.0", + "resolved": "https://registry.npmjs.org/codemaker/-/codemaker-1.84.0.tgz", + "integrity": "sha512-sOUH3y2q2DEO+gDiBCCoGgkDs8aMY0LTMH0FmHbKpqReZwWDAmWJ0Voc4Thp4Mn380bPku9/ncqyY1a3MZnfEQ==", + "dev": true, + "dependencies": { + "camelcase": "^6.3.0", + "decamelize": "^5.0.1", + "fs-extra": "^10.1.0" + }, + "engines": { + "node": ">= 14.17.0" + } + }, + "node_modules/codemaker/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/codemaker/node_modules/decamelize": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-5.0.1.tgz", + "integrity": "sha512-VfxadyCECXgQlkoEAjeghAr5gY3Hf+IKjKb+X8tGVDtveCjN+USwprd2q3QXBR9T1+x2DG0XZF5/w+7HAtSaXA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/codemaker/node_modules/fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/codemaker/node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/codemaker/node_modules/universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/collect-v8-coverage": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz", + "integrity": "sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==", + "dev": true + }, + "node_modules/collection-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", + "integrity": "sha512-lNkKvzEeMBBjUGHZ+q6z9pSJla0KWAQPvtzhEV9+iGyQYG+pBpl7xKDhxoNSOZH2hhv0v5k0y2yAM4o4SjoSkw==", + "dev": true, + "dependencies": { + "map-visit": "^1.0.0", + "object-visit": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/color": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/color/-/color-3.2.1.tgz", + "integrity": "sha512-aBl7dZI9ENN6fUGC7mWpMTPNHmWUSNan9tuWN6ahh5ZLNk9baLJOnSMlrQkHcrfFgz2/RigjUVAjdx36VcemKA==", + "optional": true, + "dependencies": { + "color-convert": "^1.9.3", + "color-string": "^1.6.0" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "devOptional": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "devOptional": true + }, + "node_modules/color-string": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz", + "integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==", + "optional": true, + "dependencies": { + "color-name": "^1.0.0", + "simple-swizzle": "^0.2.2" + } + }, + "node_modules/color/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "optional": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/color/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "optional": true + }, + "node_modules/colors": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz", + "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==", + "dev": true, + "engines": { + "node": ">=0.1.90" + } + }, + "node_modules/colorspace": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/colorspace/-/colorspace-1.1.4.tgz", + "integrity": "sha512-BgvKJiuVu1igBUF2kEjRCZXol6wiiGbY5ipL/oVPwm0BL9sIpMIzM8IK7vwuxIIzOXMV3Ey5w+vxhm0rR/TN8w==", + "optional": true, + "dependencies": { + "color": "^3.1.3", + "text-hex": "1.0.x" + } + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "devOptional": true, + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commonmark": { + "version": "0.30.0", + "resolved": "https://registry.npmjs.org/commonmark/-/commonmark-0.30.0.tgz", + "integrity": "sha512-j1yoUo4gxPND1JWV9xj5ELih0yMv1iCWDG6eEQIPLSWLxzCXiFoyS7kvB+WwU+tZMf4snwJMMtaubV0laFpiBA==", + "dev": true, + "dependencies": { + "entities": "~2.0", + "mdurl": "~1.0.1", + "minimist": ">=1.2.2", + "string.prototype.repeat": "^0.2.0" + }, + "bin": { + "commonmark": "bin/commonmark" + }, + "engines": { + "node": "*" + } + }, + "node_modules/component-emitter": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", + "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==", + "dev": true + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "devOptional": true + }, + "node_modules/constructs": { + "version": "10.2.58", + "resolved": "https://registry.npmjs.org/constructs/-/constructs-10.2.58.tgz", + "integrity": "sha512-2QzzSho4bKof5va8fPTAdzsoaBvClrYxWPVjMPzbGqL5vF6NA4AAH0tuWPc3SbC9sWVJ/5cybRIAvS+4qaEHDw==", + "engines": { + "node": ">= 16.14.0" + } + }, + "node_modules/convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", + "dev": true + }, + "node_modules/copy-descriptor": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", + "integrity": "sha512-XgZ0pFcakEUlbwQEVNg3+QAis1FyTL3Qel9FYy8pSkQqoG3PNoT0bOCQtOXcOkur21r2Eq2kI+IE+gsmAEVlYw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", + "dev": true + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/cssom": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz", + "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==", + "dev": true + }, + "node_modules/cssstyle": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", + "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", + "dev": true, + "dependencies": { + "cssom": "~0.3.6" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cssstyle/node_modules/cssom": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", + "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", + "dev": true + }, + "node_modules/data-urls": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", + "integrity": "sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==", + "dev": true, + "dependencies": { + "abab": "^2.0.3", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/data-urls/node_modules/tr46": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", + "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", + "dev": true, + "dependencies": { + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/data-urls/node_modules/webidl-conversions": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", + "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", + "dev": true, + "engines": { + "node": ">=10.4" + } + }, + "node_modules/data-urls/node_modules/whatwg-url": { + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", + "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", + "dev": true, + "dependencies": { + "lodash": "^4.7.0", + "tr46": "^2.1.0", + "webidl-conversions": "^6.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/date-format": { + "version": "4.0.14", + "resolved": "https://registry.npmjs.org/date-format/-/date-format-4.0.14.tgz", + "integrity": "sha512-39BOQLs9ZjKh0/patS9nrT8wc3ioX3/eA/zgbKNopnF2wCqJEoxywwwElATYvRsXdnOxA/OQeQoFZ3rFjVajhg==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/debug/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/decimal.js": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz", + "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==", + "dev": true + }, + "node_modules/decode-uri-component": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz", + "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==", + "dev": true, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/dedent": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", + "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==", + "optional": true + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/defaults": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz", + "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==", + "optional": true, + "dependencies": { + "clone": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/define-property": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", + "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", + "dev": true, + "dependencies": { + "is-descriptor": "^1.0.2", + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/del": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/del/-/del-6.1.1.tgz", + "integrity": "sha512-ua8BhapfP0JUJKC/zV9yHHDW/rDoDxP4Zhn3AkA6/xT6gY7jYXJiaeyBZznYVujhZZET+UgcbZiQ7sN3WqcImg==", + "optional": true, + "dependencies": { + "globby": "^11.0.1", + "graceful-fs": "^4.2.4", + "is-glob": "^4.0.1", + "is-path-cwd": "^2.2.0", + "is-path-inside": "^3.0.2", + "p-map": "^4.0.0", + "rimraf": "^3.0.2", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "devOptional": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/deprecation": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", + "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==", + "optional": true + }, + "node_modules/detect-indent": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-5.0.0.tgz", + "integrity": "sha512-rlpvsxUtM0PQvy9iZe640/IWwWYyBsTApREbA1pHOpmOUIl9MkP/U4z7vTtg4Oaojvqhxt7sdufnT0EzGaR31g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true, + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/diff-sequences": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-26.6.2.tgz", + "integrity": "sha512-Mv/TDa3nZ9sbc5soK+OoA74BsS3mL37yixCvUAQkiuA4Wz6YtwP/K47n2rv2ovzHZvoiQeA5FTQOschKkEwB0Q==", + "dev": true, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "optional": true, + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/domexception": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz", + "integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==", + "dev": true, + "dependencies": { + "webidl-conversions": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/domexception/node_modules/webidl-conversions": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz", + "integrity": "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/dot-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz", + "integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==", + "dev": true, + "dependencies": { + "no-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "node_modules/dotenv": { + "version": "16.3.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz", + "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/motdotla/dotenv?sponsor=1" + } + }, + "node_modules/downlevel-dts": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/downlevel-dts/-/downlevel-dts-0.11.0.tgz", + "integrity": "sha512-vo835pntK7kzYStk7xUHDifiYJvXxVhUapt85uk2AI94gUUAQX9HNRtrcMHNSc3YHJUEHGbYIGsM99uIbgAtxw==", + "dev": true, + "dependencies": { + "semver": "^7.3.2", + "shelljs": "^0.8.3", + "typescript": "next" + }, + "bin": { + "downlevel-dts": "index.js" + } + }, + "node_modules/downlevel-dts/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/downlevel-dts/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/downlevel-dts/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/electron-to-chromium": { + "version": "1.4.440", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.440.tgz", + "integrity": "sha512-r6dCgNpRhPwiWlxbHzZQ/d9swfPaEJGi8ekqRBwQYaR3WmA5VkqQfBWSDDjuJU1ntO+W9tHx8OHV/96Q8e0dVw==", + "dev": true + }, + "node_modules/emittery": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.7.2.tgz", + "integrity": "sha512-A8OG5SR/ij3SsJdWDJdkkSYUjQdCUx6APQXem0SaEePBSRg4eymGYwBkKo1Y6DU+af/Jn2dBQqDBvjnr9Vi8nQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "devOptional": true + }, + "node_modules/enabled": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/enabled/-/enabled-2.0.0.tgz", + "integrity": "sha512-AKrN98kuwOzMIdAizXGI86UFBoo26CL21UM763y1h/GMSJ4/OHU9k2YlsmBpyScFo/wbLzWQJBMCW4+IO3/+OQ==", + "optional": true + }, + "node_modules/end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dev": true, + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/entities": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.0.3.tgz", + "integrity": "sha512-MyoZ0jgnLvB2X3Lg5HqpFmn1kybDiIfEQmKzTb5apr51Rb+T3KdmMiqa70T+bhGnyv7bQ6WMj2QMHpGMmlrUYQ==", + "dev": true + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/error-ex/node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true + }, + "node_modules/escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "devOptional": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "devOptional": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/escodegen": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.0.0.tgz", + "integrity": "sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==", + "dev": true, + "dependencies": { + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2", + "optionator": "^0.8.1" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=6.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/exec-sh": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/exec-sh/-/exec-sh-0.3.6.tgz", + "integrity": "sha512-nQn+hI3yp+oD0huYhKwvYI32+JFeq+XkNcD1GAo3Y/MjxsfVGmrrzrnzjWiNY6f+pUCP440fThsFh5gZrRAU/w==", + "dev": true + }, + "node_modules/execa": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz", + "integrity": "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.0", + "get-stream": "^5.0.0", + "human-signals": "^1.1.1", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.0", + "onetime": "^5.1.0", + "signal-exit": "^3.0.2", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expand-brackets": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", + "integrity": "sha512-w/ozOKR9Obk3qoWeY/WDi6MFta9AoMR+zud60mdnbniMcBxRuFJyDt2LdX/14A1UABeqk+Uk+LDfUpvoGKppZA==", + "dev": true, + "dependencies": { + "debug": "^2.3.3", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "posix-character-classes": "^0.1.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/expand-brackets/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-accessor-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-data-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "node_modules/expect": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/expect/-/expect-26.6.2.tgz", + "integrity": "sha512-9/hlOBkQl2l/PLHJx6JjoDF6xPKcJEsUlWKb23rKE7KzeDqUZKXKNMW27KIue5JMdBV9HgmoJPcc8HtO85t9IA==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "ansi-styles": "^4.0.0", + "jest-get-type": "^26.3.0", + "jest-matcher-utils": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-regex-util": "^26.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", + "dev": true, + "dependencies": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/external-editor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", + "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==", + "optional": true, + "dependencies": { + "chardet": "^0.7.0", + "iconv-lite": "^0.4.24", + "tmp": "^0.0.33" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/extglob": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", + "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", + "dev": true, + "dependencies": { + "array-unique": "^0.3.2", + "define-property": "^1.0.0", + "expand-brackets": "^2.1.4", + "extend-shallow": "^2.0.1", + "fragment-cache": "^0.2.1", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/extglob/node_modules/define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==", + "dev": true, + "dependencies": { + "is-descriptor": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/extglob/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/extglob/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-glob": { + "version": "3.2.12", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", + "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", + "devOptional": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "node_modules/fastq": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", + "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "devOptional": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fb-watchman": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dev": true, + "dependencies": { + "bser": "2.1.1" + } + }, + "node_modules/fecha": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/fecha/-/fecha-4.2.3.tgz", + "integrity": "sha512-OP2IUU6HeYKJi3i0z4A19kHMQoLVs4Hc+DPqqxI2h/DPZHTm/vjsfC6P0b4jCMy14XizLBqvndQ+UilD7707Jw==", + "optional": true + }, + "node_modules/figures": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", + "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", + "optional": true, + "dependencies": { + "escape-string-regexp": "^1.0.5" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "devOptional": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "optional": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flatted": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", + "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", + "dev": true + }, + "node_modules/fn.name": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fn.name/-/fn.name-1.1.0.tgz", + "integrity": "sha512-GRnmB5gPyJpAhTQdSZTSp9uaPSvl09KoYcMQtsB9rQoOmzs9dH6ffeccH+Z+cv6P68Hu5bC6JjRh4Ah/mHSNRw==", + "optional": true + }, + "node_modules/follow-redirects": { + "version": "1.15.2", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", + "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "optional": true, + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/for-in": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", + "integrity": "sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "optional": true, + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fragment-cache": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", + "integrity": "sha512-GMBAbW9antB8iZRHLoGw0b3HANt57diZYFO/HL1JGIC1MjKrdmhxvrJbupnVvpys0zsz7yBApXdQyfepKly2kA==", + "dev": true, + "dependencies": { + "map-cache": "^0.2.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, + "node_modules/fs-extra/node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "devOptional": true + }, + "node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "devOptional": true, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "dev": true, + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/get-value": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", + "integrity": "sha512-Ln0UQDlxH1BapMu3GPtf7CuYNwRZf2gwCuPqbyG6pB8WfmFpzqcy4xtAaAMUhnNqjMKTiCPZG2oMT3YSx8U2NA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "devOptional": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "devOptional": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "optional": true, + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "devOptional": true + }, + "node_modules/graphql": { + "version": "16.7.1", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-16.7.1.tgz", + "integrity": "sha512-DRYR9tf+UGU0KOsMcKAlXeFfX89UiiIZ0dRU3mR0yJfu6OjZqUcp68NnFLnqQU5RexygFoDy1EW+ccOYcPfmHg==", + "optional": true, + "engines": { + "node": "^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0" + } + }, + "node_modules/graphql-tag": { + "version": "2.12.6", + "resolved": "https://registry.npmjs.org/graphql-tag/-/graphql-tag-2.12.6.tgz", + "integrity": "sha512-FdSNcu2QQcWnM2VNvSCCDCVS5PpPqpzgFT8+GXzqJuoDd0CBncxCY278u4mhRO7tMgo2JjgJA5aZ+nWSQ/Z+xg==", + "optional": true, + "dependencies": { + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "graphql": "^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" + } + }, + "node_modules/growly": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz", + "integrity": "sha512-+xGQY0YyAWCnqy7Cd++hc2JqMYzlm0dG30Jd0beaA64sROr8C4nt8Yc9V5Ro3avlSUDTN0ulqP/VBKi1/lLygw==", + "dev": true, + "optional": true + }, + "node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "devOptional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/has-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", + "integrity": "sha512-IBXk4GTsLYdQ7Rvt+GRBrFSVEkmuOUy4re0Xjd9kJSUQpnTrWR4/y9RpfexN9vkAPMFuQoeWKwqzPozRTlasGw==", + "dev": true, + "dependencies": { + "get-value": "^2.0.6", + "has-values": "^1.0.0", + "isobject": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-values": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", + "integrity": "sha512-ODYZC64uqzmtfGMEAX/FvZiRyWLpAC3vYnNunURUnkGVTS+mI0smVsWaPydRBsE3g+ok7h960jChO8mFcWlHaQ==", + "dev": true, + "dependencies": { + "is-number": "^3.0.0", + "kind-of": "^4.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-values/node_modules/is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-values/node_modules/is-number/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-values/node_modules/kind-of": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", + "integrity": "sha512-24XsCxmEbRwEDbz/qz3stgin8TTzZ1ESR56OMCN0ujYg+vRutNSiOj9bHH9u85DKgXguraugV5sFuvbD4FW/hw==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/hosted-git-info": { + "version": "2.8.9", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", + "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", + "dev": true + }, + "node_modules/html-encoding-sniffer": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz", + "integrity": "sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==", + "dev": true, + "dependencies": { + "whatwg-encoding": "^1.0.5" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true + }, + "node_modules/http-proxy-agent": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", + "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", + "dev": true, + "dependencies": { + "@tootallnate/once": "1", + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "dev": true, + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/human-signals": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz", + "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==", + "dev": true, + "engines": { + "node": ">=8.12.0" + } + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "devOptional": true, + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "optional": true + }, + "node_modules/ignore": { + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", + "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", + "optional": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-local": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", + "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", + "dev": true, + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "optional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "devOptional": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "devOptional": true + }, + "node_modules/inquirer": { + "version": "8.2.5", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.5.tgz", + "integrity": "sha512-QAgPDQMEgrDssk1XiwwHoOGYF9BAbUcc1+j+FhEvaOt8/cKRqyLn0U5qA6F74fGhTMGxf92pOvPBeh29jQJDTQ==", + "optional": true, + "dependencies": { + "ansi-escapes": "^4.2.1", + "chalk": "^4.1.1", + "cli-cursor": "^3.1.0", + "cli-width": "^3.0.0", + "external-editor": "^3.0.3", + "figures": "^3.0.0", + "lodash": "^4.17.21", + "mute-stream": "0.0.8", + "ora": "^5.4.1", + "run-async": "^2.4.0", + "rxjs": "^7.5.5", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0", + "through": "^2.3.6", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/interpret": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", + "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "dependencies": { + "kind-of": "^6.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-arrayish": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz", + "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==", + "optional": true + }, + "node_modules/is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true + }, + "node_modules/is-ci": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", + "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", + "dev": true, + "dependencies": { + "ci-info": "^2.0.0" + }, + "bin": { + "is-ci": "bin.js" + } + }, + "node_modules/is-core-module": { + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz", + "integrity": "sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==", + "dev": true, + "dependencies": { + "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "dependencies": { + "kind-of": "^6.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "dev": true, + "optional": true, + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "dependencies": { + "is-plain-object": "^2.0.4" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-extendable/node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "devOptional": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "devOptional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "devOptional": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-interactive": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", + "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", + "optional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "devOptional": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-path-cwd": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz", + "integrity": "sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==", + "optional": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "optional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-plain-object": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", + "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", + "optional": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-potential-custom-element-name": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", + "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", + "dev": true + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "devOptional": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==", + "dev": true + }, + "node_modules/is-unicode-supported": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", + "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", + "optional": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-windows": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", + "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "dev": true, + "optional": true, + "dependencies": { + "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "dev": true + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/istanbul-lib-coverage": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", + "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz", + "integrity": "sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==", + "dev": true, + "dependencies": { + "@babel/core": "^7.7.5", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.0.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", + "dev": true, + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^3.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "dev": true, + "dependencies": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-reports": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", + "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", + "dev": true, + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest/-/jest-26.6.3.tgz", + "integrity": "sha512-lGS5PXGAzR4RF7V5+XObhqz2KZIDUA1yD0DG6pBVmy10eh0ZIXQImRuzocsI/N2XZ1GrLFwTS27In2i2jlpq1Q==", + "dev": true, + "dependencies": { + "@jest/core": "^26.6.3", + "import-local": "^3.0.2", + "jest-cli": "^26.6.3" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-changed-files": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-26.6.2.tgz", + "integrity": "sha512-fDS7szLcY9sCtIip8Fjry9oGf3I2ht/QT21bAHm5Dmf0mD4X3ReNUf17y+bO6fR8WgbIZTlbyG1ak/53cbRzKQ==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "execa": "^4.0.0", + "throat": "^5.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-cli": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-26.6.3.tgz", + "integrity": "sha512-GF9noBSa9t08pSyl3CY4frMrqp+aQXFGFkf5hEPbh/pIUFYWMK6ZLTfbmadxJVcJrdRoChlWQsA2VkJcDFK8hg==", + "dev": true, + "dependencies": { + "@jest/core": "^26.6.3", + "@jest/test-result": "^26.6.2", + "@jest/types": "^26.6.2", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.4", + "import-local": "^3.0.2", + "is-ci": "^2.0.0", + "jest-config": "^26.6.3", + "jest-util": "^26.6.2", + "jest-validate": "^26.6.2", + "prompts": "^2.0.1", + "yargs": "^15.4.1" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-cli/node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/jest-cli/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-cli/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-cli/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-cli/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-cli/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-cli/node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "dev": true + }, + "node_modules/jest-cli/node_modules/yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "dev": true, + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-cli/node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jest-config": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-26.6.3.tgz", + "integrity": "sha512-t5qdIj/bCj2j7NFVHb2nFB4aUdfucDn3JRKgrZnplb8nieAirAzRSHP8uDEd+qV6ygzg9Pz4YG7UTJf94LPSyg==", + "dev": true, + "dependencies": { + "@babel/core": "^7.1.0", + "@jest/test-sequencer": "^26.6.3", + "@jest/types": "^26.6.2", + "babel-jest": "^26.6.3", + "chalk": "^4.0.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.1", + "graceful-fs": "^4.2.4", + "jest-environment-jsdom": "^26.6.2", + "jest-environment-node": "^26.6.2", + "jest-get-type": "^26.3.0", + "jest-jasmine2": "^26.6.3", + "jest-regex-util": "^26.0.0", + "jest-resolve": "^26.6.2", + "jest-util": "^26.6.2", + "jest-validate": "^26.6.2", + "micromatch": "^4.0.2", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + }, + "peerDependencies": { + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "ts-node": { + "optional": true + } + } + }, + "node_modules/jest-diff": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-26.6.2.tgz", + "integrity": "sha512-6m+9Z3Gv9wN0WFVasqjCL/06+EFCMTqDEUl/b87HYK2rAPTyfz4ZIuSlPhY51PIQRWx5TaxeF1qmXKe9gfN3sA==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^26.6.2", + "jest-get-type": "^26.3.0", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-docblock": { + "version": "26.0.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-26.0.0.tgz", + "integrity": "sha512-RDZ4Iz3QbtRWycd8bUEPxQsTlYazfYn/h5R65Fc6gOfwozFhoImx+affzky/FFBuqISPTqjXomoIGJVKBWoo0w==", + "dev": true, + "dependencies": { + "detect-newline": "^3.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-each": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-26.6.2.tgz", + "integrity": "sha512-Mer/f0KaATbjl8MCJ+0GEpNdqmnVmDYqCTJYTvoo7rqmRiDllmp2AYN+06F93nXcY3ur9ShIjS+CO/uD+BbH4A==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "chalk": "^4.0.0", + "jest-get-type": "^26.3.0", + "jest-util": "^26.6.2", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-environment-jsdom": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-26.6.2.tgz", + "integrity": "sha512-jgPqCruTlt3Kwqg5/WVFyHIOJHsiAvhcp2qiR2QQstuG9yWox5+iHpU3ZrcBxW14T4fe5Z68jAfLRh7joCSP2Q==", + "dev": true, + "dependencies": { + "@jest/environment": "^26.6.2", + "@jest/fake-timers": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "jest-mock": "^26.6.2", + "jest-util": "^26.6.2", + "jsdom": "^16.4.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-environment-node": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-26.6.2.tgz", + "integrity": "sha512-zhtMio3Exty18dy8ee8eJ9kjnRyZC1N4C1Nt/VShN1apyXc8rWGtJ9lI7vqiWcyyXS4BVSEn9lxAM2D+07/Tag==", + "dev": true, + "dependencies": { + "@jest/environment": "^26.6.2", + "@jest/fake-timers": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "jest-mock": "^26.6.2", + "jest-util": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-get-type": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-26.3.0.tgz", + "integrity": "sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig==", + "dev": true, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-haste-map": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-26.6.2.tgz", + "integrity": "sha512-easWIJXIw71B2RdR8kgqpjQrbMRWQBgiBwXYEhtGUTaX+doCjBheluShdDMeR8IMfJiTqH4+zfhtg29apJf/8w==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "@types/graceful-fs": "^4.1.2", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.4", + "jest-regex-util": "^26.0.0", + "jest-serializer": "^26.6.2", + "jest-util": "^26.6.2", + "jest-worker": "^26.6.2", + "micromatch": "^4.0.2", + "sane": "^4.0.3", + "walker": "^1.0.7" + }, + "engines": { + "node": ">= 10.14.2" + }, + "optionalDependencies": { + "fsevents": "^2.1.2" + } + }, + "node_modules/jest-jasmine2": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-26.6.3.tgz", + "integrity": "sha512-kPKUrQtc8aYwBV7CqBg5pu+tmYXlvFlSFYn18ev4gPFtrRzB15N2gW/Roew3187q2w2eHuu0MU9TJz6w0/nPEg==", + "dev": true, + "dependencies": { + "@babel/traverse": "^7.1.0", + "@jest/environment": "^26.6.2", + "@jest/source-map": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "expect": "^26.6.2", + "is-generator-fn": "^2.0.0", + "jest-each": "^26.6.2", + "jest-matcher-utils": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-runtime": "^26.6.3", + "jest-snapshot": "^26.6.2", + "jest-util": "^26.6.2", + "pretty-format": "^26.6.2", + "throat": "^5.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-leak-detector": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-26.6.2.tgz", + "integrity": "sha512-i4xlXpsVSMeKvg2cEKdfhh0H39qlJlP5Ex1yQxwF9ubahboQYMgTtz5oML35AVA3B4Eu+YsmwaiKVev9KCvLxg==", + "dev": true, + "dependencies": { + "jest-get-type": "^26.3.0", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-matcher-utils": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-26.6.2.tgz", + "integrity": "sha512-llnc8vQgYcNqDrqRDXWwMr9i7rS5XFiCwvh6DTP7Jqa2mqpcCBBlpCbn+trkG0KNhPu/h8rzyBkriOtBstvWhw==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^26.6.2", + "jest-get-type": "^26.3.0", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-message-util": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-26.6.2.tgz", + "integrity": "sha512-rGiLePzQ3AzwUshu2+Rn+UMFk0pHN58sOG+IaJbk5Jxuqo3NYO1U2/MIR4S1sKgsoYSXSzdtSa0TgrmtUwEbmA==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.0.0", + "@jest/types": "^26.6.2", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.4", + "micromatch": "^4.0.2", + "pretty-format": "^26.6.2", + "slash": "^3.0.0", + "stack-utils": "^2.0.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-mock": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-26.6.2.tgz", + "integrity": "sha512-YyFjePHHp1LzpzYcmgqkJ0nm0gg/lJx2aZFzFy1S6eUqNjXsOqTK10zNRff2dNfssgokjkG65OlWNcIlgd3zew==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "@types/node": "*" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "dev": true, + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "jest-resolve": "*" + }, + "peerDependenciesMeta": { + "jest-resolve": { + "optional": true + } + } + }, + "node_modules/jest-regex-util": { + "version": "26.0.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-26.0.0.tgz", + "integrity": "sha512-Gv3ZIs/nA48/Zvjrl34bf+oD76JHiGDUxNOVgUjh3j890sblXryjY4rss71fPtD/njchl6PSE2hIhvyWa1eT0A==", + "dev": true, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-resolve": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-26.6.2.tgz", + "integrity": "sha512-sOxsZOq25mT1wRsfHcbtkInS+Ek7Q8jCHUB0ZUTP0tc/c41QHriU/NunqMfCUWsL4H3MHpvQD4QR9kSYhS7UvQ==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.4", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^26.6.2", + "read-pkg-up": "^7.0.1", + "resolve": "^1.18.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-resolve-dependencies": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-26.6.3.tgz", + "integrity": "sha512-pVwUjJkxbhe4RY8QEWzN3vns2kqyuldKpxlxJlzEYfKSvY6/bMvxoFrYYzUO1Gx28yKWN37qyV7rIoIp2h8fTg==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "jest-regex-util": "^26.0.0", + "jest-snapshot": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-runner": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-26.6.3.tgz", + "integrity": "sha512-atgKpRHnaA2OvByG/HpGA4g6CSPS/1LK0jK3gATJAoptC1ojltpmVlYC3TYgdmGp+GLuhzpH30Gvs36szSL2JQ==", + "dev": true, + "dependencies": { + "@jest/console": "^26.6.2", + "@jest/environment": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.7.1", + "exit": "^0.1.2", + "graceful-fs": "^4.2.4", + "jest-config": "^26.6.3", + "jest-docblock": "^26.0.0", + "jest-haste-map": "^26.6.2", + "jest-leak-detector": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-resolve": "^26.6.2", + "jest-runtime": "^26.6.3", + "jest-util": "^26.6.2", + "jest-worker": "^26.6.2", + "source-map-support": "^0.5.6", + "throat": "^5.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-runtime": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-26.6.3.tgz", + "integrity": "sha512-lrzyR3N8sacTAMeonbqpnSka1dHNux2uk0qqDXVkMv2c/A3wYnvQ4EXuI013Y6+gSKSCxdaczvf4HF0mVXHRdw==", + "dev": true, + "dependencies": { + "@jest/console": "^26.6.2", + "@jest/environment": "^26.6.2", + "@jest/fake-timers": "^26.6.2", + "@jest/globals": "^26.6.2", + "@jest/source-map": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/transform": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0", + "cjs-module-lexer": "^0.6.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.4", + "jest-config": "^26.6.3", + "jest-haste-map": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-mock": "^26.6.2", + "jest-regex-util": "^26.0.0", + "jest-resolve": "^26.6.2", + "jest-snapshot": "^26.6.2", + "jest-util": "^26.6.2", + "jest-validate": "^26.6.2", + "slash": "^3.0.0", + "strip-bom": "^4.0.0", + "yargs": "^15.4.1" + }, + "bin": { + "jest-runtime": "bin/jest-runtime.js" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-runtime/node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/jest-runtime/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-runtime/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime/node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "dev": true + }, + "node_modules/jest-runtime/node_modules/yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "dev": true, + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime/node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jest-serializer": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-26.6.2.tgz", + "integrity": "sha512-S5wqyz0DXnNJPd/xfIzZ5Xnp1HrJWBczg8mMfMpN78OJ5eDxXyf+Ygld9wX1DnUWbIbhM1YDY95NjR4CBXkb2g==", + "dev": true, + "dependencies": { + "@types/node": "*", + "graceful-fs": "^4.2.4" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-snapshot": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-26.6.2.tgz", + "integrity": "sha512-OLhxz05EzUtsAmOMzuupt1lHYXCNib0ECyuZ/PZOx9TrZcC8vL0x+DUG3TL+GLX3yHG45e6YGjIm0XwDc3q3og==", + "dev": true, + "dependencies": { + "@babel/types": "^7.0.0", + "@jest/types": "^26.6.2", + "@types/babel__traverse": "^7.0.4", + "@types/prettier": "^2.0.0", + "chalk": "^4.0.0", + "expect": "^26.6.2", + "graceful-fs": "^4.2.4", + "jest-diff": "^26.6.2", + "jest-get-type": "^26.3.0", + "jest-haste-map": "^26.6.2", + "jest-matcher-utils": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-resolve": "^26.6.2", + "natural-compare": "^1.4.0", + "pretty-format": "^26.6.2", + "semver": "^7.3.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-snapshot/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-snapshot/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-snapshot/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/jest-util": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-26.6.2.tgz", + "integrity": "sha512-MDW0fKfsn0OI7MS7Euz6h8HNDXVQ0gaM9uW6RjfDmd1DAFcaxX9OqIakHIqhbnmF08Cf2DLDG+ulq8YQQ0Lp0Q==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "@types/node": "*", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.4", + "is-ci": "^2.0.0", + "micromatch": "^4.0.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-validate": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-26.6.2.tgz", + "integrity": "sha512-NEYZ9Aeyj0i5rQqbq+tpIOom0YS1u2MVu6+euBsvpgIme+FOfRmoC4R5p0JiAUpaFvFy24xgrpMknarR/93XjQ==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "camelcase": "^6.0.0", + "chalk": "^4.0.0", + "jest-get-type": "^26.3.0", + "leven": "^3.1.0", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-validate/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-watcher": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-26.6.2.tgz", + "integrity": "sha512-WKJob0P/Em2csiVthsI68p6aGKTIcsfjH9Gsx1f0A3Italz43e3ho0geSAVsmj09RWOELP1AZ/DXyJgOgDKxXQ==", + "dev": true, + "dependencies": { + "@jest/test-result": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "jest-util": "^26.6.2", + "string-length": "^4.0.1" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-worker": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz", + "integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==", + "dev": true, + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^7.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsdom": { + "version": "16.7.0", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.7.0.tgz", + "integrity": "sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==", + "dev": true, + "dependencies": { + "abab": "^2.0.5", + "acorn": "^8.2.4", + "acorn-globals": "^6.0.0", + "cssom": "^0.4.4", + "cssstyle": "^2.3.0", + "data-urls": "^2.0.0", + "decimal.js": "^10.2.1", + "domexception": "^2.0.1", + "escodegen": "^2.0.0", + "form-data": "^3.0.0", + "html-encoding-sniffer": "^2.0.1", + "http-proxy-agent": "^4.0.1", + "https-proxy-agent": "^5.0.0", + "is-potential-custom-element-name": "^1.0.1", + "nwsapi": "^2.2.0", + "parse5": "6.0.1", + "saxes": "^5.0.1", + "symbol-tree": "^3.2.4", + "tough-cookie": "^4.0.0", + "w3c-hr-time": "^1.0.2", + "w3c-xmlserializer": "^2.0.0", + "webidl-conversions": "^6.1.0", + "whatwg-encoding": "^1.0.5", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.5.0", + "ws": "^7.4.6", + "xml-name-validator": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "canvas": "^2.5.0" + }, + "peerDependenciesMeta": { + "canvas": { + "optional": true + } + } + }, + "node_modules/jsdom/node_modules/form-data": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", + "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", + "dev": true, + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/jsdom/node_modules/tr46": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", + "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", + "dev": true, + "dependencies": { + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jsdom/node_modules/webidl-conversions": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", + "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", + "dev": true, + "engines": { + "node": ">=10.4" + } + }, + "node_modules/jsdom/node_modules/whatwg-url": { + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", + "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", + "dev": true, + "dependencies": { + "lodash": "^4.7.0", + "tr46": "^2.1.0", + "webidl-conversions": "^6.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/jsii": { + "version": "1.84.0", + "resolved": "https://registry.npmjs.org/jsii/-/jsii-1.84.0.tgz", + "integrity": "sha512-vtrw3fRrr5Do4LDNxAVXHgtHDyxHvohyzAfBwxcMEYzZ51gJX52wsdlaGE1p0dPe1V9uCAbNQTDKbAMgVJkg0Q==", + "dev": true, + "dependencies": { + "@jsii/check-node": "1.84.0", + "@jsii/spec": "^1.84.0", + "case": "^1.6.3", + "chalk": "^4", + "fast-deep-equal": "^3.1.3", + "fs-extra": "^10.1.0", + "log4js": "^6.9.1", + "semver": "^7.5.1", + "semver-intersect": "^1.4.0", + "sort-json": "^2.0.1", + "spdx-license-list": "^6.6.0", + "typescript": "~3.9.10", + "yargs": "^16.2.0" + }, + "bin": { + "jsii": "bin/jsii" + }, + "engines": { + "node": ">= 14.17.0" + } + }, + "node_modules/jsii-pacmak": { + "version": "1.84.0", + "resolved": "https://registry.npmjs.org/jsii-pacmak/-/jsii-pacmak-1.84.0.tgz", + "integrity": "sha512-+EGfpQDPSyDNPWclcOes6dUhwDsn5dG0bBgVb3hpRWZ0uDe7wLCVwGxh7fphx2XtNvTwdNfspTSBLBMqscOYmg==", + "dev": true, + "dependencies": { + "@jsii/check-node": "1.84.0", + "@jsii/spec": "^1.84.0", + "clone": "^2.1.2", + "codemaker": "^1.84.0", + "commonmark": "^0.30.0", + "escape-string-regexp": "^4.0.0", + "fs-extra": "^10.1.0", + "jsii-reflect": "^1.84.0", + "jsii-rosetta": "^1.84.0", + "semver": "^7.5.1", + "spdx-license-list": "^6.6.0", + "xmlbuilder": "^15.1.1", + "yargs": "^16.2.0" + }, + "bin": { + "jsii-pacmak": "bin/jsii-pacmak" + }, + "engines": { + "node": ">= 14.17.0" + } + }, + "node_modules/jsii-pacmak/node_modules/cliui": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" + } + }, + "node_modules/jsii-pacmak/node_modules/clone": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", + "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==", + "dev": true, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/jsii-pacmak/node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jsii-pacmak/node_modules/fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/jsii-pacmak/node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/jsii-pacmak/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsii-pacmak/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsii-pacmak/node_modules/universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/jsii-pacmak/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/jsii-pacmak/node_modules/yargs": { + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "dev": true, + "dependencies": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsii-pacmak/node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsii-reflect": { + "version": "1.84.0", + "resolved": "https://registry.npmjs.org/jsii-reflect/-/jsii-reflect-1.84.0.tgz", + "integrity": "sha512-Iuh0GAxsQscK1re9sWEQHG0wKswnr7ha4EZ8j47Sigo8yBIZNp01P+V0kbZ55bDjiT66Sqqu3jaDJdYzR/5o4w==", + "dev": true, + "dependencies": { + "@jsii/check-node": "1.84.0", + "@jsii/spec": "^1.84.0", + "chalk": "^4", + "fs-extra": "^10.1.0", + "oo-ascii-tree": "^1.84.0", + "yargs": "^16.2.0" + }, + "bin": { + "jsii-tree": "bin/jsii-tree" + }, + "engines": { + "node": ">= 14.17.0" + } + }, + "node_modules/jsii-reflect/node_modules/cliui": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" + } + }, + "node_modules/jsii-reflect/node_modules/fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/jsii-reflect/node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/jsii-reflect/node_modules/universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/jsii-reflect/node_modules/yargs": { + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "dev": true, + "dependencies": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsii-reflect/node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsii-rosetta": { + "version": "1.84.0", + "resolved": "https://registry.npmjs.org/jsii-rosetta/-/jsii-rosetta-1.84.0.tgz", + "integrity": "sha512-VrXmc6utiNs3eNTKxVky0LTxoQrsh5GuEGyfj9ihwCkojYBJ3w80PdkMQEeRpWGdaCLEocjpy1X67xgZ4ZbPlg==", + "dev": true, + "dependencies": { + "@jsii/check-node": "1.84.0", + "@jsii/spec": "1.84.0", + "@xmldom/xmldom": "^0.8.8", + "commonmark": "^0.30.0", + "fast-glob": "^3.2.12", + "jsii": "1.84.0", + "semver": "^7.5.1", + "semver-intersect": "^1.4.0", + "stream-json": "^1.8.0", + "typescript": "~3.9.10", + "workerpool": "^6.4.0", + "yargs": "^16.2.0" + }, + "bin": { + "jsii-rosetta": "bin/jsii-rosetta" + }, + "engines": { + "node": ">= 14.17.0" + } + }, + "node_modules/jsii-rosetta/node_modules/cliui": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" + } + }, + "node_modules/jsii-rosetta/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsii-rosetta/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsii-rosetta/node_modules/typescript": { + "version": "3.9.10", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz", + "integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/jsii-rosetta/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/jsii-rosetta/node_modules/yargs": { + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "dev": true, + "dependencies": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsii-rosetta/node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsii-srcmak": { + "version": "0.1.938", + "resolved": "https://registry.npmjs.org/jsii-srcmak/-/jsii-srcmak-0.1.938.tgz", + "integrity": "sha512-WbgH7UJpsBJtYrI0Pz32cz7S9UWtzsNFPFX73AGzqTbc5fTow4viW3SpwnkcL0C16OyF+IZirdFyKjokHlte5A==", + "dev": true, + "dependencies": { + "fs-extra": "^9.1.0", + "jsii": "~5.1.2", + "jsii-pacmak": "^1.84.0", + "ncp": "^2.0.0", + "yargs": "^15.4.1" + }, + "bin": { + "jsii-srcmak": "bin/jsii-srcmak" + } + }, + "node_modules/jsii-srcmak/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jsii-srcmak/node_modules/fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dev": true, + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsii-srcmak/node_modules/jsii": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/jsii/-/jsii-5.1.2.tgz", + "integrity": "sha512-0meHdufy0L4uxLPxJ1MoGmEuuuC1VUaymDc+x282BMW9xRDydI5KX5YkzsZrCnemrGiX8ObmA08zcVa32Ilu/Q==", + "dev": true, + "dependencies": { + "@jsii/check-node": "1.84.0", + "@jsii/spec": "^1.84.0", + "case": "^1.6.3", + "chalk": "^4", + "downlevel-dts": "^0.11.0", + "fast-deep-equal": "^3.1.3", + "log4js": "^6.9.1", + "semver": "^7.5.2", + "semver-intersect": "^1.4.0", + "sort-json": "^2.0.1", + "spdx-license-list": "^6.6.0", + "typescript": "~5.1.3", + "yargs": "^17.7.2" + }, + "bin": { + "jsii": "bin/jsii" + }, + "engines": { + "node": ">= 14.18.0" + } + }, + "node_modules/jsii-srcmak/node_modules/jsii/node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/jsii-srcmak/node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/jsii-srcmak/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jsii-srcmak/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsii-srcmak/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jsii-srcmak/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jsii-srcmak/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsii-srcmak/node_modules/typescript": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.3.tgz", + "integrity": "sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/jsii-srcmak/node_modules/universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/jsii-srcmak/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jsii-srcmak/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/jsii-srcmak/node_modules/yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "dev": true, + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jsii-srcmak/node_modules/yargs/node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/jsii-srcmak/node_modules/yargs/node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "dev": true + }, + "node_modules/jsii-srcmak/node_modules/yargs/node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsii/node_modules/cliui": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" + } + }, + "node_modules/jsii/node_modules/fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/jsii/node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/jsii/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsii/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsii/node_modules/typescript": { + "version": "3.9.10", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz", + "integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/jsii/node_modules/universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/jsii/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/jsii/node_modules/yargs": { + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "dev": true, + "dependencies": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsii/node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "node_modules/json-schema": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", + "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==", + "dev": true + }, + "node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "node_modules/json2jsii": { + "version": "0.3.376", + "resolved": "https://registry.npmjs.org/json2jsii/-/json2jsii-0.3.376.tgz", + "integrity": "sha512-XLaOo85TLCe/iMmx+i+A86cSPKUlBkCx1+BTbKhqqJPsMCvrU7KsasdepUidasplNBHmw7g3FLw6MYRvc/Zsjw==", + "dev": true, + "dependencies": { + "camelcase": "^6.3.0", + "json-schema": "^0.4.0", + "snake-case": "^3.0.4" + }, + "engines": { + "node": ">= 16.14.0" + } + }, + "node_modules/json2jsii/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "dev": true, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/kuler": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/kuler/-/kuler-2.0.0.tgz", + "integrity": "sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A==", + "optional": true + }, + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/levn": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", + "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", + "dev": true, + "dependencies": { + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "optional": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "devOptional": true + }, + "node_modules/lodash.truncate": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", + "integrity": "sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw==", + "dev": true + }, + "node_modules/log-symbols": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", + "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", + "optional": true, + "dependencies": { + "chalk": "^4.1.0", + "is-unicode-supported": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/log4js": { + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/log4js/-/log4js-6.9.1.tgz", + "integrity": "sha512-1somDdy9sChrr9/f4UlzhdaGfDR2c/SaD2a4T7qEkG4jTS57/B3qmnjLYePwQ8cqWnUHZI0iAKxMBpCZICiZ2g==", + "dev": true, + "dependencies": { + "date-format": "^4.0.14", + "debug": "^4.3.4", + "flatted": "^3.2.7", + "rfdc": "^1.3.0", + "streamroller": "^3.1.5" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/logform": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/logform/-/logform-2.5.1.tgz", + "integrity": "sha512-9FyqAm9o9NKKfiAKfZoYo9bGXXuwMkxQiQttkT4YjjVtQVIQtK6LmVtlxmCaFswo6N4AfEkHqZTV0taDtPotNg==", + "optional": true, + "dependencies": { + "@colors/colors": "1.5.0", + "@types/triple-beam": "^1.3.2", + "fecha": "^4.2.0", + "ms": "^2.1.1", + "safe-stable-stringify": "^2.3.1", + "triple-beam": "^1.3.0" + } + }, + "node_modules/lower-case": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", + "integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==", + "dev": true, + "dependencies": { + "tslib": "^2.0.3" + } + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "devOptional": true, + "dependencies": { + "semver": "^6.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, + "node_modules/makeerror": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dev": true, + "dependencies": { + "tmpl": "1.0.5" + } + }, + "node_modules/map-cache": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", + "integrity": "sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/map-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", + "integrity": "sha512-4y7uGv8bd2WdM9vpQsiQNo41Ln1NvhvDRuVt0k2JZQ+ezN2uaQes7lZeZ+QQUHOLQAtDaBJ+7wCbi+ab/KFs+w==", + "dev": true, + "dependencies": { + "object-visit": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/mdurl": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", + "integrity": "sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==", + "dev": true + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "devOptional": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "devOptional": true, + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "devOptional": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "devOptional": true, + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "devOptional": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "devOptional": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/mixin-deep": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", + "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", + "dev": true, + "dependencies": { + "for-in": "^1.0.2", + "is-extendable": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true, + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "optional": true + }, + "node_modules/mute-stream": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", + "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", + "optional": true + }, + "node_modules/nanomatch": { + "version": "1.2.13", + "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", + "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", + "dev": true, + "dependencies": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "fragment-cache": "^0.2.1", + "is-windows": "^1.0.2", + "kind-of": "^6.0.2", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/ncp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ncp/-/ncp-2.0.0.tgz", + "integrity": "sha512-zIdGUrPRFTUELUvr3Gmc7KZ2Sw/h1PiVM0Af/oHB6zgnV1ikqSfRk+TOufi79aHYCW3NiOXmr1BP5nWbzojLaA==", + "dev": true, + "bin": { + "ncp": "bin/ncp" + } + }, + "node_modules/nice-try": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", + "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", + "dev": true + }, + "node_modules/no-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", + "integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==", + "dev": true, + "dependencies": { + "lower-case": "^2.0.2", + "tslib": "^2.0.3" + } + }, + "node_modules/node-fetch": { + "version": "2.6.11", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.11.tgz", + "integrity": "sha512-4I6pdBY1EthSqDmJkiNk3JIT8cswwR9nfeW/cPdUagJYEQG7R95WRH74wpz7ma8Gh/9dI9FP+OU+0E4FvtA55w==", + "optional": true, + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true + }, + "node_modules/node-notifier": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-8.0.2.tgz", + "integrity": "sha512-oJP/9NAdd9+x2Q+rfphB2RJCHjod70RcRLjosiPMMu5gjIfwVnOUGq2nbTjTUbmy0DJ/tFIVT30+Qe3nzl4TJg==", + "dev": true, + "optional": true, + "dependencies": { + "growly": "^1.3.0", + "is-wsl": "^2.2.0", + "semver": "^7.3.2", + "shellwords": "^0.1.1", + "uuid": "^8.3.0", + "which": "^2.0.2" + } + }, + "node_modules/node-notifier/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "optional": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/node-notifier/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "dev": true, + "optional": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/node-notifier/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true, + "optional": true + }, + "node_modules/node-releases": { + "version": "2.0.12", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.12.tgz", + "integrity": "sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ==", + "dev": true + }, + "node_modules/normalize-package-data": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "dev": true, + "dependencies": { + "hosted-git-info": "^2.1.4", + "resolve": "^1.10.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" + } + }, + "node_modules/normalize-package-data/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/nwsapi": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.5.tgz", + "integrity": "sha512-6xpotnECFy/og7tKSBVmUNft7J3jyXAka4XvG6AUhFWRz+Q/Ljus7znJAA3bxColfQLdS+XsjoodtJfCgeTEFQ==", + "dev": true + }, + "node_modules/object-copy": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", + "integrity": "sha512-79LYn6VAb63zgtmAteVOWo9Vdj71ZVBy3Pbse+VqxDpEP83XuujMrGqHIwAXJ5I/aM0zU7dIyIAhifVTPrNItQ==", + "dev": true, + "dependencies": { + "copy-descriptor": "^0.1.0", + "define-property": "^0.2.5", + "kind-of": "^3.0.3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/is-descriptor/node_modules/kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-visit": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", + "integrity": "sha512-GBaMwwAVK9qbQN3Scdo0OyvgPW7l3lnaVMj84uTOZlswkX0KpF6fyDBJhtTthf7pymztoN36/KEr1DyhF96zEA==", + "dev": true, + "dependencies": { + "isobject": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object.pick": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", + "integrity": "sha512-tqa/UMy/CCoYmj+H5qc07qvSL9dqcs/WZENZ1JbtWBlATP+iVOe778gE6MSijnyCnORzDuX6hU+LA4SZ09YjFQ==", + "dev": true, + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "devOptional": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/one-time": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/one-time/-/one-time-1.0.0.tgz", + "integrity": "sha512-5DXOiRKwuSEcQ/l0kGCF6Q3jcADFv5tSmRaJck/OqkVFcOzutB134KRSfF0xDrL39MNnqxbHBbUUcjZIhTgb2g==", + "optional": true, + "dependencies": { + "fn.name": "1.x.x" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "devOptional": true, + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/oo-ascii-tree": { + "version": "1.84.0", + "resolved": "https://registry.npmjs.org/oo-ascii-tree/-/oo-ascii-tree-1.84.0.tgz", + "integrity": "sha512-8bvsAKFAQ7HwU3lAEDwsKYDkTqsDTsRTkr3J0gvH1U805d2no9rUNYptWzg3oYku5h5mr9Bko+BIh1pjSD8qrg==", + "dev": true, + "engines": { + "node": ">= 14.17.0" + } + }, + "node_modules/optionator": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", + "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", + "dev": true, + "dependencies": { + "deep-is": "~0.1.3", + "fast-levenshtein": "~2.0.6", + "levn": "~0.3.0", + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2", + "word-wrap": "~1.2.3" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/ora": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", + "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==", + "optional": true, + "dependencies": { + "bl": "^4.1.0", + "chalk": "^4.1.0", + "cli-cursor": "^3.1.0", + "cli-spinners": "^2.5.0", + "is-interactive": "^1.0.0", + "is-unicode-supported": "^0.1.0", + "log-symbols": "^4.1.0", + "strip-ansi": "^6.0.0", + "wcwidth": "^1.0.1" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/os-tmpdir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==", + "optional": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/p-each-series": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-each-series/-/p-each-series-2.2.0.tgz", + "integrity": "sha512-ycIL2+1V32th+8scbpTvyHNaHe02z0sjgh91XXjAk+ZeXoPN4Z46DVUnzdso0aX4KckKw0FNNFHdjZ2UsZvxiA==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-finally": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "optional": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "optional": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-map": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", + "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", + "optional": true, + "dependencies": { + "aggregate-error": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parse5": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", + "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", + "dev": true + }, + "node_modules/pascalcase": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", + "integrity": "sha512-XHXfu/yOQRy9vYOtUDVMN60OEJjW013GoObG1o+xwQTpB9eYJX/BjXMsdW13ZDPruFhYYn0AG22w0xgQMwl3Nw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "devOptional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "devOptional": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "optional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "devOptional": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pirates": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", + "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/pkg-dir/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/posix-character-classes": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", + "integrity": "sha512-xTgYBc3fuo7Yt7JbiuFxSYGToMoz8fLoE6TC9Wx1P/u+LfeThMOAqmuyECnlBaaJb+u1m9hHiXUEtwW4OzfUJg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/prelude-ls": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", + "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/pretty-format": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/psl": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", + "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==", + "dev": true + }, + "node_modules/pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "dev": true, + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/punycode": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/querystringify": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", + "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", + "dev": true + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "devOptional": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", + "dev": true + }, + "node_modules/read-pkg": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", + "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", + "dev": true, + "dependencies": { + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^2.5.0", + "parse-json": "^5.0.0", + "type-fest": "^0.6.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg-up": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", + "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", + "dev": true, + "dependencies": { + "find-up": "^4.1.0", + "read-pkg": "^5.2.0", + "type-fest": "^0.8.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg-up/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg-up/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg-up/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg-up/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg-up/node_modules/type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg/node_modules/type-fest": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", + "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "optional": true, + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/rechoir": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", + "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==", + "dev": true, + "dependencies": { + "resolve": "^1.1.6" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/regex-not": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", + "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", + "dev": true, + "dependencies": { + "extend-shallow": "^3.0.2", + "safe-regex": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/remove-trailing-separator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", + "integrity": "sha512-/hS+Y0u3aOfIETiaiirUFwDBDzmXPvO+jAfKTitUngIPzdKc6Z0LoFjM/CK5PL4C+eKwHohlHAb6H0VFfmmUsw==", + "dev": true + }, + "node_modules/repeat-element": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.4.tgz", + "integrity": "sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/repeat-string": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==", + "dev": true, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "devOptional": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-main-filename": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", + "dev": true + }, + "node_modules/requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", + "dev": true + }, + "node_modules/resolve": { + "version": "1.22.2", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz", + "integrity": "sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==", + "dev": true, + "dependencies": { + "is-core-module": "^2.11.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-url": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", + "integrity": "sha512-ZuF55hVUQaaczgOIwqWzkEcEidmlD/xl44x1UZnhOXcYuFN2S6+rcxpG+C1N3So0wvNI3DmJICUFfu2SxhBmvg==", + "deprecated": "https://github.com/lydell/resolve-url#deprecated", + "dev": true + }, + "node_modules/restore-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", + "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", + "optional": true, + "dependencies": { + "onetime": "^5.1.0", + "signal-exit": "^3.0.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/ret": { + "version": "0.1.15", + "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", + "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", + "dev": true, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "devOptional": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rfdc": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.3.0.tgz", + "integrity": "sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==", + "dev": true + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "devOptional": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rsvp": { + "version": "4.8.5", + "resolved": "https://registry.npmjs.org/rsvp/-/rsvp-4.8.5.tgz", + "integrity": "sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA==", + "dev": true, + "engines": { + "node": "6.* || >= 7.*" + } + }, + "node_modules/run-async": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz", + "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==", + "optional": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "devOptional": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/rxjs": { + "version": "7.8.1", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", + "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", + "optional": true, + "dependencies": { + "tslib": "^2.1.0" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "optional": true + }, + "node_modules/safe-json-stringify": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/safe-json-stringify/-/safe-json-stringify-1.2.0.tgz", + "integrity": "sha512-gH8eh2nZudPQO6TytOvbxnuhYBOvDBBLW52tz5q6X58lJcd/tkmqFR+5Z9adS8aJtURSXWThWy/xJtJwixErvg==", + "optional": true + }, + "node_modules/safe-regex": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", + "integrity": "sha512-aJXcif4xnaNUzvUuC5gcb46oTS7zvg4jpMTnuqtrEPlR3vFr4pxtdTwaF1Qs3Enjn9HK+ZlwQui+a7z0SywIzg==", + "dev": true, + "dependencies": { + "ret": "~0.1.10" + } + }, + "node_modules/safe-stable-stringify": { + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.4.3.tgz", + "integrity": "sha512-e2bDA2WJT0wxseVd4lsDP4+3ONX6HpMXQa1ZhFQ7SU+GjvORCmShbCMltrtIDfkYhVHrOcPtj+KhmDBdPdZD1g==", + "optional": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "devOptional": true + }, + "node_modules/sane": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/sane/-/sane-4.1.0.tgz", + "integrity": "sha512-hhbzAgTIX8O7SHfp2c8/kREfEn4qO/9q8C9beyY6+tvZ87EpoZ3i1RIEvp27YBswnNbY9mWd6paKVmKbAgLfZA==", + "deprecated": "some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added", + "dev": true, + "dependencies": { + "@cnakazawa/watch": "^1.0.3", + "anymatch": "^2.0.0", + "capture-exit": "^2.0.0", + "exec-sh": "^0.3.2", + "execa": "^1.0.0", + "fb-watchman": "^2.0.0", + "micromatch": "^3.1.4", + "minimist": "^1.1.1", + "walker": "~1.0.5" + }, + "bin": { + "sane": "src/cli.js" + }, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/sane/node_modules/anymatch": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", + "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", + "dev": true, + "dependencies": { + "micromatch": "^3.1.4", + "normalize-path": "^2.1.1" + } + }, + "node_modules/sane/node_modules/braces": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", + "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", + "dev": true, + "dependencies": { + "arr-flatten": "^1.1.0", + "array-unique": "^0.3.2", + "extend-shallow": "^2.0.1", + "fill-range": "^4.0.0", + "isobject": "^3.0.1", + "repeat-element": "^1.1.2", + "snapdragon": "^0.8.1", + "snapdragon-node": "^2.0.1", + "split-string": "^3.0.2", + "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/braces/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/cross-spawn": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "dev": true, + "dependencies": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + }, + "engines": { + "node": ">=4.8" + } + }, + "node_modules/sane/node_modules/execa": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", + "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", + "dev": true, + "dependencies": { + "cross-spawn": "^6.0.0", + "get-stream": "^4.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/sane/node_modules/fill-range": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", + "integrity": "sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ==", + "dev": true, + "dependencies": { + "extend-shallow": "^2.0.1", + "is-number": "^3.0.0", + "repeat-string": "^1.6.1", + "to-regex-range": "^2.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/fill-range/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/get-stream": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", + "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "dev": true, + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/sane/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/is-number/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/micromatch": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", + "dev": true, + "dependencies": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "braces": "^2.3.1", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "extglob": "^2.0.4", + "fragment-cache": "^0.2.1", + "kind-of": "^6.0.2", + "nanomatch": "^1.2.9", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/normalize-path": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", + "integrity": "sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w==", + "dev": true, + "dependencies": { + "remove-trailing-separator": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/npm-run-path": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", + "integrity": "sha512-lJxZYlT4DW/bRUtFh1MQIWqmLwQfAxnqWG4HhEdjMlkrJYnJn0Jrr2u3mgxqaWsdiBc76TYkTG/mhrnYTuzfHw==", + "dev": true, + "dependencies": { + "path-key": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/sane/node_modules/path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/sane/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/sane/node_modules/shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", + "dev": true, + "dependencies": { + "shebang-regex": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/to-regex-range": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", + "integrity": "sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg==", + "dev": true, + "dependencies": { + "is-number": "^3.0.0", + "repeat-string": "^1.6.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sane/node_modules/which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "which": "bin/which" + } + }, + "node_modules/saxes": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz", + "integrity": "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==", + "dev": true, + "dependencies": { + "xmlchars": "^2.2.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "devOptional": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/semver-intersect": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/semver-intersect/-/semver-intersect-1.4.0.tgz", + "integrity": "sha512-d8fvGg5ycKAq0+I6nfWeCx6ffaWJCsBYU0H2Rq56+/zFePYfT8mXkB3tWBSjR5BerkHNZ5eTPIk1/LBYas35xQ==", + "dev": true, + "dependencies": { + "semver": "^5.0.0" + } + }, + "node_modules/semver-intersect/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", + "dev": true + }, + "node_modules/set-value": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz", + "integrity": "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==", + "dev": true, + "dependencies": { + "extend-shallow": "^2.0.1", + "is-extendable": "^0.1.1", + "is-plain-object": "^2.0.3", + "split-string": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/set-value/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/set-value/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/set-value/node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/shelljs": { + "version": "0.8.5", + "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz", + "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==", + "dev": true, + "dependencies": { + "glob": "^7.0.0", + "interpret": "^1.0.0", + "rechoir": "^0.6.2" + }, + "bin": { + "shjs": "bin/shjs" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/shellwords": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/shellwords/-/shellwords-0.1.1.tgz", + "integrity": "sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==", + "dev": true, + "optional": true + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "devOptional": true + }, + "node_modules/simple-swizzle": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz", + "integrity": "sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==", + "optional": true, + "dependencies": { + "is-arrayish": "^0.3.1" + } + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "devOptional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/slice-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", + "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "astral-regex": "^2.0.0", + "is-fullwidth-code-point": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/slice-ansi?sponsor=1" + } + }, + "node_modules/snake-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/snake-case/-/snake-case-3.0.4.tgz", + "integrity": "sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==", + "dev": true, + "dependencies": { + "dot-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "node_modules/snapdragon": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", + "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", + "dev": true, + "dependencies": { + "base": "^0.11.1", + "debug": "^2.2.0", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "map-cache": "^0.2.2", + "source-map": "^0.5.6", + "source-map-resolve": "^0.5.0", + "use": "^3.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon-node": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", + "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", + "dev": true, + "dependencies": { + "define-property": "^1.0.0", + "isobject": "^3.0.0", + "snapdragon-util": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon-node/node_modules/define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==", + "dev": true, + "dependencies": { + "is-descriptor": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon-util": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", + "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", + "dev": true, + "dependencies": { + "kind-of": "^3.2.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon-util/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/snapdragon/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-accessor-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-data-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "node_modules/snapdragon/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sort-json": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/sort-json/-/sort-json-2.0.1.tgz", + "integrity": "sha512-s8cs2bcsQCzo/P2T/uoU6Js4dS/jnX8+4xunziNoq9qmSpZNCrRIAIvp4avsz0ST18HycV4z/7myJ7jsHWB2XQ==", + "dev": true, + "dependencies": { + "detect-indent": "^5.0.0", + "detect-newline": "^2.1.0", + "minimist": "^1.2.0" + }, + "bin": { + "sort-json": "app/cmd.js" + } + }, + "node_modules/sort-json/node_modules/detect-newline": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-2.1.0.tgz", + "integrity": "sha512-CwffZFvlJffUg9zZA0uqrjQayUTC8ob94pnr5sFwaVv3IOmkfUHcWH+jXaQK3askE51Cqe8/9Ql/0uXNwqZ8Zg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-resolve": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz", + "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==", + "deprecated": "See https://github.com/lydell/source-map-resolve#deprecated", + "dev": true, + "dependencies": { + "atob": "^2.1.2", + "decode-uri-component": "^0.2.0", + "resolve-url": "^0.2.1", + "source-map-url": "^0.4.0", + "urix": "^0.1.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/source-map-url": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.1.tgz", + "integrity": "sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw==", + "deprecated": "See https://github.com/lydell/source-map-url#deprecated", + "dev": true + }, + "node_modules/spdx-correct": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz", + "integrity": "sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==", + "dev": true, + "dependencies": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/spdx-exceptions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", + "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", + "dev": true + }, + "node_modules/spdx-expression-parse": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", + "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", + "dev": true, + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/spdx-license-ids": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.13.tgz", + "integrity": "sha512-XkD+zwiqXHikFZm4AX/7JSCXA98U5Db4AFd5XUg/+9UNtnH75+Z9KxtpYiJZx36mUDVOwH83pl7yvCer6ewM3w==", + "dev": true + }, + "node_modules/spdx-license-list": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/spdx-license-list/-/spdx-license-list-6.6.0.tgz", + "integrity": "sha512-vLwdf9AWgdJQmG8cai2HKfkInFsliKaCCOwXmdVonClIhdURTX61KdDOoXC1qcQ7gDaZj+CUTcrMJeAdnCtrKA==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/split-string": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", + "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", + "dev": true, + "dependencies": { + "extend-shallow": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true + }, + "node_modules/sscaff": { + "version": "1.2.274", + "resolved": "https://registry.npmjs.org/sscaff/-/sscaff-1.2.274.tgz", + "integrity": "sha512-sztRa50SL1LVxZnF1au6QT1SC2z0S1oEOyi2Kpnlg6urDns93aL32YxiJcNkLcY+VHFtVqm/SRv4cb+6LeoBQA==", + "dev": true, + "engines": { + "node": ">= 12.13.0" + } + }, + "node_modules/stack-trace": { + "version": "0.0.10", + "resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.10.tgz", + "integrity": "sha512-KGzahc7puUKkzyMt+IqAep+TVNbKP+k2Lmwhub39m1AsTSkaDutx56aDCo+HLDzf/D26BIHTJWNiTG1KAJiQCg==", + "optional": true, + "engines": { + "node": "*" + } + }, + "node_modules/stack-utils": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "dev": true, + "dependencies": { + "escape-string-regexp": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/stack-utils/node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/static-extend": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", + "integrity": "sha512-72E9+uLc27Mt718pMHt9VMNiAL4LMsmDbBva8mxWUCkT07fSzEGMYUCk0XWY6lp0j6RBAG4cJ3mWuZv2OE3s0g==", + "dev": true, + "dependencies": { + "define-property": "^0.2.5", + "object-copy": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dev": true, + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/is-accessor-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/is-data-descriptor/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "dependencies": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/stream-chain": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/stream-chain/-/stream-chain-2.2.5.tgz", + "integrity": "sha512-1TJmBx6aSWqZ4tx7aTpBDXK0/e2hhcNSTV8+CbFJtDjbb+I1mZ8lHit0Grw9GRT+6JbIrrDd8esncgBi8aBXGA==", + "dev": true + }, + "node_modules/stream-json": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/stream-json/-/stream-json-1.8.0.tgz", + "integrity": "sha512-HZfXngYHUAr1exT4fxlbc1IOce1RYxp2ldeaf97LYCOPSoOqY/1Psp7iGvpb+6JIOgkra9zDYnPX01hGAHzEPw==", + "dev": true, + "dependencies": { + "stream-chain": "^2.2.5" + } + }, + "node_modules/streamroller": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/streamroller/-/streamroller-3.1.5.tgz", + "integrity": "sha512-KFxaM7XT+irxvdqSP1LGLgNWbYN7ay5owZ3r/8t77p+EtSUAfUgtl7be3xtqtOmGUl9K9YPO2ca8133RlTjvKw==", + "dev": true, + "dependencies": { + "date-format": "^4.0.14", + "debug": "^4.3.4", + "fs-extra": "^8.1.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "optional": true, + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string-length": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dev": true, + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "devOptional": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string.prototype.repeat": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/string.prototype.repeat/-/string.prototype.repeat-0.2.0.tgz", + "integrity": "sha512-1BH+X+1hSthZFW+X+JaUkjkkUPwIlLEMJBLANN3hOob3RhEk5snLWNECDnYbgn/m5c5JV7Ersu1Yubaf+05cIA==", + "dev": true + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "devOptional": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-eof": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", + "integrity": "sha512-7FCwGGmx8mD5xQd3RPUvnSpUXHM3BWuzjtpD4TXsfcZ9EL4azvVVUscFYwD9nx8Kh+uCBC00XBtAykoMHwTh8Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "optional": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "devOptional": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-hyperlinks": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz", + "integrity": "sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==", + "devOptional": true, + "dependencies": { + "has-flag": "^4.0.0", + "supports-color": "^7.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/symbol-tree": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", + "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", + "dev": true + }, + "node_modules/table": { + "version": "6.8.1", + "resolved": "https://registry.npmjs.org/table/-/table-6.8.1.tgz", + "integrity": "sha512-Y4X9zqrCftUhMeH2EptSSERdVKt/nEdijTOacGD/97EKjhQ/Qs8RTlEGABSJNNN8lac9kheH+af7yAkEWlgneA==", + "dev": true, + "dependencies": { + "ajv": "^8.0.1", + "lodash.truncate": "^4.4.2", + "slice-ansi": "^4.0.0", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/terminal-link": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz", + "integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==", + "devOptional": true, + "dependencies": { + "ansi-escapes": "^4.2.1", + "supports-hyperlinks": "^2.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/test-exclude": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/text-hex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/text-hex/-/text-hex-1.0.0.tgz", + "integrity": "sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg==", + "optional": true + }, + "node_modules/throat": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/throat/-/throat-5.0.0.tgz", + "integrity": "sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA==", + "dev": true + }, + "node_modules/through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", + "optional": true + }, + "node_modules/tmp": { + "version": "0.0.33", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", + "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", + "optional": true, + "dependencies": { + "os-tmpdir": "~1.0.2" + }, + "engines": { + "node": ">=0.6.0" + } + }, + "node_modules/tmpl": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "dev": true + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/to-object-path": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", + "integrity": "sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/to-object-path/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/to-regex": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", + "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", + "dev": true, + "dependencies": { + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "regex-not": "^1.0.2", + "safe-regex": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "devOptional": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/tough-cookie": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.3.tgz", + "integrity": "sha512-aX/y5pVRkfRnfmuX+OdbSdXvPe6ieKX/G2s7e98f4poJHnqH3281gDPm/metm6E/WRamfx7WC4HUqkWHfQHprw==", + "dev": true, + "dependencies": { + "psl": "^1.1.33", + "punycode": "^2.1.1", + "universalify": "^0.2.0", + "url-parse": "^1.5.3" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "optional": true + }, + "node_modules/triple-beam": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/triple-beam/-/triple-beam-1.3.0.tgz", + "integrity": "sha512-XrHUvV5HpdLmIj4uVMxHggLbFSZYIn7HEWsqePZcI50pco+MPqJ50wMGY794X7AOOhxOBAjbkqfAbEe/QMp2Lw==", + "optional": true + }, + "node_modules/ts-jest": { + "version": "26.5.6", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-26.5.6.tgz", + "integrity": "sha512-rua+rCP8DxpA8b4DQD/6X2HQS8Zy/xzViVYfEs2OQu68tkCuKLV0Md8pmX55+W24uRIyAsf/BajRfxOs+R2MKA==", + "dev": true, + "dependencies": { + "bs-logger": "0.x", + "buffer-from": "1.x", + "fast-json-stable-stringify": "2.x", + "jest-util": "^26.1.0", + "json5": "2.x", + "lodash": "4.x", + "make-error": "1.x", + "mkdirp": "1.x", + "semver": "7.x", + "yargs-parser": "20.x" + }, + "bin": { + "ts-jest": "cli.js" + }, + "engines": { + "node": ">= 10" + }, + "peerDependencies": { + "jest": ">=26 <27", + "typescript": ">=3.8 <5.0" + } + }, + "node_modules/ts-jest/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ts-jest/node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ts-jest/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/ts-jest/node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/ts-node": { + "version": "10.9.1", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", + "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", + "dev": true, + "dependencies": { + "@cspotcode/source-map-support": "^0.8.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.1", + "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-cwd": "dist/bin-cwd.js", + "ts-node-esm": "dist/bin-esm.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "peerDependencies": { + "@swc/core": ">=1.2.50", + "@swc/wasm": ">=1.2.50", + "@types/node": "*", + "typescript": ">=2.7" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "@swc/wasm": { + "optional": true + } + } + }, + "node_modules/ts-node/node_modules/acorn-walk": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/tslib": { + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.3.tgz", + "integrity": "sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w==", + "devOptional": true + }, + "node_modules/type-check": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", + "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", + "dev": true, + "dependencies": { + "prelude-ls": "~1.1.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "devOptional": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typedarray-to-buffer": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", + "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", + "dev": true, + "dependencies": { + "is-typedarray": "^1.0.0" + } + }, + "node_modules/typescript": { + "version": "4.9.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", + "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/union-value": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz", + "integrity": "sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==", + "dev": true, + "dependencies": { + "arr-union": "^3.1.0", + "get-value": "^2.0.6", + "is-extendable": "^0.1.1", + "set-value": "^2.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/union-value/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/universal-user-agent": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", + "integrity": "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==", + "optional": true + }, + "node_modules/universalify": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", + "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", + "dev": true, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/unset-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", + "integrity": "sha512-PcA2tsuGSF9cnySLHTLSh2qrQiJ70mn+r+Glzxv2TWZblxsxCC52BDlZoPCsz7STd9pN7EZetkWZBAvk4cgZdQ==", + "dev": true, + "dependencies": { + "has-value": "^0.3.1", + "isobject": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/unset-value/node_modules/has-value": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", + "integrity": "sha512-gpG936j8/MzaeID5Yif+577c17TxaDmhuyVgSwtnL/q8UUTySg8Mecb+8Cf1otgLoD7DDH75axp86ER7LFsf3Q==", + "dev": true, + "dependencies": { + "get-value": "^2.0.3", + "has-values": "^0.1.4", + "isobject": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/unset-value/node_modules/has-value/node_modules/isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA==", + "dev": true, + "dependencies": { + "isarray": "1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/unset-value/node_modules/has-values": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", + "integrity": "sha512-J8S0cEdWuQbqD9//tlZxiMuMNmxB8PlEwvYwuxsTmR1G5RXUePEX/SJn7aD0GMLieuZYSwNH0cQuJGwnYunXRQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz", + "integrity": "sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/urix": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", + "integrity": "sha512-Am1ousAhSLBeB9cG/7k7r2R0zj50uDRlZHPGbazid5s9rlF1F/QKYObEKSIunSjIOkJZqwRRLpvewjEkM7pSqg==", + "deprecated": "Please see https://github.com/lydell/urix#deprecated", + "dev": true + }, + "node_modules/url-parse": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", + "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", + "dev": true, + "dependencies": { + "querystringify": "^2.1.1", + "requires-port": "^1.0.0" + } + }, + "node_modules/use": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", + "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "optional": true + }, + "node_modules/utility-types": { + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/utility-types/-/utility-types-3.10.0.tgz", + "integrity": "sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg==", + "optional": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "dev": true, + "optional": true, + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/v8-compile-cache-lib": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", + "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", + "dev": true + }, + "node_modules/v8-to-istanbul": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-7.1.2.tgz", + "integrity": "sha512-TxNb7YEUwkLXCQYeudi6lgQ/SZrzNO4kMdlqVxaZPUIUjCv6iSSypUQX70kNBSERpQ8fk48+d61FXk+tgqcWow==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^1.6.0", + "source-map": "^0.7.3" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/v8-to-istanbul/node_modules/source-map": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", + "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/validate-npm-package-license": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "dev": true, + "dependencies": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "node_modules/w3c-hr-time": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", + "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==", + "deprecated": "Use your platform's native performance.now() and performance.timeOrigin.", + "dev": true, + "dependencies": { + "browser-process-hrtime": "^1.0.0" + } + }, + "node_modules/w3c-xmlserializer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz", + "integrity": "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==", + "dev": true, + "dependencies": { + "xml-name-validator": "^3.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/walker": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "dev": true, + "dependencies": { + "makeerror": "1.0.12" + } + }, + "node_modules/wcwidth": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", + "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==", + "optional": true, + "dependencies": { + "defaults": "^1.0.3" + } + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "optional": true + }, + "node_modules/whatwg-encoding": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", + "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", + "dev": true, + "dependencies": { + "iconv-lite": "0.4.24" + } + }, + "node_modules/whatwg-mimetype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", + "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==", + "dev": true + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "optional": true, + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-module": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz", + "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==", + "dev": true + }, + "node_modules/winston": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/winston/-/winston-3.9.0.tgz", + "integrity": "sha512-jW51iW/X95BCW6MMtZWr2jKQBP4hV5bIDq9QrIjfDk6Q9QuxvTKEAlpUNAzP+HYHFFCeENhph16s0zEunu4uuQ==", + "optional": true, + "dependencies": { + "@colors/colors": "1.5.0", + "@dabh/diagnostics": "^2.0.2", + "async": "^3.2.3", + "is-stream": "^2.0.0", + "logform": "^2.4.0", + "one-time": "^1.0.0", + "readable-stream": "^3.4.0", + "safe-stable-stringify": "^2.3.1", + "stack-trace": "0.0.x", + "triple-beam": "^1.3.0", + "winston-transport": "^4.5.0" + }, + "engines": { + "node": ">= 12.0.0" + } + }, + "node_modules/winston-transport": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/winston-transport/-/winston-transport-4.5.0.tgz", + "integrity": "sha512-YpZzcUzBedhlTAfJg6vJDlyEai/IFMIVcaEZZyl3UXIl4gmqRpU7AE89AHLkbzLUsv0NVmw7ts+iztqKxxPW1Q==", + "optional": true, + "dependencies": { + "logform": "^2.3.2", + "readable-stream": "^3.6.0", + "triple-beam": "^1.3.0" + }, + "engines": { + "node": ">= 6.4.0" + } + }, + "node_modules/word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/workerpool": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.4.0.tgz", + "integrity": "sha512-i3KR1mQMNwY2wx20ozq2EjISGtQWDIfV56We+yGJ5yDs8jTwQiLLaqHlkBHITlCuJnYlVRmXegxFxZg7gqI++A==", + "dev": true + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "devOptional": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "devOptional": true + }, + "node_modules/write-file-atomic": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", + "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", + "dev": true, + "dependencies": { + "imurmurhash": "^0.1.4", + "is-typedarray": "^1.0.0", + "signal-exit": "^3.0.2", + "typedarray-to-buffer": "^3.1.5" + } + }, + "node_modules/ws": { + "version": "7.5.9", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", + "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "dev": true, + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/xml-name-validator": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", + "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", + "dev": true + }, + "node_modules/xmlbuilder": { + "version": "15.1.1", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-15.1.1.tgz", + "integrity": "sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg==", + "dev": true, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/xmlchars": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", + "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", + "dev": true + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "devOptional": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, + "node_modules/yaml": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.1.tgz", + "integrity": "sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==", + "dev": true, + "engines": { + "node": ">= 14" + } + }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "optional": true, + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "devOptional": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "optional": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/tools/cdk8s/yggdrasil-discord-client/package.json b/tools/cdk8s/yggdrasil-discord-client/package.json new file mode 100644 index 0000000..c272cfe --- /dev/null +++ b/tools/cdk8s/yggdrasil-discord-client/package.json @@ -0,0 +1,33 @@ +{ + "name": "yggdrasil-core-engine", + "version": "1.0.0", + "main": "main.js", + "types": "main.ts", + "license": "Apache-2.0", + "private": true, + "scripts": { + "import": "cdk8s import", + "synth": "cdk8s synth", + "compile": "tsc --build", + "watch": "tsc --build -w", + "test": "jest", + "build": "npm run compile && npm run test -- -u && npm run synth", + "upgrade": "npm i cdk8s@latest cdk8s-cli@latest", + "upgrade:next": "npm i cdk8s@next cdk8s-cli@next" + }, + "dependencies": { + "cdk8s": "^2.7.83", + "cdk8s-plus-25": "^2.8.49", + "constructs": "^10.2.58", + "dotenv": "^16.3.1" + }, + "devDependencies": { + "@types/jest": "^26.0.24", + "@types/node": "^14.18.51", + "cdk8s-cli": "^2.2.73", + "jest": "^26.6.3", + "ts-jest": "^26.5.6", + "ts-node": "^10.9.1", + "typescript": "^4.9.5" + } +} diff --git a/tools/cdk8s/yggdrasil-discord-client/tsconfig.json b/tools/cdk8s/yggdrasil-discord-client/tsconfig.json new file mode 100644 index 0000000..8f08731 --- /dev/null +++ b/tools/cdk8s/yggdrasil-discord-client/tsconfig.json @@ -0,0 +1,28 @@ +{ + "compilerOptions": { + "alwaysStrict": true, + "charset": "utf8", + "declaration": true, + "experimentalDecorators": true, + "inlineSourceMap": true, + "inlineSources": true, + "lib": ["es2016"], + "module": "CommonJS", + "noEmit": false, + "noEmitOnError": true, + "noFallthroughCasesInSwitch": true, + "noImplicitAny": true, + "noImplicitReturns": true, + "noImplicitThis": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "resolveJsonModule": true, + "strict": true, + "strictNullChecks": true, + "strictPropertyInitialization": true, + "stripInternal": true, + "target": "ES2017" + }, + "include": ["**/*.ts"], + "exclude": ["node_modules"] +} diff --git a/tools/cdk8s/yggdrasil-discord-client/utils/helper.ts b/tools/cdk8s/yggdrasil-discord-client/utils/helper.ts new file mode 100644 index 0000000..57d93fa --- /dev/null +++ b/tools/cdk8s/yggdrasil-discord-client/utils/helper.ts @@ -0,0 +1,7 @@ +export class Helper { + static get isProd() { + return ( + process.env.NODE_ENV?.toLocaleLowerCase().includes('production') ?? false + ); + } +} diff --git a/tools/k8s/yggdrasil-core-engine/gitlab-runner-role-bind_staging.yaml b/tools/k8s/yggdrasil-core-engine/gitlab-runner-role-bind_staging.yaml new file mode 100755 index 0000000..130fc3f --- /dev/null +++ b/tools/k8s/yggdrasil-core-engine/gitlab-runner-role-bind_staging.yaml @@ -0,0 +1,19 @@ +## Create Namespace +apiVersion: v1 +kind: Namespace +metadata: + name: yggdrasil-core-engine-staging +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: gitlab-ci-app-rolebinding + namespace: yggdrasil-core-engine-staging +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: cluster-admin +subjects: +- namespace: gitlab-ci + kind: ServiceAccount + name: default diff --git a/tools/k8s/yggdrasil-discord-client/gitlab-runner-role-bind_staging.yaml b/tools/k8s/yggdrasil-discord-client/gitlab-runner-role-bind_staging.yaml new file mode 100755 index 0000000..7457245 --- /dev/null +++ b/tools/k8s/yggdrasil-discord-client/gitlab-runner-role-bind_staging.yaml @@ -0,0 +1,19 @@ +## Create Namespace +apiVersion: v1 +kind: Namespace +metadata: + name: yggdrasil-discord-client-staging +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: gitlab-ci-app-rolebinding + namespace: yggdrasil-discord-client-staging +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: cluster-admin +subjects: +- namespace: gitlab-ci + kind: ServiceAccount + name: default diff --git a/tools/shell-script/build-cdk8s.sh b/tools/shell-script/build-cdk8s.sh new file mode 100644 index 0000000..0454ffb --- /dev/null +++ b/tools/shell-script/build-cdk8s.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +cd tools/cdk8s/${PROJECT_NAME} +npm install +npm run build diff --git a/tools/shell-script/package.sh b/tools/shell-script/package.sh new file mode 100644 index 0000000..073e663 --- /dev/null +++ b/tools/shell-script/package.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +echo "CI: ${CI}" +echo "CI_JOB_IMAGE: ${CI_JOB_IMAGE}" + +if [ "${CI}" = true ] ; then + /kaniko/executor \ + --context "${CI_PROJECT_DIR}" \ + --dockerfile "${CI_PROJECT_DIR}/apps/${PROJECT_NAME}/Dockerfile" \ + --destination "${CI_REGISTRY_IMAGE}/yu-gpt-engine-image:${CI_COMMIT_SHA}" \ + --cache=false \ + --cleanup \ + --build-arg "SERVER_VERSION=${CI_COMMIT_SHORT_SHA}" +else + + echo "build docker compose" && \ + docker-compose -f ./docker-compose-prod.yml build --no-cache && \ + sh -c ./build-image.sh +fi diff --git a/tools/tsconfig.tools.json b/tools/tsconfig.tools.json index 99428e1..2e5f79b 100644 --- a/tools/tsconfig.tools.json +++ b/tools/tsconfig.tools.json @@ -8,5 +8,6 @@ "types": ["node"], "importHelpers": false }, - "include": ["**/*.ts"] + "include": ["**/*.ts"], + "exclude": ["cdk8s"] } diff --git a/tsconfig.base.json b/tsconfig.base.json index f448543..49c506c 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -20,5 +20,5 @@ "@sd0x/nest-openai-client": ["libs/nest-openai-client/src/index.ts"] } }, - "exclude": ["node_modules", "tmp"] + "exclude": ["node_modules", "tmp", "tools/cdk8s"] }