diff --git a/.github/workflows/openapi.yml b/.github/workflows/openapi.yml index a11e3d6..3dfad9f 100644 --- a/.github/workflows/openapi.yml +++ b/.github/workflows/openapi.yml @@ -42,29 +42,6 @@ jobs: with: node-version: 'latest' registry-url: 'https://registry.npmjs.org' - # TODO: Migrate into matrix - - name: Generate typescript-axios sdk using openapi.yaml - run: > - npx @openapitools/openapi-generator-cli generate - -i ./generated/openapi.yaml - -o ./generated/sdk/ts-axios-out - -g typescript-axios - - name: Move sdk definitions into npm package using template - run: > - mkdir -p ./generated/sdk && - rm -rf ./generated/sdk/ts-axios ; - cp -r ./template/sdk/ts-axios ./generated/sdk/ts-axios && - mv ./generated/sdk/ts-axios-out/* ./generated/sdk/ts-axios-out/.* ./generated/sdk/ts-axios && - rmdir ./generated/sdk/ts-axios-out - - name: Commit sdk definitions - uses: stefanzweifel/git-auto-commit-action@v5 - - name: Publish ts-axios sdk into npm - run: > - cd ./generated/sdk/ts-axios && - npm publish --provenance --access public --tag ${{ github.sha }} - continue-on-error: true - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Compile redoc static pages run: > mkdir -p ./generated/docs ; @@ -76,14 +53,56 @@ jobs: uses: actions/upload-pages-artifact@v3.0.1 with: path: ./generated/docs - + deploy-github-pages: + runs-on: ubuntu-24.04 environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest needs: save-and-upload-openapi-yaml steps: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 + + generate-and-publish-sdks-to-npm: + runs-on: ubuntu-24.04 + needs: save-and-upload-openapi-yaml + strategy: + max-parallel: 1 + matrix: + sdk: + - type: typescript-axios + type-shorthand: ts-axios + - type: typescript-fetch + type-shorthand: ts-fetch + steps: + - name: checkout + uses: actions/checkout@v2 + - uses: actions/setup-node@v4 + with: + node-version: 'latest' + registry-url: 'https://registry.npmjs.org' + - name: Generate typescript-axios sdk using openapi.yaml + run: > + npx @openapitools/openapi-generator-cli generate + -i ./generated/openapi.yaml + -o ./generated/sdk/${{ matrix.sdk.type-shorthand }}-out + -g ${{ matrix.sdk.type }} + - name: Move sdk definitions into npm package using template + run: > + mkdir -p ./generated/sdk && + rm -rf ./generated/sdk/${{ matrix.sdk.type-shorthand }} ; + cp -r ./template/sdk/${{ matrix.sdk.type-shorthand }} ./generated/sdk/${{ matrix.sdk.type-shorthand }} && + mv ./generated/sdk/${{ matrix.sdk.type-shorthand }}-out/* ./generated/sdk/${{ matrix.sdk.type-shorthand }}-out/.* ./generated/sdk/${{ matrix.sdk.type-shorthand }} && + rmdir ./generated/sdk/${{ matrix.sdk.type-shorthand }}-out + - name: Commit sdk definitions + uses: stefanzweifel/git-auto-commit-action@v5 + - name: Publish ${{ matrix.sdk.type-shorthand }} sdk into npm + run: > + cd ./generated/sdk/${{ matrix.sdk.type-shorthand }} && + npm publish --provenance --access public --tag ${{ github.sha }} + continue-on-error: true + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + diff --git a/generated/sdk/ts-fetch/.openapi-generator-ignore b/generated/sdk/ts-fetch/.openapi-generator-ignore new file mode 100644 index 0000000..7484ee5 --- /dev/null +++ b/generated/sdk/ts-fetch/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/generated/sdk/ts-fetch/.openapi-generator/FILES b/generated/sdk/ts-fetch/.openapi-generator/FILES new file mode 100644 index 0000000..14b8c22 --- /dev/null +++ b/generated/sdk/ts-fetch/.openapi-generator/FILES @@ -0,0 +1,47 @@ +.openapi-generator-ignore +apis/Pipeline1eedaegonGithubIoV1Api.ts +apis/index.ts +index.ts +models/IoGithub1eedaegonPipelineV1Pipeline.ts +models/IoGithub1eedaegonPipelineV1PipelineList.ts +models/IoGithub1eedaegonPipelineV1PipelineSpec.ts +models/IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimit.ts +models/IoGithub1eedaegonPipelineV1PipelineSpecResource.ts +models/IoGithub1eedaegonPipelineV1PipelineSpecResourceGpu.ts +models/IoGithub1eedaegonPipelineV1PipelineSpecSchedule.ts +models/IoGithub1eedaegonPipelineV1PipelineSpecTasksInner.ts +models/IoGithub1eedaegonPipelineV1PipelineSpecVolumesInner.ts +models/IoGithub1eedaegonPipelineV1PipelineStatus.ts +models/IoGithub1eedaegonPipelineV1Run.ts +models/IoGithub1eedaegonPipelineV1RunList.ts +models/IoGithub1eedaegonPipelineV1RunSpec.ts +models/IoGithub1eedaegonPipelineV1RunSpecJobsInner.ts +models/IoGithub1eedaegonPipelineV1RunStatus.ts +models/IoGithub1eedaegonPipelineV1RunStatusJobStatesInner.ts +models/IoGithub1eedaegonPipelineV1Task.ts +models/IoGithub1eedaegonPipelineV1TaskList.ts +models/IoGithub1eedaegonPipelineV1TaskSpec.ts +models/IoGithub1eedaegonPipelineV1TaskStatus.ts +models/IoK8sApimachineryPkgApisMetaV1APIGroup.ts +models/IoK8sApimachineryPkgApisMetaV1APIGroupList.ts +models/IoK8sApimachineryPkgApisMetaV1APIResource.ts +models/IoK8sApimachineryPkgApisMetaV1APIResourceList.ts +models/IoK8sApimachineryPkgApisMetaV1APIVersions.ts +models/IoK8sApimachineryPkgApisMetaV1Condition.ts +models/IoK8sApimachineryPkgApisMetaV1DeleteOptions.ts +models/IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery.ts +models/IoK8sApimachineryPkgApisMetaV1LabelSelector.ts +models/IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement.ts +models/IoK8sApimachineryPkgApisMetaV1ListMeta.ts +models/IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry.ts +models/IoK8sApimachineryPkgApisMetaV1ObjectMeta.ts +models/IoK8sApimachineryPkgApisMetaV1OwnerReference.ts +models/IoK8sApimachineryPkgApisMetaV1Preconditions.ts +models/IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR.ts +models/IoK8sApimachineryPkgApisMetaV1Status.ts +models/IoK8sApimachineryPkgApisMetaV1StatusCause.ts +models/IoK8sApimachineryPkgApisMetaV1StatusDetails.ts +models/IoK8sApimachineryPkgApisMetaV1WatchEvent.ts +models/IoK8sApimachineryPkgVersionInfo.ts +models/index.ts +runtime.ts diff --git a/generated/sdk/ts-fetch/.openapi-generator/VERSION b/generated/sdk/ts-fetch/.openapi-generator/VERSION new file mode 100644 index 0000000..09a6d30 --- /dev/null +++ b/generated/sdk/ts-fetch/.openapi-generator/VERSION @@ -0,0 +1 @@ +7.8.0 diff --git a/generated/sdk/ts-fetch/apis/Pipeline1eedaegonGithubIoV1Api.ts b/generated/sdk/ts-fetch/apis/Pipeline1eedaegonGithubIoV1Api.ts new file mode 100644 index 0000000..be23115 --- /dev/null +++ b/generated/sdk/ts-fetch/apis/Pipeline1eedaegonGithubIoV1Api.ts @@ -0,0 +1,1767 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + IoGithub1eedaegonPipelineV1Pipeline, + IoGithub1eedaegonPipelineV1PipelineList, + IoGithub1eedaegonPipelineV1Run, + IoGithub1eedaegonPipelineV1RunList, + IoGithub1eedaegonPipelineV1Task, + IoGithub1eedaegonPipelineV1TaskList, + IoK8sApimachineryPkgApisMetaV1Status, +} from '../models/index'; +import { + IoGithub1eedaegonPipelineV1PipelineFromJSON, + IoGithub1eedaegonPipelineV1PipelineToJSON, + IoGithub1eedaegonPipelineV1PipelineListFromJSON, + IoGithub1eedaegonPipelineV1PipelineListToJSON, + IoGithub1eedaegonPipelineV1RunFromJSON, + IoGithub1eedaegonPipelineV1RunToJSON, + IoGithub1eedaegonPipelineV1RunListFromJSON, + IoGithub1eedaegonPipelineV1RunListToJSON, + IoGithub1eedaegonPipelineV1TaskFromJSON, + IoGithub1eedaegonPipelineV1TaskToJSON, + IoGithub1eedaegonPipelineV1TaskListFromJSON, + IoGithub1eedaegonPipelineV1TaskListToJSON, + IoK8sApimachineryPkgApisMetaV1StatusFromJSON, + IoK8sApimachineryPkgApisMetaV1StatusToJSON, +} from '../models/index'; + +export interface CreatePipeline1eedaegonGithubIoV1NamespacedPipelineRequest { + body: IoGithub1eedaegonPipelineV1Pipeline; + UNKNOWN_PARAMETER_NAME?: ; + UNKNOWN_PARAMETER_NAME2?: ; + dryRun?: string; + UNKNOWN_PARAMETER_NAME3?: ; + fieldValidation?: string; +} + +export interface CreatePipeline1eedaegonGithubIoV1NamespacedRunRequest { + body: IoGithub1eedaegonPipelineV1Run; + UNKNOWN_PARAMETER_NAME?: ; + UNKNOWN_PARAMETER_NAME2?: ; + dryRun?: string; + UNKNOWN_PARAMETER_NAME3?: ; + fieldValidation?: string; +} + +export interface CreatePipeline1eedaegonGithubIoV1NamespacedTaskRequest { + body: IoGithub1eedaegonPipelineV1Task; + UNKNOWN_PARAMETER_NAME?: ; + UNKNOWN_PARAMETER_NAME2?: ; + dryRun?: string; + UNKNOWN_PARAMETER_NAME3?: ; + fieldValidation?: string; +} + +export interface DeletePipeline1eedaegonGithubIoV1CollectionNamespacedPipelineRequest { + UNKNOWN_PARAMETER_NAME?: ; + UNKNOWN_PARAMETER_NAME2?: ; + UNKNOWN_PARAMETER_NAME3?: ; + UNKNOWN_PARAMETER_NAME4?: ; + UNKNOWN_PARAMETER_NAME5?: ; + UNKNOWN_PARAMETER_NAME6?: ; + UNKNOWN_PARAMETER_NAME7?: ; + UNKNOWN_PARAMETER_NAME8?: ; + UNKNOWN_PARAMETER_NAME9?: ; + UNKNOWN_PARAMETER_NAME10?: ; + UNKNOWN_PARAMETER_NAME11?: ; + UNKNOWN_PARAMETER_NAME12?: ; +} + +export interface DeletePipeline1eedaegonGithubIoV1CollectionNamespacedRunRequest { + UNKNOWN_PARAMETER_NAME?: ; + UNKNOWN_PARAMETER_NAME2?: ; + UNKNOWN_PARAMETER_NAME3?: ; + UNKNOWN_PARAMETER_NAME4?: ; + UNKNOWN_PARAMETER_NAME5?: ; + UNKNOWN_PARAMETER_NAME6?: ; + UNKNOWN_PARAMETER_NAME7?: ; + UNKNOWN_PARAMETER_NAME8?: ; + UNKNOWN_PARAMETER_NAME9?: ; + UNKNOWN_PARAMETER_NAME10?: ; + UNKNOWN_PARAMETER_NAME11?: ; + UNKNOWN_PARAMETER_NAME12?: ; +} + +export interface DeletePipeline1eedaegonGithubIoV1CollectionNamespacedTaskRequest { + UNKNOWN_PARAMETER_NAME?: ; + UNKNOWN_PARAMETER_NAME2?: ; + UNKNOWN_PARAMETER_NAME3?: ; + UNKNOWN_PARAMETER_NAME4?: ; + UNKNOWN_PARAMETER_NAME5?: ; + UNKNOWN_PARAMETER_NAME6?: ; + UNKNOWN_PARAMETER_NAME7?: ; + UNKNOWN_PARAMETER_NAME8?: ; + UNKNOWN_PARAMETER_NAME9?: ; + UNKNOWN_PARAMETER_NAME10?: ; + UNKNOWN_PARAMETER_NAME11?: ; + UNKNOWN_PARAMETER_NAME12?: ; +} + +export interface DeletePipeline1eedaegonGithubIoV1NamespacedPipelineRequest { + name: string; + UNKNOWN_PARAMETER_NAME?: ; + UNKNOWN_PARAMETER_NAME2?: ; + UNKNOWN_PARAMETER_NAME3?: ; + dryRun?: string; + UNKNOWN_PARAMETER_NAME4?: ; + UNKNOWN_PARAMETER_NAME5?: ; + UNKNOWN_PARAMETER_NAME6?: ; +} + +export interface DeletePipeline1eedaegonGithubIoV1NamespacedRunRequest { + name: string; + UNKNOWN_PARAMETER_NAME?: ; + UNKNOWN_PARAMETER_NAME2?: ; + UNKNOWN_PARAMETER_NAME3?: ; + dryRun?: string; + UNKNOWN_PARAMETER_NAME4?: ; + UNKNOWN_PARAMETER_NAME5?: ; + UNKNOWN_PARAMETER_NAME6?: ; +} + +export interface DeletePipeline1eedaegonGithubIoV1NamespacedTaskRequest { + name: string; + UNKNOWN_PARAMETER_NAME?: ; + UNKNOWN_PARAMETER_NAME2?: ; + UNKNOWN_PARAMETER_NAME3?: ; + dryRun?: string; + UNKNOWN_PARAMETER_NAME4?: ; + UNKNOWN_PARAMETER_NAME5?: ; + UNKNOWN_PARAMETER_NAME6?: ; +} + +export interface ListPipeline1eedaegonGithubIoV1NamespacedPipelineRequest { + UNKNOWN_PARAMETER_NAME?: ; + UNKNOWN_PARAMETER_NAME2?: ; + UNKNOWN_PARAMETER_NAME3?: ; + UNKNOWN_PARAMETER_NAME4?: ; + UNKNOWN_PARAMETER_NAME5?: ; + UNKNOWN_PARAMETER_NAME6?: ; + UNKNOWN_PARAMETER_NAME7?: ; + UNKNOWN_PARAMETER_NAME8?: ; + UNKNOWN_PARAMETER_NAME9?: ; + UNKNOWN_PARAMETER_NAME10?: ; + UNKNOWN_PARAMETER_NAME11?: ; + UNKNOWN_PARAMETER_NAME12?: ; +} + +export interface ListPipeline1eedaegonGithubIoV1NamespacedRunRequest { + UNKNOWN_PARAMETER_NAME?: ; + UNKNOWN_PARAMETER_NAME2?: ; + UNKNOWN_PARAMETER_NAME3?: ; + UNKNOWN_PARAMETER_NAME4?: ; + UNKNOWN_PARAMETER_NAME5?: ; + UNKNOWN_PARAMETER_NAME6?: ; + UNKNOWN_PARAMETER_NAME7?: ; + UNKNOWN_PARAMETER_NAME8?: ; + UNKNOWN_PARAMETER_NAME9?: ; + UNKNOWN_PARAMETER_NAME10?: ; + UNKNOWN_PARAMETER_NAME11?: ; + UNKNOWN_PARAMETER_NAME12?: ; +} + +export interface ListPipeline1eedaegonGithubIoV1NamespacedTaskRequest { + UNKNOWN_PARAMETER_NAME?: ; + UNKNOWN_PARAMETER_NAME2?: ; + UNKNOWN_PARAMETER_NAME3?: ; + UNKNOWN_PARAMETER_NAME4?: ; + UNKNOWN_PARAMETER_NAME5?: ; + UNKNOWN_PARAMETER_NAME6?: ; + UNKNOWN_PARAMETER_NAME7?: ; + UNKNOWN_PARAMETER_NAME8?: ; + UNKNOWN_PARAMETER_NAME9?: ; + UNKNOWN_PARAMETER_NAME10?: ; + UNKNOWN_PARAMETER_NAME11?: ; + UNKNOWN_PARAMETER_NAME12?: ; +} + +export interface ListPipeline1eedaegonGithubIoV1PipelineForAllNamespacesRequest { + UNKNOWN_PARAMETER_NAME?: ; + UNKNOWN_PARAMETER_NAME2?: ; + UNKNOWN_PARAMETER_NAME3?: ; + UNKNOWN_PARAMETER_NAME4?: ; + UNKNOWN_PARAMETER_NAME5?: ; + UNKNOWN_PARAMETER_NAME6?: ; + UNKNOWN_PARAMETER_NAME7?: ; + UNKNOWN_PARAMETER_NAME8?: ; + UNKNOWN_PARAMETER_NAME9?: ; + UNKNOWN_PARAMETER_NAME10?: ; + UNKNOWN_PARAMETER_NAME11?: ; +} + +export interface ListPipeline1eedaegonGithubIoV1RunForAllNamespacesRequest { + UNKNOWN_PARAMETER_NAME?: ; + UNKNOWN_PARAMETER_NAME2?: ; + UNKNOWN_PARAMETER_NAME3?: ; + UNKNOWN_PARAMETER_NAME4?: ; + UNKNOWN_PARAMETER_NAME5?: ; + UNKNOWN_PARAMETER_NAME6?: ; + UNKNOWN_PARAMETER_NAME7?: ; + UNKNOWN_PARAMETER_NAME8?: ; + UNKNOWN_PARAMETER_NAME9?: ; + UNKNOWN_PARAMETER_NAME10?: ; + UNKNOWN_PARAMETER_NAME11?: ; +} + +export interface ListPipeline1eedaegonGithubIoV1TaskForAllNamespacesRequest { + UNKNOWN_PARAMETER_NAME?: ; + UNKNOWN_PARAMETER_NAME2?: ; + UNKNOWN_PARAMETER_NAME3?: ; + UNKNOWN_PARAMETER_NAME4?: ; + UNKNOWN_PARAMETER_NAME5?: ; + UNKNOWN_PARAMETER_NAME6?: ; + UNKNOWN_PARAMETER_NAME7?: ; + UNKNOWN_PARAMETER_NAME8?: ; + UNKNOWN_PARAMETER_NAME9?: ; + UNKNOWN_PARAMETER_NAME10?: ; + UNKNOWN_PARAMETER_NAME11?: ; +} + +export interface PatchPipeline1eedaegonGithubIoV1NamespacedPipelineRequest { + name: string; + UNKNOWN_PARAMETER_NAME?: ; + UNKNOWN_PARAMETER_NAME2?: ; + UNKNOWN_PARAMETER_NAME3?: ; + dryRun?: string; + UNKNOWN_PARAMETER_NAME4?: ; + fieldValidation?: string; + UNKNOWN_PARAMETER_NAME5?: ; +} + +export interface PatchPipeline1eedaegonGithubIoV1NamespacedPipelineStatusRequest { + name: string; + UNKNOWN_PARAMETER_NAME?: ; + UNKNOWN_PARAMETER_NAME2?: ; + UNKNOWN_PARAMETER_NAME3?: ; + dryRun?: string; + UNKNOWN_PARAMETER_NAME4?: ; + fieldValidation?: string; + UNKNOWN_PARAMETER_NAME5?: ; +} + +export interface PatchPipeline1eedaegonGithubIoV1NamespacedRunRequest { + name: string; + UNKNOWN_PARAMETER_NAME?: ; + UNKNOWN_PARAMETER_NAME2?: ; + UNKNOWN_PARAMETER_NAME3?: ; + dryRun?: string; + UNKNOWN_PARAMETER_NAME4?: ; + fieldValidation?: string; + UNKNOWN_PARAMETER_NAME5?: ; +} + +export interface PatchPipeline1eedaegonGithubIoV1NamespacedRunStatusRequest { + name: string; + UNKNOWN_PARAMETER_NAME?: ; + UNKNOWN_PARAMETER_NAME2?: ; + UNKNOWN_PARAMETER_NAME3?: ; + dryRun?: string; + UNKNOWN_PARAMETER_NAME4?: ; + fieldValidation?: string; + UNKNOWN_PARAMETER_NAME5?: ; +} + +export interface PatchPipeline1eedaegonGithubIoV1NamespacedTaskRequest { + name: string; + UNKNOWN_PARAMETER_NAME?: ; + UNKNOWN_PARAMETER_NAME2?: ; + UNKNOWN_PARAMETER_NAME3?: ; + dryRun?: string; + UNKNOWN_PARAMETER_NAME4?: ; + fieldValidation?: string; + UNKNOWN_PARAMETER_NAME5?: ; +} + +export interface PatchPipeline1eedaegonGithubIoV1NamespacedTaskStatusRequest { + name: string; + UNKNOWN_PARAMETER_NAME?: ; + UNKNOWN_PARAMETER_NAME2?: ; + UNKNOWN_PARAMETER_NAME3?: ; + dryRun?: string; + UNKNOWN_PARAMETER_NAME4?: ; + fieldValidation?: string; + UNKNOWN_PARAMETER_NAME5?: ; +} + +export interface ReadPipeline1eedaegonGithubIoV1NamespacedPipelineRequest { + name: string; + UNKNOWN_PARAMETER_NAME?: ; + UNKNOWN_PARAMETER_NAME2?: ; + UNKNOWN_PARAMETER_NAME3?: ; +} + +export interface ReadPipeline1eedaegonGithubIoV1NamespacedPipelineStatusRequest { + name: string; + UNKNOWN_PARAMETER_NAME?: ; + UNKNOWN_PARAMETER_NAME2?: ; + UNKNOWN_PARAMETER_NAME3?: ; +} + +export interface ReadPipeline1eedaegonGithubIoV1NamespacedRunRequest { + name: string; + UNKNOWN_PARAMETER_NAME?: ; + UNKNOWN_PARAMETER_NAME2?: ; + UNKNOWN_PARAMETER_NAME3?: ; +} + +export interface ReadPipeline1eedaegonGithubIoV1NamespacedRunStatusRequest { + name: string; + UNKNOWN_PARAMETER_NAME?: ; + UNKNOWN_PARAMETER_NAME2?: ; + UNKNOWN_PARAMETER_NAME3?: ; +} + +export interface ReadPipeline1eedaegonGithubIoV1NamespacedTaskRequest { + name: string; + UNKNOWN_PARAMETER_NAME?: ; + UNKNOWN_PARAMETER_NAME2?: ; + UNKNOWN_PARAMETER_NAME3?: ; +} + +export interface ReadPipeline1eedaegonGithubIoV1NamespacedTaskStatusRequest { + name: string; + UNKNOWN_PARAMETER_NAME?: ; + UNKNOWN_PARAMETER_NAME2?: ; + UNKNOWN_PARAMETER_NAME3?: ; +} + +export interface ReplacePipeline1eedaegonGithubIoV1NamespacedPipelineRequest { + name: string; + body: IoGithub1eedaegonPipelineV1Pipeline; + UNKNOWN_PARAMETER_NAME?: ; + UNKNOWN_PARAMETER_NAME2?: ; + dryRun?: string; + UNKNOWN_PARAMETER_NAME3?: ; + fieldValidation?: string; +} + +export interface ReplacePipeline1eedaegonGithubIoV1NamespacedPipelineStatusRequest { + name: string; + body: IoGithub1eedaegonPipelineV1Pipeline; + UNKNOWN_PARAMETER_NAME?: ; + UNKNOWN_PARAMETER_NAME2?: ; + dryRun?: string; + UNKNOWN_PARAMETER_NAME3?: ; + fieldValidation?: string; +} + +export interface ReplacePipeline1eedaegonGithubIoV1NamespacedRunRequest { + name: string; + body: IoGithub1eedaegonPipelineV1Run; + UNKNOWN_PARAMETER_NAME?: ; + UNKNOWN_PARAMETER_NAME2?: ; + dryRun?: string; + UNKNOWN_PARAMETER_NAME3?: ; + fieldValidation?: string; +} + +export interface ReplacePipeline1eedaegonGithubIoV1NamespacedRunStatusRequest { + name: string; + body: IoGithub1eedaegonPipelineV1Run; + UNKNOWN_PARAMETER_NAME?: ; + UNKNOWN_PARAMETER_NAME2?: ; + dryRun?: string; + UNKNOWN_PARAMETER_NAME3?: ; + fieldValidation?: string; +} + +export interface ReplacePipeline1eedaegonGithubIoV1NamespacedTaskRequest { + name: string; + body: IoGithub1eedaegonPipelineV1Task; + UNKNOWN_PARAMETER_NAME?: ; + UNKNOWN_PARAMETER_NAME2?: ; + dryRun?: string; + UNKNOWN_PARAMETER_NAME3?: ; + fieldValidation?: string; +} + +export interface ReplacePipeline1eedaegonGithubIoV1NamespacedTaskStatusRequest { + name: string; + body: IoGithub1eedaegonPipelineV1Task; + UNKNOWN_PARAMETER_NAME?: ; + UNKNOWN_PARAMETER_NAME2?: ; + dryRun?: string; + UNKNOWN_PARAMETER_NAME3?: ; + fieldValidation?: string; +} + +/** + * + */ +export class Pipeline1eedaegonGithubIoV1Api extends runtime.BaseAPI { + + /** + * create a Pipeline + */ + async createPipeline1eedaegonGithubIoV1NamespacedPipelineRaw(requestParameters: CreatePipeline1eedaegonGithubIoV1NamespacedPipelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['body'] == null) { + throw new runtime.RequiredError( + 'body', + 'Required parameter "body" was null or undefined when calling createPipeline1eedaegonGithubIoV1NamespacedPipeline().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['dryRun'] != null) { + queryParameters['dryRun'] = requestParameters['dryRun']; + } + + if (requestParameters['fieldValidation'] != null) { + queryParameters['fieldValidation'] = requestParameters['fieldValidation']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["authorization"] = await this.configuration.apiKey("authorization"); // BearerToken authentication + } + + const response = await this.request({ + path: `/apis/pipeline.1eedaegon.github.io/v1/namespaces/{namespace}/pipelines`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: IoGithub1eedaegonPipelineV1PipelineToJSON(requestParameters['body']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoGithub1eedaegonPipelineV1PipelineFromJSON(jsonValue)); + } + + /** + * create a Pipeline + */ + async createPipeline1eedaegonGithubIoV1NamespacedPipeline(requestParameters: CreatePipeline1eedaegonGithubIoV1NamespacedPipelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.createPipeline1eedaegonGithubIoV1NamespacedPipelineRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * create a Run + */ + async createPipeline1eedaegonGithubIoV1NamespacedRunRaw(requestParameters: CreatePipeline1eedaegonGithubIoV1NamespacedRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['body'] == null) { + throw new runtime.RequiredError( + 'body', + 'Required parameter "body" was null or undefined when calling createPipeline1eedaegonGithubIoV1NamespacedRun().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['dryRun'] != null) { + queryParameters['dryRun'] = requestParameters['dryRun']; + } + + if (requestParameters['fieldValidation'] != null) { + queryParameters['fieldValidation'] = requestParameters['fieldValidation']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["authorization"] = await this.configuration.apiKey("authorization"); // BearerToken authentication + } + + const response = await this.request({ + path: `/apis/pipeline.1eedaegon.github.io/v1/namespaces/{namespace}/runs`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: IoGithub1eedaegonPipelineV1RunToJSON(requestParameters['body']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoGithub1eedaegonPipelineV1RunFromJSON(jsonValue)); + } + + /** + * create a Run + */ + async createPipeline1eedaegonGithubIoV1NamespacedRun(requestParameters: CreatePipeline1eedaegonGithubIoV1NamespacedRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.createPipeline1eedaegonGithubIoV1NamespacedRunRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * create a Task + */ + async createPipeline1eedaegonGithubIoV1NamespacedTaskRaw(requestParameters: CreatePipeline1eedaegonGithubIoV1NamespacedTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['body'] == null) { + throw new runtime.RequiredError( + 'body', + 'Required parameter "body" was null or undefined when calling createPipeline1eedaegonGithubIoV1NamespacedTask().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['dryRun'] != null) { + queryParameters['dryRun'] = requestParameters['dryRun']; + } + + if (requestParameters['fieldValidation'] != null) { + queryParameters['fieldValidation'] = requestParameters['fieldValidation']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["authorization"] = await this.configuration.apiKey("authorization"); // BearerToken authentication + } + + const response = await this.request({ + path: `/apis/pipeline.1eedaegon.github.io/v1/namespaces/{namespace}/tasks`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: IoGithub1eedaegonPipelineV1TaskToJSON(requestParameters['body']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoGithub1eedaegonPipelineV1TaskFromJSON(jsonValue)); + } + + /** + * create a Task + */ + async createPipeline1eedaegonGithubIoV1NamespacedTask(requestParameters: CreatePipeline1eedaegonGithubIoV1NamespacedTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.createPipeline1eedaegonGithubIoV1NamespacedTaskRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * delete collection of Pipeline + */ + async deletePipeline1eedaegonGithubIoV1CollectionNamespacedPipelineRaw(requestParameters: DeletePipeline1eedaegonGithubIoV1CollectionNamespacedPipelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["authorization"] = await this.configuration.apiKey("authorization"); // BearerToken authentication + } + + const response = await this.request({ + path: `/apis/pipeline.1eedaegon.github.io/v1/namespaces/{namespace}/pipelines`, + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApimachineryPkgApisMetaV1StatusFromJSON(jsonValue)); + } + + /** + * delete collection of Pipeline + */ + async deletePipeline1eedaegonGithubIoV1CollectionNamespacedPipeline(requestParameters: DeletePipeline1eedaegonGithubIoV1CollectionNamespacedPipelineRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deletePipeline1eedaegonGithubIoV1CollectionNamespacedPipelineRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * delete collection of Run + */ + async deletePipeline1eedaegonGithubIoV1CollectionNamespacedRunRaw(requestParameters: DeletePipeline1eedaegonGithubIoV1CollectionNamespacedRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["authorization"] = await this.configuration.apiKey("authorization"); // BearerToken authentication + } + + const response = await this.request({ + path: `/apis/pipeline.1eedaegon.github.io/v1/namespaces/{namespace}/runs`, + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApimachineryPkgApisMetaV1StatusFromJSON(jsonValue)); + } + + /** + * delete collection of Run + */ + async deletePipeline1eedaegonGithubIoV1CollectionNamespacedRun(requestParameters: DeletePipeline1eedaegonGithubIoV1CollectionNamespacedRunRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deletePipeline1eedaegonGithubIoV1CollectionNamespacedRunRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * delete collection of Task + */ + async deletePipeline1eedaegonGithubIoV1CollectionNamespacedTaskRaw(requestParameters: DeletePipeline1eedaegonGithubIoV1CollectionNamespacedTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["authorization"] = await this.configuration.apiKey("authorization"); // BearerToken authentication + } + + const response = await this.request({ + path: `/apis/pipeline.1eedaegon.github.io/v1/namespaces/{namespace}/tasks`, + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApimachineryPkgApisMetaV1StatusFromJSON(jsonValue)); + } + + /** + * delete collection of Task + */ + async deletePipeline1eedaegonGithubIoV1CollectionNamespacedTask(requestParameters: DeletePipeline1eedaegonGithubIoV1CollectionNamespacedTaskRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deletePipeline1eedaegonGithubIoV1CollectionNamespacedTaskRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * delete a Pipeline + */ + async deletePipeline1eedaegonGithubIoV1NamespacedPipelineRaw(requestParameters: DeletePipeline1eedaegonGithubIoV1NamespacedPipelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling deletePipeline1eedaegonGithubIoV1NamespacedPipeline().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['dryRun'] != null) { + queryParameters['dryRun'] = requestParameters['dryRun']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["authorization"] = await this.configuration.apiKey("authorization"); // BearerToken authentication + } + + const response = await this.request({ + path: `/apis/pipeline.1eedaegon.github.io/v1/namespaces/{namespace}/pipelines/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApimachineryPkgApisMetaV1StatusFromJSON(jsonValue)); + } + + /** + * delete a Pipeline + */ + async deletePipeline1eedaegonGithubIoV1NamespacedPipeline(requestParameters: DeletePipeline1eedaegonGithubIoV1NamespacedPipelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deletePipeline1eedaegonGithubIoV1NamespacedPipelineRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * delete a Run + */ + async deletePipeline1eedaegonGithubIoV1NamespacedRunRaw(requestParameters: DeletePipeline1eedaegonGithubIoV1NamespacedRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling deletePipeline1eedaegonGithubIoV1NamespacedRun().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['dryRun'] != null) { + queryParameters['dryRun'] = requestParameters['dryRun']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["authorization"] = await this.configuration.apiKey("authorization"); // BearerToken authentication + } + + const response = await this.request({ + path: `/apis/pipeline.1eedaegon.github.io/v1/namespaces/{namespace}/runs/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApimachineryPkgApisMetaV1StatusFromJSON(jsonValue)); + } + + /** + * delete a Run + */ + async deletePipeline1eedaegonGithubIoV1NamespacedRun(requestParameters: DeletePipeline1eedaegonGithubIoV1NamespacedRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deletePipeline1eedaegonGithubIoV1NamespacedRunRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * delete a Task + */ + async deletePipeline1eedaegonGithubIoV1NamespacedTaskRaw(requestParameters: DeletePipeline1eedaegonGithubIoV1NamespacedTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling deletePipeline1eedaegonGithubIoV1NamespacedTask().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['dryRun'] != null) { + queryParameters['dryRun'] = requestParameters['dryRun']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["authorization"] = await this.configuration.apiKey("authorization"); // BearerToken authentication + } + + const response = await this.request({ + path: `/apis/pipeline.1eedaegon.github.io/v1/namespaces/{namespace}/tasks/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApimachineryPkgApisMetaV1StatusFromJSON(jsonValue)); + } + + /** + * delete a Task + */ + async deletePipeline1eedaegonGithubIoV1NamespacedTask(requestParameters: DeletePipeline1eedaegonGithubIoV1NamespacedTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deletePipeline1eedaegonGithubIoV1NamespacedTaskRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * list objects of kind Pipeline + */ + async listPipeline1eedaegonGithubIoV1NamespacedPipelineRaw(requestParameters: ListPipeline1eedaegonGithubIoV1NamespacedPipelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["authorization"] = await this.configuration.apiKey("authorization"); // BearerToken authentication + } + + const response = await this.request({ + path: `/apis/pipeline.1eedaegon.github.io/v1/namespaces/{namespace}/pipelines`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoGithub1eedaegonPipelineV1PipelineListFromJSON(jsonValue)); + } + + /** + * list objects of kind Pipeline + */ + async listPipeline1eedaegonGithubIoV1NamespacedPipeline(requestParameters: ListPipeline1eedaegonGithubIoV1NamespacedPipelineRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.listPipeline1eedaegonGithubIoV1NamespacedPipelineRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * list objects of kind Run + */ + async listPipeline1eedaegonGithubIoV1NamespacedRunRaw(requestParameters: ListPipeline1eedaegonGithubIoV1NamespacedRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["authorization"] = await this.configuration.apiKey("authorization"); // BearerToken authentication + } + + const response = await this.request({ + path: `/apis/pipeline.1eedaegon.github.io/v1/namespaces/{namespace}/runs`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoGithub1eedaegonPipelineV1RunListFromJSON(jsonValue)); + } + + /** + * list objects of kind Run + */ + async listPipeline1eedaegonGithubIoV1NamespacedRun(requestParameters: ListPipeline1eedaegonGithubIoV1NamespacedRunRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.listPipeline1eedaegonGithubIoV1NamespacedRunRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * list objects of kind Task + */ + async listPipeline1eedaegonGithubIoV1NamespacedTaskRaw(requestParameters: ListPipeline1eedaegonGithubIoV1NamespacedTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["authorization"] = await this.configuration.apiKey("authorization"); // BearerToken authentication + } + + const response = await this.request({ + path: `/apis/pipeline.1eedaegon.github.io/v1/namespaces/{namespace}/tasks`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoGithub1eedaegonPipelineV1TaskListFromJSON(jsonValue)); + } + + /** + * list objects of kind Task + */ + async listPipeline1eedaegonGithubIoV1NamespacedTask(requestParameters: ListPipeline1eedaegonGithubIoV1NamespacedTaskRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.listPipeline1eedaegonGithubIoV1NamespacedTaskRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * list objects of kind Pipeline + */ + async listPipeline1eedaegonGithubIoV1PipelineForAllNamespacesRaw(requestParameters: ListPipeline1eedaegonGithubIoV1PipelineForAllNamespacesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["authorization"] = await this.configuration.apiKey("authorization"); // BearerToken authentication + } + + const response = await this.request({ + path: `/apis/pipeline.1eedaegon.github.io/v1/pipelines`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoGithub1eedaegonPipelineV1PipelineListFromJSON(jsonValue)); + } + + /** + * list objects of kind Pipeline + */ + async listPipeline1eedaegonGithubIoV1PipelineForAllNamespaces(requestParameters: ListPipeline1eedaegonGithubIoV1PipelineForAllNamespacesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.listPipeline1eedaegonGithubIoV1PipelineForAllNamespacesRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * list objects of kind Run + */ + async listPipeline1eedaegonGithubIoV1RunForAllNamespacesRaw(requestParameters: ListPipeline1eedaegonGithubIoV1RunForAllNamespacesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["authorization"] = await this.configuration.apiKey("authorization"); // BearerToken authentication + } + + const response = await this.request({ + path: `/apis/pipeline.1eedaegon.github.io/v1/runs`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoGithub1eedaegonPipelineV1RunListFromJSON(jsonValue)); + } + + /** + * list objects of kind Run + */ + async listPipeline1eedaegonGithubIoV1RunForAllNamespaces(requestParameters: ListPipeline1eedaegonGithubIoV1RunForAllNamespacesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.listPipeline1eedaegonGithubIoV1RunForAllNamespacesRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * list objects of kind Task + */ + async listPipeline1eedaegonGithubIoV1TaskForAllNamespacesRaw(requestParameters: ListPipeline1eedaegonGithubIoV1TaskForAllNamespacesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["authorization"] = await this.configuration.apiKey("authorization"); // BearerToken authentication + } + + const response = await this.request({ + path: `/apis/pipeline.1eedaegon.github.io/v1/tasks`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoGithub1eedaegonPipelineV1TaskListFromJSON(jsonValue)); + } + + /** + * list objects of kind Task + */ + async listPipeline1eedaegonGithubIoV1TaskForAllNamespaces(requestParameters: ListPipeline1eedaegonGithubIoV1TaskForAllNamespacesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.listPipeline1eedaegonGithubIoV1TaskForAllNamespacesRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * partially update the specified Pipeline + */ + async patchPipeline1eedaegonGithubIoV1NamespacedPipelineRaw(requestParameters: PatchPipeline1eedaegonGithubIoV1NamespacedPipelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling patchPipeline1eedaegonGithubIoV1NamespacedPipeline().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['dryRun'] != null) { + queryParameters['dryRun'] = requestParameters['dryRun']; + } + + if (requestParameters['fieldValidation'] != null) { + queryParameters['fieldValidation'] = requestParameters['fieldValidation']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["authorization"] = await this.configuration.apiKey("authorization"); // BearerToken authentication + } + + const response = await this.request({ + path: `/apis/pipeline.1eedaegon.github.io/v1/namespaces/{namespace}/pipelines/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))), + method: 'PATCH', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoGithub1eedaegonPipelineV1PipelineFromJSON(jsonValue)); + } + + /** + * partially update the specified Pipeline + */ + async patchPipeline1eedaegonGithubIoV1NamespacedPipeline(requestParameters: PatchPipeline1eedaegonGithubIoV1NamespacedPipelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.patchPipeline1eedaegonGithubIoV1NamespacedPipelineRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * partially update status of the specified Pipeline + */ + async patchPipeline1eedaegonGithubIoV1NamespacedPipelineStatusRaw(requestParameters: PatchPipeline1eedaegonGithubIoV1NamespacedPipelineStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling patchPipeline1eedaegonGithubIoV1NamespacedPipelineStatus().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['dryRun'] != null) { + queryParameters['dryRun'] = requestParameters['dryRun']; + } + + if (requestParameters['fieldValidation'] != null) { + queryParameters['fieldValidation'] = requestParameters['fieldValidation']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["authorization"] = await this.configuration.apiKey("authorization"); // BearerToken authentication + } + + const response = await this.request({ + path: `/apis/pipeline.1eedaegon.github.io/v1/namespaces/{namespace}/pipelines/{name}/status`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))), + method: 'PATCH', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoGithub1eedaegonPipelineV1PipelineFromJSON(jsonValue)); + } + + /** + * partially update status of the specified Pipeline + */ + async patchPipeline1eedaegonGithubIoV1NamespacedPipelineStatus(requestParameters: PatchPipeline1eedaegonGithubIoV1NamespacedPipelineStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.patchPipeline1eedaegonGithubIoV1NamespacedPipelineStatusRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * partially update the specified Run + */ + async patchPipeline1eedaegonGithubIoV1NamespacedRunRaw(requestParameters: PatchPipeline1eedaegonGithubIoV1NamespacedRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling patchPipeline1eedaegonGithubIoV1NamespacedRun().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['dryRun'] != null) { + queryParameters['dryRun'] = requestParameters['dryRun']; + } + + if (requestParameters['fieldValidation'] != null) { + queryParameters['fieldValidation'] = requestParameters['fieldValidation']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["authorization"] = await this.configuration.apiKey("authorization"); // BearerToken authentication + } + + const response = await this.request({ + path: `/apis/pipeline.1eedaegon.github.io/v1/namespaces/{namespace}/runs/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))), + method: 'PATCH', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoGithub1eedaegonPipelineV1RunFromJSON(jsonValue)); + } + + /** + * partially update the specified Run + */ + async patchPipeline1eedaegonGithubIoV1NamespacedRun(requestParameters: PatchPipeline1eedaegonGithubIoV1NamespacedRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.patchPipeline1eedaegonGithubIoV1NamespacedRunRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * partially update status of the specified Run + */ + async patchPipeline1eedaegonGithubIoV1NamespacedRunStatusRaw(requestParameters: PatchPipeline1eedaegonGithubIoV1NamespacedRunStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling patchPipeline1eedaegonGithubIoV1NamespacedRunStatus().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['dryRun'] != null) { + queryParameters['dryRun'] = requestParameters['dryRun']; + } + + if (requestParameters['fieldValidation'] != null) { + queryParameters['fieldValidation'] = requestParameters['fieldValidation']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["authorization"] = await this.configuration.apiKey("authorization"); // BearerToken authentication + } + + const response = await this.request({ + path: `/apis/pipeline.1eedaegon.github.io/v1/namespaces/{namespace}/runs/{name}/status`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))), + method: 'PATCH', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoGithub1eedaegonPipelineV1RunFromJSON(jsonValue)); + } + + /** + * partially update status of the specified Run + */ + async patchPipeline1eedaegonGithubIoV1NamespacedRunStatus(requestParameters: PatchPipeline1eedaegonGithubIoV1NamespacedRunStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.patchPipeline1eedaegonGithubIoV1NamespacedRunStatusRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * partially update the specified Task + */ + async patchPipeline1eedaegonGithubIoV1NamespacedTaskRaw(requestParameters: PatchPipeline1eedaegonGithubIoV1NamespacedTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling patchPipeline1eedaegonGithubIoV1NamespacedTask().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['dryRun'] != null) { + queryParameters['dryRun'] = requestParameters['dryRun']; + } + + if (requestParameters['fieldValidation'] != null) { + queryParameters['fieldValidation'] = requestParameters['fieldValidation']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["authorization"] = await this.configuration.apiKey("authorization"); // BearerToken authentication + } + + const response = await this.request({ + path: `/apis/pipeline.1eedaegon.github.io/v1/namespaces/{namespace}/tasks/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))), + method: 'PATCH', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoGithub1eedaegonPipelineV1TaskFromJSON(jsonValue)); + } + + /** + * partially update the specified Task + */ + async patchPipeline1eedaegonGithubIoV1NamespacedTask(requestParameters: PatchPipeline1eedaegonGithubIoV1NamespacedTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.patchPipeline1eedaegonGithubIoV1NamespacedTaskRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * partially update status of the specified Task + */ + async patchPipeline1eedaegonGithubIoV1NamespacedTaskStatusRaw(requestParameters: PatchPipeline1eedaegonGithubIoV1NamespacedTaskStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling patchPipeline1eedaegonGithubIoV1NamespacedTaskStatus().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['dryRun'] != null) { + queryParameters['dryRun'] = requestParameters['dryRun']; + } + + if (requestParameters['fieldValidation'] != null) { + queryParameters['fieldValidation'] = requestParameters['fieldValidation']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["authorization"] = await this.configuration.apiKey("authorization"); // BearerToken authentication + } + + const response = await this.request({ + path: `/apis/pipeline.1eedaegon.github.io/v1/namespaces/{namespace}/tasks/{name}/status`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))), + method: 'PATCH', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoGithub1eedaegonPipelineV1TaskFromJSON(jsonValue)); + } + + /** + * partially update status of the specified Task + */ + async patchPipeline1eedaegonGithubIoV1NamespacedTaskStatus(requestParameters: PatchPipeline1eedaegonGithubIoV1NamespacedTaskStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.patchPipeline1eedaegonGithubIoV1NamespacedTaskStatusRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * read the specified Pipeline + */ + async readPipeline1eedaegonGithubIoV1NamespacedPipelineRaw(requestParameters: ReadPipeline1eedaegonGithubIoV1NamespacedPipelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling readPipeline1eedaegonGithubIoV1NamespacedPipeline().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["authorization"] = await this.configuration.apiKey("authorization"); // BearerToken authentication + } + + const response = await this.request({ + path: `/apis/pipeline.1eedaegon.github.io/v1/namespaces/{namespace}/pipelines/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoGithub1eedaegonPipelineV1PipelineFromJSON(jsonValue)); + } + + /** + * read the specified Pipeline + */ + async readPipeline1eedaegonGithubIoV1NamespacedPipeline(requestParameters: ReadPipeline1eedaegonGithubIoV1NamespacedPipelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.readPipeline1eedaegonGithubIoV1NamespacedPipelineRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * read status of the specified Pipeline + */ + async readPipeline1eedaegonGithubIoV1NamespacedPipelineStatusRaw(requestParameters: ReadPipeline1eedaegonGithubIoV1NamespacedPipelineStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling readPipeline1eedaegonGithubIoV1NamespacedPipelineStatus().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["authorization"] = await this.configuration.apiKey("authorization"); // BearerToken authentication + } + + const response = await this.request({ + path: `/apis/pipeline.1eedaegon.github.io/v1/namespaces/{namespace}/pipelines/{name}/status`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoGithub1eedaegonPipelineV1PipelineFromJSON(jsonValue)); + } + + /** + * read status of the specified Pipeline + */ + async readPipeline1eedaegonGithubIoV1NamespacedPipelineStatus(requestParameters: ReadPipeline1eedaegonGithubIoV1NamespacedPipelineStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.readPipeline1eedaegonGithubIoV1NamespacedPipelineStatusRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * read the specified Run + */ + async readPipeline1eedaegonGithubIoV1NamespacedRunRaw(requestParameters: ReadPipeline1eedaegonGithubIoV1NamespacedRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling readPipeline1eedaegonGithubIoV1NamespacedRun().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["authorization"] = await this.configuration.apiKey("authorization"); // BearerToken authentication + } + + const response = await this.request({ + path: `/apis/pipeline.1eedaegon.github.io/v1/namespaces/{namespace}/runs/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoGithub1eedaegonPipelineV1RunFromJSON(jsonValue)); + } + + /** + * read the specified Run + */ + async readPipeline1eedaegonGithubIoV1NamespacedRun(requestParameters: ReadPipeline1eedaegonGithubIoV1NamespacedRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.readPipeline1eedaegonGithubIoV1NamespacedRunRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * read status of the specified Run + */ + async readPipeline1eedaegonGithubIoV1NamespacedRunStatusRaw(requestParameters: ReadPipeline1eedaegonGithubIoV1NamespacedRunStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling readPipeline1eedaegonGithubIoV1NamespacedRunStatus().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["authorization"] = await this.configuration.apiKey("authorization"); // BearerToken authentication + } + + const response = await this.request({ + path: `/apis/pipeline.1eedaegon.github.io/v1/namespaces/{namespace}/runs/{name}/status`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoGithub1eedaegonPipelineV1RunFromJSON(jsonValue)); + } + + /** + * read status of the specified Run + */ + async readPipeline1eedaegonGithubIoV1NamespacedRunStatus(requestParameters: ReadPipeline1eedaegonGithubIoV1NamespacedRunStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.readPipeline1eedaegonGithubIoV1NamespacedRunStatusRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * read the specified Task + */ + async readPipeline1eedaegonGithubIoV1NamespacedTaskRaw(requestParameters: ReadPipeline1eedaegonGithubIoV1NamespacedTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling readPipeline1eedaegonGithubIoV1NamespacedTask().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["authorization"] = await this.configuration.apiKey("authorization"); // BearerToken authentication + } + + const response = await this.request({ + path: `/apis/pipeline.1eedaegon.github.io/v1/namespaces/{namespace}/tasks/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoGithub1eedaegonPipelineV1TaskFromJSON(jsonValue)); + } + + /** + * read the specified Task + */ + async readPipeline1eedaegonGithubIoV1NamespacedTask(requestParameters: ReadPipeline1eedaegonGithubIoV1NamespacedTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.readPipeline1eedaegonGithubIoV1NamespacedTaskRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * read status of the specified Task + */ + async readPipeline1eedaegonGithubIoV1NamespacedTaskStatusRaw(requestParameters: ReadPipeline1eedaegonGithubIoV1NamespacedTaskStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling readPipeline1eedaegonGithubIoV1NamespacedTaskStatus().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["authorization"] = await this.configuration.apiKey("authorization"); // BearerToken authentication + } + + const response = await this.request({ + path: `/apis/pipeline.1eedaegon.github.io/v1/namespaces/{namespace}/tasks/{name}/status`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoGithub1eedaegonPipelineV1TaskFromJSON(jsonValue)); + } + + /** + * read status of the specified Task + */ + async readPipeline1eedaegonGithubIoV1NamespacedTaskStatus(requestParameters: ReadPipeline1eedaegonGithubIoV1NamespacedTaskStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.readPipeline1eedaegonGithubIoV1NamespacedTaskStatusRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * replace the specified Pipeline + */ + async replacePipeline1eedaegonGithubIoV1NamespacedPipelineRaw(requestParameters: ReplacePipeline1eedaegonGithubIoV1NamespacedPipelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling replacePipeline1eedaegonGithubIoV1NamespacedPipeline().' + ); + } + + if (requestParameters['body'] == null) { + throw new runtime.RequiredError( + 'body', + 'Required parameter "body" was null or undefined when calling replacePipeline1eedaegonGithubIoV1NamespacedPipeline().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['dryRun'] != null) { + queryParameters['dryRun'] = requestParameters['dryRun']; + } + + if (requestParameters['fieldValidation'] != null) { + queryParameters['fieldValidation'] = requestParameters['fieldValidation']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["authorization"] = await this.configuration.apiKey("authorization"); // BearerToken authentication + } + + const response = await this.request({ + path: `/apis/pipeline.1eedaegon.github.io/v1/namespaces/{namespace}/pipelines/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: IoGithub1eedaegonPipelineV1PipelineToJSON(requestParameters['body']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoGithub1eedaegonPipelineV1PipelineFromJSON(jsonValue)); + } + + /** + * replace the specified Pipeline + */ + async replacePipeline1eedaegonGithubIoV1NamespacedPipeline(requestParameters: ReplacePipeline1eedaegonGithubIoV1NamespacedPipelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.replacePipeline1eedaegonGithubIoV1NamespacedPipelineRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * replace status of the specified Pipeline + */ + async replacePipeline1eedaegonGithubIoV1NamespacedPipelineStatusRaw(requestParameters: ReplacePipeline1eedaegonGithubIoV1NamespacedPipelineStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling replacePipeline1eedaegonGithubIoV1NamespacedPipelineStatus().' + ); + } + + if (requestParameters['body'] == null) { + throw new runtime.RequiredError( + 'body', + 'Required parameter "body" was null or undefined when calling replacePipeline1eedaegonGithubIoV1NamespacedPipelineStatus().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['dryRun'] != null) { + queryParameters['dryRun'] = requestParameters['dryRun']; + } + + if (requestParameters['fieldValidation'] != null) { + queryParameters['fieldValidation'] = requestParameters['fieldValidation']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["authorization"] = await this.configuration.apiKey("authorization"); // BearerToken authentication + } + + const response = await this.request({ + path: `/apis/pipeline.1eedaegon.github.io/v1/namespaces/{namespace}/pipelines/{name}/status`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: IoGithub1eedaegonPipelineV1PipelineToJSON(requestParameters['body']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoGithub1eedaegonPipelineV1PipelineFromJSON(jsonValue)); + } + + /** + * replace status of the specified Pipeline + */ + async replacePipeline1eedaegonGithubIoV1NamespacedPipelineStatus(requestParameters: ReplacePipeline1eedaegonGithubIoV1NamespacedPipelineStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.replacePipeline1eedaegonGithubIoV1NamespacedPipelineStatusRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * replace the specified Run + */ + async replacePipeline1eedaegonGithubIoV1NamespacedRunRaw(requestParameters: ReplacePipeline1eedaegonGithubIoV1NamespacedRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling replacePipeline1eedaegonGithubIoV1NamespacedRun().' + ); + } + + if (requestParameters['body'] == null) { + throw new runtime.RequiredError( + 'body', + 'Required parameter "body" was null or undefined when calling replacePipeline1eedaegonGithubIoV1NamespacedRun().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['dryRun'] != null) { + queryParameters['dryRun'] = requestParameters['dryRun']; + } + + if (requestParameters['fieldValidation'] != null) { + queryParameters['fieldValidation'] = requestParameters['fieldValidation']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["authorization"] = await this.configuration.apiKey("authorization"); // BearerToken authentication + } + + const response = await this.request({ + path: `/apis/pipeline.1eedaegon.github.io/v1/namespaces/{namespace}/runs/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: IoGithub1eedaegonPipelineV1RunToJSON(requestParameters['body']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoGithub1eedaegonPipelineV1RunFromJSON(jsonValue)); + } + + /** + * replace the specified Run + */ + async replacePipeline1eedaegonGithubIoV1NamespacedRun(requestParameters: ReplacePipeline1eedaegonGithubIoV1NamespacedRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.replacePipeline1eedaegonGithubIoV1NamespacedRunRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * replace status of the specified Run + */ + async replacePipeline1eedaegonGithubIoV1NamespacedRunStatusRaw(requestParameters: ReplacePipeline1eedaegonGithubIoV1NamespacedRunStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling replacePipeline1eedaegonGithubIoV1NamespacedRunStatus().' + ); + } + + if (requestParameters['body'] == null) { + throw new runtime.RequiredError( + 'body', + 'Required parameter "body" was null or undefined when calling replacePipeline1eedaegonGithubIoV1NamespacedRunStatus().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['dryRun'] != null) { + queryParameters['dryRun'] = requestParameters['dryRun']; + } + + if (requestParameters['fieldValidation'] != null) { + queryParameters['fieldValidation'] = requestParameters['fieldValidation']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["authorization"] = await this.configuration.apiKey("authorization"); // BearerToken authentication + } + + const response = await this.request({ + path: `/apis/pipeline.1eedaegon.github.io/v1/namespaces/{namespace}/runs/{name}/status`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: IoGithub1eedaegonPipelineV1RunToJSON(requestParameters['body']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoGithub1eedaegonPipelineV1RunFromJSON(jsonValue)); + } + + /** + * replace status of the specified Run + */ + async replacePipeline1eedaegonGithubIoV1NamespacedRunStatus(requestParameters: ReplacePipeline1eedaegonGithubIoV1NamespacedRunStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.replacePipeline1eedaegonGithubIoV1NamespacedRunStatusRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * replace the specified Task + */ + async replacePipeline1eedaegonGithubIoV1NamespacedTaskRaw(requestParameters: ReplacePipeline1eedaegonGithubIoV1NamespacedTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling replacePipeline1eedaegonGithubIoV1NamespacedTask().' + ); + } + + if (requestParameters['body'] == null) { + throw new runtime.RequiredError( + 'body', + 'Required parameter "body" was null or undefined when calling replacePipeline1eedaegonGithubIoV1NamespacedTask().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['dryRun'] != null) { + queryParameters['dryRun'] = requestParameters['dryRun']; + } + + if (requestParameters['fieldValidation'] != null) { + queryParameters['fieldValidation'] = requestParameters['fieldValidation']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["authorization"] = await this.configuration.apiKey("authorization"); // BearerToken authentication + } + + const response = await this.request({ + path: `/apis/pipeline.1eedaegon.github.io/v1/namespaces/{namespace}/tasks/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: IoGithub1eedaegonPipelineV1TaskToJSON(requestParameters['body']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoGithub1eedaegonPipelineV1TaskFromJSON(jsonValue)); + } + + /** + * replace the specified Task + */ + async replacePipeline1eedaegonGithubIoV1NamespacedTask(requestParameters: ReplacePipeline1eedaegonGithubIoV1NamespacedTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.replacePipeline1eedaegonGithubIoV1NamespacedTaskRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * replace status of the specified Task + */ + async replacePipeline1eedaegonGithubIoV1NamespacedTaskStatusRaw(requestParameters: ReplacePipeline1eedaegonGithubIoV1NamespacedTaskStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling replacePipeline1eedaegonGithubIoV1NamespacedTaskStatus().' + ); + } + + if (requestParameters['body'] == null) { + throw new runtime.RequiredError( + 'body', + 'Required parameter "body" was null or undefined when calling replacePipeline1eedaegonGithubIoV1NamespacedTaskStatus().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['dryRun'] != null) { + queryParameters['dryRun'] = requestParameters['dryRun']; + } + + if (requestParameters['fieldValidation'] != null) { + queryParameters['fieldValidation'] = requestParameters['fieldValidation']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["authorization"] = await this.configuration.apiKey("authorization"); // BearerToken authentication + } + + const response = await this.request({ + path: `/apis/pipeline.1eedaegon.github.io/v1/namespaces/{namespace}/tasks/{name}/status`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))), + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: IoGithub1eedaegonPipelineV1TaskToJSON(requestParameters['body']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoGithub1eedaegonPipelineV1TaskFromJSON(jsonValue)); + } + + /** + * replace status of the specified Task + */ + async replacePipeline1eedaegonGithubIoV1NamespacedTaskStatus(requestParameters: ReplacePipeline1eedaegonGithubIoV1NamespacedTaskStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.replacePipeline1eedaegonGithubIoV1NamespacedTaskStatusRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/generated/sdk/ts-fetch/apis/index.ts b/generated/sdk/ts-fetch/apis/index.ts new file mode 100644 index 0000000..5400bab --- /dev/null +++ b/generated/sdk/ts-fetch/apis/index.ts @@ -0,0 +1,3 @@ +/* tslint:disable */ +/* eslint-disable */ +export * from './Pipeline1eedaegonGithubIoV1Api'; diff --git a/generated/sdk/ts-fetch/index.ts b/generated/sdk/ts-fetch/index.ts new file mode 100644 index 0000000..bebe8bb --- /dev/null +++ b/generated/sdk/ts-fetch/index.ts @@ -0,0 +1,5 @@ +/* tslint:disable */ +/* eslint-disable */ +export * from './runtime'; +export * from './apis/index'; +export * from './models/index'; diff --git a/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1Pipeline.ts b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1Pipeline.ts new file mode 100644 index 0000000..dc07a81 --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1Pipeline.ts @@ -0,0 +1,111 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { IoGithub1eedaegonPipelineV1PipelineSpec } from './IoGithub1eedaegonPipelineV1PipelineSpec'; +import { + IoGithub1eedaegonPipelineV1PipelineSpecFromJSON, + IoGithub1eedaegonPipelineV1PipelineSpecFromJSONTyped, + IoGithub1eedaegonPipelineV1PipelineSpecToJSON, +} from './IoGithub1eedaegonPipelineV1PipelineSpec'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import type { IoGithub1eedaegonPipelineV1PipelineStatus } from './IoGithub1eedaegonPipelineV1PipelineStatus'; +import { + IoGithub1eedaegonPipelineV1PipelineStatusFromJSON, + IoGithub1eedaegonPipelineV1PipelineStatusFromJSONTyped, + IoGithub1eedaegonPipelineV1PipelineStatusToJSON, +} from './IoGithub1eedaegonPipelineV1PipelineStatus'; + +/** + * + * @export + * @interface IoGithub1eedaegonPipelineV1Pipeline + */ +export interface IoGithub1eedaegonPipelineV1Pipeline { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1Pipeline + */ + apiVersion?: string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1Pipeline + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoGithub1eedaegonPipelineV1Pipeline + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoGithub1eedaegonPipelineV1PipelineSpec} + * @memberof IoGithub1eedaegonPipelineV1Pipeline + */ + spec?: IoGithub1eedaegonPipelineV1PipelineSpec; + /** + * + * @type {IoGithub1eedaegonPipelineV1PipelineStatus} + * @memberof IoGithub1eedaegonPipelineV1Pipeline + */ + status?: IoGithub1eedaegonPipelineV1PipelineStatus; +} + +/** + * Check if a given object implements the IoGithub1eedaegonPipelineV1Pipeline interface. + */ +export function instanceOfIoGithub1eedaegonPipelineV1Pipeline(value: object): value is IoGithub1eedaegonPipelineV1Pipeline { + return true; +} + +export function IoGithub1eedaegonPipelineV1PipelineFromJSON(json: any): IoGithub1eedaegonPipelineV1Pipeline { + return IoGithub1eedaegonPipelineV1PipelineFromJSONTyped(json, false); +} + +export function IoGithub1eedaegonPipelineV1PipelineFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoGithub1eedaegonPipelineV1Pipeline { + if (json == null) { + return json; + } + return { + + 'apiVersion': json['apiVersion'] == null ? undefined : json['apiVersion'], + 'kind': json['kind'] == null ? undefined : json['kind'], + 'metadata': json['metadata'] == null ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': json['spec'] == null ? undefined : IoGithub1eedaegonPipelineV1PipelineSpecFromJSON(json['spec']), + 'status': json['status'] == null ? undefined : IoGithub1eedaegonPipelineV1PipelineStatusFromJSON(json['status']), + }; +} + +export function IoGithub1eedaegonPipelineV1PipelineToJSON(value?: IoGithub1eedaegonPipelineV1Pipeline | null): any { + if (value == null) { + return value; + } + return { + + 'apiVersion': value['apiVersion'], + 'kind': value['kind'], + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value['metadata']), + 'spec': IoGithub1eedaegonPipelineV1PipelineSpecToJSON(value['spec']), + 'status': IoGithub1eedaegonPipelineV1PipelineStatusToJSON(value['status']), + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1PipelineList.ts b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1PipelineList.ts new file mode 100644 index 0000000..6354997 --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1PipelineList.ts @@ -0,0 +1,98 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import type { IoGithub1eedaegonPipelineV1Pipeline } from './IoGithub1eedaegonPipelineV1Pipeline'; +import { + IoGithub1eedaegonPipelineV1PipelineFromJSON, + IoGithub1eedaegonPipelineV1PipelineFromJSONTyped, + IoGithub1eedaegonPipelineV1PipelineToJSON, +} from './IoGithub1eedaegonPipelineV1Pipeline'; + +/** + * PipelineList is a list of Pipeline + * @export + * @interface IoGithub1eedaegonPipelineV1PipelineList + */ +export interface IoGithub1eedaegonPipelineV1PipelineList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1PipelineList + */ + apiVersion?: string; + /** + * List of pipelines. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md + * @type {Array} + * @memberof IoGithub1eedaegonPipelineV1PipelineList + */ + items: Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1PipelineList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoGithub1eedaegonPipelineV1PipelineList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoGithub1eedaegonPipelineV1PipelineList interface. + */ +export function instanceOfIoGithub1eedaegonPipelineV1PipelineList(value: object): value is IoGithub1eedaegonPipelineV1PipelineList { + if (!('items' in value) || value['items'] === undefined) return false; + return true; +} + +export function IoGithub1eedaegonPipelineV1PipelineListFromJSON(json: any): IoGithub1eedaegonPipelineV1PipelineList { + return IoGithub1eedaegonPipelineV1PipelineListFromJSONTyped(json, false); +} + +export function IoGithub1eedaegonPipelineV1PipelineListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoGithub1eedaegonPipelineV1PipelineList { + if (json == null) { + return json; + } + return { + + 'apiVersion': json['apiVersion'] == null ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoGithub1eedaegonPipelineV1PipelineFromJSON)), + 'kind': json['kind'] == null ? undefined : json['kind'], + 'metadata': json['metadata'] == null ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoGithub1eedaegonPipelineV1PipelineListToJSON(value?: IoGithub1eedaegonPipelineV1PipelineList | null): any { + if (value == null) { + return value; + } + return { + + 'apiVersion': value['apiVersion'], + 'items': ((value['items'] as Array).map(IoGithub1eedaegonPipelineV1PipelineToJSON)), + 'kind': value['kind'], + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value['metadata']), + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1PipelineSpec.ts b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1PipelineSpec.ts new file mode 100644 index 0000000..f6ef942 --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1PipelineSpec.ts @@ -0,0 +1,163 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { IoGithub1eedaegonPipelineV1PipelineSpecVolumesInner } from './IoGithub1eedaegonPipelineV1PipelineSpecVolumesInner'; +import { + IoGithub1eedaegonPipelineV1PipelineSpecVolumesInnerFromJSON, + IoGithub1eedaegonPipelineV1PipelineSpecVolumesInnerFromJSONTyped, + IoGithub1eedaegonPipelineV1PipelineSpecVolumesInnerToJSON, +} from './IoGithub1eedaegonPipelineV1PipelineSpecVolumesInner'; +import type { IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimit } from './IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimit'; +import { + IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimitFromJSON, + IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimitFromJSONTyped, + IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimitToJSON, +} from './IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimit'; +import type { IoGithub1eedaegonPipelineV1PipelineSpecSchedule } from './IoGithub1eedaegonPipelineV1PipelineSpecSchedule'; +import { + IoGithub1eedaegonPipelineV1PipelineSpecScheduleFromJSON, + IoGithub1eedaegonPipelineV1PipelineSpecScheduleFromJSONTyped, + IoGithub1eedaegonPipelineV1PipelineSpecScheduleToJSON, +} from './IoGithub1eedaegonPipelineV1PipelineSpecSchedule'; +import type { IoGithub1eedaegonPipelineV1PipelineSpecResource } from './IoGithub1eedaegonPipelineV1PipelineSpecResource'; +import { + IoGithub1eedaegonPipelineV1PipelineSpecResourceFromJSON, + IoGithub1eedaegonPipelineV1PipelineSpecResourceFromJSONTyped, + IoGithub1eedaegonPipelineV1PipelineSpecResourceToJSON, +} from './IoGithub1eedaegonPipelineV1PipelineSpecResource'; +import type { IoGithub1eedaegonPipelineV1PipelineSpecTasksInner } from './IoGithub1eedaegonPipelineV1PipelineSpecTasksInner'; +import { + IoGithub1eedaegonPipelineV1PipelineSpecTasksInnerFromJSON, + IoGithub1eedaegonPipelineV1PipelineSpecTasksInnerFromJSONTyped, + IoGithub1eedaegonPipelineV1PipelineSpecTasksInnerToJSON, +} from './IoGithub1eedaegonPipelineV1PipelineSpecTasksInner'; + +/** + * + * @export + * @interface IoGithub1eedaegonPipelineV1PipelineSpec + */ +export interface IoGithub1eedaegonPipelineV1PipelineSpec { + /** + * + * @type {{ [key: string]: string; }} + * @memberof IoGithub1eedaegonPipelineV1PipelineSpec + */ + env?: { [key: string]: string; }; + /** + * + * @type {IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimit} + * @memberof IoGithub1eedaegonPipelineV1PipelineSpec + */ + historyLimit?: IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimit; + /** + * + * @type {Array} + * @memberof IoGithub1eedaegonPipelineV1PipelineSpec + */ + inputs?: Array; + /** + * + * @type {Array} + * @memberof IoGithub1eedaegonPipelineV1PipelineSpec + */ + outputs?: Array; + /** + * + * @type {IoGithub1eedaegonPipelineV1PipelineSpecResource} + * @memberof IoGithub1eedaegonPipelineV1PipelineSpec + */ + resource?: IoGithub1eedaegonPipelineV1PipelineSpecResource; + /** + * + * @type {Array} + * @memberof IoGithub1eedaegonPipelineV1PipelineSpec + */ + runBefore?: Array; + /** + * + * @type {IoGithub1eedaegonPipelineV1PipelineSpecSchedule} + * @memberof IoGithub1eedaegonPipelineV1PipelineSpec + */ + schedule?: IoGithub1eedaegonPipelineV1PipelineSpecSchedule; + /** + * + * @type {Array} + * @memberof IoGithub1eedaegonPipelineV1PipelineSpec + */ + tasks?: Array; + /** + * + * @type {boolean} + * @memberof IoGithub1eedaegonPipelineV1PipelineSpec + */ + trigger?: boolean; + /** + * + * @type {Array} + * @memberof IoGithub1eedaegonPipelineV1PipelineSpec + */ + volumes?: Array; +} + +/** + * Check if a given object implements the IoGithub1eedaegonPipelineV1PipelineSpec interface. + */ +export function instanceOfIoGithub1eedaegonPipelineV1PipelineSpec(value: object): value is IoGithub1eedaegonPipelineV1PipelineSpec { + return true; +} + +export function IoGithub1eedaegonPipelineV1PipelineSpecFromJSON(json: any): IoGithub1eedaegonPipelineV1PipelineSpec { + return IoGithub1eedaegonPipelineV1PipelineSpecFromJSONTyped(json, false); +} + +export function IoGithub1eedaegonPipelineV1PipelineSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoGithub1eedaegonPipelineV1PipelineSpec { + if (json == null) { + return json; + } + return { + + 'env': json['env'] == null ? undefined : json['env'], + 'historyLimit': json['historyLimit'] == null ? undefined : IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimitFromJSON(json['historyLimit']), + 'inputs': json['inputs'] == null ? undefined : json['inputs'], + 'outputs': json['outputs'] == null ? undefined : json['outputs'], + 'resource': json['resource'] == null ? undefined : IoGithub1eedaegonPipelineV1PipelineSpecResourceFromJSON(json['resource']), + 'runBefore': json['runBefore'] == null ? undefined : json['runBefore'], + 'schedule': json['schedule'] == null ? undefined : IoGithub1eedaegonPipelineV1PipelineSpecScheduleFromJSON(json['schedule']), + 'tasks': json['tasks'] == null ? undefined : ((json['tasks'] as Array).map(IoGithub1eedaegonPipelineV1PipelineSpecTasksInnerFromJSON)), + 'trigger': json['trigger'] == null ? undefined : json['trigger'], + 'volumes': json['volumes'] == null ? undefined : ((json['volumes'] as Array).map(IoGithub1eedaegonPipelineV1PipelineSpecVolumesInnerFromJSON)), + }; +} + +export function IoGithub1eedaegonPipelineV1PipelineSpecToJSON(value?: IoGithub1eedaegonPipelineV1PipelineSpec | null): any { + if (value == null) { + return value; + } + return { + + 'env': value['env'], + 'historyLimit': IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimitToJSON(value['historyLimit']), + 'inputs': value['inputs'], + 'outputs': value['outputs'], + 'resource': IoGithub1eedaegonPipelineV1PipelineSpecResourceToJSON(value['resource']), + 'runBefore': value['runBefore'], + 'schedule': IoGithub1eedaegonPipelineV1PipelineSpecScheduleToJSON(value['schedule']), + 'tasks': value['tasks'] == null ? undefined : ((value['tasks'] as Array).map(IoGithub1eedaegonPipelineV1PipelineSpecTasksInnerToJSON)), + 'trigger': value['trigger'], + 'volumes': value['volumes'] == null ? undefined : ((value['volumes'] as Array).map(IoGithub1eedaegonPipelineV1PipelineSpecVolumesInnerToJSON)), + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimit.ts b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimit.ts new file mode 100644 index 0000000..e9e04d4 --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimit.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimit + */ +export interface IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimit { + /** + * + * @type {number} + * @memberof IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimit + */ + amount?: number; + /** + * + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimit + */ + date?: string; +} + +/** + * Check if a given object implements the IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimit interface. + */ +export function instanceOfIoGithub1eedaegonPipelineV1PipelineSpecHistoryLimit(value: object): value is IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimit { + return true; +} + +export function IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimitFromJSON(json: any): IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimit { + return IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimitFromJSONTyped(json, false); +} + +export function IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimitFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimit { + if (json == null) { + return json; + } + return { + + 'amount': json['amount'] == null ? undefined : json['amount'], + 'date': json['date'] == null ? undefined : json['date'], + }; +} + +export function IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimitToJSON(value?: IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimit | null): any { + if (value == null) { + return value; + } + return { + + 'amount': value['amount'], + 'date': value['date'], + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1PipelineSpecResource.ts b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1PipelineSpecResource.ts new file mode 100644 index 0000000..03e9a7b --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1PipelineSpecResource.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { IoGithub1eedaegonPipelineV1PipelineSpecResourceGpu } from './IoGithub1eedaegonPipelineV1PipelineSpecResourceGpu'; +import { + IoGithub1eedaegonPipelineV1PipelineSpecResourceGpuFromJSON, + IoGithub1eedaegonPipelineV1PipelineSpecResourceGpuFromJSONTyped, + IoGithub1eedaegonPipelineV1PipelineSpecResourceGpuToJSON, +} from './IoGithub1eedaegonPipelineV1PipelineSpecResourceGpu'; + +/** + * + * @export + * @interface IoGithub1eedaegonPipelineV1PipelineSpecResource + */ +export interface IoGithub1eedaegonPipelineV1PipelineSpecResource { + /** + * + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1PipelineSpecResource + */ + cpu?: string; + /** + * + * @type {IoGithub1eedaegonPipelineV1PipelineSpecResourceGpu} + * @memberof IoGithub1eedaegonPipelineV1PipelineSpecResource + */ + gpu?: IoGithub1eedaegonPipelineV1PipelineSpecResourceGpu; + /** + * + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1PipelineSpecResource + */ + memory?: string; +} + +/** + * Check if a given object implements the IoGithub1eedaegonPipelineV1PipelineSpecResource interface. + */ +export function instanceOfIoGithub1eedaegonPipelineV1PipelineSpecResource(value: object): value is IoGithub1eedaegonPipelineV1PipelineSpecResource { + return true; +} + +export function IoGithub1eedaegonPipelineV1PipelineSpecResourceFromJSON(json: any): IoGithub1eedaegonPipelineV1PipelineSpecResource { + return IoGithub1eedaegonPipelineV1PipelineSpecResourceFromJSONTyped(json, false); +} + +export function IoGithub1eedaegonPipelineV1PipelineSpecResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoGithub1eedaegonPipelineV1PipelineSpecResource { + if (json == null) { + return json; + } + return { + + 'cpu': json['cpu'] == null ? undefined : json['cpu'], + 'gpu': json['gpu'] == null ? undefined : IoGithub1eedaegonPipelineV1PipelineSpecResourceGpuFromJSON(json['gpu']), + 'memory': json['memory'] == null ? undefined : json['memory'], + }; +} + +export function IoGithub1eedaegonPipelineV1PipelineSpecResourceToJSON(value?: IoGithub1eedaegonPipelineV1PipelineSpecResource | null): any { + if (value == null) { + return value; + } + return { + + 'cpu': value['cpu'], + 'gpu': IoGithub1eedaegonPipelineV1PipelineSpecResourceGpuToJSON(value['gpu']), + 'memory': value['memory'], + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1PipelineSpecResourceGpu.ts b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1PipelineSpecResourceGpu.ts new file mode 100644 index 0000000..9375661 --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1PipelineSpecResourceGpu.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface IoGithub1eedaegonPipelineV1PipelineSpecResourceGpu + */ +export interface IoGithub1eedaegonPipelineV1PipelineSpecResourceGpu { + /** + * + * @type {number} + * @memberof IoGithub1eedaegonPipelineV1PipelineSpecResourceGpu + */ + amount?: number; + /** + * + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1PipelineSpecResourceGpu + */ + type?: string; +} + +/** + * Check if a given object implements the IoGithub1eedaegonPipelineV1PipelineSpecResourceGpu interface. + */ +export function instanceOfIoGithub1eedaegonPipelineV1PipelineSpecResourceGpu(value: object): value is IoGithub1eedaegonPipelineV1PipelineSpecResourceGpu { + return true; +} + +export function IoGithub1eedaegonPipelineV1PipelineSpecResourceGpuFromJSON(json: any): IoGithub1eedaegonPipelineV1PipelineSpecResourceGpu { + return IoGithub1eedaegonPipelineV1PipelineSpecResourceGpuFromJSONTyped(json, false); +} + +export function IoGithub1eedaegonPipelineV1PipelineSpecResourceGpuFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoGithub1eedaegonPipelineV1PipelineSpecResourceGpu { + if (json == null) { + return json; + } + return { + + 'amount': json['amount'] == null ? undefined : json['amount'], + 'type': json['type'] == null ? undefined : json['type'], + }; +} + +export function IoGithub1eedaegonPipelineV1PipelineSpecResourceGpuToJSON(value?: IoGithub1eedaegonPipelineV1PipelineSpecResourceGpu | null): any { + if (value == null) { + return value; + } + return { + + 'amount': value['amount'], + 'type': value['type'], + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1PipelineSpecSchedule.ts b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1PipelineSpecSchedule.ts new file mode 100644 index 0000000..1034a32 --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1PipelineSpecSchedule.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface IoGithub1eedaegonPipelineV1PipelineSpecSchedule + */ +export interface IoGithub1eedaegonPipelineV1PipelineSpecSchedule { + /** + * + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1PipelineSpecSchedule + */ + endDate?: string; + /** + * + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1PipelineSpecSchedule + */ + scheduleDate?: string; +} + +/** + * Check if a given object implements the IoGithub1eedaegonPipelineV1PipelineSpecSchedule interface. + */ +export function instanceOfIoGithub1eedaegonPipelineV1PipelineSpecSchedule(value: object): value is IoGithub1eedaegonPipelineV1PipelineSpecSchedule { + return true; +} + +export function IoGithub1eedaegonPipelineV1PipelineSpecScheduleFromJSON(json: any): IoGithub1eedaegonPipelineV1PipelineSpecSchedule { + return IoGithub1eedaegonPipelineV1PipelineSpecScheduleFromJSONTyped(json, false); +} + +export function IoGithub1eedaegonPipelineV1PipelineSpecScheduleFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoGithub1eedaegonPipelineV1PipelineSpecSchedule { + if (json == null) { + return json; + } + return { + + 'endDate': json['endDate'] == null ? undefined : json['endDate'], + 'scheduleDate': json['scheduleDate'] == null ? undefined : json['scheduleDate'], + }; +} + +export function IoGithub1eedaegonPipelineV1PipelineSpecScheduleToJSON(value?: IoGithub1eedaegonPipelineV1PipelineSpecSchedule | null): any { + if (value == null) { + return value; + } + return { + + 'endDate': value['endDate'], + 'scheduleDate': value['scheduleDate'], + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1PipelineSpecTasksInner.ts b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1PipelineSpecTasksInner.ts new file mode 100644 index 0000000..88526f8 --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1PipelineSpecTasksInner.ts @@ -0,0 +1,153 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { IoGithub1eedaegonPipelineV1PipelineSpecSchedule } from './IoGithub1eedaegonPipelineV1PipelineSpecSchedule'; +import { + IoGithub1eedaegonPipelineV1PipelineSpecScheduleFromJSON, + IoGithub1eedaegonPipelineV1PipelineSpecScheduleFromJSONTyped, + IoGithub1eedaegonPipelineV1PipelineSpecScheduleToJSON, +} from './IoGithub1eedaegonPipelineV1PipelineSpecSchedule'; +import type { IoGithub1eedaegonPipelineV1PipelineSpecResource } from './IoGithub1eedaegonPipelineV1PipelineSpecResource'; +import { + IoGithub1eedaegonPipelineV1PipelineSpecResourceFromJSON, + IoGithub1eedaegonPipelineV1PipelineSpecResourceFromJSONTyped, + IoGithub1eedaegonPipelineV1PipelineSpecResourceToJSON, +} from './IoGithub1eedaegonPipelineV1PipelineSpecResource'; + +/** + * + * @export + * @interface IoGithub1eedaegonPipelineV1PipelineSpecTasksInner + */ +export interface IoGithub1eedaegonPipelineV1PipelineSpecTasksInner { + /** + * + * @type {Array} + * @memberof IoGithub1eedaegonPipelineV1PipelineSpecTasksInner + */ + args?: Array; + /** + * + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1PipelineSpecTasksInner + */ + command?: string; + /** + * + * @type {{ [key: string]: string; }} + * @memberof IoGithub1eedaegonPipelineV1PipelineSpecTasksInner + */ + env?: { [key: string]: string; }; + /** + * + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1PipelineSpecTasksInner + */ + image?: string; + /** + * + * @type {Array} + * @memberof IoGithub1eedaegonPipelineV1PipelineSpecTasksInner + */ + inputs?: Array; + /** + * + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1PipelineSpecTasksInner + */ + name?: string; + /** + * + * @type {Array} + * @memberof IoGithub1eedaegonPipelineV1PipelineSpecTasksInner + */ + outputs?: Array; + /** + * + * @type {IoGithub1eedaegonPipelineV1PipelineSpecResource} + * @memberof IoGithub1eedaegonPipelineV1PipelineSpecTasksInner + */ + resource?: IoGithub1eedaegonPipelineV1PipelineSpecResource; + /** + * + * @type {Array} + * @memberof IoGithub1eedaegonPipelineV1PipelineSpecTasksInner + */ + runBefore?: Array; + /** + * + * @type {IoGithub1eedaegonPipelineV1PipelineSpecSchedule} + * @memberof IoGithub1eedaegonPipelineV1PipelineSpecTasksInner + */ + schedule?: IoGithub1eedaegonPipelineV1PipelineSpecSchedule; + /** + * + * @type {boolean} + * @memberof IoGithub1eedaegonPipelineV1PipelineSpecTasksInner + */ + trigger?: boolean; +} + +/** + * Check if a given object implements the IoGithub1eedaegonPipelineV1PipelineSpecTasksInner interface. + */ +export function instanceOfIoGithub1eedaegonPipelineV1PipelineSpecTasksInner(value: object): value is IoGithub1eedaegonPipelineV1PipelineSpecTasksInner { + return true; +} + +export function IoGithub1eedaegonPipelineV1PipelineSpecTasksInnerFromJSON(json: any): IoGithub1eedaegonPipelineV1PipelineSpecTasksInner { + return IoGithub1eedaegonPipelineV1PipelineSpecTasksInnerFromJSONTyped(json, false); +} + +export function IoGithub1eedaegonPipelineV1PipelineSpecTasksInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoGithub1eedaegonPipelineV1PipelineSpecTasksInner { + if (json == null) { + return json; + } + return { + + 'args': json['args'] == null ? undefined : json['args'], + 'command': json['command'] == null ? undefined : json['command'], + 'env': json['env'] == null ? undefined : json['env'], + 'image': json['image'] == null ? undefined : json['image'], + 'inputs': json['inputs'] == null ? undefined : json['inputs'], + 'name': json['name'] == null ? undefined : json['name'], + 'outputs': json['outputs'] == null ? undefined : json['outputs'], + 'resource': json['resource'] == null ? undefined : IoGithub1eedaegonPipelineV1PipelineSpecResourceFromJSON(json['resource']), + 'runBefore': json['runBefore'] == null ? undefined : json['runBefore'], + 'schedule': json['schedule'] == null ? undefined : IoGithub1eedaegonPipelineV1PipelineSpecScheduleFromJSON(json['schedule']), + 'trigger': json['trigger'] == null ? undefined : json['trigger'], + }; +} + +export function IoGithub1eedaegonPipelineV1PipelineSpecTasksInnerToJSON(value?: IoGithub1eedaegonPipelineV1PipelineSpecTasksInner | null): any { + if (value == null) { + return value; + } + return { + + 'args': value['args'], + 'command': value['command'], + 'env': value['env'], + 'image': value['image'], + 'inputs': value['inputs'], + 'name': value['name'], + 'outputs': value['outputs'], + 'resource': IoGithub1eedaegonPipelineV1PipelineSpecResourceToJSON(value['resource']), + 'runBefore': value['runBefore'], + 'schedule': IoGithub1eedaegonPipelineV1PipelineSpecScheduleToJSON(value['schedule']), + 'trigger': value['trigger'], + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1PipelineSpecVolumesInner.ts b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1PipelineSpecVolumesInner.ts new file mode 100644 index 0000000..e361c50 --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1PipelineSpecVolumesInner.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface IoGithub1eedaegonPipelineV1PipelineSpecVolumesInner + */ +export interface IoGithub1eedaegonPipelineV1PipelineSpecVolumesInner { + /** + * + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1PipelineSpecVolumesInner + */ + capacity?: string; + /** + * + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1PipelineSpecVolumesInner + */ + name?: string; + /** + * + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1PipelineSpecVolumesInner + */ + storage?: string; +} + +/** + * Check if a given object implements the IoGithub1eedaegonPipelineV1PipelineSpecVolumesInner interface. + */ +export function instanceOfIoGithub1eedaegonPipelineV1PipelineSpecVolumesInner(value: object): value is IoGithub1eedaegonPipelineV1PipelineSpecVolumesInner { + return true; +} + +export function IoGithub1eedaegonPipelineV1PipelineSpecVolumesInnerFromJSON(json: any): IoGithub1eedaegonPipelineV1PipelineSpecVolumesInner { + return IoGithub1eedaegonPipelineV1PipelineSpecVolumesInnerFromJSONTyped(json, false); +} + +export function IoGithub1eedaegonPipelineV1PipelineSpecVolumesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoGithub1eedaegonPipelineV1PipelineSpecVolumesInner { + if (json == null) { + return json; + } + return { + + 'capacity': json['capacity'] == null ? undefined : json['capacity'], + 'name': json['name'] == null ? undefined : json['name'], + 'storage': json['storage'] == null ? undefined : json['storage'], + }; +} + +export function IoGithub1eedaegonPipelineV1PipelineSpecVolumesInnerToJSON(value?: IoGithub1eedaegonPipelineV1PipelineSpecVolumesInner | null): any { + if (value == null) { + return value; + } + return { + + 'capacity': value['capacity'], + 'name': value['name'], + 'storage': value['storage'], + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1PipelineStatus.ts b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1PipelineStatus.ts new file mode 100644 index 0000000..cc8064d --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1PipelineStatus.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface IoGithub1eedaegonPipelineV1PipelineStatus + */ +export interface IoGithub1eedaegonPipelineV1PipelineStatus { + /** + * + * @type {Date} + * @memberof IoGithub1eedaegonPipelineV1PipelineStatus + */ + createdDate?: Date; + /** + * + * @type {Date} + * @memberof IoGithub1eedaegonPipelineV1PipelineStatus + */ + lastUpdatedDate?: Date; + /** + * + * @type {number} + * @memberof IoGithub1eedaegonPipelineV1PipelineStatus + */ + runs?: number; +} + +/** + * Check if a given object implements the IoGithub1eedaegonPipelineV1PipelineStatus interface. + */ +export function instanceOfIoGithub1eedaegonPipelineV1PipelineStatus(value: object): value is IoGithub1eedaegonPipelineV1PipelineStatus { + return true; +} + +export function IoGithub1eedaegonPipelineV1PipelineStatusFromJSON(json: any): IoGithub1eedaegonPipelineV1PipelineStatus { + return IoGithub1eedaegonPipelineV1PipelineStatusFromJSONTyped(json, false); +} + +export function IoGithub1eedaegonPipelineV1PipelineStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoGithub1eedaegonPipelineV1PipelineStatus { + if (json == null) { + return json; + } + return { + + 'createdDate': json['createdDate'] == null ? undefined : (new Date(json['createdDate'])), + 'lastUpdatedDate': json['lastUpdatedDate'] == null ? undefined : (new Date(json['lastUpdatedDate'])), + 'runs': json['runs'] == null ? undefined : json['runs'], + }; +} + +export function IoGithub1eedaegonPipelineV1PipelineStatusToJSON(value?: IoGithub1eedaegonPipelineV1PipelineStatus | null): any { + if (value == null) { + return value; + } + return { + + 'createdDate': value['createdDate'] == null ? undefined : ((value['createdDate']).toISOString()), + 'lastUpdatedDate': value['lastUpdatedDate'] == null ? undefined : ((value['lastUpdatedDate']).toISOString()), + 'runs': value['runs'], + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1Run.ts b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1Run.ts new file mode 100644 index 0000000..ac61b26 --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1Run.ts @@ -0,0 +1,111 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { IoGithub1eedaegonPipelineV1RunStatus } from './IoGithub1eedaegonPipelineV1RunStatus'; +import { + IoGithub1eedaegonPipelineV1RunStatusFromJSON, + IoGithub1eedaegonPipelineV1RunStatusFromJSONTyped, + IoGithub1eedaegonPipelineV1RunStatusToJSON, +} from './IoGithub1eedaegonPipelineV1RunStatus'; +import type { IoGithub1eedaegonPipelineV1RunSpec } from './IoGithub1eedaegonPipelineV1RunSpec'; +import { + IoGithub1eedaegonPipelineV1RunSpecFromJSON, + IoGithub1eedaegonPipelineV1RunSpecFromJSONTyped, + IoGithub1eedaegonPipelineV1RunSpecToJSON, +} from './IoGithub1eedaegonPipelineV1RunSpec'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * + * @export + * @interface IoGithub1eedaegonPipelineV1Run + */ +export interface IoGithub1eedaegonPipelineV1Run { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1Run + */ + apiVersion?: string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1Run + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoGithub1eedaegonPipelineV1Run + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoGithub1eedaegonPipelineV1RunSpec} + * @memberof IoGithub1eedaegonPipelineV1Run + */ + spec?: IoGithub1eedaegonPipelineV1RunSpec; + /** + * + * @type {IoGithub1eedaegonPipelineV1RunStatus} + * @memberof IoGithub1eedaegonPipelineV1Run + */ + status?: IoGithub1eedaegonPipelineV1RunStatus; +} + +/** + * Check if a given object implements the IoGithub1eedaegonPipelineV1Run interface. + */ +export function instanceOfIoGithub1eedaegonPipelineV1Run(value: object): value is IoGithub1eedaegonPipelineV1Run { + return true; +} + +export function IoGithub1eedaegonPipelineV1RunFromJSON(json: any): IoGithub1eedaegonPipelineV1Run { + return IoGithub1eedaegonPipelineV1RunFromJSONTyped(json, false); +} + +export function IoGithub1eedaegonPipelineV1RunFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoGithub1eedaegonPipelineV1Run { + if (json == null) { + return json; + } + return { + + 'apiVersion': json['apiVersion'] == null ? undefined : json['apiVersion'], + 'kind': json['kind'] == null ? undefined : json['kind'], + 'metadata': json['metadata'] == null ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': json['spec'] == null ? undefined : IoGithub1eedaegonPipelineV1RunSpecFromJSON(json['spec']), + 'status': json['status'] == null ? undefined : IoGithub1eedaegonPipelineV1RunStatusFromJSON(json['status']), + }; +} + +export function IoGithub1eedaegonPipelineV1RunToJSON(value?: IoGithub1eedaegonPipelineV1Run | null): any { + if (value == null) { + return value; + } + return { + + 'apiVersion': value['apiVersion'], + 'kind': value['kind'], + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value['metadata']), + 'spec': IoGithub1eedaegonPipelineV1RunSpecToJSON(value['spec']), + 'status': IoGithub1eedaegonPipelineV1RunStatusToJSON(value['status']), + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1RunList.ts b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1RunList.ts new file mode 100644 index 0000000..a955b31 --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1RunList.ts @@ -0,0 +1,98 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import type { IoGithub1eedaegonPipelineV1Run } from './IoGithub1eedaegonPipelineV1Run'; +import { + IoGithub1eedaegonPipelineV1RunFromJSON, + IoGithub1eedaegonPipelineV1RunFromJSONTyped, + IoGithub1eedaegonPipelineV1RunToJSON, +} from './IoGithub1eedaegonPipelineV1Run'; + +/** + * RunList is a list of Run + * @export + * @interface IoGithub1eedaegonPipelineV1RunList + */ +export interface IoGithub1eedaegonPipelineV1RunList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1RunList + */ + apiVersion?: string; + /** + * List of runs. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md + * @type {Array} + * @memberof IoGithub1eedaegonPipelineV1RunList + */ + items: Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1RunList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoGithub1eedaegonPipelineV1RunList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoGithub1eedaegonPipelineV1RunList interface. + */ +export function instanceOfIoGithub1eedaegonPipelineV1RunList(value: object): value is IoGithub1eedaegonPipelineV1RunList { + if (!('items' in value) || value['items'] === undefined) return false; + return true; +} + +export function IoGithub1eedaegonPipelineV1RunListFromJSON(json: any): IoGithub1eedaegonPipelineV1RunList { + return IoGithub1eedaegonPipelineV1RunListFromJSONTyped(json, false); +} + +export function IoGithub1eedaegonPipelineV1RunListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoGithub1eedaegonPipelineV1RunList { + if (json == null) { + return json; + } + return { + + 'apiVersion': json['apiVersion'] == null ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoGithub1eedaegonPipelineV1RunFromJSON)), + 'kind': json['kind'] == null ? undefined : json['kind'], + 'metadata': json['metadata'] == null ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoGithub1eedaegonPipelineV1RunListToJSON(value?: IoGithub1eedaegonPipelineV1RunList | null): any { + if (value == null) { + return value; + } + return { + + 'apiVersion': value['apiVersion'], + 'items': ((value['items'] as Array).map(IoGithub1eedaegonPipelineV1RunToJSON)), + 'kind': value['kind'], + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value['metadata']), + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1RunSpec.ts b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1RunSpec.ts new file mode 100644 index 0000000..baccb02 --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1RunSpec.ts @@ -0,0 +1,163 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { IoGithub1eedaegonPipelineV1PipelineSpecVolumesInner } from './IoGithub1eedaegonPipelineV1PipelineSpecVolumesInner'; +import { + IoGithub1eedaegonPipelineV1PipelineSpecVolumesInnerFromJSON, + IoGithub1eedaegonPipelineV1PipelineSpecVolumesInnerFromJSONTyped, + IoGithub1eedaegonPipelineV1PipelineSpecVolumesInnerToJSON, +} from './IoGithub1eedaegonPipelineV1PipelineSpecVolumesInner'; +import type { IoGithub1eedaegonPipelineV1RunSpecJobsInner } from './IoGithub1eedaegonPipelineV1RunSpecJobsInner'; +import { + IoGithub1eedaegonPipelineV1RunSpecJobsInnerFromJSON, + IoGithub1eedaegonPipelineV1RunSpecJobsInnerFromJSONTyped, + IoGithub1eedaegonPipelineV1RunSpecJobsInnerToJSON, +} from './IoGithub1eedaegonPipelineV1RunSpecJobsInner'; +import type { IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimit } from './IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimit'; +import { + IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimitFromJSON, + IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimitFromJSONTyped, + IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimitToJSON, +} from './IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimit'; +import type { IoGithub1eedaegonPipelineV1PipelineSpecSchedule } from './IoGithub1eedaegonPipelineV1PipelineSpecSchedule'; +import { + IoGithub1eedaegonPipelineV1PipelineSpecScheduleFromJSON, + IoGithub1eedaegonPipelineV1PipelineSpecScheduleFromJSONTyped, + IoGithub1eedaegonPipelineV1PipelineSpecScheduleToJSON, +} from './IoGithub1eedaegonPipelineV1PipelineSpecSchedule'; +import type { IoGithub1eedaegonPipelineV1PipelineSpecResource } from './IoGithub1eedaegonPipelineV1PipelineSpecResource'; +import { + IoGithub1eedaegonPipelineV1PipelineSpecResourceFromJSON, + IoGithub1eedaegonPipelineV1PipelineSpecResourceFromJSONTyped, + IoGithub1eedaegonPipelineV1PipelineSpecResourceToJSON, +} from './IoGithub1eedaegonPipelineV1PipelineSpecResource'; + +/** + * + * @export + * @interface IoGithub1eedaegonPipelineV1RunSpec + */ +export interface IoGithub1eedaegonPipelineV1RunSpec { + /** + * + * @type {{ [key: string]: string; }} + * @memberof IoGithub1eedaegonPipelineV1RunSpec + */ + env?: { [key: string]: string; }; + /** + * + * @type {IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimit} + * @memberof IoGithub1eedaegonPipelineV1RunSpec + */ + historyLimit?: IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimit; + /** + * + * @type {Array} + * @memberof IoGithub1eedaegonPipelineV1RunSpec + */ + inputs?: Array; + /** + * + * @type {Array} + * @memberof IoGithub1eedaegonPipelineV1RunSpec + */ + jobs?: Array; + /** + * + * @type {Array} + * @memberof IoGithub1eedaegonPipelineV1RunSpec + */ + outputs?: Array; + /** + * + * @type {IoGithub1eedaegonPipelineV1PipelineSpecResource} + * @memberof IoGithub1eedaegonPipelineV1RunSpec + */ + resource?: IoGithub1eedaegonPipelineV1PipelineSpecResource; + /** + * + * @type {Array} + * @memberof IoGithub1eedaegonPipelineV1RunSpec + */ + runBefore?: Array; + /** + * + * @type {IoGithub1eedaegonPipelineV1PipelineSpecSchedule} + * @memberof IoGithub1eedaegonPipelineV1RunSpec + */ + schedule?: IoGithub1eedaegonPipelineV1PipelineSpecSchedule; + /** + * + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1RunSpec + */ + trigger?: string; + /** + * + * @type {Array} + * @memberof IoGithub1eedaegonPipelineV1RunSpec + */ + volumes?: Array; +} + +/** + * Check if a given object implements the IoGithub1eedaegonPipelineV1RunSpec interface. + */ +export function instanceOfIoGithub1eedaegonPipelineV1RunSpec(value: object): value is IoGithub1eedaegonPipelineV1RunSpec { + return true; +} + +export function IoGithub1eedaegonPipelineV1RunSpecFromJSON(json: any): IoGithub1eedaegonPipelineV1RunSpec { + return IoGithub1eedaegonPipelineV1RunSpecFromJSONTyped(json, false); +} + +export function IoGithub1eedaegonPipelineV1RunSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoGithub1eedaegonPipelineV1RunSpec { + if (json == null) { + return json; + } + return { + + 'env': json['env'] == null ? undefined : json['env'], + 'historyLimit': json['historyLimit'] == null ? undefined : IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimitFromJSON(json['historyLimit']), + 'inputs': json['inputs'] == null ? undefined : json['inputs'], + 'jobs': json['jobs'] == null ? undefined : ((json['jobs'] as Array).map(IoGithub1eedaegonPipelineV1RunSpecJobsInnerFromJSON)), + 'outputs': json['outputs'] == null ? undefined : json['outputs'], + 'resource': json['resource'] == null ? undefined : IoGithub1eedaegonPipelineV1PipelineSpecResourceFromJSON(json['resource']), + 'runBefore': json['runBefore'] == null ? undefined : json['runBefore'], + 'schedule': json['schedule'] == null ? undefined : IoGithub1eedaegonPipelineV1PipelineSpecScheduleFromJSON(json['schedule']), + 'trigger': json['trigger'] == null ? undefined : json['trigger'], + 'volumes': json['volumes'] == null ? undefined : ((json['volumes'] as Array).map(IoGithub1eedaegonPipelineV1PipelineSpecVolumesInnerFromJSON)), + }; +} + +export function IoGithub1eedaegonPipelineV1RunSpecToJSON(value?: IoGithub1eedaegonPipelineV1RunSpec | null): any { + if (value == null) { + return value; + } + return { + + 'env': value['env'], + 'historyLimit': IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimitToJSON(value['historyLimit']), + 'inputs': value['inputs'], + 'jobs': value['jobs'] == null ? undefined : ((value['jobs'] as Array).map(IoGithub1eedaegonPipelineV1RunSpecJobsInnerToJSON)), + 'outputs': value['outputs'], + 'resource': IoGithub1eedaegonPipelineV1PipelineSpecResourceToJSON(value['resource']), + 'runBefore': value['runBefore'], + 'schedule': IoGithub1eedaegonPipelineV1PipelineSpecScheduleToJSON(value['schedule']), + 'trigger': value['trigger'], + 'volumes': value['volumes'] == null ? undefined : ((value['volumes'] as Array).map(IoGithub1eedaegonPipelineV1PipelineSpecVolumesInnerToJSON)), + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1RunSpecJobsInner.ts b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1RunSpecJobsInner.ts new file mode 100644 index 0000000..cabb038 --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1RunSpecJobsInner.ts @@ -0,0 +1,161 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { IoGithub1eedaegonPipelineV1PipelineSpecSchedule } from './IoGithub1eedaegonPipelineV1PipelineSpecSchedule'; +import { + IoGithub1eedaegonPipelineV1PipelineSpecScheduleFromJSON, + IoGithub1eedaegonPipelineV1PipelineSpecScheduleFromJSONTyped, + IoGithub1eedaegonPipelineV1PipelineSpecScheduleToJSON, +} from './IoGithub1eedaegonPipelineV1PipelineSpecSchedule'; +import type { IoGithub1eedaegonPipelineV1PipelineSpecResource } from './IoGithub1eedaegonPipelineV1PipelineSpecResource'; +import { + IoGithub1eedaegonPipelineV1PipelineSpecResourceFromJSON, + IoGithub1eedaegonPipelineV1PipelineSpecResourceFromJSONTyped, + IoGithub1eedaegonPipelineV1PipelineSpecResourceToJSON, +} from './IoGithub1eedaegonPipelineV1PipelineSpecResource'; + +/** + * + * @export + * @interface IoGithub1eedaegonPipelineV1RunSpecJobsInner + */ +export interface IoGithub1eedaegonPipelineV1RunSpecJobsInner { + /** + * + * @type {Array} + * @memberof IoGithub1eedaegonPipelineV1RunSpecJobsInner + */ + args?: Array; + /** + * + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1RunSpecJobsInner + */ + command?: string; + /** + * + * @type {{ [key: string]: string; }} + * @memberof IoGithub1eedaegonPipelineV1RunSpecJobsInner + */ + env?: { [key: string]: string; }; + /** + * + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1RunSpecJobsInner + */ + image?: string; + /** + * + * @type {Array} + * @memberof IoGithub1eedaegonPipelineV1RunSpecJobsInner + */ + inputs?: Array; + /** + * + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1RunSpecJobsInner + */ + name?: string; + /** + * + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1RunSpecJobsInner + */ + namespace?: string; + /** + * + * @type {Array} + * @memberof IoGithub1eedaegonPipelineV1RunSpecJobsInner + */ + outputs?: Array; + /** + * + * @type {IoGithub1eedaegonPipelineV1PipelineSpecResource} + * @memberof IoGithub1eedaegonPipelineV1RunSpecJobsInner + */ + resource?: IoGithub1eedaegonPipelineV1PipelineSpecResource; + /** + * + * @type {Array} + * @memberof IoGithub1eedaegonPipelineV1RunSpecJobsInner + */ + runBefore?: Array; + /** + * + * @type {IoGithub1eedaegonPipelineV1PipelineSpecSchedule} + * @memberof IoGithub1eedaegonPipelineV1RunSpecJobsInner + */ + schedule?: IoGithub1eedaegonPipelineV1PipelineSpecSchedule; + /** + * + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1RunSpecJobsInner + */ + trigger?: string; +} + +/** + * Check if a given object implements the IoGithub1eedaegonPipelineV1RunSpecJobsInner interface. + */ +export function instanceOfIoGithub1eedaegonPipelineV1RunSpecJobsInner(value: object): value is IoGithub1eedaegonPipelineV1RunSpecJobsInner { + return true; +} + +export function IoGithub1eedaegonPipelineV1RunSpecJobsInnerFromJSON(json: any): IoGithub1eedaegonPipelineV1RunSpecJobsInner { + return IoGithub1eedaegonPipelineV1RunSpecJobsInnerFromJSONTyped(json, false); +} + +export function IoGithub1eedaegonPipelineV1RunSpecJobsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoGithub1eedaegonPipelineV1RunSpecJobsInner { + if (json == null) { + return json; + } + return { + + 'args': json['args'] == null ? undefined : json['args'], + 'command': json['command'] == null ? undefined : json['command'], + 'env': json['env'] == null ? undefined : json['env'], + 'image': json['image'] == null ? undefined : json['image'], + 'inputs': json['inputs'] == null ? undefined : json['inputs'], + 'name': json['name'] == null ? undefined : json['name'], + 'namespace': json['namespace'] == null ? undefined : json['namespace'], + 'outputs': json['outputs'] == null ? undefined : json['outputs'], + 'resource': json['resource'] == null ? undefined : IoGithub1eedaegonPipelineV1PipelineSpecResourceFromJSON(json['resource']), + 'runBefore': json['runBefore'] == null ? undefined : json['runBefore'], + 'schedule': json['schedule'] == null ? undefined : IoGithub1eedaegonPipelineV1PipelineSpecScheduleFromJSON(json['schedule']), + 'trigger': json['trigger'] == null ? undefined : json['trigger'], + }; +} + +export function IoGithub1eedaegonPipelineV1RunSpecJobsInnerToJSON(value?: IoGithub1eedaegonPipelineV1RunSpecJobsInner | null): any { + if (value == null) { + return value; + } + return { + + 'args': value['args'], + 'command': value['command'], + 'env': value['env'], + 'image': value['image'], + 'inputs': value['inputs'], + 'name': value['name'], + 'namespace': value['namespace'], + 'outputs': value['outputs'], + 'resource': IoGithub1eedaegonPipelineV1PipelineSpecResourceToJSON(value['resource']), + 'runBefore': value['runBefore'], + 'schedule': IoGithub1eedaegonPipelineV1PipelineSpecScheduleToJSON(value['schedule']), + 'trigger': value['trigger'], + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1RunStatus.ts b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1RunStatus.ts new file mode 100644 index 0000000..f3c8c29 --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1RunStatus.ts @@ -0,0 +1,155 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { IoGithub1eedaegonPipelineV1RunStatusJobStatesInner } from './IoGithub1eedaegonPipelineV1RunStatusJobStatesInner'; +import { + IoGithub1eedaegonPipelineV1RunStatusJobStatesInnerFromJSON, + IoGithub1eedaegonPipelineV1RunStatusJobStatesInnerFromJSONTyped, + IoGithub1eedaegonPipelineV1RunStatusJobStatesInnerToJSON, +} from './IoGithub1eedaegonPipelineV1RunStatusJobStatesInner'; + +/** + * + * @export + * @interface IoGithub1eedaegonPipelineV1RunStatus + */ +export interface IoGithub1eedaegonPipelineV1RunStatus { + /** + * + * @type {Array} + * @memberof IoGithub1eedaegonPipelineV1RunStatus + */ + jobStates?: Array; + /** + * + * @type {number} + * @memberof IoGithub1eedaegonPipelineV1RunStatus + */ + completed?: number; + /** + * + * @type {Date} + * @memberof IoGithub1eedaegonPipelineV1RunStatus + */ + createdDate?: Date; + /** + * + * @type {number} + * @memberof IoGithub1eedaegonPipelineV1RunStatus + */ + deleted?: number; + /** + * + * @type {number} + * @memberof IoGithub1eedaegonPipelineV1RunStatus + */ + deleting?: number; + /** + * + * @type {number} + * @memberof IoGithub1eedaegonPipelineV1RunStatus + */ + failed?: number; + /** + * + * @type {number} + * @memberof IoGithub1eedaegonPipelineV1RunStatus + */ + initializing?: number; + /** + * + * @type {Date} + * @memberof IoGithub1eedaegonPipelineV1RunStatus + */ + lastUpdateDate?: Date; + /** + * + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1RunStatus + */ + runState?: string; + /** + * + * @type {number} + * @memberof IoGithub1eedaegonPipelineV1RunStatus + */ + running?: number; + /** + * + * @type {number} + * @memberof IoGithub1eedaegonPipelineV1RunStatus + */ + stopping?: number; + /** + * + * @type {number} + * @memberof IoGithub1eedaegonPipelineV1RunStatus + */ + waiting?: number; +} + +/** + * Check if a given object implements the IoGithub1eedaegonPipelineV1RunStatus interface. + */ +export function instanceOfIoGithub1eedaegonPipelineV1RunStatus(value: object): value is IoGithub1eedaegonPipelineV1RunStatus { + return true; +} + +export function IoGithub1eedaegonPipelineV1RunStatusFromJSON(json: any): IoGithub1eedaegonPipelineV1RunStatus { + return IoGithub1eedaegonPipelineV1RunStatusFromJSONTyped(json, false); +} + +export function IoGithub1eedaegonPipelineV1RunStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoGithub1eedaegonPipelineV1RunStatus { + if (json == null) { + return json; + } + return { + + 'jobStates': json['JobStates'] == null ? undefined : ((json['JobStates'] as Array).map(IoGithub1eedaegonPipelineV1RunStatusJobStatesInnerFromJSON)), + 'completed': json['completed'] == null ? undefined : json['completed'], + 'createdDate': json['createdDate'] == null ? undefined : (new Date(json['createdDate'])), + 'deleted': json['deleted'] == null ? undefined : json['deleted'], + 'deleting': json['deleting'] == null ? undefined : json['deleting'], + 'failed': json['failed'] == null ? undefined : json['failed'], + 'initializing': json['initializing'] == null ? undefined : json['initializing'], + 'lastUpdateDate': json['lastUpdateDate'] == null ? undefined : (new Date(json['lastUpdateDate'])), + 'runState': json['runState'] == null ? undefined : json['runState'], + 'running': json['running'] == null ? undefined : json['running'], + 'stopping': json['stopping'] == null ? undefined : json['stopping'], + 'waiting': json['waiting'] == null ? undefined : json['waiting'], + }; +} + +export function IoGithub1eedaegonPipelineV1RunStatusToJSON(value?: IoGithub1eedaegonPipelineV1RunStatus | null): any { + if (value == null) { + return value; + } + return { + + 'JobStates': value['jobStates'] == null ? undefined : ((value['jobStates'] as Array).map(IoGithub1eedaegonPipelineV1RunStatusJobStatesInnerToJSON)), + 'completed': value['completed'], + 'createdDate': value['createdDate'] == null ? undefined : ((value['createdDate']).toISOString()), + 'deleted': value['deleted'], + 'deleting': value['deleting'], + 'failed': value['failed'], + 'initializing': value['initializing'], + 'lastUpdateDate': value['lastUpdateDate'] == null ? undefined : ((value['lastUpdateDate']).toISOString()), + 'runState': value['runState'], + 'running': value['running'], + 'stopping': value['stopping'], + 'waiting': value['waiting'], + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1RunStatusJobStatesInner.ts b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1RunStatusJobStatesInner.ts new file mode 100644 index 0000000..6c347db --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1RunStatusJobStatesInner.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface IoGithub1eedaegonPipelineV1RunStatusJobStatesInner + */ +export interface IoGithub1eedaegonPipelineV1RunStatusJobStatesInner { + /** + * + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1RunStatusJobStatesInner + */ + jobState?: string; + /** + * + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1RunStatusJobStatesInner + */ + name?: string; + /** + * + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1RunStatusJobStatesInner + */ + reason?: string; +} + +/** + * Check if a given object implements the IoGithub1eedaegonPipelineV1RunStatusJobStatesInner interface. + */ +export function instanceOfIoGithub1eedaegonPipelineV1RunStatusJobStatesInner(value: object): value is IoGithub1eedaegonPipelineV1RunStatusJobStatesInner { + return true; +} + +export function IoGithub1eedaegonPipelineV1RunStatusJobStatesInnerFromJSON(json: any): IoGithub1eedaegonPipelineV1RunStatusJobStatesInner { + return IoGithub1eedaegonPipelineV1RunStatusJobStatesInnerFromJSONTyped(json, false); +} + +export function IoGithub1eedaegonPipelineV1RunStatusJobStatesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoGithub1eedaegonPipelineV1RunStatusJobStatesInner { + if (json == null) { + return json; + } + return { + + 'jobState': json['jobState'] == null ? undefined : json['jobState'], + 'name': json['name'] == null ? undefined : json['name'], + 'reason': json['reason'] == null ? undefined : json['reason'], + }; +} + +export function IoGithub1eedaegonPipelineV1RunStatusJobStatesInnerToJSON(value?: IoGithub1eedaegonPipelineV1RunStatusJobStatesInner | null): any { + if (value == null) { + return value; + } + return { + + 'jobState': value['jobState'], + 'name': value['name'], + 'reason': value['reason'], + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1Task.ts b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1Task.ts new file mode 100644 index 0000000..2dc23d7 --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1Task.ts @@ -0,0 +1,111 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { IoGithub1eedaegonPipelineV1TaskSpec } from './IoGithub1eedaegonPipelineV1TaskSpec'; +import { + IoGithub1eedaegonPipelineV1TaskSpecFromJSON, + IoGithub1eedaegonPipelineV1TaskSpecFromJSONTyped, + IoGithub1eedaegonPipelineV1TaskSpecToJSON, +} from './IoGithub1eedaegonPipelineV1TaskSpec'; +import type { IoGithub1eedaegonPipelineV1TaskStatus } from './IoGithub1eedaegonPipelineV1TaskStatus'; +import { + IoGithub1eedaegonPipelineV1TaskStatusFromJSON, + IoGithub1eedaegonPipelineV1TaskStatusFromJSONTyped, + IoGithub1eedaegonPipelineV1TaskStatusToJSON, +} from './IoGithub1eedaegonPipelineV1TaskStatus'; +import type { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; + +/** + * + * @export + * @interface IoGithub1eedaegonPipelineV1Task + */ +export interface IoGithub1eedaegonPipelineV1Task { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1Task + */ + apiVersion?: string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1Task + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ObjectMeta} + * @memberof IoGithub1eedaegonPipelineV1Task + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta; + /** + * + * @type {IoGithub1eedaegonPipelineV1TaskSpec} + * @memberof IoGithub1eedaegonPipelineV1Task + */ + spec?: IoGithub1eedaegonPipelineV1TaskSpec; + /** + * + * @type {IoGithub1eedaegonPipelineV1TaskStatus} + * @memberof IoGithub1eedaegonPipelineV1Task + */ + status?: IoGithub1eedaegonPipelineV1TaskStatus; +} + +/** + * Check if a given object implements the IoGithub1eedaegonPipelineV1Task interface. + */ +export function instanceOfIoGithub1eedaegonPipelineV1Task(value: object): value is IoGithub1eedaegonPipelineV1Task { + return true; +} + +export function IoGithub1eedaegonPipelineV1TaskFromJSON(json: any): IoGithub1eedaegonPipelineV1Task { + return IoGithub1eedaegonPipelineV1TaskFromJSONTyped(json, false); +} + +export function IoGithub1eedaegonPipelineV1TaskFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoGithub1eedaegonPipelineV1Task { + if (json == null) { + return json; + } + return { + + 'apiVersion': json['apiVersion'] == null ? undefined : json['apiVersion'], + 'kind': json['kind'] == null ? undefined : json['kind'], + 'metadata': json['metadata'] == null ? undefined : IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), + 'spec': json['spec'] == null ? undefined : IoGithub1eedaegonPipelineV1TaskSpecFromJSON(json['spec']), + 'status': json['status'] == null ? undefined : IoGithub1eedaegonPipelineV1TaskStatusFromJSON(json['status']), + }; +} + +export function IoGithub1eedaegonPipelineV1TaskToJSON(value?: IoGithub1eedaegonPipelineV1Task | null): any { + if (value == null) { + return value; + } + return { + + 'apiVersion': value['apiVersion'], + 'kind': value['kind'], + 'metadata': IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value['metadata']), + 'spec': IoGithub1eedaegonPipelineV1TaskSpecToJSON(value['spec']), + 'status': IoGithub1eedaegonPipelineV1TaskStatusToJSON(value['status']), + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1TaskList.ts b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1TaskList.ts new file mode 100644 index 0000000..6834699 --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1TaskList.ts @@ -0,0 +1,98 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { IoGithub1eedaegonPipelineV1Task } from './IoGithub1eedaegonPipelineV1Task'; +import { + IoGithub1eedaegonPipelineV1TaskFromJSON, + IoGithub1eedaegonPipelineV1TaskFromJSONTyped, + IoGithub1eedaegonPipelineV1TaskToJSON, +} from './IoGithub1eedaegonPipelineV1Task'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * TaskList is a list of Task + * @export + * @interface IoGithub1eedaegonPipelineV1TaskList + */ +export interface IoGithub1eedaegonPipelineV1TaskList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1TaskList + */ + apiVersion?: string; + /** + * List of tasks. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md + * @type {Array} + * @memberof IoGithub1eedaegonPipelineV1TaskList + */ + items: Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1TaskList + */ + kind?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoGithub1eedaegonPipelineV1TaskList + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; +} + +/** + * Check if a given object implements the IoGithub1eedaegonPipelineV1TaskList interface. + */ +export function instanceOfIoGithub1eedaegonPipelineV1TaskList(value: object): value is IoGithub1eedaegonPipelineV1TaskList { + if (!('items' in value) || value['items'] === undefined) return false; + return true; +} + +export function IoGithub1eedaegonPipelineV1TaskListFromJSON(json: any): IoGithub1eedaegonPipelineV1TaskList { + return IoGithub1eedaegonPipelineV1TaskListFromJSONTyped(json, false); +} + +export function IoGithub1eedaegonPipelineV1TaskListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoGithub1eedaegonPipelineV1TaskList { + if (json == null) { + return json; + } + return { + + 'apiVersion': json['apiVersion'] == null ? undefined : json['apiVersion'], + 'items': ((json['items'] as Array).map(IoGithub1eedaegonPipelineV1TaskFromJSON)), + 'kind': json['kind'] == null ? undefined : json['kind'], + 'metadata': json['metadata'] == null ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + }; +} + +export function IoGithub1eedaegonPipelineV1TaskListToJSON(value?: IoGithub1eedaegonPipelineV1TaskList | null): any { + if (value == null) { + return value; + } + return { + + 'apiVersion': value['apiVersion'], + 'items': ((value['items'] as Array).map(IoGithub1eedaegonPipelineV1TaskToJSON)), + 'kind': value['kind'], + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value['metadata']), + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1TaskSpec.ts b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1TaskSpec.ts new file mode 100644 index 0000000..ee1edc1 --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1TaskSpec.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface IoGithub1eedaegonPipelineV1TaskSpec + */ +export interface IoGithub1eedaegonPipelineV1TaskSpec { + /** + * + * @type {Array} + * @memberof IoGithub1eedaegonPipelineV1TaskSpec + */ + args?: Array; + /** + * + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1TaskSpec + */ + command?: string; + /** + * + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1TaskSpec + */ + image?: string; + /** + * + * @type {string} + * @memberof IoGithub1eedaegonPipelineV1TaskSpec + */ + name?: string; +} + +/** + * Check if a given object implements the IoGithub1eedaegonPipelineV1TaskSpec interface. + */ +export function instanceOfIoGithub1eedaegonPipelineV1TaskSpec(value: object): value is IoGithub1eedaegonPipelineV1TaskSpec { + return true; +} + +export function IoGithub1eedaegonPipelineV1TaskSpecFromJSON(json: any): IoGithub1eedaegonPipelineV1TaskSpec { + return IoGithub1eedaegonPipelineV1TaskSpecFromJSONTyped(json, false); +} + +export function IoGithub1eedaegonPipelineV1TaskSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoGithub1eedaegonPipelineV1TaskSpec { + if (json == null) { + return json; + } + return { + + 'args': json['args'] == null ? undefined : json['args'], + 'command': json['command'] == null ? undefined : json['command'], + 'image': json['image'] == null ? undefined : json['image'], + 'name': json['name'] == null ? undefined : json['name'], + }; +} + +export function IoGithub1eedaegonPipelineV1TaskSpecToJSON(value?: IoGithub1eedaegonPipelineV1TaskSpec | null): any { + if (value == null) { + return value; + } + return { + + 'args': value['args'], + 'command': value['command'], + 'image': value['image'], + 'name': value['name'], + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1TaskStatus.ts b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1TaskStatus.ts new file mode 100644 index 0000000..63d2c85 --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoGithub1eedaegonPipelineV1TaskStatus.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface IoGithub1eedaegonPipelineV1TaskStatus + */ +export interface IoGithub1eedaegonPipelineV1TaskStatus { + /** + * + * @type {Date} + * @memberof IoGithub1eedaegonPipelineV1TaskStatus + */ + createdDate?: Date; + /** + * + * @type {number} + * @memberof IoGithub1eedaegonPipelineV1TaskStatus + */ + jobs?: number; + /** + * + * @type {Date} + * @memberof IoGithub1eedaegonPipelineV1TaskStatus + */ + lastUpdatedDate?: Date; +} + +/** + * Check if a given object implements the IoGithub1eedaegonPipelineV1TaskStatus interface. + */ +export function instanceOfIoGithub1eedaegonPipelineV1TaskStatus(value: object): value is IoGithub1eedaegonPipelineV1TaskStatus { + return true; +} + +export function IoGithub1eedaegonPipelineV1TaskStatusFromJSON(json: any): IoGithub1eedaegonPipelineV1TaskStatus { + return IoGithub1eedaegonPipelineV1TaskStatusFromJSONTyped(json, false); +} + +export function IoGithub1eedaegonPipelineV1TaskStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoGithub1eedaegonPipelineV1TaskStatus { + if (json == null) { + return json; + } + return { + + 'createdDate': json['createdDate'] == null ? undefined : (new Date(json['createdDate'])), + 'jobs': json['jobs'] == null ? undefined : json['jobs'], + 'lastUpdatedDate': json['lastUpdatedDate'] == null ? undefined : (new Date(json['lastUpdatedDate'])), + }; +} + +export function IoGithub1eedaegonPipelineV1TaskStatusToJSON(value?: IoGithub1eedaegonPipelineV1TaskStatus | null): any { + if (value == null) { + return value; + } + return { + + 'createdDate': value['createdDate'] == null ? undefined : ((value['createdDate']).toISOString()), + 'jobs': value['jobs'], + 'lastUpdatedDate': value['lastUpdatedDate'] == null ? undefined : ((value['lastUpdatedDate']).toISOString()), + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1APIGroup.ts b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1APIGroup.ts new file mode 100644 index 0000000..ea35680 --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1APIGroup.ts @@ -0,0 +1,115 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery } from './IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery'; +import { + IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscoveryFromJSON, + IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscoveryFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscoveryToJSON, +} from './IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery'; +import type { IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR } from './IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR'; +import { + IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDRFromJSON, + IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDRFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDRToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR'; + +/** + * APIGroup contains the name, the supported versions, and the preferred version of a group. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1APIGroup + */ +export interface IoK8sApimachineryPkgApisMetaV1APIGroup { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1APIGroup + */ + apiVersion?: string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1APIGroup + */ + kind?: string; + /** + * name is the name of the group. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1APIGroup + */ + name: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery} + * @memberof IoK8sApimachineryPkgApisMetaV1APIGroup + */ + preferredVersion?: IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery; + /** + * a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + * @type {Array} + * @memberof IoK8sApimachineryPkgApisMetaV1APIGroup + */ + serverAddressByClientCIDRs?: Array; + /** + * versions are the versions supported in this group. + * @type {Array} + * @memberof IoK8sApimachineryPkgApisMetaV1APIGroup + */ + versions: Array; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1APIGroup interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1APIGroup(value: object): value is IoK8sApimachineryPkgApisMetaV1APIGroup { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('versions' in value) || value['versions'] === undefined) return false; + return true; +} + +export function IoK8sApimachineryPkgApisMetaV1APIGroupFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1APIGroup { + return IoK8sApimachineryPkgApisMetaV1APIGroupFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1APIGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1APIGroup { + if (json == null) { + return json; + } + return { + + 'apiVersion': json['apiVersion'] == null ? undefined : json['apiVersion'], + 'kind': json['kind'] == null ? undefined : json['kind'], + 'name': json['name'], + 'preferredVersion': json['preferredVersion'] == null ? undefined : IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscoveryFromJSON(json['preferredVersion']), + 'serverAddressByClientCIDRs': json['serverAddressByClientCIDRs'] == null ? undefined : ((json['serverAddressByClientCIDRs'] as Array).map(IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDRFromJSON)), + 'versions': ((json['versions'] as Array).map(IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscoveryFromJSON)), + }; +} + +export function IoK8sApimachineryPkgApisMetaV1APIGroupToJSON(value?: IoK8sApimachineryPkgApisMetaV1APIGroup | null): any { + if (value == null) { + return value; + } + return { + + 'apiVersion': value['apiVersion'], + 'kind': value['kind'], + 'name': value['name'], + 'preferredVersion': IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscoveryToJSON(value['preferredVersion']), + 'serverAddressByClientCIDRs': value['serverAddressByClientCIDRs'] == null ? undefined : ((value['serverAddressByClientCIDRs'] as Array).map(IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDRToJSON)), + 'versions': ((value['versions'] as Array).map(IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscoveryToJSON)), + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1APIGroupList.ts b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1APIGroupList.ts new file mode 100644 index 0000000..3f1d8d4 --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1APIGroupList.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1APIGroup } from './IoK8sApimachineryPkgApisMetaV1APIGroup'; +import { + IoK8sApimachineryPkgApisMetaV1APIGroupFromJSON, + IoK8sApimachineryPkgApisMetaV1APIGroupFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1APIGroupToJSON, +} from './IoK8sApimachineryPkgApisMetaV1APIGroup'; + +/** + * APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1APIGroupList + */ +export interface IoK8sApimachineryPkgApisMetaV1APIGroupList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1APIGroupList + */ + apiVersion?: string; + /** + * groups is a list of APIGroup. + * @type {Array} + * @memberof IoK8sApimachineryPkgApisMetaV1APIGroupList + */ + groups: Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1APIGroupList + */ + kind?: string; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1APIGroupList interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1APIGroupList(value: object): value is IoK8sApimachineryPkgApisMetaV1APIGroupList { + if (!('groups' in value) || value['groups'] === undefined) return false; + return true; +} + +export function IoK8sApimachineryPkgApisMetaV1APIGroupListFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1APIGroupList { + return IoK8sApimachineryPkgApisMetaV1APIGroupListFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1APIGroupListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1APIGroupList { + if (json == null) { + return json; + } + return { + + 'apiVersion': json['apiVersion'] == null ? undefined : json['apiVersion'], + 'groups': ((json['groups'] as Array).map(IoK8sApimachineryPkgApisMetaV1APIGroupFromJSON)), + 'kind': json['kind'] == null ? undefined : json['kind'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1APIGroupListToJSON(value?: IoK8sApimachineryPkgApisMetaV1APIGroupList | null): any { + if (value == null) { + return value; + } + return { + + 'apiVersion': value['apiVersion'], + 'groups': ((value['groups'] as Array).map(IoK8sApimachineryPkgApisMetaV1APIGroupToJSON)), + 'kind': value['kind'], + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1APIResource.ts b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1APIResource.ts new file mode 100644 index 0000000..0f7ad55 --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1APIResource.ts @@ -0,0 +1,137 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * APIResource specifies the name of a resource and whether it is namespaced. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1APIResource + */ +export interface IoK8sApimachineryPkgApisMetaV1APIResource { + /** + * categories is a list of the grouped resources this resource belongs to (e.g. 'all') + * @type {Array} + * @memberof IoK8sApimachineryPkgApisMetaV1APIResource + */ + categories?: Array; + /** + * group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale". + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1APIResource + */ + group?: string; + /** + * kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1APIResource + */ + kind: string; + /** + * name is the plural name of the resource. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1APIResource + */ + name: string; + /** + * namespaced indicates if a resource is namespaced or not. + * @type {boolean} + * @memberof IoK8sApimachineryPkgApisMetaV1APIResource + */ + namespaced: boolean; + /** + * shortNames is a list of suggested short names of the resource. + * @type {Array} + * @memberof IoK8sApimachineryPkgApisMetaV1APIResource + */ + shortNames?: Array; + /** + * singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1APIResource + */ + singularName: string; + /** + * The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1APIResource + */ + storageVersionHash?: string; + /** + * verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy) + * @type {Array} + * @memberof IoK8sApimachineryPkgApisMetaV1APIResource + */ + verbs: Array; + /** + * version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)". + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1APIResource + */ + version?: string; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1APIResource interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1APIResource(value: object): value is IoK8sApimachineryPkgApisMetaV1APIResource { + if (!('kind' in value) || value['kind'] === undefined) return false; + if (!('name' in value) || value['name'] === undefined) return false; + if (!('namespaced' in value) || value['namespaced'] === undefined) return false; + if (!('singularName' in value) || value['singularName'] === undefined) return false; + if (!('verbs' in value) || value['verbs'] === undefined) return false; + return true; +} + +export function IoK8sApimachineryPkgApisMetaV1APIResourceFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1APIResource { + return IoK8sApimachineryPkgApisMetaV1APIResourceFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1APIResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1APIResource { + if (json == null) { + return json; + } + return { + + 'categories': json['categories'] == null ? undefined : json['categories'], + 'group': json['group'] == null ? undefined : json['group'], + 'kind': json['kind'], + 'name': json['name'], + 'namespaced': json['namespaced'], + 'shortNames': json['shortNames'] == null ? undefined : json['shortNames'], + 'singularName': json['singularName'], + 'storageVersionHash': json['storageVersionHash'] == null ? undefined : json['storageVersionHash'], + 'verbs': json['verbs'], + 'version': json['version'] == null ? undefined : json['version'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1APIResourceToJSON(value?: IoK8sApimachineryPkgApisMetaV1APIResource | null): any { + if (value == null) { + return value; + } + return { + + 'categories': value['categories'], + 'group': value['group'], + 'kind': value['kind'], + 'name': value['name'], + 'namespaced': value['namespaced'], + 'shortNames': value['shortNames'], + 'singularName': value['singularName'], + 'storageVersionHash': value['storageVersionHash'], + 'verbs': value['verbs'], + 'version': value['version'], + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1APIResourceList.ts b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1APIResourceList.ts new file mode 100644 index 0000000..dd1ea4c --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1APIResourceList.ts @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1APIResource } from './IoK8sApimachineryPkgApisMetaV1APIResource'; +import { + IoK8sApimachineryPkgApisMetaV1APIResourceFromJSON, + IoK8sApimachineryPkgApisMetaV1APIResourceFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1APIResourceToJSON, +} from './IoK8sApimachineryPkgApisMetaV1APIResource'; + +/** + * APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1APIResourceList + */ +export interface IoK8sApimachineryPkgApisMetaV1APIResourceList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1APIResourceList + */ + apiVersion?: string; + /** + * groupVersion is the group and version this APIResourceList is for. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1APIResourceList + */ + groupVersion: string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1APIResourceList + */ + kind?: string; + /** + * resources contains the name of the resources and if they are namespaced. + * @type {Array} + * @memberof IoK8sApimachineryPkgApisMetaV1APIResourceList + */ + resources: Array; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1APIResourceList interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1APIResourceList(value: object): value is IoK8sApimachineryPkgApisMetaV1APIResourceList { + if (!('groupVersion' in value) || value['groupVersion'] === undefined) return false; + if (!('resources' in value) || value['resources'] === undefined) return false; + return true; +} + +export function IoK8sApimachineryPkgApisMetaV1APIResourceListFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1APIResourceList { + return IoK8sApimachineryPkgApisMetaV1APIResourceListFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1APIResourceListFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1APIResourceList { + if (json == null) { + return json; + } + return { + + 'apiVersion': json['apiVersion'] == null ? undefined : json['apiVersion'], + 'groupVersion': json['groupVersion'], + 'kind': json['kind'] == null ? undefined : json['kind'], + 'resources': ((json['resources'] as Array).map(IoK8sApimachineryPkgApisMetaV1APIResourceFromJSON)), + }; +} + +export function IoK8sApimachineryPkgApisMetaV1APIResourceListToJSON(value?: IoK8sApimachineryPkgApisMetaV1APIResourceList | null): any { + if (value == null) { + return value; + } + return { + + 'apiVersion': value['apiVersion'], + 'groupVersion': value['groupVersion'], + 'kind': value['kind'], + 'resources': ((value['resources'] as Array).map(IoK8sApimachineryPkgApisMetaV1APIResourceToJSON)), + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1APIVersions.ts b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1APIVersions.ts new file mode 100644 index 0000000..1aaf4f8 --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1APIVersions.ts @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR } from './IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR'; +import { + IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDRFromJSON, + IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDRFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDRToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR'; + +/** + * APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1APIVersions + */ +export interface IoK8sApimachineryPkgApisMetaV1APIVersions { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1APIVersions + */ + apiVersion?: string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1APIVersions + */ + kind?: string; + /** + * a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + * @type {Array} + * @memberof IoK8sApimachineryPkgApisMetaV1APIVersions + */ + serverAddressByClientCIDRs: Array; + /** + * versions are the api versions that are available. + * @type {Array} + * @memberof IoK8sApimachineryPkgApisMetaV1APIVersions + */ + versions: Array; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1APIVersions interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1APIVersions(value: object): value is IoK8sApimachineryPkgApisMetaV1APIVersions { + if (!('serverAddressByClientCIDRs' in value) || value['serverAddressByClientCIDRs'] === undefined) return false; + if (!('versions' in value) || value['versions'] === undefined) return false; + return true; +} + +export function IoK8sApimachineryPkgApisMetaV1APIVersionsFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1APIVersions { + return IoK8sApimachineryPkgApisMetaV1APIVersionsFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1APIVersionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1APIVersions { + if (json == null) { + return json; + } + return { + + 'apiVersion': json['apiVersion'] == null ? undefined : json['apiVersion'], + 'kind': json['kind'] == null ? undefined : json['kind'], + 'serverAddressByClientCIDRs': ((json['serverAddressByClientCIDRs'] as Array).map(IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDRFromJSON)), + 'versions': json['versions'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1APIVersionsToJSON(value?: IoK8sApimachineryPkgApisMetaV1APIVersions | null): any { + if (value == null) { + return value; + } + return { + + 'apiVersion': value['apiVersion'], + 'kind': value['kind'], + 'serverAddressByClientCIDRs': ((value['serverAddressByClientCIDRs'] as Array).map(IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDRToJSON)), + 'versions': value['versions'], + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1Condition.ts b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1Condition.ts new file mode 100644 index 0000000..397916b --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1Condition.ts @@ -0,0 +1,105 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * Condition contains details for one aspect of the current state of this API Resource. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1Condition + */ +export interface IoK8sApimachineryPkgApisMetaV1Condition { + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApimachineryPkgApisMetaV1Condition + */ + lastTransitionTime: Date; + /** + * message is a human readable message indicating details about the transition. This may be an empty string. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1Condition + */ + message: string; + /** + * observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. + * @type {number} + * @memberof IoK8sApimachineryPkgApisMetaV1Condition + */ + observedGeneration?: number; + /** + * reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1Condition + */ + reason: string; + /** + * status of the condition, one of True, False, Unknown. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1Condition + */ + status: string; + /** + * type of condition in CamelCase or in foo.example.com/CamelCase. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1Condition + */ + type: string; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1Condition interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1Condition(value: object): value is IoK8sApimachineryPkgApisMetaV1Condition { + if (!('lastTransitionTime' in value) || value['lastTransitionTime'] === undefined) return false; + if (!('message' in value) || value['message'] === undefined) return false; + if (!('reason' in value) || value['reason'] === undefined) return false; + if (!('status' in value) || value['status'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + return true; +} + +export function IoK8sApimachineryPkgApisMetaV1ConditionFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1Condition { + return IoK8sApimachineryPkgApisMetaV1ConditionFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1ConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1Condition { + if (json == null) { + return json; + } + return { + + 'lastTransitionTime': (new Date(json['lastTransitionTime'])), + 'message': json['message'], + 'observedGeneration': json['observedGeneration'] == null ? undefined : json['observedGeneration'], + 'reason': json['reason'], + 'status': json['status'], + 'type': json['type'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1ConditionToJSON(value?: IoK8sApimachineryPkgApisMetaV1Condition | null): any { + if (value == null) { + return value; + } + return { + + 'lastTransitionTime': ((value['lastTransitionTime']).toISOString()), + 'message': value['message'], + 'observedGeneration': value['observedGeneration'], + 'reason': value['reason'], + 'status': value['status'], + 'type': value['type'], + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1DeleteOptions.ts b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1DeleteOptions.ts new file mode 100644 index 0000000..d3efbe4 --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1DeleteOptions.ts @@ -0,0 +1,115 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1Preconditions } from './IoK8sApimachineryPkgApisMetaV1Preconditions'; +import { + IoK8sApimachineryPkgApisMetaV1PreconditionsFromJSON, + IoK8sApimachineryPkgApisMetaV1PreconditionsFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1PreconditionsToJSON, +} from './IoK8sApimachineryPkgApisMetaV1Preconditions'; + +/** + * DeleteOptions may be provided when deleting an API object. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1DeleteOptions + */ +export interface IoK8sApimachineryPkgApisMetaV1DeleteOptions { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1DeleteOptions + */ + 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 + * @type {Array} + * @memberof IoK8sApimachineryPkgApisMetaV1DeleteOptions + */ + dryRun?: Array; + /** + * 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. + * @type {number} + * @memberof IoK8sApimachineryPkgApisMetaV1DeleteOptions + */ + 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 + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1DeleteOptions + */ + kind?: string; + /** + * 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. + * @type {boolean} + * @memberof IoK8sApimachineryPkgApisMetaV1DeleteOptions + */ + orphanDependents?: boolean; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1Preconditions} + * @memberof IoK8sApimachineryPkgApisMetaV1DeleteOptions + */ + preconditions?: IoK8sApimachineryPkgApisMetaV1Preconditions; + /** + * 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. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1DeleteOptions + */ + propagationPolicy?: string; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1DeleteOptions interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1DeleteOptions(value: object): value is IoK8sApimachineryPkgApisMetaV1DeleteOptions { + return true; +} + +export function IoK8sApimachineryPkgApisMetaV1DeleteOptionsFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1DeleteOptions { + return IoK8sApimachineryPkgApisMetaV1DeleteOptionsFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1DeleteOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1DeleteOptions { + if (json == null) { + return json; + } + return { + + 'apiVersion': json['apiVersion'] == null ? undefined : json['apiVersion'], + 'dryRun': json['dryRun'] == null ? undefined : json['dryRun'], + 'gracePeriodSeconds': json['gracePeriodSeconds'] == null ? undefined : json['gracePeriodSeconds'], + 'kind': json['kind'] == null ? undefined : json['kind'], + 'orphanDependents': json['orphanDependents'] == null ? undefined : json['orphanDependents'], + 'preconditions': json['preconditions'] == null ? undefined : IoK8sApimachineryPkgApisMetaV1PreconditionsFromJSON(json['preconditions']), + 'propagationPolicy': json['propagationPolicy'] == null ? undefined : json['propagationPolicy'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1DeleteOptionsToJSON(value?: IoK8sApimachineryPkgApisMetaV1DeleteOptions | null): any { + if (value == null) { + return value; + } + return { + + 'apiVersion': value['apiVersion'], + 'dryRun': value['dryRun'], + 'gracePeriodSeconds': value['gracePeriodSeconds'], + 'kind': value['kind'], + 'orphanDependents': value['orphanDependents'], + 'preconditions': IoK8sApimachineryPkgApisMetaV1PreconditionsToJSON(value['preconditions']), + 'propagationPolicy': value['propagationPolicy'], + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery.ts b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery.ts new file mode 100644 index 0000000..259729f --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * GroupVersion contains the "group/version" and "version" string of a version. It is made a struct to keep extensibility. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery + */ +export interface IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery { + /** + * groupVersion specifies the API group and version in the form "group/version" + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery + */ + groupVersion: string; + /** + * version specifies the version in the form of "version". This is to save the clients the trouble of splitting the GroupVersion. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery + */ + version: string; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery(value: object): value is IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery { + if (!('groupVersion' in value) || value['groupVersion'] === undefined) return false; + if (!('version' in value) || value['version'] === undefined) return false; + return true; +} + +export function IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscoveryFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery { + return IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscoveryFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscoveryFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery { + if (json == null) { + return json; + } + return { + + 'groupVersion': json['groupVersion'], + 'version': json['version'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscoveryToJSON(value?: IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery | null): any { + if (value == null) { + return value; + } + return { + + 'groupVersion': value['groupVersion'], + 'version': value['version'], + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1LabelSelector.ts b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1LabelSelector.ts new file mode 100644 index 0000000..8134823 --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1LabelSelector.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement } from './IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement'; +import { + IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirementFromJSON, + IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirementFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirementToJSON, +} from './IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement'; + +/** + * 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. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1LabelSelector + */ +export interface IoK8sApimachineryPkgApisMetaV1LabelSelector { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * @type {Array} + * @memberof IoK8sApimachineryPkgApisMetaV1LabelSelector + */ + matchExpressions?: Array; + /** + * 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. + * @type {{ [key: string]: string; }} + * @memberof IoK8sApimachineryPkgApisMetaV1LabelSelector + */ + matchLabels?: { [key: string]: string; }; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1LabelSelector interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1LabelSelector(value: object): value is IoK8sApimachineryPkgApisMetaV1LabelSelector { + return true; +} + +export function IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1LabelSelector { + return IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1LabelSelector { + if (json == null) { + return json; + } + return { + + 'matchExpressions': json['matchExpressions'] == null ? undefined : ((json['matchExpressions'] as Array).map(IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirementFromJSON)), + 'matchLabels': json['matchLabels'] == null ? undefined : json['matchLabels'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON(value?: IoK8sApimachineryPkgApisMetaV1LabelSelector | null): any { + if (value == null) { + return value; + } + return { + + 'matchExpressions': value['matchExpressions'] == null ? undefined : ((value['matchExpressions'] as Array).map(IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirementToJSON)), + 'matchLabels': value['matchLabels'], + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement.ts b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement.ts new file mode 100644 index 0000000..0a57429 --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement + */ +export interface IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement { + /** + * key is the label key that the selector applies to. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement + */ + key: string; + /** + * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement + */ + 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. + * @type {Array} + * @memberof IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement + */ + values?: Array; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement(value: object): value is IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement { + if (!('key' in value) || value['key'] === undefined) return false; + if (!('operator' in value) || value['operator'] === undefined) return false; + return true; +} + +export function IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirementFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement { + return IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirementFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirementFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement { + if (json == null) { + return json; + } + return { + + 'key': json['key'], + 'operator': json['operator'], + 'values': json['values'] == null ? undefined : json['values'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirementToJSON(value?: IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement | null): any { + if (value == null) { + return value; + } + return { + + 'key': value['key'], + 'operator': value['operator'], + 'values': value['values'], + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1ListMeta.ts b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1ListMeta.ts new file mode 100644 index 0000000..2aed7df --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1ListMeta.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1ListMeta + */ +export interface IoK8sApimachineryPkgApisMetaV1ListMeta { + /** + * 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. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1ListMeta + */ + _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. + * @type {number} + * @memberof IoK8sApimachineryPkgApisMetaV1ListMeta + */ + 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 + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1ListMeta + */ + resourceVersion?: string; + /** + * Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1ListMeta + */ + selfLink?: string; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1ListMeta interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1ListMeta(value: object): value is IoK8sApimachineryPkgApisMetaV1ListMeta { + return true; +} + +export function IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1ListMeta { + return IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1ListMeta { + if (json == null) { + return json; + } + return { + + '_continue': json['continue'] == null ? undefined : json['continue'], + 'remainingItemCount': json['remainingItemCount'] == null ? undefined : json['remainingItemCount'], + 'resourceVersion': json['resourceVersion'] == null ? undefined : json['resourceVersion'], + 'selfLink': json['selfLink'] == null ? undefined : json['selfLink'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value?: IoK8sApimachineryPkgApisMetaV1ListMeta | null): any { + if (value == null) { + return value; + } + return { + + 'continue': value['_continue'], + 'remainingItemCount': value['remainingItemCount'], + 'resourceVersion': value['resourceVersion'], + 'selfLink': value['selfLink'], + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry.ts b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry.ts new file mode 100644 index 0000000..a803856 --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry.ts @@ -0,0 +1,112 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry + */ +export interface IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry { + /** + * 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. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry + */ + apiVersion?: string; + /** + * FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry + */ + fieldsType?: string; + /** + * FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format. + * + * Each key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:', where is the name of a field in a struct, or key in a map 'v:', where is the exact json formatted value of a list item 'i:', where is position of a item in a list 'k:', where is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set. + * + * The exact format is defined in sigs.k8s.io/structured-merge-diff + * @type {object} + * @memberof IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry + */ + fieldsV1?: object; + /** + * Manager is an identifier of the workflow managing these fields. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry + */ + 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'. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry + */ + 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. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry + */ + subresource?: string; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry + */ + time?: Date; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry(value: object): value is IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry { + return true; +} + +export function IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntryFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry { + return IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntryFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry { + if (json == null) { + return json; + } + return { + + 'apiVersion': json['apiVersion'] == null ? undefined : json['apiVersion'], + 'fieldsType': json['fieldsType'] == null ? undefined : json['fieldsType'], + 'fieldsV1': json['fieldsV1'] == null ? undefined : json['fieldsV1'], + 'manager': json['manager'] == null ? undefined : json['manager'], + 'operation': json['operation'] == null ? undefined : json['operation'], + 'subresource': json['subresource'] == null ? undefined : json['subresource'], + 'time': json['time'] == null ? undefined : (new Date(json['time'])), + }; +} + +export function IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntryToJSON(value?: IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry | null): any { + if (value == null) { + return value; + } + return { + + 'apiVersion': value['apiVersion'], + 'fieldsType': value['fieldsType'], + 'fieldsV1': value['fieldsV1'], + 'manager': value['manager'], + 'operation': value['operation'], + 'subresource': value['subresource'], + 'time': value['time'] == null ? undefined : ((value['time']).toISOString()), + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1ObjectMeta.ts b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1ObjectMeta.ts new file mode 100644 index 0000000..3071b13 --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1ObjectMeta.ts @@ -0,0 +1,195 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1OwnerReference } from './IoK8sApimachineryPkgApisMetaV1OwnerReference'; +import { + IoK8sApimachineryPkgApisMetaV1OwnerReferenceFromJSON, + IoK8sApimachineryPkgApisMetaV1OwnerReferenceFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1OwnerReferenceToJSON, +} from './IoK8sApimachineryPkgApisMetaV1OwnerReference'; +import type { IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry } from './IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry'; +import { + IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntryFromJSON, + IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntryFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntryToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry'; + +/** + * ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1ObjectMeta + */ +export interface IoK8sApimachineryPkgApisMetaV1ObjectMeta { + /** + * 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: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations + * @type {{ [key: string]: string; }} + * @memberof IoK8sApimachineryPkgApisMetaV1ObjectMeta + */ + annotations?: { [key: string]: string; }; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApimachineryPkgApisMetaV1ObjectMeta + */ + 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. + * @type {number} + * @memberof IoK8sApimachineryPkgApisMetaV1ObjectMeta + */ + deletionGracePeriodSeconds?: number; + /** + * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + * @type {Date} + * @memberof IoK8sApimachineryPkgApisMetaV1ObjectMeta + */ + 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. + * @type {Array} + * @memberof IoK8sApimachineryPkgApisMetaV1ObjectMeta + */ + finalizers?: Array; + /** + * 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 + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1ObjectMeta + */ + generateName?: string; + /** + * A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * @type {number} + * @memberof IoK8sApimachineryPkgApisMetaV1ObjectMeta + */ + 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: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels + * @type {{ [key: string]: string; }} + * @memberof IoK8sApimachineryPkgApisMetaV1ObjectMeta + */ + 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. + * @type {Array} + * @memberof IoK8sApimachineryPkgApisMetaV1ObjectMeta + */ + managedFields?: Array; + /** + * 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: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1ObjectMeta + */ + 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: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1ObjectMeta + */ + 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. + * @type {Array} + * @memberof IoK8sApimachineryPkgApisMetaV1ObjectMeta + */ + ownerReferences?: Array; + /** + * 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 + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1ObjectMeta + */ + resourceVersion?: string; + /** + * Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1ObjectMeta + */ + 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: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1ObjectMeta + */ + uid?: string; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1ObjectMeta interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1ObjectMeta(value: object): value is IoK8sApimachineryPkgApisMetaV1ObjectMeta { + return true; +} + +export function IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1ObjectMeta { + return IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1ObjectMetaFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1ObjectMeta { + if (json == null) { + return json; + } + return { + + 'annotations': json['annotations'] == null ? undefined : json['annotations'], + 'creationTimestamp': json['creationTimestamp'] == null ? undefined : (new Date(json['creationTimestamp'])), + 'deletionGracePeriodSeconds': json['deletionGracePeriodSeconds'] == null ? undefined : json['deletionGracePeriodSeconds'], + 'deletionTimestamp': json['deletionTimestamp'] == null ? undefined : (new Date(json['deletionTimestamp'])), + 'finalizers': json['finalizers'] == null ? undefined : json['finalizers'], + 'generateName': json['generateName'] == null ? undefined : json['generateName'], + 'generation': json['generation'] == null ? undefined : json['generation'], + 'labels': json['labels'] == null ? undefined : json['labels'], + 'managedFields': json['managedFields'] == null ? undefined : ((json['managedFields'] as Array).map(IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntryFromJSON)), + 'name': json['name'] == null ? undefined : json['name'], + 'namespace': json['namespace'] == null ? undefined : json['namespace'], + 'ownerReferences': json['ownerReferences'] == null ? undefined : ((json['ownerReferences'] as Array).map(IoK8sApimachineryPkgApisMetaV1OwnerReferenceFromJSON)), + 'resourceVersion': json['resourceVersion'] == null ? undefined : json['resourceVersion'], + 'selfLink': json['selfLink'] == null ? undefined : json['selfLink'], + 'uid': json['uid'] == null ? undefined : json['uid'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1ObjectMetaToJSON(value?: IoK8sApimachineryPkgApisMetaV1ObjectMeta | null): any { + if (value == null) { + return value; + } + return { + + 'annotations': value['annotations'], + 'creationTimestamp': value['creationTimestamp'] == null ? undefined : ((value['creationTimestamp']).toISOString()), + 'deletionGracePeriodSeconds': value['deletionGracePeriodSeconds'], + 'deletionTimestamp': value['deletionTimestamp'] == null ? undefined : ((value['deletionTimestamp']).toISOString()), + 'finalizers': value['finalizers'], + 'generateName': value['generateName'], + 'generation': value['generation'], + 'labels': value['labels'], + 'managedFields': value['managedFields'] == null ? undefined : ((value['managedFields'] as Array).map(IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntryToJSON)), + 'name': value['name'], + 'namespace': value['namespace'], + 'ownerReferences': value['ownerReferences'] == null ? undefined : ((value['ownerReferences'] as Array).map(IoK8sApimachineryPkgApisMetaV1OwnerReferenceToJSON)), + 'resourceVersion': value['resourceVersion'], + 'selfLink': value['selfLink'], + 'uid': value['uid'], + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1OwnerReference.ts b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1OwnerReference.ts new file mode 100644 index 0000000..ec5d395 --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1OwnerReference.ts @@ -0,0 +1,104 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * 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. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1OwnerReference + */ +export interface IoK8sApimachineryPkgApisMetaV1OwnerReference { + /** + * API version of the referent. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1OwnerReference + */ + 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. + * @type {boolean} + * @memberof IoK8sApimachineryPkgApisMetaV1OwnerReference + */ + blockOwnerDeletion?: boolean; + /** + * If true, this reference points to the managing controller. + * @type {boolean} + * @memberof IoK8sApimachineryPkgApisMetaV1OwnerReference + */ + controller?: boolean; + /** + * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1OwnerReference + */ + kind: string; + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1OwnerReference + */ + name: string; + /** + * UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1OwnerReference + */ + uid: string; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1OwnerReference interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1OwnerReference(value: object): value is IoK8sApimachineryPkgApisMetaV1OwnerReference { + if (!('apiVersion' in value) || value['apiVersion'] === undefined) return false; + if (!('kind' in value) || value['kind'] === undefined) return false; + if (!('name' in value) || value['name'] === undefined) return false; + if (!('uid' in value) || value['uid'] === undefined) return false; + return true; +} + +export function IoK8sApimachineryPkgApisMetaV1OwnerReferenceFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1OwnerReference { + return IoK8sApimachineryPkgApisMetaV1OwnerReferenceFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1OwnerReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1OwnerReference { + if (json == null) { + return json; + } + return { + + 'apiVersion': json['apiVersion'], + 'blockOwnerDeletion': json['blockOwnerDeletion'] == null ? undefined : json['blockOwnerDeletion'], + 'controller': json['controller'] == null ? undefined : json['controller'], + 'kind': json['kind'], + 'name': json['name'], + 'uid': json['uid'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1OwnerReferenceToJSON(value?: IoK8sApimachineryPkgApisMetaV1OwnerReference | null): any { + if (value == null) { + return value; + } + return { + + 'apiVersion': value['apiVersion'], + 'blockOwnerDeletion': value['blockOwnerDeletion'], + 'controller': value['controller'], + 'kind': value['kind'], + 'name': value['name'], + 'uid': value['uid'], + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1Preconditions.ts b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1Preconditions.ts new file mode 100644 index 0000000..a6d3ae2 --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1Preconditions.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1Preconditions + */ +export interface IoK8sApimachineryPkgApisMetaV1Preconditions { + /** + * Specifies the target ResourceVersion + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1Preconditions + */ + resourceVersion?: string; + /** + * Specifies the target UID. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1Preconditions + */ + uid?: string; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1Preconditions interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1Preconditions(value: object): value is IoK8sApimachineryPkgApisMetaV1Preconditions { + return true; +} + +export function IoK8sApimachineryPkgApisMetaV1PreconditionsFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1Preconditions { + return IoK8sApimachineryPkgApisMetaV1PreconditionsFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1PreconditionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1Preconditions { + if (json == null) { + return json; + } + return { + + 'resourceVersion': json['resourceVersion'] == null ? undefined : json['resourceVersion'], + 'uid': json['uid'] == null ? undefined : json['uid'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1PreconditionsToJSON(value?: IoK8sApimachineryPkgApisMetaV1Preconditions | null): any { + if (value == null) { + return value; + } + return { + + 'resourceVersion': value['resourceVersion'], + 'uid': value['uid'], + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR.ts b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR.ts new file mode 100644 index 0000000..8b9840e --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR + */ +export interface IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR { + /** + * The CIDR with which clients can match their IP to figure out the server address that they should use. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR + */ + clientCIDR: string; + /** + * Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR + */ + serverAddress: string; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR(value: object): value is IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR { + if (!('clientCIDR' in value) || value['clientCIDR'] === undefined) return false; + if (!('serverAddress' in value) || value['serverAddress'] === undefined) return false; + return true; +} + +export function IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDRFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR { + return IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDRFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDRFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR { + if (json == null) { + return json; + } + return { + + 'clientCIDR': json['clientCIDR'], + 'serverAddress': json['serverAddress'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDRToJSON(value?: IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR | null): any { + if (value == null) { + return value; + } + return { + + 'clientCIDR': value['clientCIDR'], + 'serverAddress': value['serverAddress'], + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1Status.ts b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1Status.ts new file mode 100644 index 0000000..bc502b1 --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1Status.ts @@ -0,0 +1,129 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1StatusDetails } from './IoK8sApimachineryPkgApisMetaV1StatusDetails'; +import { + IoK8sApimachineryPkgApisMetaV1StatusDetailsFromJSON, + IoK8sApimachineryPkgApisMetaV1StatusDetailsFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1StatusDetailsToJSON, +} from './IoK8sApimachineryPkgApisMetaV1StatusDetails'; +import type { IoK8sApimachineryPkgApisMetaV1ListMeta } from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +import { + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON, + IoK8sApimachineryPkgApisMetaV1ListMetaFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1ListMetaToJSON, +} from './IoK8sApimachineryPkgApisMetaV1ListMeta'; + +/** + * Status is a return value for calls that don't return other objects. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1Status + */ +export interface IoK8sApimachineryPkgApisMetaV1Status { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1Status + */ + apiVersion?: string; + /** + * Suggested HTTP return code for this status, 0 if not set. + * @type {number} + * @memberof IoK8sApimachineryPkgApisMetaV1Status + */ + code?: number; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1StatusDetails} + * @memberof IoK8sApimachineryPkgApisMetaV1Status + */ + details?: IoK8sApimachineryPkgApisMetaV1StatusDetails; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1Status + */ + kind?: string; + /** + * A human-readable description of the status of this operation. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1Status + */ + message?: string; + /** + * + * @type {IoK8sApimachineryPkgApisMetaV1ListMeta} + * @memberof IoK8sApimachineryPkgApisMetaV1Status + */ + metadata?: IoK8sApimachineryPkgApisMetaV1ListMeta; + /** + * 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. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1Status + */ + reason?: string; + /** + * Status of the operation. One of: "Success" or "Failure". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1Status + */ + status?: string; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1Status interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1Status(value: object): value is IoK8sApimachineryPkgApisMetaV1Status { + return true; +} + +export function IoK8sApimachineryPkgApisMetaV1StatusFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1Status { + return IoK8sApimachineryPkgApisMetaV1StatusFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1StatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1Status { + if (json == null) { + return json; + } + return { + + 'apiVersion': json['apiVersion'] == null ? undefined : json['apiVersion'], + 'code': json['code'] == null ? undefined : json['code'], + 'details': json['details'] == null ? undefined : IoK8sApimachineryPkgApisMetaV1StatusDetailsFromJSON(json['details']), + 'kind': json['kind'] == null ? undefined : json['kind'], + 'message': json['message'] == null ? undefined : json['message'], + 'metadata': json['metadata'] == null ? undefined : IoK8sApimachineryPkgApisMetaV1ListMetaFromJSON(json['metadata']), + 'reason': json['reason'] == null ? undefined : json['reason'], + 'status': json['status'] == null ? undefined : json['status'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1StatusToJSON(value?: IoK8sApimachineryPkgApisMetaV1Status | null): any { + if (value == null) { + return value; + } + return { + + 'apiVersion': value['apiVersion'], + 'code': value['code'], + 'details': IoK8sApimachineryPkgApisMetaV1StatusDetailsToJSON(value['details']), + 'kind': value['kind'], + 'message': value['message'], + 'metadata': IoK8sApimachineryPkgApisMetaV1ListMetaToJSON(value['metadata']), + 'reason': value['reason'], + 'status': value['status'], + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1StatusCause.ts b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1StatusCause.ts new file mode 100644 index 0000000..f2ae272 --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1StatusCause.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1StatusCause + */ +export interface IoK8sApimachineryPkgApisMetaV1StatusCause { + /** + * 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" + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1StatusCause + */ + field?: string; + /** + * A human-readable description of the cause of the error. This field may be presented as-is to a reader. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1StatusCause + */ + message?: string; + /** + * A machine-readable description of the cause of the error. If this value is empty there is no information available. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1StatusCause + */ + reason?: string; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1StatusCause interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1StatusCause(value: object): value is IoK8sApimachineryPkgApisMetaV1StatusCause { + return true; +} + +export function IoK8sApimachineryPkgApisMetaV1StatusCauseFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1StatusCause { + return IoK8sApimachineryPkgApisMetaV1StatusCauseFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1StatusCauseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1StatusCause { + if (json == null) { + return json; + } + return { + + 'field': json['field'] == null ? undefined : json['field'], + 'message': json['message'] == null ? undefined : json['message'], + 'reason': json['reason'] == null ? undefined : json['reason'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1StatusCauseToJSON(value?: IoK8sApimachineryPkgApisMetaV1StatusCause | null): any { + if (value == null) { + return value; + } + return { + + 'field': value['field'], + 'message': value['message'], + 'reason': value['reason'], + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1StatusDetails.ts b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1StatusDetails.ts new file mode 100644 index 0000000..d51fd41 --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1StatusDetails.ts @@ -0,0 +1,107 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { IoK8sApimachineryPkgApisMetaV1StatusCause } from './IoK8sApimachineryPkgApisMetaV1StatusCause'; +import { + IoK8sApimachineryPkgApisMetaV1StatusCauseFromJSON, + IoK8sApimachineryPkgApisMetaV1StatusCauseFromJSONTyped, + IoK8sApimachineryPkgApisMetaV1StatusCauseToJSON, +} from './IoK8sApimachineryPkgApisMetaV1StatusCause'; + +/** + * 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. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1StatusDetails + */ +export interface IoK8sApimachineryPkgApisMetaV1StatusDetails { + /** + * The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. + * @type {Array} + * @memberof IoK8sApimachineryPkgApisMetaV1StatusDetails + */ + causes?: Array; + /** + * The group attribute of the resource associated with the status StatusReason. + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1StatusDetails + */ + 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 + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1StatusDetails + */ + kind?: string; + /** + * The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1StatusDetails + */ + 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. + * @type {number} + * @memberof IoK8sApimachineryPkgApisMetaV1StatusDetails + */ + retryAfterSeconds?: number; + /** + * UID of the resource. (when there is a single resource which can be described). More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1StatusDetails + */ + uid?: string; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1StatusDetails interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1StatusDetails(value: object): value is IoK8sApimachineryPkgApisMetaV1StatusDetails { + return true; +} + +export function IoK8sApimachineryPkgApisMetaV1StatusDetailsFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1StatusDetails { + return IoK8sApimachineryPkgApisMetaV1StatusDetailsFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1StatusDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1StatusDetails { + if (json == null) { + return json; + } + return { + + 'causes': json['causes'] == null ? undefined : ((json['causes'] as Array).map(IoK8sApimachineryPkgApisMetaV1StatusCauseFromJSON)), + 'group': json['group'] == null ? undefined : json['group'], + 'kind': json['kind'] == null ? undefined : json['kind'], + 'name': json['name'] == null ? undefined : json['name'], + 'retryAfterSeconds': json['retryAfterSeconds'] == null ? undefined : json['retryAfterSeconds'], + 'uid': json['uid'] == null ? undefined : json['uid'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1StatusDetailsToJSON(value?: IoK8sApimachineryPkgApisMetaV1StatusDetails | null): any { + if (value == null) { + return value; + } + return { + + 'causes': value['causes'] == null ? undefined : ((value['causes'] as Array).map(IoK8sApimachineryPkgApisMetaV1StatusCauseToJSON)), + 'group': value['group'], + 'kind': value['kind'], + 'name': value['name'], + 'retryAfterSeconds': value['retryAfterSeconds'], + 'uid': value['uid'], + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1WatchEvent.ts b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1WatchEvent.ts new file mode 100644 index 0000000..eddaff6 --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgApisMetaV1WatchEvent.ts @@ -0,0 +1,107 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * Event represents a single event to a watched resource. + * @export + * @interface IoK8sApimachineryPkgApisMetaV1WatchEvent + */ +export interface IoK8sApimachineryPkgApisMetaV1WatchEvent { + /** + * RawExtension is used to hold extensions in external versions. + * + * To use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types. + * + * // Internal package: + * + * type MyAPIObject struct { + * runtime.TypeMeta `json:",inline"` + * MyPlugin runtime.Object `json:"myPlugin"` + * } + * + * type PluginA struct { + * AOption string `json:"aOption"` + * } + * + * // External package: + * + * type MyAPIObject struct { + * runtime.TypeMeta `json:",inline"` + * MyPlugin runtime.RawExtension `json:"myPlugin"` + * } + * + * type PluginA struct { + * AOption string `json:"aOption"` + * } + * + * // On the wire, the JSON will look something like this: + * + * { + * "kind":"MyAPIObject", + * "apiVersion":"v1", + * "myPlugin": { + * "kind":"PluginA", + * "aOption":"foo", + * }, + * } + * + * So what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.) + * @type {object} + * @memberof IoK8sApimachineryPkgApisMetaV1WatchEvent + */ + object: object; + /** + * + * @type {string} + * @memberof IoK8sApimachineryPkgApisMetaV1WatchEvent + */ + type: string; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgApisMetaV1WatchEvent interface. + */ +export function instanceOfIoK8sApimachineryPkgApisMetaV1WatchEvent(value: object): value is IoK8sApimachineryPkgApisMetaV1WatchEvent { + if (!('object' in value) || value['object'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + return true; +} + +export function IoK8sApimachineryPkgApisMetaV1WatchEventFromJSON(json: any): IoK8sApimachineryPkgApisMetaV1WatchEvent { + return IoK8sApimachineryPkgApisMetaV1WatchEventFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgApisMetaV1WatchEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgApisMetaV1WatchEvent { + if (json == null) { + return json; + } + return { + + 'object': json['object'], + 'type': json['type'], + }; +} + +export function IoK8sApimachineryPkgApisMetaV1WatchEventToJSON(value?: IoK8sApimachineryPkgApisMetaV1WatchEvent | null): any { + if (value == null) { + return value; + } + return { + + 'object': value['object'], + 'type': value['type'], + }; +} + diff --git a/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgVersionInfo.ts b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgVersionInfo.ts new file mode 100644 index 0000000..c182501 --- /dev/null +++ b/generated/sdk/ts-fetch/models/IoK8sApimachineryPkgVersionInfo.ts @@ -0,0 +1,133 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * Info contains versioning information. how we'll want to distribute that information. + * @export + * @interface IoK8sApimachineryPkgVersionInfo + */ +export interface IoK8sApimachineryPkgVersionInfo { + /** + * + * @type {string} + * @memberof IoK8sApimachineryPkgVersionInfo + */ + buildDate: string; + /** + * + * @type {string} + * @memberof IoK8sApimachineryPkgVersionInfo + */ + compiler: string; + /** + * + * @type {string} + * @memberof IoK8sApimachineryPkgVersionInfo + */ + gitCommit: string; + /** + * + * @type {string} + * @memberof IoK8sApimachineryPkgVersionInfo + */ + gitTreeState: string; + /** + * + * @type {string} + * @memberof IoK8sApimachineryPkgVersionInfo + */ + gitVersion: string; + /** + * + * @type {string} + * @memberof IoK8sApimachineryPkgVersionInfo + */ + goVersion: string; + /** + * + * @type {string} + * @memberof IoK8sApimachineryPkgVersionInfo + */ + major: string; + /** + * + * @type {string} + * @memberof IoK8sApimachineryPkgVersionInfo + */ + minor: string; + /** + * + * @type {string} + * @memberof IoK8sApimachineryPkgVersionInfo + */ + platform: string; +} + +/** + * Check if a given object implements the IoK8sApimachineryPkgVersionInfo interface. + */ +export function instanceOfIoK8sApimachineryPkgVersionInfo(value: object): value is IoK8sApimachineryPkgVersionInfo { + if (!('buildDate' in value) || value['buildDate'] === undefined) return false; + if (!('compiler' in value) || value['compiler'] === undefined) return false; + if (!('gitCommit' in value) || value['gitCommit'] === undefined) return false; + if (!('gitTreeState' in value) || value['gitTreeState'] === undefined) return false; + if (!('gitVersion' in value) || value['gitVersion'] === undefined) return false; + if (!('goVersion' in value) || value['goVersion'] === undefined) return false; + if (!('major' in value) || value['major'] === undefined) return false; + if (!('minor' in value) || value['minor'] === undefined) return false; + if (!('platform' in value) || value['platform'] === undefined) return false; + return true; +} + +export function IoK8sApimachineryPkgVersionInfoFromJSON(json: any): IoK8sApimachineryPkgVersionInfo { + return IoK8sApimachineryPkgVersionInfoFromJSONTyped(json, false); +} + +export function IoK8sApimachineryPkgVersionInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoK8sApimachineryPkgVersionInfo { + if (json == null) { + return json; + } + return { + + 'buildDate': json['buildDate'], + 'compiler': json['compiler'], + 'gitCommit': json['gitCommit'], + 'gitTreeState': json['gitTreeState'], + 'gitVersion': json['gitVersion'], + 'goVersion': json['goVersion'], + 'major': json['major'], + 'minor': json['minor'], + 'platform': json['platform'], + }; +} + +export function IoK8sApimachineryPkgVersionInfoToJSON(value?: IoK8sApimachineryPkgVersionInfo | null): any { + if (value == null) { + return value; + } + return { + + 'buildDate': value['buildDate'], + 'compiler': value['compiler'], + 'gitCommit': value['gitCommit'], + 'gitTreeState': value['gitTreeState'], + 'gitVersion': value['gitVersion'], + 'goVersion': value['goVersion'], + 'major': value['major'], + 'minor': value['minor'], + 'platform': value['platform'], + }; +} + diff --git a/generated/sdk/ts-fetch/models/index.ts b/generated/sdk/ts-fetch/models/index.ts new file mode 100644 index 0000000..e3f97b5 --- /dev/null +++ b/generated/sdk/ts-fetch/models/index.ts @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +export * from './IoGithub1eedaegonPipelineV1Pipeline'; +export * from './IoGithub1eedaegonPipelineV1PipelineList'; +export * from './IoGithub1eedaegonPipelineV1PipelineSpec'; +export * from './IoGithub1eedaegonPipelineV1PipelineSpecHistoryLimit'; +export * from './IoGithub1eedaegonPipelineV1PipelineSpecResource'; +export * from './IoGithub1eedaegonPipelineV1PipelineSpecResourceGpu'; +export * from './IoGithub1eedaegonPipelineV1PipelineSpecSchedule'; +export * from './IoGithub1eedaegonPipelineV1PipelineSpecTasksInner'; +export * from './IoGithub1eedaegonPipelineV1PipelineSpecVolumesInner'; +export * from './IoGithub1eedaegonPipelineV1PipelineStatus'; +export * from './IoGithub1eedaegonPipelineV1Run'; +export * from './IoGithub1eedaegonPipelineV1RunList'; +export * from './IoGithub1eedaegonPipelineV1RunSpec'; +export * from './IoGithub1eedaegonPipelineV1RunSpecJobsInner'; +export * from './IoGithub1eedaegonPipelineV1RunStatus'; +export * from './IoGithub1eedaegonPipelineV1RunStatusJobStatesInner'; +export * from './IoGithub1eedaegonPipelineV1Task'; +export * from './IoGithub1eedaegonPipelineV1TaskList'; +export * from './IoGithub1eedaegonPipelineV1TaskSpec'; +export * from './IoGithub1eedaegonPipelineV1TaskStatus'; +export * from './IoK8sApimachineryPkgApisMetaV1APIGroup'; +export * from './IoK8sApimachineryPkgApisMetaV1APIGroupList'; +export * from './IoK8sApimachineryPkgApisMetaV1APIResource'; +export * from './IoK8sApimachineryPkgApisMetaV1APIResourceList'; +export * from './IoK8sApimachineryPkgApisMetaV1APIVersions'; +export * from './IoK8sApimachineryPkgApisMetaV1Condition'; +export * from './IoK8sApimachineryPkgApisMetaV1DeleteOptions'; +export * from './IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery'; +export * from './IoK8sApimachineryPkgApisMetaV1LabelSelector'; +export * from './IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement'; +export * from './IoK8sApimachineryPkgApisMetaV1ListMeta'; +export * from './IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry'; +export * from './IoK8sApimachineryPkgApisMetaV1ObjectMeta'; +export * from './IoK8sApimachineryPkgApisMetaV1OwnerReference'; +export * from './IoK8sApimachineryPkgApisMetaV1Preconditions'; +export * from './IoK8sApimachineryPkgApisMetaV1ServerAddressByClientCIDR'; +export * from './IoK8sApimachineryPkgApisMetaV1Status'; +export * from './IoK8sApimachineryPkgApisMetaV1StatusCause'; +export * from './IoK8sApimachineryPkgApisMetaV1StatusDetails'; +export * from './IoK8sApimachineryPkgApisMetaV1WatchEvent'; +export * from './IoK8sApimachineryPkgVersionInfo'; diff --git a/generated/sdk/ts-fetch/package.json b/generated/sdk/ts-fetch/package.json new file mode 100644 index 0000000..fca93c9 --- /dev/null +++ b/generated/sdk/ts-fetch/package.json @@ -0,0 +1,15 @@ +{ + "name": "pipeline-operator-ts-fetch-sdk", + "version": "1.0.0", + "description": "Pipeline operator for k8s native", + "main": "index.ts", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "1eedaegon & pipeline operator authors", + "repository": { + "type": "git", + "url": "https://github.com/DPS0340/pipeline-operator" + }, + "license": "Apache-2.0" +} diff --git a/generated/sdk/ts-fetch/runtime.ts b/generated/sdk/ts-fetch/runtime.ts new file mode 100644 index 0000000..df2316c --- /dev/null +++ b/generated/sdk/ts-fetch/runtime.ts @@ -0,0 +1,426 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.30.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export const BASE_PATH = "http://localhost".replace(/\/+$/, ""); + +export interface ConfigurationParameters { + basePath?: string; // override base path + fetchApi?: FetchAPI; // override for fetch implementation + middleware?: Middleware[]; // middleware to apply before/after fetch requests + queryParamsStringify?: (params: HTTPQuery) => string; // stringify function for query strings + username?: string; // parameter for basic security + password?: string; // parameter for basic security + apiKey?: string | Promise | ((name: string) => string | Promise); // parameter for apiKey security + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string | Promise); // parameter for oauth2 security + headers?: HTTPHeaders; //header params we want to use on every request + credentials?: RequestCredentials; //value for the credentials param we want to use on each request +} + +export class Configuration { + constructor(private configuration: ConfigurationParameters = {}) {} + + set config(configuration: Configuration) { + this.configuration = configuration; + } + + get basePath(): string { + return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH; + } + + get fetchApi(): FetchAPI | undefined { + return this.configuration.fetchApi; + } + + get middleware(): Middleware[] { + return this.configuration.middleware || []; + } + + get queryParamsStringify(): (params: HTTPQuery) => string { + return this.configuration.queryParamsStringify || querystring; + } + + get username(): string | undefined { + return this.configuration.username; + } + + get password(): string | undefined { + return this.configuration.password; + } + + get apiKey(): ((name: string) => string | Promise) | undefined { + const apiKey = this.configuration.apiKey; + if (apiKey) { + return typeof apiKey === 'function' ? apiKey : () => apiKey; + } + return undefined; + } + + get accessToken(): ((name?: string, scopes?: string[]) => string | Promise) | undefined { + const accessToken = this.configuration.accessToken; + if (accessToken) { + return typeof accessToken === 'function' ? accessToken : async () => accessToken; + } + return undefined; + } + + get headers(): HTTPHeaders | undefined { + return this.configuration.headers; + } + + get credentials(): RequestCredentials | undefined { + return this.configuration.credentials; + } +} + +export const DefaultConfig = new Configuration(); + +/** + * This is the base class for all generated API classes. + */ +export class BaseAPI { + + private static readonly jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i'); + private middleware: Middleware[]; + + constructor(protected configuration = DefaultConfig) { + this.middleware = configuration.middleware; + } + + withMiddleware(this: T, ...middlewares: Middleware[]) { + const next = this.clone(); + next.middleware = next.middleware.concat(...middlewares); + return next; + } + + withPreMiddleware(this: T, ...preMiddlewares: Array) { + const middlewares = preMiddlewares.map((pre) => ({ pre })); + return this.withMiddleware(...middlewares); + } + + withPostMiddleware(this: T, ...postMiddlewares: Array) { + const middlewares = postMiddlewares.map((post) => ({ post })); + return this.withMiddleware(...middlewares); + } + + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + protected isJsonMime(mime: string | null | undefined): boolean { + if (!mime) { + return false; + } + return BaseAPI.jsonRegex.test(mime); + } + + protected async request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise { + const { url, init } = await this.createFetchParams(context, initOverrides); + const response = await this.fetchApi(url, init); + if (response && (response.status >= 200 && response.status < 300)) { + return response; + } + throw new ResponseError(response, 'Response returned an error code'); + } + + private async createFetchParams(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction) { + let url = this.configuration.basePath + context.path; + if (context.query !== undefined && Object.keys(context.query).length !== 0) { + // only add the querystring to the URL if there are query parameters. + // this is done to avoid urls ending with a "?" character which buggy webservers + // do not handle correctly sometimes. + url += '?' + this.configuration.queryParamsStringify(context.query); + } + + const headers = Object.assign({}, this.configuration.headers, context.headers); + Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {}); + + const initOverrideFn = + typeof initOverrides === "function" + ? initOverrides + : async () => initOverrides; + + const initParams = { + method: context.method, + headers, + body: context.body, + credentials: this.configuration.credentials, + }; + + const overriddenInit: RequestInit = { + ...initParams, + ...(await initOverrideFn({ + init: initParams, + context, + })) + }; + + let body: any; + if (isFormData(overriddenInit.body) + || (overriddenInit.body instanceof URLSearchParams) + || isBlob(overriddenInit.body)) { + body = overriddenInit.body; + } else if (this.isJsonMime(headers['Content-Type'])) { + body = JSON.stringify(overriddenInit.body); + } else { + body = overriddenInit.body; + } + + const init: RequestInit = { + ...overriddenInit, + body + }; + + return { url, init }; + } + + private fetchApi = async (url: string, init: RequestInit) => { + let fetchParams = { url, init }; + for (const middleware of this.middleware) { + if (middleware.pre) { + fetchParams = await middleware.pre({ + fetch: this.fetchApi, + ...fetchParams, + }) || fetchParams; + } + } + let response: Response | undefined = undefined; + try { + response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init); + } catch (e) { + for (const middleware of this.middleware) { + if (middleware.onError) { + response = await middleware.onError({ + fetch: this.fetchApi, + url: fetchParams.url, + init: fetchParams.init, + error: e, + response: response ? response.clone() : undefined, + }) || response; + } + } + if (response === undefined) { + if (e instanceof Error) { + throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response'); + } else { + throw e; + } + } + } + for (const middleware of this.middleware) { + if (middleware.post) { + response = await middleware.post({ + fetch: this.fetchApi, + url: fetchParams.url, + init: fetchParams.init, + response: response.clone(), + }) || response; + } + } + return response; + } + + /** + * Create a shallow clone of `this` by constructing a new instance + * and then shallow cloning data members. + */ + private clone(this: T): T { + const constructor = this.constructor as any; + const next = new constructor(this.configuration); + next.middleware = this.middleware.slice(); + return next; + } +}; + +function isBlob(value: any): value is Blob { + return typeof Blob !== 'undefined' && value instanceof Blob; +} + +function isFormData(value: any): value is FormData { + return typeof FormData !== "undefined" && value instanceof FormData; +} + +export class ResponseError extends Error { + override name: "ResponseError" = "ResponseError"; + constructor(public response: Response, msg?: string) { + super(msg); + } +} + +export class FetchError extends Error { + override name: "FetchError" = "FetchError"; + constructor(public cause: Error, msg?: string) { + super(msg); + } +} + +export class RequiredError extends Error { + override name: "RequiredError" = "RequiredError"; + constructor(public field: string, msg?: string) { + super(msg); + } +} + +export const COLLECTION_FORMATS = { + csv: ",", + ssv: " ", + tsv: "\t", + pipes: "|", +}; + +export type FetchAPI = WindowOrWorkerGlobalScope['fetch']; + +export type Json = any; +export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD'; +export type HTTPHeaders = { [key: string]: string }; +export type HTTPQuery = { [key: string]: string | number | null | boolean | Array | Set | HTTPQuery }; +export type HTTPBody = Json | FormData | URLSearchParams; +export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody }; +export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original'; + +export type InitOverrideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise + +export interface FetchParams { + url: string; + init: RequestInit; +} + +export interface RequestOpts { + path: string; + method: HTTPMethod; + headers: HTTPHeaders; + query?: HTTPQuery; + body?: HTTPBody; +} + +export function querystring(params: HTTPQuery, prefix: string = ''): string { + return Object.keys(params) + .map(key => querystringSingleKey(key, params[key], prefix)) + .filter(part => part.length > 0) + .join('&'); +} + +function querystringSingleKey(key: string, value: string | number | null | undefined | boolean | Array | Set | HTTPQuery, keyPrefix: string = ''): string { + const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key); + if (value instanceof Array) { + const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue))) + .join(`&${encodeURIComponent(fullKey)}=`); + return `${encodeURIComponent(fullKey)}=${multiValue}`; + } + if (value instanceof Set) { + const valueAsArray = Array.from(value); + return querystringSingleKey(key, valueAsArray, keyPrefix); + } + if (value instanceof Date) { + return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`; + } + if (value instanceof Object) { + return querystring(value as HTTPQuery, fullKey); + } + return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`; +} + +export function mapValues(data: any, fn: (item: any) => any) { + return Object.keys(data).reduce( + (acc, key) => ({ ...acc, [key]: fn(data[key]) }), + {} + ); +} + +export function canConsumeForm(consumes: Consume[]): boolean { + for (const consume of consumes) { + if ('multipart/form-data' === consume.contentType) { + return true; + } + } + return false; +} + +export interface Consume { + contentType: string; +} + +export interface RequestContext { + fetch: FetchAPI; + url: string; + init: RequestInit; +} + +export interface ResponseContext { + fetch: FetchAPI; + url: string; + init: RequestInit; + response: Response; +} + +export interface ErrorContext { + fetch: FetchAPI; + url: string; + init: RequestInit; + error: unknown; + response?: Response; +} + +export interface Middleware { + pre?(context: RequestContext): Promise; + post?(context: ResponseContext): Promise; + onError?(context: ErrorContext): Promise; +} + +export interface ApiResponse { + raw: Response; + value(): Promise; +} + +export interface ResponseTransformer { + (json: any): T; +} + +export class JSONApiResponse { + constructor(public raw: Response, private transformer: ResponseTransformer = (jsonValue: any) => jsonValue) {} + + async value(): Promise { + return this.transformer(await this.raw.json()); + } +} + +export class VoidApiResponse { + constructor(public raw: Response) {} + + async value(): Promise { + return undefined; + } +} + +export class BlobApiResponse { + constructor(public raw: Response) {} + + async value(): Promise { + return await this.raw.blob(); + }; +} + +export class TextApiResponse { + constructor(public raw: Response) {} + + async value(): Promise { + return await this.raw.text(); + }; +} diff --git a/template/sdk/ts-fetch/package.json b/template/sdk/ts-fetch/package.json new file mode 100644 index 0000000..fca93c9 --- /dev/null +++ b/template/sdk/ts-fetch/package.json @@ -0,0 +1,15 @@ +{ + "name": "pipeline-operator-ts-fetch-sdk", + "version": "1.0.0", + "description": "Pipeline operator for k8s native", + "main": "index.ts", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "1eedaegon & pipeline operator authors", + "repository": { + "type": "git", + "url": "https://github.com/DPS0340/pipeline-operator" + }, + "license": "Apache-2.0" +}