From bcd19ba3818aa4a71a1d78ca9885868d43d356bc Mon Sep 17 00:00:00 2001 From: kahirokunn Date: Wed, 1 May 2024 14:51:49 +0900 Subject: [PATCH] feat: If args is not used, the args argument is not included. --- packages/kubekit-codegen/package.json | 2 +- packages/kubekit-codegen/src/codegen.ts | 31 +- packages/kubekit-codegen/src/generate.ts | 567 +++++------ .../test/__snapshots__/cli.test.ts.snap | 892 +++++------------- .../generateEndpoints.test.ts.snap | 140 +-- 5 files changed, 548 insertions(+), 1084 deletions(-) diff --git a/packages/kubekit-codegen/package.json b/packages/kubekit-codegen/package.json index e019f81f..621af668 100644 --- a/packages/kubekit-codegen/package.json +++ b/packages/kubekit-codegen/package.json @@ -1,6 +1,6 @@ { "name": "@kubekit/codegen", - "version": "0.0.15", + "version": "0.0.17", "main": "lib/index.js", "types": "lib/index.d.ts", "author": "kahirokunn", diff --git a/packages/kubekit-codegen/src/codegen.ts b/packages/kubekit-codegen/src/codegen.ts index 41cafda7..a6802d30 100644 --- a/packages/kubekit-codegen/src/codegen.ts +++ b/packages/kubekit-codegen/src/codegen.ts @@ -79,6 +79,7 @@ export function generateEndpointDefinition({ queryFn, isListWatch, isListOrWatch, + isUnusedArgs, }: { operationName: string; Response: ts.TypeReferenceNode; @@ -86,8 +87,12 @@ export function generateEndpointDefinition({ queryFn: ts.ObjectLiteralExpression; isListWatch: boolean; isListOrWatch: boolean; + isUnusedArgs: boolean; }) { - const CustomizedResponse = factory.createTypeReferenceNode(factory.createIdentifier(isListOrWatch ? "MinimumRequiredList" : "MinimumRequiredGet"), [Response]) + const CustomizedResponse = factory.createTypeReferenceNode( + factory.createIdentifier(isListOrWatch ? 'MinimumRequiredList' : 'MinimumRequiredGet'), + [Response] + ); if (!isListWatch) { return [ factory.createVariableStatement( @@ -102,14 +107,18 @@ export function generateEndpointDefinition({ undefined, undefined, [ - factory.createParameterDeclaration( - undefined, - undefined, - factory.createIdentifier('args'), - undefined, - QueryArg, - undefined - ), + ...(isUnusedArgs + ? [] + : [ + factory.createParameterDeclaration( + undefined, + undefined, + factory.createIdentifier('args'), + undefined, + QueryArg, + undefined + ), + ]), factory.createParameterDeclaration( undefined, undefined, @@ -165,9 +174,7 @@ export function generateEndpointDefinition({ undefined ), ], - factory.createTypeReferenceNode(factory.createIdentifier('Promise'), [ - CustomizedResponse - ]), + factory.createTypeReferenceNode(factory.createIdentifier('Promise'), [CustomizedResponse]), undefined ), factory.createFunctionDeclaration( diff --git a/packages/kubekit-codegen/src/generate.ts b/packages/kubekit-codegen/src/generate.ts index 224aa7de..7cf31794 100644 --- a/packages/kubekit-codegen/src/generate.ts +++ b/packages/kubekit-codegen/src/generate.ts @@ -270,8 +270,7 @@ export async function generateApi( }; const queryArgValues = Object.values(queryArg); - const isListOrWatch = - operationName.startsWith("list") || operationName.startsWith("watch") + const isListOrWatch = operationName.startsWith('list') || operationName.startsWith('watch'); const isListWatch = !path.includes('/watch/') && verb.toUpperCase() === 'GET' && @@ -318,11 +317,13 @@ export async function generateApi( ).name ); + const { queryFn, isUnusedArgs } = generateQueryFn({ operationDefinition, queryArg }); return generateEndpointDefinition({ operationName, Response: ResponseTypeName, QueryArg, - queryFn: generateQueryFn({ operationDefinition, queryArg }), + isUnusedArgs, + queryFn, isListWatch, isListOrWatch, }); @@ -337,58 +338,122 @@ export async function generateApi( }) { const { path, verb } = operationDefinition; + let isUnusedArgs = true; const bodyParameter = Object.values(queryArg).find((def) => def.origin === 'body'); - const rootObject = factory.createIdentifier('args'); + if (bodyParameter) { + isUnusedArgs = false; + } + + const argsObject = factory.createIdentifier('args'); function pickParams(paramIn: string) { return Object.values(queryArg).filter((def) => def.origin === 'param' && def.param.in === paramIn); } function createObjectLiteralProperty(parameters: QueryArgDefinition[], propertyName: string) { - return parameters.length === 0 - ? undefined - : factory.createPropertyAssignment( - factory.createIdentifier(propertyName), - factory.createObjectLiteralExpression( - parameters.map( - (param) => createPropertyAssignment(param.originalName, accessProperty(rootObject, param.name)), - true + if (parameters.length === 0) { + return undefined; + } + isUnusedArgs = false; + return factory.createPropertyAssignment( + factory.createIdentifier(propertyName), + factory.createObjectLiteralExpression( + parameters.map( + (param) => createPropertyAssignment(param.originalName, accessProperty(argsObject, param.name)), + true + ) + ) + ); + } + + function generatePathExpression( + path: string, + pathParameters: QueryArgDefinition[], + rootObject: ts.Identifier, + strict: boolean + ) { + const expressions: Array<[string, string]> = []; + + const head = path.replace(/\{(.*?)\}(.*?)(?=\{|$)/g, (_, expression, literal) => { + let param = pathParameters.find((p) => p.originalName === expression); + if (!param) { + if (strict) { + throw new Error(`path parameter ${expression} does not seem to be defined in '${path}'!`); + } + param = { + origin: 'param', + name: expression, + originalName: expression, + type: factory.createToken(ts.SyntaxKind.StringKeyword), + required: true, + param: { + name: expression, + in: 'path', + description: 'The name that needs to be deleted', + required: true, + schema: { type: 'string' }, + }, + }; + pathParameters.push(param); + } + + if (pathParameters.length > 0) { + isUnusedArgs = false; + } + + expressions.push([param.name, literal]); + return ''; + }); + + return expressions.length + ? factory.createTemplateExpression( + factory.createTemplateHead(head), + expressions.map(([prop, literal], index) => + factory.createTemplateSpan( + accessProperty(rootObject, prop), + index === expressions.length - 1 + ? factory.createTemplateTail(literal) + : factory.createTemplateMiddle(literal) ) ) - ); + ) + : factory.createNoSubstitutionTemplateLiteral(head); } - return factory.createObjectLiteralExpression( - [ - factory.createPropertyAssignment( - factory.createIdentifier('path'), - generatePathExpression(path, pickParams('path'), rootObject, strict) - ), - verb.toUpperCase() === 'GET' - ? undefined - : factory.createPropertyAssignment( - factory.createIdentifier('method'), - factory.createStringLiteral(verb.toUpperCase()) - ), - ...(bodyParameter === undefined - ? [] - : [ - factory.createPropertyAssignment( - factory.createIdentifier('body'), - factory.createPropertyAccessExpression(rootObject, factory.createIdentifier(bodyParameter.name)) - ), - factory.createPropertyAssignment( - factory.createIdentifier('contentType'), - factory.createPropertyAccessExpression(rootObject, factory.createIdentifier('contentType')) + return { + isUnusedArgs, + queryFn: factory.createObjectLiteralExpression( + [ + factory.createPropertyAssignment( + factory.createIdentifier('path'), + generatePathExpression(path, pickParams('path'), argsObject, strict) + ), + verb.toUpperCase() === 'GET' + ? undefined + : factory.createPropertyAssignment( + factory.createIdentifier('method'), + factory.createStringLiteral(verb.toUpperCase()) ), - ]), - createObjectLiteralProperty(pickParams('cookie'), 'cookies'), - createObjectLiteralProperty(pickParams('header'), 'headers'), - createObjectLiteralProperty(pickParams('query'), 'params'), - ].filter(removeUndefined), - false - ); + ...(bodyParameter === undefined + ? [] + : [ + factory.createPropertyAssignment( + factory.createIdentifier('body'), + factory.createPropertyAccessExpression(argsObject, factory.createIdentifier(bodyParameter.name)) + ), + factory.createPropertyAssignment( + factory.createIdentifier('contentType'), + factory.createPropertyAccessExpression(argsObject, factory.createIdentifier('contentType')) + ), + ]), + createObjectLiteralProperty(pickParams('cookie'), 'cookies'), + createObjectLiteralProperty(pickParams('header'), 'headers'), + createObjectLiteralProperty(pickParams('query'), 'params'), + ].filter(removeUndefined), + false + ), + }; } } @@ -398,55 +463,6 @@ function accessProperty(rootObject: ts.Identifier, propertyName: string) { : factory.createElementAccessExpression(rootObject, factory.createStringLiteral(propertyName)); } -function generatePathExpression( - path: string, - pathParameters: QueryArgDefinition[], - rootObject: ts.Identifier, - strict: boolean -) { - const expressions: Array<[string, string]> = []; - - const head = path.replace(/\{(.*?)\}(.*?)(?=\{|$)/g, (_, expression, literal) => { - let param = pathParameters.find((p) => p.originalName === expression); - if (!param) { - if (strict) { - throw new Error(`path parameter ${expression} does not seem to be defined in '${path}'!`); - } - param = { - origin: 'param', - name: expression, - originalName: expression, - type: factory.createToken(ts.SyntaxKind.StringKeyword), - required: true, - param: { - name: expression, - in: 'path', - description: 'The name that needs to be deleted', - required: true, - schema: { type: 'string' }, - }, - }; - pathParameters.push(param); - } - expressions.push([param.name, literal]); - return ''; - }); - - return expressions.length - ? factory.createTemplateExpression( - factory.createTemplateHead(head), - expressions.map(([prop, literal], index) => - factory.createTemplateSpan( - accessProperty(rootObject, prop), - index === expressions.length - 1 - ? factory.createTemplateTail(literal) - : factory.createTemplateMiddle(literal) - ) - ) - ) - : factory.createNoSubstitutionTemplateLiteral(head); -} - type QueryArgDefinition = { name: string; originalName: string; @@ -516,298 +532,207 @@ function getBodyNode(bodies: { [contentType: string]: ts.TypeNode }): ts.TypeNod const buildInTypes = [ factory.createTypeAliasDeclaration( undefined, - factory.createIdentifier("Id"), - [factory.createTypeParameterDeclaration( - undefined, - factory.createIdentifier("T"), - undefined, - undefined - )], + factory.createIdentifier('Id'), + [factory.createTypeParameterDeclaration(undefined, factory.createIdentifier('T'), undefined, undefined)], factory.createIntersectionTypeNode([ factory.createMappedTypeNode( undefined, factory.createTypeParameterDeclaration( undefined, - factory.createIdentifier("K"), + factory.createIdentifier('K'), factory.createTypeOperatorNode( ts.SyntaxKind.KeyOfKeyword, - factory.createTypeReferenceNode( - factory.createIdentifier("T"), - undefined - ) + factory.createTypeReferenceNode(factory.createIdentifier('T'), undefined) ), undefined ), undefined, undefined, factory.createIndexedAccessTypeNode( - factory.createTypeReferenceNode( - factory.createIdentifier("T"), - undefined - ), - factory.createTypeReferenceNode( - factory.createIdentifier("K"), - undefined - ) + factory.createTypeReferenceNode(factory.createIdentifier('T'), undefined), + factory.createTypeReferenceNode(factory.createIdentifier('K'), undefined) ), - undefined, + undefined ), - factory.createTypeLiteralNode([]) + factory.createTypeLiteralNode([]), ]) ), factory.createTypeAliasDeclaration( undefined, - factory.createIdentifier("NoWatch"), - [factory.createTypeParameterDeclaration( - undefined, - factory.createIdentifier("T"), - undefined, - undefined - )], + factory.createIdentifier('NoWatch'), + [factory.createTypeParameterDeclaration(undefined, factory.createIdentifier('T'), undefined, undefined)], factory.createIntersectionTypeNode([ - factory.createTypeReferenceNode( - factory.createIdentifier("Omit"), - [ - factory.createTypeReferenceNode( - factory.createIdentifier("T"), - undefined - ), - factory.createLiteralTypeNode(factory.createStringLiteral("watch")) - ] - ), - factory.createTypeLiteralNode([factory.createPropertySignature( - undefined, - factory.createIdentifier("watch"), - factory.createToken(ts.SyntaxKind.QuestionToken), - factory.createLiteralTypeNode(factory.createFalse()) - )]) + factory.createTypeReferenceNode(factory.createIdentifier('Omit'), [ + factory.createTypeReferenceNode(factory.createIdentifier('T'), undefined), + factory.createLiteralTypeNode(factory.createStringLiteral('watch')), + ]), + factory.createTypeLiteralNode([ + factory.createPropertySignature( + undefined, + factory.createIdentifier('watch'), + factory.createToken(ts.SyntaxKind.QuestionToken), + factory.createLiteralTypeNode(factory.createFalse()) + ), + ]), ]) ), factory.createTypeAliasDeclaration( undefined, - factory.createIdentifier("PartialRequired"), + factory.createIdentifier('PartialRequired'), [ + factory.createTypeParameterDeclaration(undefined, factory.createIdentifier('T'), undefined, undefined), factory.createTypeParameterDeclaration( undefined, - factory.createIdentifier("T"), - undefined, - undefined - ), - factory.createTypeParameterDeclaration( - undefined, - factory.createIdentifier("K"), + factory.createIdentifier('K'), factory.createTypeOperatorNode( ts.SyntaxKind.KeyOfKeyword, - factory.createTypeReferenceNode( - factory.createIdentifier("T"), - undefined - ) + factory.createTypeReferenceNode(factory.createIdentifier('T'), undefined) ), undefined - ) + ), ], - factory.createTypeReferenceNode( - factory.createIdentifier("Id"), - [factory.createIntersectionTypeNode([ - factory.createTypeReferenceNode( - factory.createIdentifier("Required"), - [factory.createTypeReferenceNode( - factory.createIdentifier("Pick"), - [ - factory.createTypeReferenceNode( - factory.createIdentifier("T"), - undefined - ), - factory.createTypeReferenceNode( - factory.createIdentifier("K"), - undefined - ) - ] - )] - ), - factory.createTypeReferenceNode( - factory.createIdentifier("Omit"), - [ - factory.createTypeReferenceNode( - factory.createIdentifier("T"), - undefined - ), - factory.createTypeReferenceNode( - factory.createIdentifier("K"), - undefined - ) - ] - ) - ])] - ) + factory.createTypeReferenceNode(factory.createIdentifier('Id'), [ + factory.createIntersectionTypeNode([ + factory.createTypeReferenceNode(factory.createIdentifier('Required'), [ + factory.createTypeReferenceNode(factory.createIdentifier('Pick'), [ + factory.createTypeReferenceNode(factory.createIdentifier('T'), undefined), + factory.createTypeReferenceNode(factory.createIdentifier('K'), undefined), + ]), + ]), + factory.createTypeReferenceNode(factory.createIdentifier('Omit'), [ + factory.createTypeReferenceNode(factory.createIdentifier('T'), undefined), + factory.createTypeReferenceNode(factory.createIdentifier('K'), undefined), + ]), + ]), + ]) ), factory.createTypeAliasDeclaration( undefined, - factory.createIdentifier("MinimumRequiredGet"), - [factory.createTypeParameterDeclaration( - undefined, - factory.createIdentifier("T"), - undefined, - undefined - )], - factory.createTypeReferenceNode( - factory.createIdentifier("Id"), - [factory.createConditionalTypeNode( - factory.createTypeReferenceNode( - factory.createIdentifier("T"), - undefined - ), + factory.createIdentifier('MinimumRequiredGet'), + [factory.createTypeParameterDeclaration(undefined, factory.createIdentifier('T'), undefined, undefined)], + factory.createTypeReferenceNode(factory.createIdentifier('Id'), [ + factory.createConditionalTypeNode( + factory.createTypeReferenceNode(factory.createIdentifier('T'), undefined), factory.createTypeLiteralNode([ factory.createPropertySignature( undefined, - factory.createIdentifier("metadata"), + factory.createIdentifier('metadata'), factory.createToken(ts.SyntaxKind.QuestionToken), factory.createKeywordTypeNode(ts.SyntaxKind.AnyKeyword) ), factory.createPropertySignature( undefined, - factory.createIdentifier("apiVersion"), + factory.createIdentifier('apiVersion'), factory.createToken(ts.SyntaxKind.QuestionToken), factory.createKeywordTypeNode(ts.SyntaxKind.AnyKeyword) ), factory.createPropertySignature( undefined, - factory.createIdentifier("kind"), + factory.createIdentifier('kind'), factory.createToken(ts.SyntaxKind.QuestionToken), factory.createKeywordTypeNode(ts.SyntaxKind.AnyKeyword) - ) + ), ]), factory.createIntersectionTypeNode([ - factory.createTypeReferenceNode( - factory.createIdentifier("Omit"), - [ - factory.createTypeReferenceNode( - factory.createIdentifier("PartialRequired"), - [ - factory.createTypeReferenceNode( - factory.createIdentifier("T"), - undefined - ), - factory.createUnionTypeNode([ - factory.createLiteralTypeNode(factory.createStringLiteral("metadata")), - factory.createLiteralTypeNode(factory.createStringLiteral("apiVersion")), - factory.createLiteralTypeNode(factory.createStringLiteral("kind")) - ]) - ] - ), - factory.createLiteralTypeNode(factory.createStringLiteral("metadata")) - ] - ), - factory.createTypeLiteralNode([factory.createPropertySignature( - undefined, - factory.createIdentifier("metadata"), - undefined, - factory.createTypeReferenceNode( - factory.createIdentifier("PartialRequired"), - [ + factory.createTypeReferenceNode(factory.createIdentifier('Omit'), [ + factory.createTypeReferenceNode(factory.createIdentifier('PartialRequired'), [ + factory.createTypeReferenceNode(factory.createIdentifier('T'), undefined), + factory.createUnionTypeNode([ + factory.createLiteralTypeNode(factory.createStringLiteral('metadata')), + factory.createLiteralTypeNode(factory.createStringLiteral('apiVersion')), + factory.createLiteralTypeNode(factory.createStringLiteral('kind')), + ]), + ]), + factory.createLiteralTypeNode(factory.createStringLiteral('metadata')), + ]), + factory.createTypeLiteralNode([ + factory.createPropertySignature( + undefined, + factory.createIdentifier('metadata'), + undefined, + factory.createTypeReferenceNode(factory.createIdentifier('PartialRequired'), [ factory.createIndexedAccessTypeNode( - factory.createTypeReferenceNode( - factory.createIdentifier("Required"), - [factory.createTypeReferenceNode( - factory.createIdentifier("T"), - undefined - )] - ), - factory.createLiteralTypeNode(factory.createStringLiteral("metadata")) + factory.createTypeReferenceNode(factory.createIdentifier('Required'), [ + factory.createTypeReferenceNode(factory.createIdentifier('T'), undefined), + ]), + factory.createLiteralTypeNode(factory.createStringLiteral('metadata')) ), factory.createUnionTypeNode([ - factory.createLiteralTypeNode(factory.createStringLiteral("name")), - factory.createLiteralTypeNode(factory.createStringLiteral("namespace")), - factory.createLiteralTypeNode(factory.createStringLiteral("creationTimestamp")), - factory.createLiteralTypeNode(factory.createStringLiteral("resourceVersion")) - ]) - ] - ) - )]) + factory.createLiteralTypeNode(factory.createStringLiteral('name')), + factory.createLiteralTypeNode(factory.createStringLiteral('namespace')), + factory.createLiteralTypeNode(factory.createStringLiteral('creationTimestamp')), + factory.createLiteralTypeNode(factory.createStringLiteral('resourceVersion')), + ]), + ]) + ), + ]), ]), - factory.createTypeReferenceNode( - factory.createIdentifier("T"), - undefined - ) - )] - ) + factory.createTypeReferenceNode(factory.createIdentifier('T'), undefined) + ), + ]) ), factory.createTypeAliasDeclaration( undefined, - factory.createIdentifier("MinimumRequiredList"), - [factory.createTypeParameterDeclaration( - undefined, - factory.createIdentifier("T"), - undefined, - undefined - )], - factory.createTypeReferenceNode( - factory.createIdentifier("Id"), - [factory.createConditionalTypeNode( - factory.createTypeReferenceNode( - factory.createIdentifier("T"), - undefined - ), - factory.createTypeLiteralNode([factory.createPropertySignature( - undefined, - factory.createIdentifier("items"), - undefined, - factory.createArrayTypeNode(factory.createTypeLiteralNode([ - factory.createPropertySignature( - undefined, - factory.createIdentifier("metadata"), - factory.createToken(ts.SyntaxKind.QuestionToken), - factory.createKeywordTypeNode(ts.SyntaxKind.AnyKeyword) - ), + factory.createIdentifier('MinimumRequiredList'), + [factory.createTypeParameterDeclaration(undefined, factory.createIdentifier('T'), undefined, undefined)], + factory.createTypeReferenceNode(factory.createIdentifier('Id'), [ + factory.createConditionalTypeNode( + factory.createTypeReferenceNode(factory.createIdentifier('T'), undefined), + factory.createTypeLiteralNode([ + factory.createPropertySignature( + undefined, + factory.createIdentifier('items'), + undefined, + factory.createArrayTypeNode( + factory.createTypeLiteralNode([ + factory.createPropertySignature( + undefined, + factory.createIdentifier('metadata'), + factory.createToken(ts.SyntaxKind.QuestionToken), + factory.createKeywordTypeNode(ts.SyntaxKind.AnyKeyword) + ), + factory.createPropertySignature( + undefined, + factory.createIdentifier('apiVersion'), + factory.createToken(ts.SyntaxKind.QuestionToken), + factory.createKeywordTypeNode(ts.SyntaxKind.AnyKeyword) + ), + factory.createPropertySignature( + undefined, + factory.createIdentifier('kind'), + factory.createToken(ts.SyntaxKind.QuestionToken), + factory.createKeywordTypeNode(ts.SyntaxKind.AnyKeyword) + ), + ]) + ) + ), + ]), + factory.createIntersectionTypeNode([ + factory.createTypeReferenceNode(factory.createIdentifier('Omit'), [ + factory.createTypeReferenceNode(factory.createIdentifier('T'), undefined), + factory.createLiteralTypeNode(factory.createStringLiteral('items')), + ]), + factory.createTypeLiteralNode([ factory.createPropertySignature( undefined, - factory.createIdentifier("apiVersion"), - factory.createToken(ts.SyntaxKind.QuestionToken), - factory.createKeywordTypeNode(ts.SyntaxKind.AnyKeyword) - ), - factory.createPropertySignature( + factory.createIdentifier('items'), undefined, - factory.createIdentifier("kind"), - factory.createToken(ts.SyntaxKind.QuestionToken), - factory.createKeywordTypeNode(ts.SyntaxKind.AnyKeyword) - ) - ])) - )]), - factory.createIntersectionTypeNode([ - factory.createTypeReferenceNode( - factory.createIdentifier("Omit"), - [ - factory.createTypeReferenceNode( - factory.createIdentifier("T"), - undefined - ), - factory.createLiteralTypeNode(factory.createStringLiteral("items")) - ] - ), - factory.createTypeLiteralNode([factory.createPropertySignature( - undefined, - factory.createIdentifier("items"), - undefined, - factory.createArrayTypeNode(factory.createTypeReferenceNode( - factory.createIdentifier("MinimumRequiredGet"), - [factory.createIndexedAccessTypeNode( - factory.createIndexedAccessTypeNode( - factory.createTypeReferenceNode( - factory.createIdentifier("T"), - undefined + factory.createArrayTypeNode( + factory.createTypeReferenceNode(factory.createIdentifier('MinimumRequiredGet'), [ + factory.createIndexedAccessTypeNode( + factory.createIndexedAccessTypeNode( + factory.createTypeReferenceNode(factory.createIdentifier('T'), undefined), + factory.createLiteralTypeNode(factory.createStringLiteral('items')) + ), + factory.createKeywordTypeNode(ts.SyntaxKind.NumberKeyword) ), - factory.createLiteralTypeNode(factory.createStringLiteral("items")) - ), - factory.createKeywordTypeNode(ts.SyntaxKind.NumberKeyword) - )] - )) - )]) + ]) + ) + ), + ]), ]), - factory.createTypeReferenceNode( - factory.createIdentifier("T"), - undefined - ) - )] - ) - ) + factory.createTypeReferenceNode(factory.createIdentifier('T'), undefined) + ), + ]) + ), ]; diff --git a/packages/kubekit-codegen/test/__snapshots__/cli.test.ts.snap b/packages/kubekit-codegen/test/__snapshots__/cli.test.ts.snap index 70c6b609..210b255a 100644 --- a/packages/kubekit-codegen/test/__snapshots__/cli.test.ts.snap +++ b/packages/kubekit-codegen/test/__snapshots__/cli.test.ts.snap @@ -36,7 +36,7 @@ type MinimumRequiredList = Id< } : T >; -export const getCoreV1ApiResources = (args: GetCoreV1ApiResourcesApiArg, options?: Options) => { +export const getCoreV1ApiResources = (options?: Options) => { return apiClient>({ path: \`/api/v1/\` }, options); }; export function listCoreV1ComponentStatus( @@ -70,7 +70,7 @@ export function listCoreV1ComponentStatus(args: any, options: any): any { options ); } -export const readCoreV1ComponentStatus = (args: ReadCoreV1ComponentStatusApiArg, options?: Options) => { +export const readCoreV1ComponentStatus = (options?: Options) => { return apiClient>( { path: \`/api/v1/componentstatuses/\${args.name}\`, params: { pretty: args.pretty } }, options @@ -342,7 +342,7 @@ export const deleteCoreV1CollectionNamespacedConfigMap = ( options ); }; -export const readCoreV1NamespacedConfigMap = (args: ReadCoreV1NamespacedConfigMapApiArg, options?: Options) => { +export const readCoreV1NamespacedConfigMap = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/configmaps/\${args.name}\`, params: { pretty: args.pretty } }, options @@ -478,7 +478,7 @@ export const deleteCoreV1CollectionNamespacedEndpoints = ( options ); }; -export const readCoreV1NamespacedEndpoints = (args: ReadCoreV1NamespacedEndpointsApiArg, options?: Options) => { +export const readCoreV1NamespacedEndpoints = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/endpoints/\${args.name}\`, params: { pretty: args.pretty } }, options @@ -614,7 +614,7 @@ export const deleteCoreV1CollectionNamespacedEvent = ( options ); }; -export const readCoreV1NamespacedEvent = (args: ReadCoreV1NamespacedEventApiArg, options?: Options) => { +export const readCoreV1NamespacedEvent = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/events/\${args.name}\`, params: { pretty: args.pretty } }, options @@ -750,7 +750,7 @@ export const deleteCoreV1CollectionNamespacedLimitRange = ( options ); }; -export const readCoreV1NamespacedLimitRange = (args: ReadCoreV1NamespacedLimitRangeApiArg, options?: Options) => { +export const readCoreV1NamespacedLimitRange = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/limitranges/\${args.name}\`, params: { pretty: args.pretty } }, options @@ -889,10 +889,7 @@ export const deleteCoreV1CollectionNamespacedPersistentVolumeClaim = ( options ); }; -export const readCoreV1NamespacedPersistentVolumeClaim = ( - args: ReadCoreV1NamespacedPersistentVolumeClaimApiArg, - options?: Options -) => { +export const readCoreV1NamespacedPersistentVolumeClaim = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/persistentvolumeclaims/\${args.name}\`, @@ -963,10 +960,7 @@ export const patchCoreV1NamespacedPersistentVolumeClaim = ( options ); }; -export const readCoreV1NamespacedPersistentVolumeClaimStatus = ( - args: ReadCoreV1NamespacedPersistentVolumeClaimStatusApiArg, - options?: Options -) => { +export const readCoreV1NamespacedPersistentVolumeClaimStatus = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/persistentvolumeclaims/\${args.name}/status\`, @@ -1093,7 +1087,7 @@ export const deleteCoreV1CollectionNamespacedPod = ( options ); }; -export const readCoreV1NamespacedPod = (args: ReadCoreV1NamespacedPodApiArg, options?: Options) => { +export const readCoreV1NamespacedPod = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}\`, params: { pretty: args.pretty } }, options @@ -1152,10 +1146,7 @@ export const patchCoreV1NamespacedPod = (args: PatchCoreV1NamespacedPodApiArg, o options ); }; -export const connectCoreV1GetNamespacedPodAttach = ( - args: ConnectCoreV1GetNamespacedPodAttachApiArg, - options?: Options -) => { +export const connectCoreV1GetNamespacedPodAttach = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/attach\`, @@ -1164,10 +1155,7 @@ export const connectCoreV1GetNamespacedPodAttach = ( options ); }; -export const connectCoreV1PostNamespacedPodAttach = ( - args: ConnectCoreV1PostNamespacedPodAttachApiArg, - options?: Options -) => { +export const connectCoreV1PostNamespacedPodAttach = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/attach\`, @@ -1194,10 +1182,7 @@ export const createCoreV1NamespacedPodBinding = (args: CreateCoreV1NamespacedPod options ); }; -export const readCoreV1NamespacedPodEphemeralcontainers = ( - args: ReadCoreV1NamespacedPodEphemeralcontainersApiArg, - options?: Options -) => { +export const readCoreV1NamespacedPodEphemeralcontainers = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/ephemeralcontainers\`, @@ -1264,7 +1249,7 @@ export const createCoreV1NamespacedPodEviction = (args: CreateCoreV1NamespacedPo options ); }; -export const connectCoreV1GetNamespacedPodExec = (args: ConnectCoreV1GetNamespacedPodExecApiArg, options?: Options) => { +export const connectCoreV1GetNamespacedPodExec = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/exec\`, @@ -1280,10 +1265,7 @@ export const connectCoreV1GetNamespacedPodExec = (args: ConnectCoreV1GetNamespac options ); }; -export const connectCoreV1PostNamespacedPodExec = ( - args: ConnectCoreV1PostNamespacedPodExecApiArg, - options?: Options -) => { +export const connectCoreV1PostNamespacedPodExec = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/exec\`, @@ -1300,7 +1282,7 @@ export const connectCoreV1PostNamespacedPodExec = ( options ); }; -export const readCoreV1NamespacedPodLog = (args: ReadCoreV1NamespacedPodLogApiArg, options?: Options) => { +export const readCoreV1NamespacedPodLog = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/log\`, @@ -1319,19 +1301,13 @@ export const readCoreV1NamespacedPodLog = (args: ReadCoreV1NamespacedPodLogApiAr options ); }; -export const connectCoreV1GetNamespacedPodPortforward = ( - args: ConnectCoreV1GetNamespacedPodPortforwardApiArg, - options?: Options -) => { +export const connectCoreV1GetNamespacedPodPortforward = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/portforward\`, params: { ports: args.ports } }, options ); }; -export const connectCoreV1PostNamespacedPodPortforward = ( - args: ConnectCoreV1PostNamespacedPodPortforwardApiArg, - options?: Options -) => { +export const connectCoreV1PostNamespacedPodPortforward = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/portforward\`, @@ -1341,19 +1317,13 @@ export const connectCoreV1PostNamespacedPodPortforward = ( options ); }; -export const connectCoreV1GetNamespacedPodProxy = ( - args: ConnectCoreV1GetNamespacedPodProxyApiArg, - options?: Options -) => { +export const connectCoreV1GetNamespacedPodProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/proxy\`, params: { path: args.path } }, options ); }; -export const connectCoreV1PutNamespacedPodProxy = ( - args: ConnectCoreV1PutNamespacedPodProxyApiArg, - options?: Options -) => { +export const connectCoreV1PutNamespacedPodProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/proxy\`, @@ -1363,10 +1333,7 @@ export const connectCoreV1PutNamespacedPodProxy = ( options ); }; -export const connectCoreV1PostNamespacedPodProxy = ( - args: ConnectCoreV1PostNamespacedPodProxyApiArg, - options?: Options -) => { +export const connectCoreV1PostNamespacedPodProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/proxy\`, @@ -1376,10 +1343,7 @@ export const connectCoreV1PostNamespacedPodProxy = ( options ); }; -export const connectCoreV1DeleteNamespacedPodProxy = ( - args: ConnectCoreV1DeleteNamespacedPodProxyApiArg, - options?: Options -) => { +export const connectCoreV1DeleteNamespacedPodProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/proxy\`, @@ -1389,10 +1353,7 @@ export const connectCoreV1DeleteNamespacedPodProxy = ( options ); }; -export const connectCoreV1OptionsNamespacedPodProxy = ( - args: ConnectCoreV1OptionsNamespacedPodProxyApiArg, - options?: Options -) => { +export const connectCoreV1OptionsNamespacedPodProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/proxy\`, @@ -1402,10 +1363,7 @@ export const connectCoreV1OptionsNamespacedPodProxy = ( options ); }; -export const connectCoreV1HeadNamespacedPodProxy = ( - args: ConnectCoreV1HeadNamespacedPodProxyApiArg, - options?: Options -) => { +export const connectCoreV1HeadNamespacedPodProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/proxy\`, @@ -1415,10 +1373,7 @@ export const connectCoreV1HeadNamespacedPodProxy = ( options ); }; -export const connectCoreV1PatchNamespacedPodProxy = ( - args: ConnectCoreV1PatchNamespacedPodProxyApiArg, - options?: Options -) => { +export const connectCoreV1PatchNamespacedPodProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/proxy\`, @@ -1428,10 +1383,7 @@ export const connectCoreV1PatchNamespacedPodProxy = ( options ); }; -export const connectCoreV1GetNamespacedPodProxyWithPath = ( - args: ConnectCoreV1GetNamespacedPodProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1GetNamespacedPodProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/proxy/\${args.pathPath}\`, @@ -1440,10 +1392,7 @@ export const connectCoreV1GetNamespacedPodProxyWithPath = ( options ); }; -export const connectCoreV1PutNamespacedPodProxyWithPath = ( - args: ConnectCoreV1PutNamespacedPodProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1PutNamespacedPodProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/proxy/\${args.pathPath}\`, @@ -1453,10 +1402,7 @@ export const connectCoreV1PutNamespacedPodProxyWithPath = ( options ); }; -export const connectCoreV1PostNamespacedPodProxyWithPath = ( - args: ConnectCoreV1PostNamespacedPodProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1PostNamespacedPodProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/proxy/\${args.pathPath}\`, @@ -1466,10 +1412,7 @@ export const connectCoreV1PostNamespacedPodProxyWithPath = ( options ); }; -export const connectCoreV1DeleteNamespacedPodProxyWithPath = ( - args: ConnectCoreV1DeleteNamespacedPodProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1DeleteNamespacedPodProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/proxy/\${args.pathPath}\`, @@ -1479,10 +1422,7 @@ export const connectCoreV1DeleteNamespacedPodProxyWithPath = ( options ); }; -export const connectCoreV1OptionsNamespacedPodProxyWithPath = ( - args: ConnectCoreV1OptionsNamespacedPodProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1OptionsNamespacedPodProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/proxy/\${args.pathPath}\`, @@ -1492,10 +1432,7 @@ export const connectCoreV1OptionsNamespacedPodProxyWithPath = ( options ); }; -export const connectCoreV1HeadNamespacedPodProxyWithPath = ( - args: ConnectCoreV1HeadNamespacedPodProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1HeadNamespacedPodProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/proxy/\${args.pathPath}\`, @@ -1505,10 +1442,7 @@ export const connectCoreV1HeadNamespacedPodProxyWithPath = ( options ); }; -export const connectCoreV1PatchNamespacedPodProxyWithPath = ( - args: ConnectCoreV1PatchNamespacedPodProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1PatchNamespacedPodProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/proxy/\${args.pathPath}\`, @@ -1518,7 +1452,7 @@ export const connectCoreV1PatchNamespacedPodProxyWithPath = ( options ); }; -export const readCoreV1NamespacedPodStatus = (args: ReadCoreV1NamespacedPodStatusApiArg, options?: Options) => { +export const readCoreV1NamespacedPodStatus = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/status\`, params: { pretty: args.pretty } }, options @@ -1636,7 +1570,7 @@ export const deleteCoreV1CollectionNamespacedPodTemplate = ( options ); }; -export const readCoreV1NamespacedPodTemplate = (args: ReadCoreV1NamespacedPodTemplateApiArg, options?: Options) => { +export const readCoreV1NamespacedPodTemplate = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/podtemplates/\${args.name}\`, params: { pretty: args.pretty } }, options @@ -1778,10 +1712,7 @@ export const deleteCoreV1CollectionNamespacedReplicationController = ( options ); }; -export const readCoreV1NamespacedReplicationController = ( - args: ReadCoreV1NamespacedReplicationControllerApiArg, - options?: Options -) => { +export const readCoreV1NamespacedReplicationController = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/replicationcontrollers/\${args.name}\`, @@ -1852,10 +1783,7 @@ export const patchCoreV1NamespacedReplicationController = ( options ); }; -export const readCoreV1NamespacedReplicationControllerScale = ( - args: ReadCoreV1NamespacedReplicationControllerScaleApiArg, - options?: Options -) => { +export const readCoreV1NamespacedReplicationControllerScale = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/replicationcontrollers/\${args.name}/scale\`, @@ -1905,10 +1833,7 @@ export const patchCoreV1NamespacedReplicationControllerScale = ( options ); }; -export const readCoreV1NamespacedReplicationControllerStatus = ( - args: ReadCoreV1NamespacedReplicationControllerStatusApiArg, - options?: Options -) => { +export const readCoreV1NamespacedReplicationControllerStatus = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/replicationcontrollers/\${args.name}/status\`, @@ -2038,7 +1963,7 @@ export const deleteCoreV1CollectionNamespacedResourceQuota = ( options ); }; -export const readCoreV1NamespacedResourceQuota = (args: ReadCoreV1NamespacedResourceQuotaApiArg, options?: Options) => { +export const readCoreV1NamespacedResourceQuota = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/resourcequotas/\${args.name}\`, params: { pretty: args.pretty } }, options @@ -2106,10 +2031,7 @@ export const patchCoreV1NamespacedResourceQuota = ( options ); }; -export const readCoreV1NamespacedResourceQuotaStatus = ( - args: ReadCoreV1NamespacedResourceQuotaStatusApiArg, - options?: Options -) => { +export const readCoreV1NamespacedResourceQuotaStatus = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/resourcequotas/\${args.name}/status\`, @@ -2236,7 +2158,7 @@ export const deleteCoreV1CollectionNamespacedSecret = ( options ); }; -export const readCoreV1NamespacedSecret = (args: ReadCoreV1NamespacedSecretApiArg, options?: Options) => { +export const readCoreV1NamespacedSecret = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/secrets/\${args.name}\`, params: { pretty: args.pretty } }, options @@ -2375,10 +2297,7 @@ export const deleteCoreV1CollectionNamespacedServiceAccount = ( options ); }; -export const readCoreV1NamespacedServiceAccount = ( - args: ReadCoreV1NamespacedServiceAccountApiArg, - options?: Options -) => { +export const readCoreV1NamespacedServiceAccount = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/serviceaccounts/\${args.name}\`, params: { pretty: args.pretty } }, options @@ -2543,7 +2462,7 @@ export const deleteCoreV1CollectionNamespacedService = ( options ); }; -export const readCoreV1NamespacedService = (args: ReadCoreV1NamespacedServiceApiArg, options?: Options) => { +export const readCoreV1NamespacedService = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/services/\${args.name}\`, params: { pretty: args.pretty } }, options @@ -2602,19 +2521,13 @@ export const patchCoreV1NamespacedService = (args: PatchCoreV1NamespacedServiceA options ); }; -export const connectCoreV1GetNamespacedServiceProxy = ( - args: ConnectCoreV1GetNamespacedServiceProxyApiArg, - options?: Options -) => { +export const connectCoreV1GetNamespacedServiceProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/services/\${args.name}/proxy\`, params: { path: args.path } }, options ); }; -export const connectCoreV1PutNamespacedServiceProxy = ( - args: ConnectCoreV1PutNamespacedServiceProxyApiArg, - options?: Options -) => { +export const connectCoreV1PutNamespacedServiceProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/services/\${args.name}/proxy\`, @@ -2624,10 +2537,7 @@ export const connectCoreV1PutNamespacedServiceProxy = ( options ); }; -export const connectCoreV1PostNamespacedServiceProxy = ( - args: ConnectCoreV1PostNamespacedServiceProxyApiArg, - options?: Options -) => { +export const connectCoreV1PostNamespacedServiceProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/services/\${args.name}/proxy\`, @@ -2637,10 +2547,7 @@ export const connectCoreV1PostNamespacedServiceProxy = ( options ); }; -export const connectCoreV1DeleteNamespacedServiceProxy = ( - args: ConnectCoreV1DeleteNamespacedServiceProxyApiArg, - options?: Options -) => { +export const connectCoreV1DeleteNamespacedServiceProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/services/\${args.name}/proxy\`, @@ -2650,10 +2557,7 @@ export const connectCoreV1DeleteNamespacedServiceProxy = ( options ); }; -export const connectCoreV1OptionsNamespacedServiceProxy = ( - args: ConnectCoreV1OptionsNamespacedServiceProxyApiArg, - options?: Options -) => { +export const connectCoreV1OptionsNamespacedServiceProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/services/\${args.name}/proxy\`, @@ -2663,10 +2567,7 @@ export const connectCoreV1OptionsNamespacedServiceProxy = ( options ); }; -export const connectCoreV1HeadNamespacedServiceProxy = ( - args: ConnectCoreV1HeadNamespacedServiceProxyApiArg, - options?: Options -) => { +export const connectCoreV1HeadNamespacedServiceProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/services/\${args.name}/proxy\`, @@ -2676,10 +2577,7 @@ export const connectCoreV1HeadNamespacedServiceProxy = ( options ); }; -export const connectCoreV1PatchNamespacedServiceProxy = ( - args: ConnectCoreV1PatchNamespacedServiceProxyApiArg, - options?: Options -) => { +export const connectCoreV1PatchNamespacedServiceProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/services/\${args.name}/proxy\`, @@ -2689,10 +2587,7 @@ export const connectCoreV1PatchNamespacedServiceProxy = ( options ); }; -export const connectCoreV1GetNamespacedServiceProxyWithPath = ( - args: ConnectCoreV1GetNamespacedServiceProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1GetNamespacedServiceProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/services/\${args.name}/proxy/\${args.pathPath}\`, @@ -2701,10 +2596,7 @@ export const connectCoreV1GetNamespacedServiceProxyWithPath = ( options ); }; -export const connectCoreV1PutNamespacedServiceProxyWithPath = ( - args: ConnectCoreV1PutNamespacedServiceProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1PutNamespacedServiceProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/services/\${args.name}/proxy/\${args.pathPath}\`, @@ -2714,10 +2606,7 @@ export const connectCoreV1PutNamespacedServiceProxyWithPath = ( options ); }; -export const connectCoreV1PostNamespacedServiceProxyWithPath = ( - args: ConnectCoreV1PostNamespacedServiceProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1PostNamespacedServiceProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/services/\${args.name}/proxy/\${args.pathPath}\`, @@ -2727,10 +2616,7 @@ export const connectCoreV1PostNamespacedServiceProxyWithPath = ( options ); }; -export const connectCoreV1DeleteNamespacedServiceProxyWithPath = ( - args: ConnectCoreV1DeleteNamespacedServiceProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1DeleteNamespacedServiceProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/services/\${args.name}/proxy/\${args.pathPath}\`, @@ -2740,10 +2626,7 @@ export const connectCoreV1DeleteNamespacedServiceProxyWithPath = ( options ); }; -export const connectCoreV1OptionsNamespacedServiceProxyWithPath = ( - args: ConnectCoreV1OptionsNamespacedServiceProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1OptionsNamespacedServiceProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/services/\${args.name}/proxy/\${args.pathPath}\`, @@ -2753,10 +2636,7 @@ export const connectCoreV1OptionsNamespacedServiceProxyWithPath = ( options ); }; -export const connectCoreV1HeadNamespacedServiceProxyWithPath = ( - args: ConnectCoreV1HeadNamespacedServiceProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1HeadNamespacedServiceProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/services/\${args.name}/proxy/\${args.pathPath}\`, @@ -2766,10 +2646,7 @@ export const connectCoreV1HeadNamespacedServiceProxyWithPath = ( options ); }; -export const connectCoreV1PatchNamespacedServiceProxyWithPath = ( - args: ConnectCoreV1PatchNamespacedServiceProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1PatchNamespacedServiceProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/services/\${args.name}/proxy/\${args.pathPath}\`, @@ -2779,7 +2656,7 @@ export const connectCoreV1PatchNamespacedServiceProxyWithPath = ( options ); }; -export const readCoreV1NamespacedServiceStatus = (args: ReadCoreV1NamespacedServiceStatusApiArg, options?: Options) => { +export const readCoreV1NamespacedServiceStatus = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/services/\${args.name}/status\`, params: { pretty: args.pretty } }, options @@ -2826,7 +2703,7 @@ export const patchCoreV1NamespacedServiceStatus = ( options ); }; -export const readCoreV1Namespace = (args: ReadCoreV1NamespaceApiArg, options?: Options) => { +export const readCoreV1Namespace = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args.name}\`, params: { pretty: args.pretty } }, options @@ -2902,7 +2779,7 @@ export const replaceCoreV1NamespaceFinalize = (args: ReplaceCoreV1NamespaceFinal options ); }; -export const readCoreV1NamespaceStatus = (args: ReadCoreV1NamespaceStatusApiArg, options?: Options) => { +export const readCoreV1NamespaceStatus = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args.name}/status\`, params: { pretty: args.pretty } }, options @@ -3017,7 +2894,7 @@ export const deleteCoreV1CollectionNode = (args: DeleteCoreV1CollectionNodeApiAr options ); }; -export const readCoreV1Node = (args: ReadCoreV1NodeApiArg, options?: Options) => { +export const readCoreV1Node = (options?: Options) => { return apiClient>( { path: \`/api/v1/nodes/\${args.name}\`, params: { pretty: args.pretty } }, options @@ -3076,106 +2953,91 @@ export const patchCoreV1Node = (args: PatchCoreV1NodeApiArg, options?: Options) options ); }; -export const connectCoreV1GetNodeProxy = (args: ConnectCoreV1GetNodeProxyApiArg, options?: Options) => { +export const connectCoreV1GetNodeProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/nodes/\${args.name}/proxy\`, params: { path: args.path } }, options ); }; -export const connectCoreV1PutNodeProxy = (args: ConnectCoreV1PutNodeProxyApiArg, options?: Options) => { +export const connectCoreV1PutNodeProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/nodes/\${args.name}/proxy\`, method: 'PUT', params: { path: args.path } }, options ); }; -export const connectCoreV1PostNodeProxy = (args: ConnectCoreV1PostNodeProxyApiArg, options?: Options) => { +export const connectCoreV1PostNodeProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/nodes/\${args.name}/proxy\`, method: 'POST', params: { path: args.path } }, options ); }; -export const connectCoreV1DeleteNodeProxy = (args: ConnectCoreV1DeleteNodeProxyApiArg, options?: Options) => { +export const connectCoreV1DeleteNodeProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/nodes/\${args.name}/proxy\`, method: 'DELETE', params: { path: args.path } }, options ); }; -export const connectCoreV1OptionsNodeProxy = (args: ConnectCoreV1OptionsNodeProxyApiArg, options?: Options) => { +export const connectCoreV1OptionsNodeProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/nodes/\${args.name}/proxy\`, method: 'OPTIONS', params: { path: args.path } }, options ); }; -export const connectCoreV1HeadNodeProxy = (args: ConnectCoreV1HeadNodeProxyApiArg, options?: Options) => { +export const connectCoreV1HeadNodeProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/nodes/\${args.name}/proxy\`, method: 'HEAD', params: { path: args.path } }, options ); }; -export const connectCoreV1PatchNodeProxy = (args: ConnectCoreV1PatchNodeProxyApiArg, options?: Options) => { +export const connectCoreV1PatchNodeProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/nodes/\${args.name}/proxy\`, method: 'PATCH', params: { path: args.path } }, options ); }; -export const connectCoreV1GetNodeProxyWithPath = (args: ConnectCoreV1GetNodeProxyWithPathApiArg, options?: Options) => { +export const connectCoreV1GetNodeProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/nodes/\${args.name}/proxy/\${args.pathPath}\`, params: { path: args.queryPath } }, options ); }; -export const connectCoreV1PutNodeProxyWithPath = (args: ConnectCoreV1PutNodeProxyWithPathApiArg, options?: Options) => { +export const connectCoreV1PutNodeProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/nodes/\${args.name}/proxy/\${args.pathPath}\`, method: 'PUT', params: { path: args.queryPath } }, options ); }; -export const connectCoreV1PostNodeProxyWithPath = ( - args: ConnectCoreV1PostNodeProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1PostNodeProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/nodes/\${args.name}/proxy/\${args.pathPath}\`, method: 'POST', params: { path: args.queryPath } }, options ); }; -export const connectCoreV1DeleteNodeProxyWithPath = ( - args: ConnectCoreV1DeleteNodeProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1DeleteNodeProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/nodes/\${args.name}/proxy/\${args.pathPath}\`, method: 'DELETE', params: { path: args.queryPath } }, options ); }; -export const connectCoreV1OptionsNodeProxyWithPath = ( - args: ConnectCoreV1OptionsNodeProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1OptionsNodeProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/nodes/\${args.name}/proxy/\${args.pathPath}\`, method: 'OPTIONS', params: { path: args.queryPath } }, options ); }; -export const connectCoreV1HeadNodeProxyWithPath = ( - args: ConnectCoreV1HeadNodeProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1HeadNodeProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/nodes/\${args.name}/proxy/\${args.pathPath}\`, method: 'HEAD', params: { path: args.queryPath } }, options ); }; -export const connectCoreV1PatchNodeProxyWithPath = ( - args: ConnectCoreV1PatchNodeProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1PatchNodeProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/nodes/\${args.name}/proxy/\${args.pathPath}\`, method: 'PATCH', params: { path: args.queryPath } }, options ); }; -export const readCoreV1NodeStatus = (args: ReadCoreV1NodeStatusApiArg, options?: Options) => { +export const readCoreV1NodeStatus = (options?: Options) => { return apiClient>( { path: \`/api/v1/nodes/\${args.name}/status\`, params: { pretty: args.pretty } }, options @@ -3324,7 +3186,7 @@ export const deleteCoreV1CollectionPersistentVolume = ( options ); }; -export const readCoreV1PersistentVolume = (args: ReadCoreV1PersistentVolumeApiArg, options?: Options) => { +export const readCoreV1PersistentVolume = (options?: Options) => { return apiClient>( { path: \`/api/v1/persistentvolumes/\${args.name}\`, params: { pretty: args.pretty } }, options @@ -3383,7 +3245,7 @@ export const patchCoreV1PersistentVolume = (args: PatchCoreV1PersistentVolumeApi options ); }; -export const readCoreV1PersistentVolumeStatus = (args: ReadCoreV1PersistentVolumeStatusApiArg, options?: Options) => { +export const readCoreV1PersistentVolumeStatus = (options?: Options) => { return apiClient>( { path: \`/api/v1/persistentvolumes/\${args.name}/status\`, params: { pretty: args.pretty } }, options @@ -3644,10 +3506,7 @@ export function listCoreV1ServiceForAllNamespaces(args: any, options: any): any options ); } -export const watchCoreV1ConfigMapListForAllNamespaces = ( - args: WatchCoreV1ConfigMapListForAllNamespacesApiArg, - options?: Options -) => { +export const watchCoreV1ConfigMapListForAllNamespaces = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/configmaps\`, @@ -3668,10 +3527,7 @@ export const watchCoreV1ConfigMapListForAllNamespaces = ( options ); }; -export const watchCoreV1EndpointsListForAllNamespaces = ( - args: WatchCoreV1EndpointsListForAllNamespacesApiArg, - options?: Options -) => { +export const watchCoreV1EndpointsListForAllNamespaces = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/endpoints\`, @@ -3692,10 +3548,7 @@ export const watchCoreV1EndpointsListForAllNamespaces = ( options ); }; -export const watchCoreV1EventListForAllNamespaces = ( - args: WatchCoreV1EventListForAllNamespacesApiArg, - options?: Options -) => { +export const watchCoreV1EventListForAllNamespaces = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/events\`, @@ -3716,10 +3569,7 @@ export const watchCoreV1EventListForAllNamespaces = ( options ); }; -export const watchCoreV1LimitRangeListForAllNamespaces = ( - args: WatchCoreV1LimitRangeListForAllNamespacesApiArg, - options?: Options -) => { +export const watchCoreV1LimitRangeListForAllNamespaces = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/limitranges\`, @@ -3740,7 +3590,7 @@ export const watchCoreV1LimitRangeListForAllNamespaces = ( options ); }; -export const watchCoreV1NamespaceList = (args: WatchCoreV1NamespaceListApiArg, options?: Options) => { +export const watchCoreV1NamespaceList = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces\`, @@ -3761,10 +3611,7 @@ export const watchCoreV1NamespaceList = (args: WatchCoreV1NamespaceListApiArg, o options ); }; -export const watchCoreV1NamespacedConfigMapList = ( - args: WatchCoreV1NamespacedConfigMapListApiArg, - options?: Options -) => { +export const watchCoreV1NamespacedConfigMapList = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/configmaps\`, @@ -3785,7 +3632,7 @@ export const watchCoreV1NamespacedConfigMapList = ( options ); }; -export const watchCoreV1NamespacedConfigMap = (args: WatchCoreV1NamespacedConfigMapApiArg, options?: Options) => { +export const watchCoreV1NamespacedConfigMap = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/configmaps/\${args.name}\`, @@ -3806,10 +3653,7 @@ export const watchCoreV1NamespacedConfigMap = (args: WatchCoreV1NamespacedConfig options ); }; -export const watchCoreV1NamespacedEndpointsList = ( - args: WatchCoreV1NamespacedEndpointsListApiArg, - options?: Options -) => { +export const watchCoreV1NamespacedEndpointsList = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/endpoints\`, @@ -3830,7 +3674,7 @@ export const watchCoreV1NamespacedEndpointsList = ( options ); }; -export const watchCoreV1NamespacedEndpoints = (args: WatchCoreV1NamespacedEndpointsApiArg, options?: Options) => { +export const watchCoreV1NamespacedEndpoints = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/endpoints/\${args.name}\`, @@ -3851,7 +3695,7 @@ export const watchCoreV1NamespacedEndpoints = (args: WatchCoreV1NamespacedEndpoi options ); }; -export const watchCoreV1NamespacedEventList = (args: WatchCoreV1NamespacedEventListApiArg, options?: Options) => { +export const watchCoreV1NamespacedEventList = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/events\`, @@ -3872,7 +3716,7 @@ export const watchCoreV1NamespacedEventList = (args: WatchCoreV1NamespacedEventL options ); }; -export const watchCoreV1NamespacedEvent = (args: WatchCoreV1NamespacedEventApiArg, options?: Options) => { +export const watchCoreV1NamespacedEvent = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/events/\${args.name}\`, @@ -3893,10 +3737,7 @@ export const watchCoreV1NamespacedEvent = (args: WatchCoreV1NamespacedEventApiAr options ); }; -export const watchCoreV1NamespacedLimitRangeList = ( - args: WatchCoreV1NamespacedLimitRangeListApiArg, - options?: Options -) => { +export const watchCoreV1NamespacedLimitRangeList = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/limitranges\`, @@ -3917,7 +3758,7 @@ export const watchCoreV1NamespacedLimitRangeList = ( options ); }; -export const watchCoreV1NamespacedLimitRange = (args: WatchCoreV1NamespacedLimitRangeApiArg, options?: Options) => { +export const watchCoreV1NamespacedLimitRange = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/limitranges/\${args.name}\`, @@ -3938,10 +3779,7 @@ export const watchCoreV1NamespacedLimitRange = (args: WatchCoreV1NamespacedLimit options ); }; -export const watchCoreV1NamespacedPersistentVolumeClaimList = ( - args: WatchCoreV1NamespacedPersistentVolumeClaimListApiArg, - options?: Options -) => { +export const watchCoreV1NamespacedPersistentVolumeClaimList = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/persistentvolumeclaims\`, @@ -3962,10 +3800,7 @@ export const watchCoreV1NamespacedPersistentVolumeClaimList = ( options ); }; -export const watchCoreV1NamespacedPersistentVolumeClaim = ( - args: WatchCoreV1NamespacedPersistentVolumeClaimApiArg, - options?: Options -) => { +export const watchCoreV1NamespacedPersistentVolumeClaim = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/persistentvolumeclaims/\${args.name}\`, @@ -3986,7 +3821,7 @@ export const watchCoreV1NamespacedPersistentVolumeClaim = ( options ); }; -export const watchCoreV1NamespacedPodList = (args: WatchCoreV1NamespacedPodListApiArg, options?: Options) => { +export const watchCoreV1NamespacedPodList = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/pods\`, @@ -4007,7 +3842,7 @@ export const watchCoreV1NamespacedPodList = (args: WatchCoreV1NamespacedPodListA options ); }; -export const watchCoreV1NamespacedPod = (args: WatchCoreV1NamespacedPodApiArg, options?: Options) => { +export const watchCoreV1NamespacedPod = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/pods/\${args.name}\`, @@ -4028,10 +3863,7 @@ export const watchCoreV1NamespacedPod = (args: WatchCoreV1NamespacedPodApiArg, o options ); }; -export const watchCoreV1NamespacedPodTemplateList = ( - args: WatchCoreV1NamespacedPodTemplateListApiArg, - options?: Options -) => { +export const watchCoreV1NamespacedPodTemplateList = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/podtemplates\`, @@ -4052,7 +3884,7 @@ export const watchCoreV1NamespacedPodTemplateList = ( options ); }; -export const watchCoreV1NamespacedPodTemplate = (args: WatchCoreV1NamespacedPodTemplateApiArg, options?: Options) => { +export const watchCoreV1NamespacedPodTemplate = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/podtemplates/\${args.name}\`, @@ -4073,10 +3905,7 @@ export const watchCoreV1NamespacedPodTemplate = (args: WatchCoreV1NamespacedPodT options ); }; -export const watchCoreV1NamespacedReplicationControllerList = ( - args: WatchCoreV1NamespacedReplicationControllerListApiArg, - options?: Options -) => { +export const watchCoreV1NamespacedReplicationControllerList = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/replicationcontrollers\`, @@ -4097,10 +3926,7 @@ export const watchCoreV1NamespacedReplicationControllerList = ( options ); }; -export const watchCoreV1NamespacedReplicationController = ( - args: WatchCoreV1NamespacedReplicationControllerApiArg, - options?: Options -) => { +export const watchCoreV1NamespacedReplicationController = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/replicationcontrollers/\${args.name}\`, @@ -4121,10 +3947,7 @@ export const watchCoreV1NamespacedReplicationController = ( options ); }; -export const watchCoreV1NamespacedResourceQuotaList = ( - args: WatchCoreV1NamespacedResourceQuotaListApiArg, - options?: Options -) => { +export const watchCoreV1NamespacedResourceQuotaList = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/resourcequotas\`, @@ -4145,10 +3968,7 @@ export const watchCoreV1NamespacedResourceQuotaList = ( options ); }; -export const watchCoreV1NamespacedResourceQuota = ( - args: WatchCoreV1NamespacedResourceQuotaApiArg, - options?: Options -) => { +export const watchCoreV1NamespacedResourceQuota = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/resourcequotas/\${args.name}\`, @@ -4169,7 +3989,7 @@ export const watchCoreV1NamespacedResourceQuota = ( options ); }; -export const watchCoreV1NamespacedSecretList = (args: WatchCoreV1NamespacedSecretListApiArg, options?: Options) => { +export const watchCoreV1NamespacedSecretList = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/secrets\`, @@ -4190,7 +4010,7 @@ export const watchCoreV1NamespacedSecretList = (args: WatchCoreV1NamespacedSecre options ); }; -export const watchCoreV1NamespacedSecret = (args: WatchCoreV1NamespacedSecretApiArg, options?: Options) => { +export const watchCoreV1NamespacedSecret = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/secrets/\${args.name}\`, @@ -4211,10 +4031,7 @@ export const watchCoreV1NamespacedSecret = (args: WatchCoreV1NamespacedSecretApi options ); }; -export const watchCoreV1NamespacedServiceAccountList = ( - args: WatchCoreV1NamespacedServiceAccountListApiArg, - options?: Options -) => { +export const watchCoreV1NamespacedServiceAccountList = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/serviceaccounts\`, @@ -4235,10 +4052,7 @@ export const watchCoreV1NamespacedServiceAccountList = ( options ); }; -export const watchCoreV1NamespacedServiceAccount = ( - args: WatchCoreV1NamespacedServiceAccountApiArg, - options?: Options -) => { +export const watchCoreV1NamespacedServiceAccount = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/serviceaccounts/\${args.name}\`, @@ -4259,7 +4073,7 @@ export const watchCoreV1NamespacedServiceAccount = ( options ); }; -export const watchCoreV1NamespacedServiceList = (args: WatchCoreV1NamespacedServiceListApiArg, options?: Options) => { +export const watchCoreV1NamespacedServiceList = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/services\`, @@ -4280,7 +4094,7 @@ export const watchCoreV1NamespacedServiceList = (args: WatchCoreV1NamespacedServ options ); }; -export const watchCoreV1NamespacedService = (args: WatchCoreV1NamespacedServiceApiArg, options?: Options) => { +export const watchCoreV1NamespacedService = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/services/\${args.name}\`, @@ -4301,7 +4115,7 @@ export const watchCoreV1NamespacedService = (args: WatchCoreV1NamespacedServiceA options ); }; -export const watchCoreV1Namespace = (args: WatchCoreV1NamespaceApiArg, options?: Options) => { +export const watchCoreV1Namespace = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args.name}\`, @@ -4322,7 +4136,7 @@ export const watchCoreV1Namespace = (args: WatchCoreV1NamespaceApiArg, options?: options ); }; -export const watchCoreV1NodeList = (args: WatchCoreV1NodeListApiArg, options?: Options) => { +export const watchCoreV1NodeList = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/nodes\`, @@ -4343,7 +4157,7 @@ export const watchCoreV1NodeList = (args: WatchCoreV1NodeListApiArg, options?: O options ); }; -export const watchCoreV1Node = (args: WatchCoreV1NodeApiArg, options?: Options) => { +export const watchCoreV1Node = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/nodes/\${args.name}\`, @@ -4364,10 +4178,7 @@ export const watchCoreV1Node = (args: WatchCoreV1NodeApiArg, options?: Options) options ); }; -export const watchCoreV1PersistentVolumeClaimListForAllNamespaces = ( - args: WatchCoreV1PersistentVolumeClaimListForAllNamespacesApiArg, - options?: Options -) => { +export const watchCoreV1PersistentVolumeClaimListForAllNamespaces = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/persistentvolumeclaims\`, @@ -4388,7 +4199,7 @@ export const watchCoreV1PersistentVolumeClaimListForAllNamespaces = ( options ); }; -export const watchCoreV1PersistentVolumeList = (args: WatchCoreV1PersistentVolumeListApiArg, options?: Options) => { +export const watchCoreV1PersistentVolumeList = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/persistentvolumes\`, @@ -4409,7 +4220,7 @@ export const watchCoreV1PersistentVolumeList = (args: WatchCoreV1PersistentVolum options ); }; -export const watchCoreV1PersistentVolume = (args: WatchCoreV1PersistentVolumeApiArg, options?: Options) => { +export const watchCoreV1PersistentVolume = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/persistentvolumes/\${args.name}\`, @@ -4430,10 +4241,7 @@ export const watchCoreV1PersistentVolume = (args: WatchCoreV1PersistentVolumeApi options ); }; -export const watchCoreV1PodListForAllNamespaces = ( - args: WatchCoreV1PodListForAllNamespacesApiArg, - options?: Options -) => { +export const watchCoreV1PodListForAllNamespaces = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/pods\`, @@ -4454,10 +4262,7 @@ export const watchCoreV1PodListForAllNamespaces = ( options ); }; -export const watchCoreV1PodTemplateListForAllNamespaces = ( - args: WatchCoreV1PodTemplateListForAllNamespacesApiArg, - options?: Options -) => { +export const watchCoreV1PodTemplateListForAllNamespaces = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/podtemplates\`, @@ -4478,10 +4283,7 @@ export const watchCoreV1PodTemplateListForAllNamespaces = ( options ); }; -export const watchCoreV1ReplicationControllerListForAllNamespaces = ( - args: WatchCoreV1ReplicationControllerListForAllNamespacesApiArg, - options?: Options -) => { +export const watchCoreV1ReplicationControllerListForAllNamespaces = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/replicationcontrollers\`, @@ -4502,10 +4304,7 @@ export const watchCoreV1ReplicationControllerListForAllNamespaces = ( options ); }; -export const watchCoreV1ResourceQuotaListForAllNamespaces = ( - args: WatchCoreV1ResourceQuotaListForAllNamespacesApiArg, - options?: Options -) => { +export const watchCoreV1ResourceQuotaListForAllNamespaces = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/resourcequotas\`, @@ -4526,10 +4325,7 @@ export const watchCoreV1ResourceQuotaListForAllNamespaces = ( options ); }; -export const watchCoreV1SecretListForAllNamespaces = ( - args: WatchCoreV1SecretListForAllNamespacesApiArg, - options?: Options -) => { +export const watchCoreV1SecretListForAllNamespaces = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/secrets\`, @@ -4550,10 +4346,7 @@ export const watchCoreV1SecretListForAllNamespaces = ( options ); }; -export const watchCoreV1ServiceAccountListForAllNamespaces = ( - args: WatchCoreV1ServiceAccountListForAllNamespacesApiArg, - options?: Options -) => { +export const watchCoreV1ServiceAccountListForAllNamespaces = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/serviceaccounts\`, @@ -4574,10 +4367,7 @@ export const watchCoreV1ServiceAccountListForAllNamespaces = ( options ); }; -export const watchCoreV1ServiceListForAllNamespaces = ( - args: WatchCoreV1ServiceListForAllNamespacesApiArg, - options?: Options -) => { +export const watchCoreV1ServiceListForAllNamespaces = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/services\`, @@ -13099,7 +12889,7 @@ type MinimumRequiredList = Id< } : T >; -export const getCoreV1ApiResources = (args: GetCoreV1ApiResourcesApiArg, options?: Options) => { +export const getCoreV1ApiResources = (options?: Options) => { return apiClient>({ path: \`/api/v1/\` }, options); }; export function listCoreV1ComponentStatus( @@ -13133,7 +12923,7 @@ export function listCoreV1ComponentStatus(args: any, options: any): any { options ); } -export const readCoreV1ComponentStatus = (args: ReadCoreV1ComponentStatusApiArg, options?: Options) => { +export const readCoreV1ComponentStatus = (options?: Options) => { return apiClient>( { path: \`/api/v1/componentstatuses/\${args.name}\`, params: { pretty: args.pretty } }, options @@ -13405,7 +13195,7 @@ export const deleteCoreV1CollectionNamespacedConfigMap = ( options ); }; -export const readCoreV1NamespacedConfigMap = (args: ReadCoreV1NamespacedConfigMapApiArg, options?: Options) => { +export const readCoreV1NamespacedConfigMap = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/configmaps/\${args.name}\`, params: { pretty: args.pretty } }, options @@ -13541,7 +13331,7 @@ export const deleteCoreV1CollectionNamespacedEndpoints = ( options ); }; -export const readCoreV1NamespacedEndpoints = (args: ReadCoreV1NamespacedEndpointsApiArg, options?: Options) => { +export const readCoreV1NamespacedEndpoints = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/endpoints/\${args.name}\`, params: { pretty: args.pretty } }, options @@ -13677,7 +13467,7 @@ export const deleteCoreV1CollectionNamespacedEvent = ( options ); }; -export const readCoreV1NamespacedEvent = (args: ReadCoreV1NamespacedEventApiArg, options?: Options) => { +export const readCoreV1NamespacedEvent = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/events/\${args.name}\`, params: { pretty: args.pretty } }, options @@ -13813,7 +13603,7 @@ export const deleteCoreV1CollectionNamespacedLimitRange = ( options ); }; -export const readCoreV1NamespacedLimitRange = (args: ReadCoreV1NamespacedLimitRangeApiArg, options?: Options) => { +export const readCoreV1NamespacedLimitRange = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/limitranges/\${args.name}\`, params: { pretty: args.pretty } }, options @@ -13952,10 +13742,7 @@ export const deleteCoreV1CollectionNamespacedPersistentVolumeClaim = ( options ); }; -export const readCoreV1NamespacedPersistentVolumeClaim = ( - args: ReadCoreV1NamespacedPersistentVolumeClaimApiArg, - options?: Options -) => { +export const readCoreV1NamespacedPersistentVolumeClaim = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/persistentvolumeclaims/\${args.name}\`, @@ -14026,10 +13813,7 @@ export const patchCoreV1NamespacedPersistentVolumeClaim = ( options ); }; -export const readCoreV1NamespacedPersistentVolumeClaimStatus = ( - args: ReadCoreV1NamespacedPersistentVolumeClaimStatusApiArg, - options?: Options -) => { +export const readCoreV1NamespacedPersistentVolumeClaimStatus = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/persistentvolumeclaims/\${args.name}/status\`, @@ -14156,7 +13940,7 @@ export const deleteCoreV1CollectionNamespacedPod = ( options ); }; -export const readCoreV1NamespacedPod = (args: ReadCoreV1NamespacedPodApiArg, options?: Options) => { +export const readCoreV1NamespacedPod = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}\`, params: { pretty: args.pretty } }, options @@ -14215,10 +13999,7 @@ export const patchCoreV1NamespacedPod = (args: PatchCoreV1NamespacedPodApiArg, o options ); }; -export const connectCoreV1GetNamespacedPodAttach = ( - args: ConnectCoreV1GetNamespacedPodAttachApiArg, - options?: Options -) => { +export const connectCoreV1GetNamespacedPodAttach = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/attach\`, @@ -14227,10 +14008,7 @@ export const connectCoreV1GetNamespacedPodAttach = ( options ); }; -export const connectCoreV1PostNamespacedPodAttach = ( - args: ConnectCoreV1PostNamespacedPodAttachApiArg, - options?: Options -) => { +export const connectCoreV1PostNamespacedPodAttach = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/attach\`, @@ -14257,10 +14035,7 @@ export const createCoreV1NamespacedPodBinding = (args: CreateCoreV1NamespacedPod options ); }; -export const readCoreV1NamespacedPodEphemeralcontainers = ( - args: ReadCoreV1NamespacedPodEphemeralcontainersApiArg, - options?: Options -) => { +export const readCoreV1NamespacedPodEphemeralcontainers = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/ephemeralcontainers\`, @@ -14327,7 +14102,7 @@ export const createCoreV1NamespacedPodEviction = (args: CreateCoreV1NamespacedPo options ); }; -export const connectCoreV1GetNamespacedPodExec = (args: ConnectCoreV1GetNamespacedPodExecApiArg, options?: Options) => { +export const connectCoreV1GetNamespacedPodExec = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/exec\`, @@ -14343,10 +14118,7 @@ export const connectCoreV1GetNamespacedPodExec = (args: ConnectCoreV1GetNamespac options ); }; -export const connectCoreV1PostNamespacedPodExec = ( - args: ConnectCoreV1PostNamespacedPodExecApiArg, - options?: Options -) => { +export const connectCoreV1PostNamespacedPodExec = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/exec\`, @@ -14363,7 +14135,7 @@ export const connectCoreV1PostNamespacedPodExec = ( options ); }; -export const readCoreV1NamespacedPodLog = (args: ReadCoreV1NamespacedPodLogApiArg, options?: Options) => { +export const readCoreV1NamespacedPodLog = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/log\`, @@ -14382,19 +14154,13 @@ export const readCoreV1NamespacedPodLog = (args: ReadCoreV1NamespacedPodLogApiAr options ); }; -export const connectCoreV1GetNamespacedPodPortforward = ( - args: ConnectCoreV1GetNamespacedPodPortforwardApiArg, - options?: Options -) => { +export const connectCoreV1GetNamespacedPodPortforward = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/portforward\`, params: { ports: args.ports } }, options ); }; -export const connectCoreV1PostNamespacedPodPortforward = ( - args: ConnectCoreV1PostNamespacedPodPortforwardApiArg, - options?: Options -) => { +export const connectCoreV1PostNamespacedPodPortforward = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/portforward\`, @@ -14404,19 +14170,13 @@ export const connectCoreV1PostNamespacedPodPortforward = ( options ); }; -export const connectCoreV1GetNamespacedPodProxy = ( - args: ConnectCoreV1GetNamespacedPodProxyApiArg, - options?: Options -) => { +export const connectCoreV1GetNamespacedPodProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/proxy\`, params: { path: args.path } }, options ); }; -export const connectCoreV1PutNamespacedPodProxy = ( - args: ConnectCoreV1PutNamespacedPodProxyApiArg, - options?: Options -) => { +export const connectCoreV1PutNamespacedPodProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/proxy\`, @@ -14426,10 +14186,7 @@ export const connectCoreV1PutNamespacedPodProxy = ( options ); }; -export const connectCoreV1PostNamespacedPodProxy = ( - args: ConnectCoreV1PostNamespacedPodProxyApiArg, - options?: Options -) => { +export const connectCoreV1PostNamespacedPodProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/proxy\`, @@ -14439,10 +14196,7 @@ export const connectCoreV1PostNamespacedPodProxy = ( options ); }; -export const connectCoreV1DeleteNamespacedPodProxy = ( - args: ConnectCoreV1DeleteNamespacedPodProxyApiArg, - options?: Options -) => { +export const connectCoreV1DeleteNamespacedPodProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/proxy\`, @@ -14452,10 +14206,7 @@ export const connectCoreV1DeleteNamespacedPodProxy = ( options ); }; -export const connectCoreV1OptionsNamespacedPodProxy = ( - args: ConnectCoreV1OptionsNamespacedPodProxyApiArg, - options?: Options -) => { +export const connectCoreV1OptionsNamespacedPodProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/proxy\`, @@ -14465,10 +14216,7 @@ export const connectCoreV1OptionsNamespacedPodProxy = ( options ); }; -export const connectCoreV1HeadNamespacedPodProxy = ( - args: ConnectCoreV1HeadNamespacedPodProxyApiArg, - options?: Options -) => { +export const connectCoreV1HeadNamespacedPodProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/proxy\`, @@ -14478,10 +14226,7 @@ export const connectCoreV1HeadNamespacedPodProxy = ( options ); }; -export const connectCoreV1PatchNamespacedPodProxy = ( - args: ConnectCoreV1PatchNamespacedPodProxyApiArg, - options?: Options -) => { +export const connectCoreV1PatchNamespacedPodProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/proxy\`, @@ -14491,10 +14236,7 @@ export const connectCoreV1PatchNamespacedPodProxy = ( options ); }; -export const connectCoreV1GetNamespacedPodProxyWithPath = ( - args: ConnectCoreV1GetNamespacedPodProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1GetNamespacedPodProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/proxy/\${args.pathPath}\`, @@ -14503,10 +14245,7 @@ export const connectCoreV1GetNamespacedPodProxyWithPath = ( options ); }; -export const connectCoreV1PutNamespacedPodProxyWithPath = ( - args: ConnectCoreV1PutNamespacedPodProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1PutNamespacedPodProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/proxy/\${args.pathPath}\`, @@ -14516,10 +14255,7 @@ export const connectCoreV1PutNamespacedPodProxyWithPath = ( options ); }; -export const connectCoreV1PostNamespacedPodProxyWithPath = ( - args: ConnectCoreV1PostNamespacedPodProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1PostNamespacedPodProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/proxy/\${args.pathPath}\`, @@ -14529,10 +14265,7 @@ export const connectCoreV1PostNamespacedPodProxyWithPath = ( options ); }; -export const connectCoreV1DeleteNamespacedPodProxyWithPath = ( - args: ConnectCoreV1DeleteNamespacedPodProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1DeleteNamespacedPodProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/proxy/\${args.pathPath}\`, @@ -14542,10 +14275,7 @@ export const connectCoreV1DeleteNamespacedPodProxyWithPath = ( options ); }; -export const connectCoreV1OptionsNamespacedPodProxyWithPath = ( - args: ConnectCoreV1OptionsNamespacedPodProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1OptionsNamespacedPodProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/proxy/\${args.pathPath}\`, @@ -14555,10 +14285,7 @@ export const connectCoreV1OptionsNamespacedPodProxyWithPath = ( options ); }; -export const connectCoreV1HeadNamespacedPodProxyWithPath = ( - args: ConnectCoreV1HeadNamespacedPodProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1HeadNamespacedPodProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/proxy/\${args.pathPath}\`, @@ -14568,10 +14295,7 @@ export const connectCoreV1HeadNamespacedPodProxyWithPath = ( options ); }; -export const connectCoreV1PatchNamespacedPodProxyWithPath = ( - args: ConnectCoreV1PatchNamespacedPodProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1PatchNamespacedPodProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/proxy/\${args.pathPath}\`, @@ -14581,7 +14305,7 @@ export const connectCoreV1PatchNamespacedPodProxyWithPath = ( options ); }; -export const readCoreV1NamespacedPodStatus = (args: ReadCoreV1NamespacedPodStatusApiArg, options?: Options) => { +export const readCoreV1NamespacedPodStatus = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/pods/\${args.name}/status\`, params: { pretty: args.pretty } }, options @@ -14699,7 +14423,7 @@ export const deleteCoreV1CollectionNamespacedPodTemplate = ( options ); }; -export const readCoreV1NamespacedPodTemplate = (args: ReadCoreV1NamespacedPodTemplateApiArg, options?: Options) => { +export const readCoreV1NamespacedPodTemplate = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/podtemplates/\${args.name}\`, params: { pretty: args.pretty } }, options @@ -14841,10 +14565,7 @@ export const deleteCoreV1CollectionNamespacedReplicationController = ( options ); }; -export const readCoreV1NamespacedReplicationController = ( - args: ReadCoreV1NamespacedReplicationControllerApiArg, - options?: Options -) => { +export const readCoreV1NamespacedReplicationController = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/replicationcontrollers/\${args.name}\`, @@ -14915,10 +14636,7 @@ export const patchCoreV1NamespacedReplicationController = ( options ); }; -export const readCoreV1NamespacedReplicationControllerScale = ( - args: ReadCoreV1NamespacedReplicationControllerScaleApiArg, - options?: Options -) => { +export const readCoreV1NamespacedReplicationControllerScale = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/replicationcontrollers/\${args.name}/scale\`, @@ -14968,10 +14686,7 @@ export const patchCoreV1NamespacedReplicationControllerScale = ( options ); }; -export const readCoreV1NamespacedReplicationControllerStatus = ( - args: ReadCoreV1NamespacedReplicationControllerStatusApiArg, - options?: Options -) => { +export const readCoreV1NamespacedReplicationControllerStatus = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/replicationcontrollers/\${args.name}/status\`, @@ -15101,7 +14816,7 @@ export const deleteCoreV1CollectionNamespacedResourceQuota = ( options ); }; -export const readCoreV1NamespacedResourceQuota = (args: ReadCoreV1NamespacedResourceQuotaApiArg, options?: Options) => { +export const readCoreV1NamespacedResourceQuota = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/resourcequotas/\${args.name}\`, params: { pretty: args.pretty } }, options @@ -15169,10 +14884,7 @@ export const patchCoreV1NamespacedResourceQuota = ( options ); }; -export const readCoreV1NamespacedResourceQuotaStatus = ( - args: ReadCoreV1NamespacedResourceQuotaStatusApiArg, - options?: Options -) => { +export const readCoreV1NamespacedResourceQuotaStatus = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/resourcequotas/\${args.name}/status\`, @@ -15299,7 +15011,7 @@ export const deleteCoreV1CollectionNamespacedSecret = ( options ); }; -export const readCoreV1NamespacedSecret = (args: ReadCoreV1NamespacedSecretApiArg, options?: Options) => { +export const readCoreV1NamespacedSecret = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/secrets/\${args.name}\`, params: { pretty: args.pretty } }, options @@ -15438,10 +15150,7 @@ export const deleteCoreV1CollectionNamespacedServiceAccount = ( options ); }; -export const readCoreV1NamespacedServiceAccount = ( - args: ReadCoreV1NamespacedServiceAccountApiArg, - options?: Options -) => { +export const readCoreV1NamespacedServiceAccount = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/serviceaccounts/\${args.name}\`, params: { pretty: args.pretty } }, options @@ -15606,7 +15315,7 @@ export const deleteCoreV1CollectionNamespacedService = ( options ); }; -export const readCoreV1NamespacedService = (args: ReadCoreV1NamespacedServiceApiArg, options?: Options) => { +export const readCoreV1NamespacedService = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/services/\${args.name}\`, params: { pretty: args.pretty } }, options @@ -15665,19 +15374,13 @@ export const patchCoreV1NamespacedService = (args: PatchCoreV1NamespacedServiceA options ); }; -export const connectCoreV1GetNamespacedServiceProxy = ( - args: ConnectCoreV1GetNamespacedServiceProxyApiArg, - options?: Options -) => { +export const connectCoreV1GetNamespacedServiceProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/services/\${args.name}/proxy\`, params: { path: args.path } }, options ); }; -export const connectCoreV1PutNamespacedServiceProxy = ( - args: ConnectCoreV1PutNamespacedServiceProxyApiArg, - options?: Options -) => { +export const connectCoreV1PutNamespacedServiceProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/services/\${args.name}/proxy\`, @@ -15687,10 +15390,7 @@ export const connectCoreV1PutNamespacedServiceProxy = ( options ); }; -export const connectCoreV1PostNamespacedServiceProxy = ( - args: ConnectCoreV1PostNamespacedServiceProxyApiArg, - options?: Options -) => { +export const connectCoreV1PostNamespacedServiceProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/services/\${args.name}/proxy\`, @@ -15700,10 +15400,7 @@ export const connectCoreV1PostNamespacedServiceProxy = ( options ); }; -export const connectCoreV1DeleteNamespacedServiceProxy = ( - args: ConnectCoreV1DeleteNamespacedServiceProxyApiArg, - options?: Options -) => { +export const connectCoreV1DeleteNamespacedServiceProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/services/\${args.name}/proxy\`, @@ -15713,10 +15410,7 @@ export const connectCoreV1DeleteNamespacedServiceProxy = ( options ); }; -export const connectCoreV1OptionsNamespacedServiceProxy = ( - args: ConnectCoreV1OptionsNamespacedServiceProxyApiArg, - options?: Options -) => { +export const connectCoreV1OptionsNamespacedServiceProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/services/\${args.name}/proxy\`, @@ -15726,10 +15420,7 @@ export const connectCoreV1OptionsNamespacedServiceProxy = ( options ); }; -export const connectCoreV1HeadNamespacedServiceProxy = ( - args: ConnectCoreV1HeadNamespacedServiceProxyApiArg, - options?: Options -) => { +export const connectCoreV1HeadNamespacedServiceProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/services/\${args.name}/proxy\`, @@ -15739,10 +15430,7 @@ export const connectCoreV1HeadNamespacedServiceProxy = ( options ); }; -export const connectCoreV1PatchNamespacedServiceProxy = ( - args: ConnectCoreV1PatchNamespacedServiceProxyApiArg, - options?: Options -) => { +export const connectCoreV1PatchNamespacedServiceProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/services/\${args.name}/proxy\`, @@ -15752,10 +15440,7 @@ export const connectCoreV1PatchNamespacedServiceProxy = ( options ); }; -export const connectCoreV1GetNamespacedServiceProxyWithPath = ( - args: ConnectCoreV1GetNamespacedServiceProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1GetNamespacedServiceProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/services/\${args.name}/proxy/\${args.pathPath}\`, @@ -15764,10 +15449,7 @@ export const connectCoreV1GetNamespacedServiceProxyWithPath = ( options ); }; -export const connectCoreV1PutNamespacedServiceProxyWithPath = ( - args: ConnectCoreV1PutNamespacedServiceProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1PutNamespacedServiceProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/services/\${args.name}/proxy/\${args.pathPath}\`, @@ -15777,10 +15459,7 @@ export const connectCoreV1PutNamespacedServiceProxyWithPath = ( options ); }; -export const connectCoreV1PostNamespacedServiceProxyWithPath = ( - args: ConnectCoreV1PostNamespacedServiceProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1PostNamespacedServiceProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/services/\${args.name}/proxy/\${args.pathPath}\`, @@ -15790,10 +15469,7 @@ export const connectCoreV1PostNamespacedServiceProxyWithPath = ( options ); }; -export const connectCoreV1DeleteNamespacedServiceProxyWithPath = ( - args: ConnectCoreV1DeleteNamespacedServiceProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1DeleteNamespacedServiceProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/services/\${args.name}/proxy/\${args.pathPath}\`, @@ -15803,10 +15479,7 @@ export const connectCoreV1DeleteNamespacedServiceProxyWithPath = ( options ); }; -export const connectCoreV1OptionsNamespacedServiceProxyWithPath = ( - args: ConnectCoreV1OptionsNamespacedServiceProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1OptionsNamespacedServiceProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/services/\${args.name}/proxy/\${args.pathPath}\`, @@ -15816,10 +15489,7 @@ export const connectCoreV1OptionsNamespacedServiceProxyWithPath = ( options ); }; -export const connectCoreV1HeadNamespacedServiceProxyWithPath = ( - args: ConnectCoreV1HeadNamespacedServiceProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1HeadNamespacedServiceProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/services/\${args.name}/proxy/\${args.pathPath}\`, @@ -15829,10 +15499,7 @@ export const connectCoreV1HeadNamespacedServiceProxyWithPath = ( options ); }; -export const connectCoreV1PatchNamespacedServiceProxyWithPath = ( - args: ConnectCoreV1PatchNamespacedServiceProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1PatchNamespacedServiceProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/services/\${args.name}/proxy/\${args.pathPath}\`, @@ -15842,7 +15509,7 @@ export const connectCoreV1PatchNamespacedServiceProxyWithPath = ( options ); }; -export const readCoreV1NamespacedServiceStatus = (args: ReadCoreV1NamespacedServiceStatusApiArg, options?: Options) => { +export const readCoreV1NamespacedServiceStatus = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args['namespace']}/services/\${args.name}/status\`, params: { pretty: args.pretty } }, options @@ -15889,7 +15556,7 @@ export const patchCoreV1NamespacedServiceStatus = ( options ); }; -export const readCoreV1Namespace = (args: ReadCoreV1NamespaceApiArg, options?: Options) => { +export const readCoreV1Namespace = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args.name}\`, params: { pretty: args.pretty } }, options @@ -15965,7 +15632,7 @@ export const replaceCoreV1NamespaceFinalize = (args: ReplaceCoreV1NamespaceFinal options ); }; -export const readCoreV1NamespaceStatus = (args: ReadCoreV1NamespaceStatusApiArg, options?: Options) => { +export const readCoreV1NamespaceStatus = (options?: Options) => { return apiClient>( { path: \`/api/v1/namespaces/\${args.name}/status\`, params: { pretty: args.pretty } }, options @@ -16080,7 +15747,7 @@ export const deleteCoreV1CollectionNode = (args: DeleteCoreV1CollectionNodeApiAr options ); }; -export const readCoreV1Node = (args: ReadCoreV1NodeApiArg, options?: Options) => { +export const readCoreV1Node = (options?: Options) => { return apiClient>( { path: \`/api/v1/nodes/\${args.name}\`, params: { pretty: args.pretty } }, options @@ -16139,106 +15806,91 @@ export const patchCoreV1Node = (args: PatchCoreV1NodeApiArg, options?: Options) options ); }; -export const connectCoreV1GetNodeProxy = (args: ConnectCoreV1GetNodeProxyApiArg, options?: Options) => { +export const connectCoreV1GetNodeProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/nodes/\${args.name}/proxy\`, params: { path: args.path } }, options ); }; -export const connectCoreV1PutNodeProxy = (args: ConnectCoreV1PutNodeProxyApiArg, options?: Options) => { +export const connectCoreV1PutNodeProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/nodes/\${args.name}/proxy\`, method: 'PUT', params: { path: args.path } }, options ); }; -export const connectCoreV1PostNodeProxy = (args: ConnectCoreV1PostNodeProxyApiArg, options?: Options) => { +export const connectCoreV1PostNodeProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/nodes/\${args.name}/proxy\`, method: 'POST', params: { path: args.path } }, options ); }; -export const connectCoreV1DeleteNodeProxy = (args: ConnectCoreV1DeleteNodeProxyApiArg, options?: Options) => { +export const connectCoreV1DeleteNodeProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/nodes/\${args.name}/proxy\`, method: 'DELETE', params: { path: args.path } }, options ); }; -export const connectCoreV1OptionsNodeProxy = (args: ConnectCoreV1OptionsNodeProxyApiArg, options?: Options) => { +export const connectCoreV1OptionsNodeProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/nodes/\${args.name}/proxy\`, method: 'OPTIONS', params: { path: args.path } }, options ); }; -export const connectCoreV1HeadNodeProxy = (args: ConnectCoreV1HeadNodeProxyApiArg, options?: Options) => { +export const connectCoreV1HeadNodeProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/nodes/\${args.name}/proxy\`, method: 'HEAD', params: { path: args.path } }, options ); }; -export const connectCoreV1PatchNodeProxy = (args: ConnectCoreV1PatchNodeProxyApiArg, options?: Options) => { +export const connectCoreV1PatchNodeProxy = (options?: Options) => { return apiClient>( { path: \`/api/v1/nodes/\${args.name}/proxy\`, method: 'PATCH', params: { path: args.path } }, options ); }; -export const connectCoreV1GetNodeProxyWithPath = (args: ConnectCoreV1GetNodeProxyWithPathApiArg, options?: Options) => { +export const connectCoreV1GetNodeProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/nodes/\${args.name}/proxy/\${args.pathPath}\`, params: { path: args.queryPath } }, options ); }; -export const connectCoreV1PutNodeProxyWithPath = (args: ConnectCoreV1PutNodeProxyWithPathApiArg, options?: Options) => { +export const connectCoreV1PutNodeProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/nodes/\${args.name}/proxy/\${args.pathPath}\`, method: 'PUT', params: { path: args.queryPath } }, options ); }; -export const connectCoreV1PostNodeProxyWithPath = ( - args: ConnectCoreV1PostNodeProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1PostNodeProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/nodes/\${args.name}/proxy/\${args.pathPath}\`, method: 'POST', params: { path: args.queryPath } }, options ); }; -export const connectCoreV1DeleteNodeProxyWithPath = ( - args: ConnectCoreV1DeleteNodeProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1DeleteNodeProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/nodes/\${args.name}/proxy/\${args.pathPath}\`, method: 'DELETE', params: { path: args.queryPath } }, options ); }; -export const connectCoreV1OptionsNodeProxyWithPath = ( - args: ConnectCoreV1OptionsNodeProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1OptionsNodeProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/nodes/\${args.name}/proxy/\${args.pathPath}\`, method: 'OPTIONS', params: { path: args.queryPath } }, options ); }; -export const connectCoreV1HeadNodeProxyWithPath = ( - args: ConnectCoreV1HeadNodeProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1HeadNodeProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/nodes/\${args.name}/proxy/\${args.pathPath}\`, method: 'HEAD', params: { path: args.queryPath } }, options ); }; -export const connectCoreV1PatchNodeProxyWithPath = ( - args: ConnectCoreV1PatchNodeProxyWithPathApiArg, - options?: Options -) => { +export const connectCoreV1PatchNodeProxyWithPath = (options?: Options) => { return apiClient>( { path: \`/api/v1/nodes/\${args.name}/proxy/\${args.pathPath}\`, method: 'PATCH', params: { path: args.queryPath } }, options ); }; -export const readCoreV1NodeStatus = (args: ReadCoreV1NodeStatusApiArg, options?: Options) => { +export const readCoreV1NodeStatus = (options?: Options) => { return apiClient>( { path: \`/api/v1/nodes/\${args.name}/status\`, params: { pretty: args.pretty } }, options @@ -16387,7 +16039,7 @@ export const deleteCoreV1CollectionPersistentVolume = ( options ); }; -export const readCoreV1PersistentVolume = (args: ReadCoreV1PersistentVolumeApiArg, options?: Options) => { +export const readCoreV1PersistentVolume = (options?: Options) => { return apiClient>( { path: \`/api/v1/persistentvolumes/\${args.name}\`, params: { pretty: args.pretty } }, options @@ -16446,7 +16098,7 @@ export const patchCoreV1PersistentVolume = (args: PatchCoreV1PersistentVolumeApi options ); }; -export const readCoreV1PersistentVolumeStatus = (args: ReadCoreV1PersistentVolumeStatusApiArg, options?: Options) => { +export const readCoreV1PersistentVolumeStatus = (options?: Options) => { return apiClient>( { path: \`/api/v1/persistentvolumes/\${args.name}/status\`, params: { pretty: args.pretty } }, options @@ -16707,10 +16359,7 @@ export function listCoreV1ServiceForAllNamespaces(args: any, options: any): any options ); } -export const watchCoreV1ConfigMapListForAllNamespaces = ( - args: WatchCoreV1ConfigMapListForAllNamespacesApiArg, - options?: Options -) => { +export const watchCoreV1ConfigMapListForAllNamespaces = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/configmaps\`, @@ -16731,10 +16380,7 @@ export const watchCoreV1ConfigMapListForAllNamespaces = ( options ); }; -export const watchCoreV1EndpointsListForAllNamespaces = ( - args: WatchCoreV1EndpointsListForAllNamespacesApiArg, - options?: Options -) => { +export const watchCoreV1EndpointsListForAllNamespaces = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/endpoints\`, @@ -16755,10 +16401,7 @@ export const watchCoreV1EndpointsListForAllNamespaces = ( options ); }; -export const watchCoreV1EventListForAllNamespaces = ( - args: WatchCoreV1EventListForAllNamespacesApiArg, - options?: Options -) => { +export const watchCoreV1EventListForAllNamespaces = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/events\`, @@ -16779,10 +16422,7 @@ export const watchCoreV1EventListForAllNamespaces = ( options ); }; -export const watchCoreV1LimitRangeListForAllNamespaces = ( - args: WatchCoreV1LimitRangeListForAllNamespacesApiArg, - options?: Options -) => { +export const watchCoreV1LimitRangeListForAllNamespaces = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/limitranges\`, @@ -16803,7 +16443,7 @@ export const watchCoreV1LimitRangeListForAllNamespaces = ( options ); }; -export const watchCoreV1NamespaceList = (args: WatchCoreV1NamespaceListApiArg, options?: Options) => { +export const watchCoreV1NamespaceList = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces\`, @@ -16824,10 +16464,7 @@ export const watchCoreV1NamespaceList = (args: WatchCoreV1NamespaceListApiArg, o options ); }; -export const watchCoreV1NamespacedConfigMapList = ( - args: WatchCoreV1NamespacedConfigMapListApiArg, - options?: Options -) => { +export const watchCoreV1NamespacedConfigMapList = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/configmaps\`, @@ -16848,7 +16485,7 @@ export const watchCoreV1NamespacedConfigMapList = ( options ); }; -export const watchCoreV1NamespacedConfigMap = (args: WatchCoreV1NamespacedConfigMapApiArg, options?: Options) => { +export const watchCoreV1NamespacedConfigMap = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/configmaps/\${args.name}\`, @@ -16869,10 +16506,7 @@ export const watchCoreV1NamespacedConfigMap = (args: WatchCoreV1NamespacedConfig options ); }; -export const watchCoreV1NamespacedEndpointsList = ( - args: WatchCoreV1NamespacedEndpointsListApiArg, - options?: Options -) => { +export const watchCoreV1NamespacedEndpointsList = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/endpoints\`, @@ -16893,7 +16527,7 @@ export const watchCoreV1NamespacedEndpointsList = ( options ); }; -export const watchCoreV1NamespacedEndpoints = (args: WatchCoreV1NamespacedEndpointsApiArg, options?: Options) => { +export const watchCoreV1NamespacedEndpoints = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/endpoints/\${args.name}\`, @@ -16914,7 +16548,7 @@ export const watchCoreV1NamespacedEndpoints = (args: WatchCoreV1NamespacedEndpoi options ); }; -export const watchCoreV1NamespacedEventList = (args: WatchCoreV1NamespacedEventListApiArg, options?: Options) => { +export const watchCoreV1NamespacedEventList = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/events\`, @@ -16935,7 +16569,7 @@ export const watchCoreV1NamespacedEventList = (args: WatchCoreV1NamespacedEventL options ); }; -export const watchCoreV1NamespacedEvent = (args: WatchCoreV1NamespacedEventApiArg, options?: Options) => { +export const watchCoreV1NamespacedEvent = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/events/\${args.name}\`, @@ -16956,10 +16590,7 @@ export const watchCoreV1NamespacedEvent = (args: WatchCoreV1NamespacedEventApiAr options ); }; -export const watchCoreV1NamespacedLimitRangeList = ( - args: WatchCoreV1NamespacedLimitRangeListApiArg, - options?: Options -) => { +export const watchCoreV1NamespacedLimitRangeList = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/limitranges\`, @@ -16980,7 +16611,7 @@ export const watchCoreV1NamespacedLimitRangeList = ( options ); }; -export const watchCoreV1NamespacedLimitRange = (args: WatchCoreV1NamespacedLimitRangeApiArg, options?: Options) => { +export const watchCoreV1NamespacedLimitRange = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/limitranges/\${args.name}\`, @@ -17001,10 +16632,7 @@ export const watchCoreV1NamespacedLimitRange = (args: WatchCoreV1NamespacedLimit options ); }; -export const watchCoreV1NamespacedPersistentVolumeClaimList = ( - args: WatchCoreV1NamespacedPersistentVolumeClaimListApiArg, - options?: Options -) => { +export const watchCoreV1NamespacedPersistentVolumeClaimList = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/persistentvolumeclaims\`, @@ -17025,10 +16653,7 @@ export const watchCoreV1NamespacedPersistentVolumeClaimList = ( options ); }; -export const watchCoreV1NamespacedPersistentVolumeClaim = ( - args: WatchCoreV1NamespacedPersistentVolumeClaimApiArg, - options?: Options -) => { +export const watchCoreV1NamespacedPersistentVolumeClaim = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/persistentvolumeclaims/\${args.name}\`, @@ -17049,7 +16674,7 @@ export const watchCoreV1NamespacedPersistentVolumeClaim = ( options ); }; -export const watchCoreV1NamespacedPodList = (args: WatchCoreV1NamespacedPodListApiArg, options?: Options) => { +export const watchCoreV1NamespacedPodList = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/pods\`, @@ -17070,7 +16695,7 @@ export const watchCoreV1NamespacedPodList = (args: WatchCoreV1NamespacedPodListA options ); }; -export const watchCoreV1NamespacedPod = (args: WatchCoreV1NamespacedPodApiArg, options?: Options) => { +export const watchCoreV1NamespacedPod = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/pods/\${args.name}\`, @@ -17091,10 +16716,7 @@ export const watchCoreV1NamespacedPod = (args: WatchCoreV1NamespacedPodApiArg, o options ); }; -export const watchCoreV1NamespacedPodTemplateList = ( - args: WatchCoreV1NamespacedPodTemplateListApiArg, - options?: Options -) => { +export const watchCoreV1NamespacedPodTemplateList = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/podtemplates\`, @@ -17115,7 +16737,7 @@ export const watchCoreV1NamespacedPodTemplateList = ( options ); }; -export const watchCoreV1NamespacedPodTemplate = (args: WatchCoreV1NamespacedPodTemplateApiArg, options?: Options) => { +export const watchCoreV1NamespacedPodTemplate = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/podtemplates/\${args.name}\`, @@ -17136,10 +16758,7 @@ export const watchCoreV1NamespacedPodTemplate = (args: WatchCoreV1NamespacedPodT options ); }; -export const watchCoreV1NamespacedReplicationControllerList = ( - args: WatchCoreV1NamespacedReplicationControllerListApiArg, - options?: Options -) => { +export const watchCoreV1NamespacedReplicationControllerList = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/replicationcontrollers\`, @@ -17160,10 +16779,7 @@ export const watchCoreV1NamespacedReplicationControllerList = ( options ); }; -export const watchCoreV1NamespacedReplicationController = ( - args: WatchCoreV1NamespacedReplicationControllerApiArg, - options?: Options -) => { +export const watchCoreV1NamespacedReplicationController = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/replicationcontrollers/\${args.name}\`, @@ -17184,10 +16800,7 @@ export const watchCoreV1NamespacedReplicationController = ( options ); }; -export const watchCoreV1NamespacedResourceQuotaList = ( - args: WatchCoreV1NamespacedResourceQuotaListApiArg, - options?: Options -) => { +export const watchCoreV1NamespacedResourceQuotaList = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/resourcequotas\`, @@ -17208,10 +16821,7 @@ export const watchCoreV1NamespacedResourceQuotaList = ( options ); }; -export const watchCoreV1NamespacedResourceQuota = ( - args: WatchCoreV1NamespacedResourceQuotaApiArg, - options?: Options -) => { +export const watchCoreV1NamespacedResourceQuota = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/resourcequotas/\${args.name}\`, @@ -17232,7 +16842,7 @@ export const watchCoreV1NamespacedResourceQuota = ( options ); }; -export const watchCoreV1NamespacedSecretList = (args: WatchCoreV1NamespacedSecretListApiArg, options?: Options) => { +export const watchCoreV1NamespacedSecretList = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/secrets\`, @@ -17253,7 +16863,7 @@ export const watchCoreV1NamespacedSecretList = (args: WatchCoreV1NamespacedSecre options ); }; -export const watchCoreV1NamespacedSecret = (args: WatchCoreV1NamespacedSecretApiArg, options?: Options) => { +export const watchCoreV1NamespacedSecret = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/secrets/\${args.name}\`, @@ -17274,10 +16884,7 @@ export const watchCoreV1NamespacedSecret = (args: WatchCoreV1NamespacedSecretApi options ); }; -export const watchCoreV1NamespacedServiceAccountList = ( - args: WatchCoreV1NamespacedServiceAccountListApiArg, - options?: Options -) => { +export const watchCoreV1NamespacedServiceAccountList = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/serviceaccounts\`, @@ -17298,10 +16905,7 @@ export const watchCoreV1NamespacedServiceAccountList = ( options ); }; -export const watchCoreV1NamespacedServiceAccount = ( - args: WatchCoreV1NamespacedServiceAccountApiArg, - options?: Options -) => { +export const watchCoreV1NamespacedServiceAccount = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/serviceaccounts/\${args.name}\`, @@ -17322,7 +16926,7 @@ export const watchCoreV1NamespacedServiceAccount = ( options ); }; -export const watchCoreV1NamespacedServiceList = (args: WatchCoreV1NamespacedServiceListApiArg, options?: Options) => { +export const watchCoreV1NamespacedServiceList = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/services\`, @@ -17343,7 +16947,7 @@ export const watchCoreV1NamespacedServiceList = (args: WatchCoreV1NamespacedServ options ); }; -export const watchCoreV1NamespacedService = (args: WatchCoreV1NamespacedServiceApiArg, options?: Options) => { +export const watchCoreV1NamespacedService = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args['namespace']}/services/\${args.name}\`, @@ -17364,7 +16968,7 @@ export const watchCoreV1NamespacedService = (args: WatchCoreV1NamespacedServiceA options ); }; -export const watchCoreV1Namespace = (args: WatchCoreV1NamespaceApiArg, options?: Options) => { +export const watchCoreV1Namespace = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/namespaces/\${args.name}\`, @@ -17385,7 +16989,7 @@ export const watchCoreV1Namespace = (args: WatchCoreV1NamespaceApiArg, options?: options ); }; -export const watchCoreV1NodeList = (args: WatchCoreV1NodeListApiArg, options?: Options) => { +export const watchCoreV1NodeList = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/nodes\`, @@ -17406,7 +17010,7 @@ export const watchCoreV1NodeList = (args: WatchCoreV1NodeListApiArg, options?: O options ); }; -export const watchCoreV1Node = (args: WatchCoreV1NodeApiArg, options?: Options) => { +export const watchCoreV1Node = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/nodes/\${args.name}\`, @@ -17427,10 +17031,7 @@ export const watchCoreV1Node = (args: WatchCoreV1NodeApiArg, options?: Options) options ); }; -export const watchCoreV1PersistentVolumeClaimListForAllNamespaces = ( - args: WatchCoreV1PersistentVolumeClaimListForAllNamespacesApiArg, - options?: Options -) => { +export const watchCoreV1PersistentVolumeClaimListForAllNamespaces = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/persistentvolumeclaims\`, @@ -17451,7 +17052,7 @@ export const watchCoreV1PersistentVolumeClaimListForAllNamespaces = ( options ); }; -export const watchCoreV1PersistentVolumeList = (args: WatchCoreV1PersistentVolumeListApiArg, options?: Options) => { +export const watchCoreV1PersistentVolumeList = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/persistentvolumes\`, @@ -17472,7 +17073,7 @@ export const watchCoreV1PersistentVolumeList = (args: WatchCoreV1PersistentVolum options ); }; -export const watchCoreV1PersistentVolume = (args: WatchCoreV1PersistentVolumeApiArg, options?: Options) => { +export const watchCoreV1PersistentVolume = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/persistentvolumes/\${args.name}\`, @@ -17493,10 +17094,7 @@ export const watchCoreV1PersistentVolume = (args: WatchCoreV1PersistentVolumeApi options ); }; -export const watchCoreV1PodListForAllNamespaces = ( - args: WatchCoreV1PodListForAllNamespacesApiArg, - options?: Options -) => { +export const watchCoreV1PodListForAllNamespaces = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/pods\`, @@ -17517,10 +17115,7 @@ export const watchCoreV1PodListForAllNamespaces = ( options ); }; -export const watchCoreV1PodTemplateListForAllNamespaces = ( - args: WatchCoreV1PodTemplateListForAllNamespacesApiArg, - options?: Options -) => { +export const watchCoreV1PodTemplateListForAllNamespaces = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/podtemplates\`, @@ -17541,10 +17136,7 @@ export const watchCoreV1PodTemplateListForAllNamespaces = ( options ); }; -export const watchCoreV1ReplicationControllerListForAllNamespaces = ( - args: WatchCoreV1ReplicationControllerListForAllNamespacesApiArg, - options?: Options -) => { +export const watchCoreV1ReplicationControllerListForAllNamespaces = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/replicationcontrollers\`, @@ -17565,10 +17157,7 @@ export const watchCoreV1ReplicationControllerListForAllNamespaces = ( options ); }; -export const watchCoreV1ResourceQuotaListForAllNamespaces = ( - args: WatchCoreV1ResourceQuotaListForAllNamespacesApiArg, - options?: Options -) => { +export const watchCoreV1ResourceQuotaListForAllNamespaces = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/resourcequotas\`, @@ -17589,10 +17178,7 @@ export const watchCoreV1ResourceQuotaListForAllNamespaces = ( options ); }; -export const watchCoreV1SecretListForAllNamespaces = ( - args: WatchCoreV1SecretListForAllNamespacesApiArg, - options?: Options -) => { +export const watchCoreV1SecretListForAllNamespaces = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/secrets\`, @@ -17613,10 +17199,7 @@ export const watchCoreV1SecretListForAllNamespaces = ( options ); }; -export const watchCoreV1ServiceAccountListForAllNamespaces = ( - args: WatchCoreV1ServiceAccountListForAllNamespacesApiArg, - options?: Options -) => { +export const watchCoreV1ServiceAccountListForAllNamespaces = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/serviceaccounts\`, @@ -17637,10 +17220,7 @@ export const watchCoreV1ServiceAccountListForAllNamespaces = ( options ); }; -export const watchCoreV1ServiceListForAllNamespaces = ( - args: WatchCoreV1ServiceListForAllNamespacesApiArg, - options?: Options -) => { +export const watchCoreV1ServiceListForAllNamespaces = (options?: Options) => { return apiClient>( { path: \`/api/v1/watch/services\`, diff --git a/packages/kubekit-codegen/test/__snapshots__/generateEndpoints.test.ts.snap b/packages/kubekit-codegen/test/__snapshots__/generateEndpoints.test.ts.snap index d2929e16..27f2c843 100644 --- a/packages/kubekit-codegen/test/__snapshots__/generateEndpoints.test.ts.snap +++ b/packages/kubekit-codegen/test/__snapshots__/generateEndpoints.test.ts.snap @@ -45,10 +45,7 @@ type MinimumRequiredList = Id< } : T >; -export const getHealthcheck = ( - args: GetHealthcheckApiArg, - options?: Options -) => { +export const getHealthcheck = (options?: Options) => { return apiClient>( { path: \`/healthcheck\` }, options @@ -76,34 +73,25 @@ export const addPet = (args: AddPetApiArg, options?: Options) => { options ); }; -export const findPetsByStatus = ( - args: FindPetsByStatusApiArg, - options?: Options -) => { +export const findPetsByStatus = (options?: Options) => { return apiClient>( { path: \`/pet/findByStatus\`, params: { status: args.status } }, options ); }; -export const findPetsByTags = ( - args: FindPetsByTagsApiArg, - options?: Options -) => { +export const findPetsByTags = (options?: Options) => { return apiClient>( { path: \`/pet/findByTags\`, params: { tags: args.tags } }, options ); }; -export const getPetById = (args: GetPetByIdApiArg, options?: Options) => { +export const getPetById = (options?: Options) => { return apiClient>( { path: \`/pet/\${args.petId}\` }, options ); }; -export const updatePetWithForm = ( - args: UpdatePetWithFormApiArg, - options?: Options -) => { +export const updatePetWithForm = (options?: Options) => { return apiClient>( { path: \`/pet/\${args.petId}\`, @@ -113,7 +101,7 @@ export const updatePetWithForm = ( options ); }; -export const deletePet = (args: DeletePetApiArg, options?: Options) => { +export const deletePet = (options?: Options) => { return apiClient>( { path: \`/pet/\${args.petId}\`, @@ -135,7 +123,7 @@ export const uploadFile = (args: UploadFileApiArg, options?: Options) => { options ); }; -export const getInventory = (args: GetInventoryApiArg, options?: Options) => { +export const getInventory = (options?: Options) => { return apiClient>( { path: \`/store/inventory\` }, options @@ -152,13 +140,13 @@ export const placeOrder = (args: PlaceOrderApiArg, options?: Options) => { options ); }; -export const getOrderById = (args: GetOrderByIdApiArg, options?: Options) => { +export const getOrderById = (options?: Options) => { return apiClient>( { path: \`/store/order/\${args.orderId}\` }, options ); }; -export const deleteOrder = (args: DeleteOrderApiArg, options?: Options) => { +export const deleteOrder = (options?: Options) => { return apiClient>( { path: \`/store/order/\${args.orderId}\`, method: "DELETE" }, options @@ -189,7 +177,7 @@ export const createUsersWithListInput = ( options ); }; -export const loginUser = (args: LoginUserApiArg, options?: Options) => { +export const loginUser = (options?: Options) => { return apiClient>( { path: \`/user/login\`, @@ -198,13 +186,13 @@ export const loginUser = (args: LoginUserApiArg, options?: Options) => { options ); }; -export const logoutUser = (args: LogoutUserApiArg, options?: Options) => { +export const logoutUser = (options?: Options) => { return apiClient>( { path: \`/user/logout\` }, options ); }; -export const getUserByName = (args: GetUserByNameApiArg, options?: Options) => { +export const getUserByName = (options?: Options) => { return apiClient>( { path: \`/user/\${args.username}\` }, options @@ -221,7 +209,7 @@ export const updateUser = (args: UpdateUserApiArg, options?: Options) => { options ); }; -export const deleteUser = (args: DeleteUserApiArg, options?: Options) => { +export const deleteUser = (options?: Options) => { return apiClient>( { path: \`/user/\${args.username}\`, method: "DELETE" }, options @@ -482,19 +470,13 @@ type MinimumRequiredList = Id< } : T >; -export const patchApiV1ListByItemId = ( - args: PatchApiV1ListByItemIdApiArg, - options?: Options -) => { +export const patchApiV1ListByItemId = (options?: Options) => { return apiClient>( { path: \`/api/v1/list/\${args["item.id"]}\`, method: "PATCH" }, options ); }; -export const patchApiV2BySomeName = ( - args: PatchApiV2BySomeNameApiArg, - options?: Options -) => { +export const patchApiV2BySomeName = (options?: Options) => { return apiClient>( { path: \`/api/v2/\${args.pathSomeName}\`, @@ -574,19 +556,19 @@ export const placeOrder = (args: PlaceOrderApiArg, options?: Options) => { options ); }; -export const getOrderById = (args: GetOrderByIdApiArg, options?: Options) => { +export const getOrderById = (options?: Options) => { return apiClient>( { path: \`/store/order/\${args.orderId}\` }, options ); }; -export const deleteOrder = (args: DeleteOrderApiArg, options?: Options) => { +export const deleteOrder = (options?: Options) => { return apiClient>( { path: \`/store/order/\${args.orderId}\`, method: "DELETE" }, options ); }; -export const loginUser = (args: LoginUserApiArg, options?: Options) => { +export const loginUser = (options?: Options) => { return apiClient>( { path: \`/user/login\`, @@ -686,19 +668,13 @@ type MinimumRequiredList = Id< } : T >; -export const patchApiV1ListByItemId = ( - args: PatchApiV1ListByItemIdApiArg, - options?: Options -) => { +export const patchApiV1ListByItemId = (options?: Options) => { return apiClient>( { path: \`/api/v1/list/\${args["item.id"]}\`, method: "PATCH" }, options ); }; -export const patchApiV2BySomeName = ( - args: PatchApiV2BySomeNameApiArg, - options?: Options -) => { +export const patchApiV2BySomeName = (options?: Options) => { return apiClient>( { path: \`/api/v2/\${args.pathSomeName}\`, @@ -767,10 +743,7 @@ type MinimumRequiredList = Id< } : T >; -export const getApiV1Animals = ( - args: GetApiV1AnimalsApiArg, - options?: Options -) => { +export const getApiV1Animals = (options?: Options) => { return apiClient>( { path: \`/api/v1/animals\`, params: { type: args["type"] } }, options @@ -861,34 +834,25 @@ export const addPet = (args: AddPetApiArg, options?: Options) => { options ); }; -export const findPetsByStatus = ( - args: FindPetsByStatusApiArg, - options?: Options -) => { +export const findPetsByStatus = (options?: Options) => { return apiClient>( { path: \`/pet/findByStatus\`, params: { status: args.status } }, options ); }; -export const findPetsByTags = ( - args: FindPetsByTagsApiArg, - options?: Options -) => { +export const findPetsByTags = (options?: Options) => { return apiClient>( { path: \`/pet/findByTags\`, params: { tags: args.tags } }, options ); }; -export const getPetById = (args: GetPetByIdApiArg, options?: Options) => { +export const getPetById = (options?: Options) => { return apiClient>( { path: \`/pet/\${args.petId}\` }, options ); }; -export const updatePetWithForm = ( - args: UpdatePetWithFormApiArg, - options?: Options -) => { +export const updatePetWithForm = (options?: Options) => { return apiClient>( { path: \`/pet/\${args.petId}\`, @@ -898,7 +862,7 @@ export const updatePetWithForm = ( options ); }; -export const deletePet = (args: DeletePetApiArg, options?: Options) => { +export const deletePet = (options?: Options) => { return apiClient>( { path: \`/pet/\${args.petId}\`, @@ -920,7 +884,7 @@ export const uploadFile = (args: UploadFileApiArg, options?: Options) => { options ); }; -export const getInventory = (args: GetInventoryApiArg, options?: Options) => { +export const getInventory = (options?: Options) => { return apiClient>( { path: \`/store/inventory\` }, options @@ -937,13 +901,13 @@ export const placeOrder = (args: PlaceOrderApiArg, options?: Options) => { options ); }; -export const getOrderById = (args: GetOrderByIdApiArg, options?: Options) => { +export const getOrderById = (options?: Options) => { return apiClient>( { path: \`/store/order/\${args.orderId}\` }, options ); }; -export const deleteOrder = (args: DeleteOrderApiArg, options?: Options) => { +export const deleteOrder = (options?: Options) => { return apiClient>( { path: \`/store/order/\${args.orderId}\`, method: "DELETE" }, options @@ -974,7 +938,7 @@ export const createUsersWithListInput = ( options ); }; -export const loginUser = (args: LoginUserApiArg, options?: Options) => { +export const loginUser = (options?: Options) => { return apiClient>( { path: \`/user/login\`, @@ -983,13 +947,13 @@ export const loginUser = (args: LoginUserApiArg, options?: Options) => { options ); }; -export const logoutUser = (args: LogoutUserApiArg, options?: Options) => { +export const logoutUser = (options?: Options) => { return apiClient>( { path: \`/user/logout\` }, options ); }; -export const getUserByName = (args: GetUserByNameApiArg, options?: Options) => { +export const getUserByName = (options?: Options) => { return apiClient>( { path: \`/user/\${args.username}\` }, options @@ -1006,7 +970,7 @@ export const updateUser = (args: UpdateUserApiArg, options?: Options) => { options ); }; -export const deleteUser = (args: DeleteUserApiArg, options?: Options) => { +export const deleteUser = (options?: Options) => { return apiClient>( { path: \`/user/\${args.username}\`, method: "DELETE" }, options @@ -1263,10 +1227,7 @@ type MinimumRequiredList = Id< } : T >; -export const getStructureDefinition = ( - args: GetStructureDefinitionApiArg, - options?: Options -) => { +export const getStructureDefinition = (options?: Options) => { return apiClient>( { path: \`/StructureDefinition\`, @@ -1375,34 +1336,25 @@ export const addPet = (args: AddPetApiArg, options?: Options) => { options ); }; -export const findPetsByStatus = ( - args: FindPetsByStatusApiArg, - options?: Options -) => { +export const findPetsByStatus = (options?: Options) => { return apiClient>( { path: \`/pet/findByStatus\`, params: { status: args.status } }, options ); }; -export const findPetsByTags = ( - args: FindPetsByTagsApiArg, - options?: Options -) => { +export const findPetsByTags = (options?: Options) => { return apiClient>( { path: \`/pet/findByTags\`, params: { tags: args.tags } }, options ); }; -export const getPetById = (args: GetPetByIdApiArg, options?: Options) => { +export const getPetById = (options?: Options) => { return apiClient>( { path: \`/pet/\${args.petId}\` }, options ); }; -export const updatePetWithForm = ( - args: UpdatePetWithFormApiArg, - options?: Options -) => { +export const updatePetWithForm = (options?: Options) => { return apiClient>( { path: \`/pet/\${args.petId}\`, @@ -1412,7 +1364,7 @@ export const updatePetWithForm = ( options ); }; -export const deletePet = (args: DeletePetApiArg, options?: Options) => { +export const deletePet = (options?: Options) => { return apiClient>( { path: \`/pet/\${args.petId}\`, @@ -1434,7 +1386,7 @@ export const uploadFile = (args: UploadFileApiArg, options?: Options) => { options ); }; -export const getInventory = (args: GetInventoryApiArg, options?: Options) => { +export const getInventory = (options?: Options) => { return apiClient>( { path: \`/store/inventory\` }, options @@ -1451,13 +1403,13 @@ export const placeOrder = (args: PlaceOrderApiArg, options?: Options) => { options ); }; -export const getOrderById = (args: GetOrderByIdApiArg, options?: Options) => { +export const getOrderById = (options?: Options) => { return apiClient>( { path: \`/store/order/\${args.orderId}\` }, options ); }; -export const deleteOrder = (args: DeleteOrderApiArg, options?: Options) => { +export const deleteOrder = (options?: Options) => { return apiClient>( { path: \`/store/order/\${args.orderId}\`, method: "DELETE" }, options @@ -1488,7 +1440,7 @@ export const createUsersWithListInput = ( options ); }; -export const loginUser = (args: LoginUserApiArg, options?: Options) => { +export const loginUser = (options?: Options) => { return apiClient>( { path: \`/user/login\`, @@ -1497,13 +1449,13 @@ export const loginUser = (args: LoginUserApiArg, options?: Options) => { options ); }; -export const logoutUser = (args: LogoutUserApiArg, options?: Options) => { +export const logoutUser = (options?: Options) => { return apiClient>( { path: \`/user/logout\` }, options ); }; -export const getUserByName = (args: GetUserByNameApiArg, options?: Options) => { +export const getUserByName = (options?: Options) => { return apiClient>( { path: \`/user/\${args.username}\` }, options @@ -1520,7 +1472,7 @@ export const updateUser = (args: UpdateUserApiArg, options?: Options) => { options ); }; -export const deleteUser = (args: DeleteUserApiArg, options?: Options) => { +export const deleteUser = (options?: Options) => { return apiClient>( { path: \`/user/\${args.username}\`, method: "DELETE" }, options