Skip to content

Commit 5e57ae2

Browse files
committed
Generated
0 parents  commit 5e57ae2

File tree

688 files changed

+269780
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

688 files changed

+269780
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist

.openapi-generator-ignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# OpenAPI Generator Ignore
2+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md

.openapi-generator/FILES

Lines changed: 686 additions & 0 deletions
Large diffs are not rendered by default.

.openapi-generator/VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
5.0.0-SNAPSHOT

apis/AdmissionregistrationApi.ts

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
// TODO: better import syntax?
2+
import { BaseAPIRequestFactory, RequiredError } from './baseapi.ts';
3+
import {Configuration} from '../configuration.ts';
4+
import { RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http.ts';
5+
import {ObjectSerializer} from '../models/ObjectSerializer.ts';
6+
import {ApiException} from './exception.ts';
7+
import {isCodeInRange} from '../util.ts';
8+
9+
import { IoK8sApimachineryPkgApisMetaV1APIGroup } from '../models/IoK8sApimachineryPkgApisMetaV1APIGroup.ts';
10+
11+
/**
12+
* no description
13+
*/
14+
export class AdmissionregistrationApiRequestFactory extends BaseAPIRequestFactory {
15+
16+
/**
17+
* get information of a group
18+
*/
19+
public async getAdmissionregistrationAPIGroup(options?: Configuration): Promise<RequestContext> {
20+
let config = options || this.configuration;
21+
22+
// Path Params
23+
const localVarPath = '/apis/admissionregistration.k8s.io/';
24+
25+
// Make Request Context
26+
const requestContext = config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
27+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
28+
29+
// Query Params
30+
31+
// Header Params
32+
33+
// Form Params
34+
35+
36+
// Body Params
37+
38+
let authMethod = null;
39+
// Apply auth methods
40+
authMethod = config.authMethods["BearerToken"]
41+
if (authMethod) {
42+
await authMethod.applySecurityAuthentication(requestContext);
43+
}
44+
45+
return requestContext;
46+
}
47+
48+
}
49+
50+
51+
52+
export class AdmissionregistrationApiResponseProcessor {
53+
54+
/**
55+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
56+
* to the expected objects
57+
*
58+
* @params response Response returned by the server for a request to getAdmissionregistrationAPIGroup
59+
* @throws ApiException if the response code was not in [200, 299]
60+
*/
61+
public async getAdmissionregistrationAPIGroup(response: ResponseContext): Promise<IoK8sApimachineryPkgApisMetaV1APIGroup > {
62+
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
63+
if (isCodeInRange("200", response.httpStatusCode)) {
64+
const body: IoK8sApimachineryPkgApisMetaV1APIGroup = ObjectSerializer.deserialize(
65+
ObjectSerializer.parse(await response.body.text(), contentType),
66+
"IoK8sApimachineryPkgApisMetaV1APIGroup", ""
67+
) as IoK8sApimachineryPkgApisMetaV1APIGroup;
68+
return body;
69+
}
70+
if (isCodeInRange("401", response.httpStatusCode)) {
71+
throw new ApiException<string>(response.httpStatusCode, "Unauthorized");
72+
}
73+
74+
// Work around for missing responses in specification, e.g. for petstore.yaml
75+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
76+
const body: IoK8sApimachineryPkgApisMetaV1APIGroup = ObjectSerializer.deserialize(
77+
ObjectSerializer.parse(await response.body.text(), contentType),
78+
"IoK8sApimachineryPkgApisMetaV1APIGroup", ""
79+
) as IoK8sApimachineryPkgApisMetaV1APIGroup;
80+
return body;
81+
}
82+
83+
let body = response.body || "";
84+
throw new ApiException<string>(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
85+
}
86+
87+
}

0 commit comments

Comments
 (0)