Skip to content

Commit

Permalink
Merge pull request #1278 from kubernetes-client/automated-generate-30…
Browse files Browse the repository at this point in the history
…3cce3b

Automated Generate from openapi release-1.28
  • Loading branch information
k8s-ci-robot committed Sep 20, 2023
2 parents 415e25d + 4be91b1 commit 102a833
Show file tree
Hide file tree
Showing 621 changed files with 14,830 additions and 25,121 deletions.
26 changes: 25 additions & 1 deletion src/gen/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ api.ts
api/admissionregistrationApi.ts
api/admissionregistrationV1Api.ts
api/admissionregistrationV1alpha1Api.ts
api/admissionregistrationV1beta1Api.ts
api/apiextensionsApi.ts
api/apiextensionsV1Api.ts
api/apiregistrationApi.ts
Expand Down Expand Up @@ -216,6 +217,7 @@ model/v1HorizontalPodAutoscalerList.ts
model/v1HorizontalPodAutoscalerSpec.ts
model/v1HorizontalPodAutoscalerStatus.ts
model/v1HostAlias.ts
model/v1HostIP.ts
model/v1HostPathVolumeSource.ts
model/v1IPBlock.ts
model/v1ISCSIPersistentVolumeSource.ts
Expand Down Expand Up @@ -278,7 +280,6 @@ model/v1NetworkPolicyList.ts
model/v1NetworkPolicyPeer.ts
model/v1NetworkPolicyPort.ts
model/v1NetworkPolicySpec.ts
model/v1NetworkPolicyStatus.ts
model/v1Node.ts
model/v1NodeAddress.ts
model/v1NodeAffinity.ts
Expand Down Expand Up @@ -332,6 +333,7 @@ model/v1PodList.ts
model/v1PodOS.ts
model/v1PodReadinessGate.ts
model/v1PodResourceClaim.ts
model/v1PodResourceClaimStatus.ts
model/v1PodSchedulingGate.ts
model/v1PodSecurityContext.ts
model/v1PodSpec.ts
Expand Down Expand Up @@ -401,6 +403,8 @@ model/v1SecretVolumeSource.ts
model/v1SecurityContext.ts
model/v1SelfSubjectAccessReview.ts
model/v1SelfSubjectAccessReviewSpec.ts
model/v1SelfSubjectReview.ts
model/v1SelfSubjectReviewStatus.ts
model/v1SelfSubjectRulesReview.ts
model/v1SelfSubjectRulesReviewSpec.ts
model/v1ServerAddressByClientCIDR.ts
Expand Down Expand Up @@ -504,6 +508,7 @@ model/v1alpha1ValidatingAdmissionPolicyList.ts
model/v1alpha1ValidatingAdmissionPolicySpec.ts
model/v1alpha1ValidatingAdmissionPolicyStatus.ts
model/v1alpha1Validation.ts
model/v1alpha1Variable.ts
model/v1alpha2AllocationResult.ts
model/v1alpha2PodSchedulingContext.ts
model/v1alpha2PodSchedulingContextList.ts
Expand All @@ -523,8 +528,26 @@ model/v1alpha2ResourceClass.ts
model/v1alpha2ResourceClassList.ts
model/v1alpha2ResourceClassParametersReference.ts
model/v1alpha2ResourceHandle.ts
model/v1beta1AuditAnnotation.ts
model/v1beta1ExpressionWarning.ts
model/v1beta1MatchCondition.ts
model/v1beta1MatchResources.ts
model/v1beta1NamedRuleWithOperations.ts
model/v1beta1ParamKind.ts
model/v1beta1ParamRef.ts
model/v1beta1SelfSubjectReview.ts
model/v1beta1SelfSubjectReviewStatus.ts
model/v1beta1TypeChecking.ts
model/v1beta1ValidatingAdmissionPolicy.ts
model/v1beta1ValidatingAdmissionPolicyBinding.ts
model/v1beta1ValidatingAdmissionPolicyBindingList.ts
model/v1beta1ValidatingAdmissionPolicyBindingSpec.ts
model/v1beta1ValidatingAdmissionPolicyList.ts
model/v1beta1ValidatingAdmissionPolicySpec.ts
model/v1beta1ValidatingAdmissionPolicyStatus.ts
model/v1beta1Validation.ts
model/v1beta1Variable.ts
model/v1beta2ExemptPriorityLevelConfiguration.ts
model/v1beta2FlowDistinguisherMethod.ts
model/v1beta2FlowSchema.ts
model/v1beta2FlowSchemaCondition.ts
Expand All @@ -547,6 +570,7 @@ model/v1beta2ResourcePolicyRule.ts
model/v1beta2ServiceAccountSubject.ts
model/v1beta2Subject.ts
model/v1beta2UserSubject.ts
model/v1beta3ExemptPriorityLevelConfiguration.ts
model/v1beta3FlowDistinguisherMethod.ts
model/v1beta3FlowSchema.ts
model/v1beta3FlowSchemaCondition.ts
Expand Down
2 changes: 1 addition & 1 deletion src/gen/.openapi-generator/swagger.json-default.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1a387ad26a46edd6aadfb79689bad471f13e7f28efe2be38e0c60464a3f82121
ba8a1ca96d2056a897374376d34067c2e9fc3282f1137652834012b061e8747e
2 changes: 1 addition & 1 deletion src/gen/api/admissionregistrationApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: release-1.27
* The version of the OpenAPI document: release-1.28
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/gen/api/admissionregistrationV1Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: release-1.27
* The version of the OpenAPI document: release-1.28
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/gen/api/admissionregistrationV1alpha1Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: release-1.27
* The version of the OpenAPI document: release-1.28
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
1,871 changes: 1,871 additions & 0 deletions src/gen/api/admissionregistrationV1beta1Api.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/gen/api/apiextensionsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: release-1.27
* The version of the OpenAPI document: release-1.28
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/gen/api/apiextensionsV1Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: release-1.27
* The version of the OpenAPI document: release-1.28
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/gen/api/apiregistrationApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: release-1.27
* The version of the OpenAPI document: release-1.28
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/gen/api/apiregistrationV1Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: release-1.27
* The version of the OpenAPI document: release-1.28
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
4 changes: 3 additions & 1 deletion src/gen/api/apis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ export * from './admissionregistrationV1Api';
import { AdmissionregistrationV1Api } from './admissionregistrationV1Api';
export * from './admissionregistrationV1alpha1Api';
import { AdmissionregistrationV1alpha1Api } from './admissionregistrationV1alpha1Api';
export * from './admissionregistrationV1beta1Api';
import { AdmissionregistrationV1beta1Api } from './admissionregistrationV1beta1Api';
export * from './apiextensionsApi';
import { ApiextensionsApi } from './apiextensionsApi';
export * from './apiextensionsV1Api';
Expand Down Expand Up @@ -123,4 +125,4 @@ export class HttpError extends Error {

export { RequestFile } from '../model/models';

export const APIS = [AdmissionregistrationApi, AdmissionregistrationV1Api, AdmissionregistrationV1alpha1Api, ApiextensionsApi, ApiextensionsV1Api, ApiregistrationApi, ApiregistrationV1Api, ApisApi, AppsApi, AppsV1Api, AuthenticationApi, AuthenticationV1Api, AuthenticationV1alpha1Api, AuthenticationV1beta1Api, AuthorizationApi, AuthorizationV1Api, AutoscalingApi, AutoscalingV1Api, AutoscalingV2Api, BatchApi, BatchV1Api, CertificatesApi, CertificatesV1Api, CertificatesV1alpha1Api, CoordinationApi, CoordinationV1Api, CoreApi, CoreV1Api, CustomObjectsApi, DiscoveryApi, DiscoveryV1Api, EventsApi, EventsV1Api, FlowcontrolApiserverApi, FlowcontrolApiserverV1beta2Api, FlowcontrolApiserverV1beta3Api, InternalApiserverApi, InternalApiserverV1alpha1Api, LogsApi, NetworkingApi, NetworkingV1Api, NetworkingV1alpha1Api, NodeApi, NodeV1Api, OpenidApi, PolicyApi, PolicyV1Api, RbacAuthorizationApi, RbacAuthorizationV1Api, ResourceApi, ResourceV1alpha2Api, SchedulingApi, SchedulingV1Api, StorageApi, StorageV1Api, VersionApi, WellKnownApi];
export const APIS = [AdmissionregistrationApi, AdmissionregistrationV1Api, AdmissionregistrationV1alpha1Api, AdmissionregistrationV1beta1Api, ApiextensionsApi, ApiextensionsV1Api, ApiregistrationApi, ApiregistrationV1Api, ApisApi, AppsApi, AppsV1Api, AuthenticationApi, AuthenticationV1Api, AuthenticationV1alpha1Api, AuthenticationV1beta1Api, AuthorizationApi, AuthorizationV1Api, AutoscalingApi, AutoscalingV1Api, AutoscalingV2Api, BatchApi, BatchV1Api, CertificatesApi, CertificatesV1Api, CertificatesV1alpha1Api, CoordinationApi, CoordinationV1Api, CoreApi, CoreV1Api, CustomObjectsApi, DiscoveryApi, DiscoveryV1Api, EventsApi, EventsV1Api, FlowcontrolApiserverApi, FlowcontrolApiserverV1beta2Api, FlowcontrolApiserverV1beta3Api, InternalApiserverApi, InternalApiserverV1alpha1Api, LogsApi, NetworkingApi, NetworkingV1Api, NetworkingV1alpha1Api, NodeApi, NodeV1Api, OpenidApi, PolicyApi, PolicyV1Api, RbacAuthorizationApi, RbacAuthorizationV1Api, ResourceApi, ResourceV1alpha2Api, SchedulingApi, SchedulingV1Api, StorageApi, StorageV1Api, VersionApi, WellKnownApi];
2 changes: 1 addition & 1 deletion src/gen/api/apisApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: release-1.27
* The version of the OpenAPI document: release-1.28
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/gen/api/appsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: release-1.27
* The version of the OpenAPI document: release-1.28
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/gen/api/appsV1Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: release-1.27
* The version of the OpenAPI document: release-1.28
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/gen/api/authenticationApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: release-1.27
* The version of the OpenAPI document: release-1.28
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
94 changes: 93 additions & 1 deletion src/gen/api/authenticationV1Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: release-1.27
* The version of the OpenAPI document: release-1.28
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand All @@ -16,6 +16,7 @@ import http from 'http';

/* tslint:disable:no-unused-locals */
import { V1APIResourceList } from '../model/v1APIResourceList';
import { V1SelfSubjectReview } from '../model/v1SelfSubjectReview';
import { V1TokenReview } from '../model/v1TokenReview';

import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
Expand Down Expand Up @@ -90,6 +91,97 @@ export class AuthenticationV1Api {
this.interceptors.push(interceptor);
}

/**
* create a SelfSubjectReview
* @param body
* @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
* @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
* @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
* @param pretty If \'true\', then the output is pretty printed.
*/
public async createSelfSubjectReview (body: V1SelfSubjectReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: V1SelfSubjectReview; }> {
const localVarPath = this.basePath + '/apis/authentication.k8s.io/v1/selfsubjectreviews';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'];
// give precedence to 'application/json'
if (produces.indexOf('application/json') >= 0) {
localVarHeaderParams.Accept = 'application/json';
} else {
localVarHeaderParams.Accept = produces.join(',');
}
let localVarFormParams: any = {};

// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new Error('Required parameter body was null or undefined when calling createSelfSubjectReview.');
}

if (dryRun !== undefined) {
localVarQueryParameters['dryRun'] = ObjectSerializer.serialize(dryRun, "string");
}

if (fieldManager !== undefined) {
localVarQueryParameters['fieldManager'] = ObjectSerializer.serialize(fieldManager, "string");
}

if (fieldValidation !== undefined) {
localVarQueryParameters['fieldValidation'] = ObjectSerializer.serialize(fieldValidation, "string");
}

if (pretty !== undefined) {
localVarQueryParameters['pretty'] = ObjectSerializer.serialize(pretty, "string");
}

(<any>Object).assign(localVarHeaderParams, options.headers);

let localVarUseFormData = false;

let localVarRequestOptions: localVarRequest.Options = {
method: 'POST',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
body: ObjectSerializer.serialize(body, "V1SelfSubjectReview")
};

let authenticationPromise = Promise.resolve();
if (this.authentications.BearerToken.apiKey) {
authenticationPromise = authenticationPromise.then(() => this.authentications.BearerToken.applyToRequest(localVarRequestOptions));
}
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));

let interceptorPromise = authenticationPromise;
for (const interceptor of this.interceptors) {
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
}

return interceptorPromise.then(() => {
if (Object.keys(localVarFormParams).length) {
if (localVarUseFormData) {
(<any>localVarRequestOptions).formData = localVarFormParams;
} else {
localVarRequestOptions.form = localVarFormParams;
}
}
return new Promise<{ response: http.IncomingMessage; body: V1SelfSubjectReview; }>((resolve, reject) => {
localVarRequest(localVarRequestOptions, (error, response, body) => {
if (error) {
reject(error);
} else {
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
body = ObjectSerializer.deserialize(body, "V1SelfSubjectReview");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
* create a TokenReview
* @param body
Expand Down
2 changes: 1 addition & 1 deletion src/gen/api/authenticationV1alpha1Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: release-1.27
* The version of the OpenAPI document: release-1.28
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/gen/api/authenticationV1beta1Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: release-1.27
* The version of the OpenAPI document: release-1.28
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/gen/api/authorizationApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: release-1.27
* The version of the OpenAPI document: release-1.28
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/gen/api/authorizationV1Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: release-1.27
* The version of the OpenAPI document: release-1.28
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/gen/api/autoscalingApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: release-1.27
* The version of the OpenAPI document: release-1.28
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/gen/api/autoscalingV1Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: release-1.27
* The version of the OpenAPI document: release-1.28
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/gen/api/autoscalingV2Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: release-1.27
* The version of the OpenAPI document: release-1.28
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/gen/api/batchApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: release-1.27
* The version of the OpenAPI document: release-1.28
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/gen/api/batchV1Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: release-1.27
* The version of the OpenAPI document: release-1.28
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Loading

0 comments on commit 102a833

Please sign in to comment.