use state

This commit is contained in:
Manabu Mccloskey 2023-06-30 14:35:28 -07:00
parent a48fe8e471
commit 7c155abf1a
405 changed files with 28148 additions and 7479 deletions

View file

@ -3,7 +3,7 @@ import { KubernetesApi } from "@backstage/plugin-kubernetes";
import {
IoArgoprojWorkflowV1alpha1WorkflowList,
IoArgoprojWorkflowV1alpha1WorkflowTemplateList,
} from "./generated";
} from "./generated/api";
import { ArgoWorkflowsApi } from "./index";
const API_VERSION = "argoproj.io/v1alpha1";

View file

@ -0,0 +1,3 @@
// This is the entrypoint for the package
export * from './api/apis';
export * from './model/models';

View file

@ -0,0 +1,33 @@
// @ts-nocheck
export * from './archivedWorkflowServiceApi';
import { ArchivedWorkflowServiceApi } from './archivedWorkflowServiceApi';
export * from './artifactServiceApi';
import { ArtifactServiceApi } from './artifactServiceApi';
export * from './clusterWorkflowTemplateServiceApi';
import { ClusterWorkflowTemplateServiceApi } from './clusterWorkflowTemplateServiceApi';
export * from './cronWorkflowServiceApi';
import { CronWorkflowServiceApi } from './cronWorkflowServiceApi';
export * from './eventServiceApi';
import { EventServiceApi } from './eventServiceApi';
export * from './eventSourceServiceApi';
import { EventSourceServiceApi } from './eventSourceServiceApi';
export * from './infoServiceApi';
import { InfoServiceApi } from './infoServiceApi';
export * from './sensorServiceApi';
import { SensorServiceApi } from './sensorServiceApi';
export * from './workflowServiceApi';
import { WorkflowServiceApi } from './workflowServiceApi';
export * from './workflowTemplateServiceApi';
import { WorkflowTemplateServiceApi } from './workflowTemplateServiceApi';
import * as http from 'http';
export class HttpError extends Error {
constructor (public response: http.IncomingMessage, public body: any, public statusCode?: number) {
super('HTTP request failed');
this.name = 'HttpError';
}
}
export { RequestFile } from '../model/models';
export const APIS = [ArchivedWorkflowServiceApi, ArtifactServiceApi, ClusterWorkflowTemplateServiceApi, CronWorkflowServiceApi, EventServiceApi, EventSourceServiceApi, InfoServiceApi, SensorServiceApi, WorkflowServiceApi, WorkflowTemplateServiceApi];

View file

@ -0,0 +1,714 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import localVarRequest from 'request';
import http from 'http';
/* tslint:disable:no-unused-locals */
import { GrpcGatewayRuntimeError } from '../model/grpcGatewayRuntimeError';
import { IoArgoprojWorkflowV1alpha1LabelKeys } from '../model/ioArgoprojWorkflowV1alpha1LabelKeys';
import { IoArgoprojWorkflowV1alpha1LabelValues } from '../model/ioArgoprojWorkflowV1alpha1LabelValues';
import { IoArgoprojWorkflowV1alpha1ResubmitArchivedWorkflowRequest } from '../model/ioArgoprojWorkflowV1alpha1ResubmitArchivedWorkflowRequest';
import { IoArgoprojWorkflowV1alpha1RetryArchivedWorkflowRequest } from '../model/ioArgoprojWorkflowV1alpha1RetryArchivedWorkflowRequest';
import { IoArgoprojWorkflowV1alpha1Workflow } from '../model/ioArgoprojWorkflowV1alpha1Workflow';
import { IoArgoprojWorkflowV1alpha1WorkflowList } from '../model/ioArgoprojWorkflowV1alpha1WorkflowList';
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models';
import { HttpError, RequestFile } from './apis';
let defaultBasePath = 'http://localhost:2746';
// ===============================================
// This file is autogenerated - Please do not edit
// ===============================================
export enum ArchivedWorkflowServiceApiApiKeys {
BearerToken,
}
export class ArchivedWorkflowServiceApi {
protected _basePath = defaultBasePath;
protected _defaultHeaders : any = {};
protected _useQuerystring : boolean = false;
protected authentications = {
'default': <Authentication>new VoidAuth(),
'BearerToken': new ApiKeyAuth('header', 'Authorization'),
}
protected interceptors: Interceptor[] = [];
constructor(basePath?: string);
constructor(basePathOrUsername: string, password?: string, basePath?: string) {
if (password) {
if (basePath) {
this.basePath = basePath;
}
} else {
if (basePathOrUsername) {
this.basePath = basePathOrUsername
}
}
}
set useQuerystring(value: boolean) {
this._useQuerystring = value;
}
set basePath(basePath: string) {
this._basePath = basePath;
}
set defaultHeaders(defaultHeaders: any) {
this._defaultHeaders = defaultHeaders;
}
get defaultHeaders() {
return this._defaultHeaders;
}
get basePath() {
return this._basePath;
}
public setDefaultAuthentication(auth: Authentication) {
this.authentications.default = auth;
}
public setApiKey(key: ArchivedWorkflowServiceApiApiKeys, value: string) {
(this.authentications as any)[ArchivedWorkflowServiceApiApiKeys[key]].apiKey = value;
}
public addInterceptor(interceptor: Interceptor) {
this.interceptors.push(interceptor);
}
/**
*
* @param uid
* @param namespace
*/
public async archivedWorkflowServiceDeleteArchivedWorkflow (uid: string, namespace?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: object; }> {
const localVarPath = this.basePath + '/api/v1/archived-workflows/{uid}'
.replace('{' + 'uid' + '}', encodeURIComponent(String(uid)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'uid' is not null or undefined
if (uid === null || uid === undefined) {
throw new Error('Required parameter uid was null or undefined when calling archivedWorkflowServiceDeleteArchivedWorkflow.');
}
if (namespace !== undefined) {
localVarQueryParameters['namespace'] = ObjectSerializer.serialize(namespace, "string");
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'DELETE',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
};
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: object; }>((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, "object");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param uid
* @param namespace
* @param name
*/
public async archivedWorkflowServiceGetArchivedWorkflow (uid: string, namespace?: string, name?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1Workflow; }> {
const localVarPath = this.basePath + '/api/v1/archived-workflows/{uid}'
.replace('{' + 'uid' + '}', encodeURIComponent(String(uid)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'uid' is not null or undefined
if (uid === null || uid === undefined) {
throw new Error('Required parameter uid was null or undefined when calling archivedWorkflowServiceGetArchivedWorkflow.');
}
if (namespace !== undefined) {
localVarQueryParameters['namespace'] = ObjectSerializer.serialize(namespace, "string");
}
if (name !== undefined) {
localVarQueryParameters['name'] = ObjectSerializer.serialize(name, "string");
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'GET',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
};
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: IoArgoprojWorkflowV1alpha1Workflow; }>((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, "IoArgoprojWorkflowV1alpha1Workflow");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param namespace
*/
public async archivedWorkflowServiceListArchivedWorkflowLabelKeys (namespace?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1LabelKeys; }> {
const localVarPath = this.basePath + '/api/v1/archived-workflows-label-keys';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// give precedence to 'application/json'
if (produces.indexOf('application/json') >= 0) {
localVarHeaderParams.Accept = 'application/json';
} else {
localVarHeaderParams.Accept = produces.join(',');
}
let localVarFormParams: any = {};
if (namespace !== undefined) {
localVarQueryParameters['namespace'] = ObjectSerializer.serialize(namespace, "string");
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'GET',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
};
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: IoArgoprojWorkflowV1alpha1LabelKeys; }>((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, "IoArgoprojWorkflowV1alpha1LabelKeys");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param listOptionsLabelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional.
* @param listOptionsFieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional.
* @param listOptionsWatch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional.
* @param listOptionsAllowWatchBookmarks allowWatchBookmarks requests watch events with type \&quot;BOOKMARK\&quot;. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\&#39;s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional.
* @param listOptionsResourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsResourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsTimeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional.
* @param listOptionsLimit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
* @param listOptionsContinue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
* @param namespace
*/
public async archivedWorkflowServiceListArchivedWorkflowLabelValues (listOptionsLabelSelector?: string, listOptionsFieldSelector?: string, listOptionsWatch?: boolean, listOptionsAllowWatchBookmarks?: boolean, listOptionsResourceVersion?: string, listOptionsResourceVersionMatch?: string, listOptionsTimeoutSeconds?: string, listOptionsLimit?: string, listOptionsContinue?: string, namespace?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1LabelValues; }> {
const localVarPath = this.basePath + '/api/v1/archived-workflows-label-values';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// give precedence to 'application/json'
if (produces.indexOf('application/json') >= 0) {
localVarHeaderParams.Accept = 'application/json';
} else {
localVarHeaderParams.Accept = produces.join(',');
}
let localVarFormParams: any = {};
if (listOptionsLabelSelector !== undefined) {
localVarQueryParameters['listOptions.labelSelector'] = ObjectSerializer.serialize(listOptionsLabelSelector, "string");
}
if (listOptionsFieldSelector !== undefined) {
localVarQueryParameters['listOptions.fieldSelector'] = ObjectSerializer.serialize(listOptionsFieldSelector, "string");
}
if (listOptionsWatch !== undefined) {
localVarQueryParameters['listOptions.watch'] = ObjectSerializer.serialize(listOptionsWatch, "boolean");
}
if (listOptionsAllowWatchBookmarks !== undefined) {
localVarQueryParameters['listOptions.allowWatchBookmarks'] = ObjectSerializer.serialize(listOptionsAllowWatchBookmarks, "boolean");
}
if (listOptionsResourceVersion !== undefined) {
localVarQueryParameters['listOptions.resourceVersion'] = ObjectSerializer.serialize(listOptionsResourceVersion, "string");
}
if (listOptionsResourceVersionMatch !== undefined) {
localVarQueryParameters['listOptions.resourceVersionMatch'] = ObjectSerializer.serialize(listOptionsResourceVersionMatch, "string");
}
if (listOptionsTimeoutSeconds !== undefined) {
localVarQueryParameters['listOptions.timeoutSeconds'] = ObjectSerializer.serialize(listOptionsTimeoutSeconds, "string");
}
if (listOptionsLimit !== undefined) {
localVarQueryParameters['listOptions.limit'] = ObjectSerializer.serialize(listOptionsLimit, "string");
}
if (listOptionsContinue !== undefined) {
localVarQueryParameters['listOptions.continue'] = ObjectSerializer.serialize(listOptionsContinue, "string");
}
if (namespace !== undefined) {
localVarQueryParameters['namespace'] = ObjectSerializer.serialize(namespace, "string");
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'GET',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
};
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: IoArgoprojWorkflowV1alpha1LabelValues; }>((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, "IoArgoprojWorkflowV1alpha1LabelValues");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param listOptionsLabelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional.
* @param listOptionsFieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional.
* @param listOptionsWatch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional.
* @param listOptionsAllowWatchBookmarks allowWatchBookmarks requests watch events with type \&quot;BOOKMARK\&quot;. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\&#39;s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional.
* @param listOptionsResourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsResourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsTimeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional.
* @param listOptionsLimit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
* @param listOptionsContinue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
* @param namePrefix
* @param namespace
*/
public async archivedWorkflowServiceListArchivedWorkflows (listOptionsLabelSelector?: string, listOptionsFieldSelector?: string, listOptionsWatch?: boolean, listOptionsAllowWatchBookmarks?: boolean, listOptionsResourceVersion?: string, listOptionsResourceVersionMatch?: string, listOptionsTimeoutSeconds?: string, listOptionsLimit?: string, listOptionsContinue?: string, namePrefix?: string, namespace?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1WorkflowList; }> {
const localVarPath = this.basePath + '/api/v1/archived-workflows';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// give precedence to 'application/json'
if (produces.indexOf('application/json') >= 0) {
localVarHeaderParams.Accept = 'application/json';
} else {
localVarHeaderParams.Accept = produces.join(',');
}
let localVarFormParams: any = {};
if (listOptionsLabelSelector !== undefined) {
localVarQueryParameters['listOptions.labelSelector'] = ObjectSerializer.serialize(listOptionsLabelSelector, "string");
}
if (listOptionsFieldSelector !== undefined) {
localVarQueryParameters['listOptions.fieldSelector'] = ObjectSerializer.serialize(listOptionsFieldSelector, "string");
}
if (listOptionsWatch !== undefined) {
localVarQueryParameters['listOptions.watch'] = ObjectSerializer.serialize(listOptionsWatch, "boolean");
}
if (listOptionsAllowWatchBookmarks !== undefined) {
localVarQueryParameters['listOptions.allowWatchBookmarks'] = ObjectSerializer.serialize(listOptionsAllowWatchBookmarks, "boolean");
}
if (listOptionsResourceVersion !== undefined) {
localVarQueryParameters['listOptions.resourceVersion'] = ObjectSerializer.serialize(listOptionsResourceVersion, "string");
}
if (listOptionsResourceVersionMatch !== undefined) {
localVarQueryParameters['listOptions.resourceVersionMatch'] = ObjectSerializer.serialize(listOptionsResourceVersionMatch, "string");
}
if (listOptionsTimeoutSeconds !== undefined) {
localVarQueryParameters['listOptions.timeoutSeconds'] = ObjectSerializer.serialize(listOptionsTimeoutSeconds, "string");
}
if (listOptionsLimit !== undefined) {
localVarQueryParameters['listOptions.limit'] = ObjectSerializer.serialize(listOptionsLimit, "string");
}
if (listOptionsContinue !== undefined) {
localVarQueryParameters['listOptions.continue'] = ObjectSerializer.serialize(listOptionsContinue, "string");
}
if (namePrefix !== undefined) {
localVarQueryParameters['namePrefix'] = ObjectSerializer.serialize(namePrefix, "string");
}
if (namespace !== undefined) {
localVarQueryParameters['namespace'] = ObjectSerializer.serialize(namespace, "string");
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'GET',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
};
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: IoArgoprojWorkflowV1alpha1WorkflowList; }>((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, "IoArgoprojWorkflowV1alpha1WorkflowList");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param uid
* @param body
*/
public async archivedWorkflowServiceResubmitArchivedWorkflow (uid: string, body: IoArgoprojWorkflowV1alpha1ResubmitArchivedWorkflowRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1Workflow; }> {
const localVarPath = this.basePath + '/api/v1/archived-workflows/{uid}/resubmit'
.replace('{' + 'uid' + '}', encodeURIComponent(String(uid)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'uid' is not null or undefined
if (uid === null || uid === undefined) {
throw new Error('Required parameter uid was null or undefined when calling archivedWorkflowServiceResubmitArchivedWorkflow.');
}
// 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 archivedWorkflowServiceResubmitArchivedWorkflow.');
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'PUT',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
body: ObjectSerializer.serialize(body, "IoArgoprojWorkflowV1alpha1ResubmitArchivedWorkflowRequest")
};
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: IoArgoprojWorkflowV1alpha1Workflow; }>((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, "IoArgoprojWorkflowV1alpha1Workflow");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param uid
* @param body
*/
public async archivedWorkflowServiceRetryArchivedWorkflow (uid: string, body: IoArgoprojWorkflowV1alpha1RetryArchivedWorkflowRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1Workflow; }> {
const localVarPath = this.basePath + '/api/v1/archived-workflows/{uid}/retry'
.replace('{' + 'uid' + '}', encodeURIComponent(String(uid)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'uid' is not null or undefined
if (uid === null || uid === undefined) {
throw new Error('Required parameter uid was null or undefined when calling archivedWorkflowServiceRetryArchivedWorkflow.');
}
// 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 archivedWorkflowServiceRetryArchivedWorkflow.');
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'PUT',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
body: ObjectSerializer.serialize(body, "IoArgoprojWorkflowV1alpha1RetryArchivedWorkflowRequest")
};
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: IoArgoprojWorkflowV1alpha1Workflow; }>((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, "IoArgoprojWorkflowV1alpha1Workflow");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
}

View file

@ -0,0 +1,558 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import localVarRequest from 'request';
import http from 'http';
/* tslint:disable:no-unused-locals */
import { GrpcGatewayRuntimeError } from '../model/grpcGatewayRuntimeError';
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models';
import { HttpError, RequestFile } from './apis';
let defaultBasePath = 'http://localhost:2746';
// ===============================================
// This file is autogenerated - Please do not edit
// ===============================================
export enum ArtifactServiceApiApiKeys {
BearerToken,
}
export class ArtifactServiceApi {
protected _basePath = defaultBasePath;
protected _defaultHeaders : any = {};
protected _useQuerystring : boolean = false;
protected authentications = {
'default': <Authentication>new VoidAuth(),
'BearerToken': new ApiKeyAuth('header', 'Authorization'),
}
protected interceptors: Interceptor[] = [];
constructor(basePath?: string);
constructor(basePathOrUsername: string, password?: string, basePath?: string) {
if (password) {
if (basePath) {
this.basePath = basePath;
}
} else {
if (basePathOrUsername) {
this.basePath = basePathOrUsername
}
}
}
set useQuerystring(value: boolean) {
this._useQuerystring = value;
}
set basePath(basePath: string) {
this._basePath = basePath;
}
set defaultHeaders(defaultHeaders: any) {
this._defaultHeaders = defaultHeaders;
}
get defaultHeaders() {
return this._defaultHeaders;
}
get basePath() {
return this._basePath;
}
public setDefaultAuthentication(auth: Authentication) {
this.authentications.default = auth;
}
public setApiKey(key: ArtifactServiceApiApiKeys, value: string) {
(this.authentications as any)[ArtifactServiceApiApiKeys[key]].apiKey = value;
}
public addInterceptor(interceptor: Interceptor) {
this.interceptors.push(interceptor);
}
/**
*
* @summary Get an artifact.
* @param namespace
* @param idDiscriminator
* @param id
* @param nodeId
* @param artifactName
* @param artifactDiscriminator
*/
public async artifactServiceGetArtifactFile (namespace: string, idDiscriminator: 'workflow' | 'archived-workflows ', id: string, nodeId: string, artifactName: string, artifactDiscriminator: 'outputs', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
const localVarPath = this.basePath + '/artifact-files/{namespace}/{idDiscriminator}/{id}/{nodeId}/{artifactDiscriminator}/{artifactName}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
.replace('{' + 'idDiscriminator' + '}', encodeURIComponent(String(idDiscriminator)))
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
.replace('{' + 'nodeId' + '}', encodeURIComponent(String(nodeId)))
.replace('{' + 'artifactName' + '}', encodeURIComponent(String(artifactName)))
.replace('{' + 'artifactDiscriminator' + '}', encodeURIComponent(String(artifactDiscriminator)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new Error('Required parameter namespace was null or undefined when calling artifactServiceGetArtifactFile.');
}
// verify required parameter 'idDiscriminator' is not null or undefined
if (idDiscriminator === null || idDiscriminator === undefined) {
throw new Error('Required parameter idDiscriminator was null or undefined when calling artifactServiceGetArtifactFile.');
}
// verify required parameter 'id' is not null or undefined
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling artifactServiceGetArtifactFile.');
}
// verify required parameter 'nodeId' is not null or undefined
if (nodeId === null || nodeId === undefined) {
throw new Error('Required parameter nodeId was null or undefined when calling artifactServiceGetArtifactFile.');
}
// verify required parameter 'artifactName' is not null or undefined
if (artifactName === null || artifactName === undefined) {
throw new Error('Required parameter artifactName was null or undefined when calling artifactServiceGetArtifactFile.');
}
// verify required parameter 'artifactDiscriminator' is not null or undefined
if (artifactDiscriminator === null || artifactDiscriminator === undefined) {
throw new Error('Required parameter artifactDiscriminator was null or undefined when calling artifactServiceGetArtifactFile.');
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'GET',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
encoding: null,
};
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: Buffer; }>((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, "Buffer");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @summary Get an input artifact.
* @param namespace
* @param name
* @param nodeId
* @param artifactName
*/
public async artifactServiceGetInputArtifact (namespace: string, name: string, nodeId: string, artifactName: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
const localVarPath = this.basePath + '/input-artifacts/{namespace}/{name}/{nodeId}/{artifactName}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'nodeId' + '}', encodeURIComponent(String(nodeId)))
.replace('{' + 'artifactName' + '}', encodeURIComponent(String(artifactName)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new Error('Required parameter namespace was null or undefined when calling artifactServiceGetInputArtifact.');
}
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new Error('Required parameter name was null or undefined when calling artifactServiceGetInputArtifact.');
}
// verify required parameter 'nodeId' is not null or undefined
if (nodeId === null || nodeId === undefined) {
throw new Error('Required parameter nodeId was null or undefined when calling artifactServiceGetInputArtifact.');
}
// verify required parameter 'artifactName' is not null or undefined
if (artifactName === null || artifactName === undefined) {
throw new Error('Required parameter artifactName was null or undefined when calling artifactServiceGetInputArtifact.');
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'GET',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
encoding: null,
};
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: Buffer; }>((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, "Buffer");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @summary Get an input artifact by UID.
* @param uid
* @param nodeId
* @param artifactName
*/
public async artifactServiceGetInputArtifactByUID (uid: string, nodeId: string, artifactName: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
const localVarPath = this.basePath + '/input-artifacts-by-uid/{uid}/{nodeId}/{artifactName}'
.replace('{' + 'uid' + '}', encodeURIComponent(String(uid)))
.replace('{' + 'nodeId' + '}', encodeURIComponent(String(nodeId)))
.replace('{' + 'artifactName' + '}', encodeURIComponent(String(artifactName)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'uid' is not null or undefined
if (uid === null || uid === undefined) {
throw new Error('Required parameter uid was null or undefined when calling artifactServiceGetInputArtifactByUID.');
}
// verify required parameter 'nodeId' is not null or undefined
if (nodeId === null || nodeId === undefined) {
throw new Error('Required parameter nodeId was null or undefined when calling artifactServiceGetInputArtifactByUID.');
}
// verify required parameter 'artifactName' is not null or undefined
if (artifactName === null || artifactName === undefined) {
throw new Error('Required parameter artifactName was null or undefined when calling artifactServiceGetInputArtifactByUID.');
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'GET',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
encoding: null,
};
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: Buffer; }>((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, "Buffer");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @summary Get an output artifact.
* @param namespace
* @param name
* @param nodeId
* @param artifactName
*/
public async artifactServiceGetOutputArtifact (namespace: string, name: string, nodeId: string, artifactName: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
const localVarPath = this.basePath + '/artifacts/{namespace}/{name}/{nodeId}/{artifactName}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
.replace('{' + 'name' + '}', encodeURIComponent(String(name)))
.replace('{' + 'nodeId' + '}', encodeURIComponent(String(nodeId)))
.replace('{' + 'artifactName' + '}', encodeURIComponent(String(artifactName)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new Error('Required parameter namespace was null or undefined when calling artifactServiceGetOutputArtifact.');
}
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new Error('Required parameter name was null or undefined when calling artifactServiceGetOutputArtifact.');
}
// verify required parameter 'nodeId' is not null or undefined
if (nodeId === null || nodeId === undefined) {
throw new Error('Required parameter nodeId was null or undefined when calling artifactServiceGetOutputArtifact.');
}
// verify required parameter 'artifactName' is not null or undefined
if (artifactName === null || artifactName === undefined) {
throw new Error('Required parameter artifactName was null or undefined when calling artifactServiceGetOutputArtifact.');
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'GET',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
encoding: null,
};
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: Buffer; }>((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, "Buffer");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @summary Get an output artifact by UID.
* @param uid
* @param nodeId
* @param artifactName
*/
public async artifactServiceGetOutputArtifactByUID (uid: string, nodeId: string, artifactName: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Buffer; }> {
const localVarPath = this.basePath + '/artifacts-by-uid/{uid}/{nodeId}/{artifactName}'
.replace('{' + 'uid' + '}', encodeURIComponent(String(uid)))
.replace('{' + 'nodeId' + '}', encodeURIComponent(String(nodeId)))
.replace('{' + 'artifactName' + '}', encodeURIComponent(String(artifactName)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'uid' is not null or undefined
if (uid === null || uid === undefined) {
throw new Error('Required parameter uid was null or undefined when calling artifactServiceGetOutputArtifactByUID.');
}
// verify required parameter 'nodeId' is not null or undefined
if (nodeId === null || nodeId === undefined) {
throw new Error('Required parameter nodeId was null or undefined when calling artifactServiceGetOutputArtifactByUID.');
}
// verify required parameter 'artifactName' is not null or undefined
if (artifactName === null || artifactName === undefined) {
throw new Error('Required parameter artifactName was null or undefined when calling artifactServiceGetOutputArtifactByUID.');
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'GET',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
encoding: null,
};
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: Buffer; }>((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, "Buffer");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
}

View file

@ -0,0 +1,604 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import localVarRequest from 'request';
import http from 'http';
/* tslint:disable:no-unused-locals */
import { GrpcGatewayRuntimeError } from '../model/grpcGatewayRuntimeError';
import { IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate } from '../model/ioArgoprojWorkflowV1alpha1ClusterWorkflowTemplate';
import { IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateCreateRequest } from '../model/ioArgoprojWorkflowV1alpha1ClusterWorkflowTemplateCreateRequest';
import { IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateLintRequest } from '../model/ioArgoprojWorkflowV1alpha1ClusterWorkflowTemplateLintRequest';
import { IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateList } from '../model/ioArgoprojWorkflowV1alpha1ClusterWorkflowTemplateList';
import { IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateUpdateRequest } from '../model/ioArgoprojWorkflowV1alpha1ClusterWorkflowTemplateUpdateRequest';
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models';
import { HttpError, RequestFile } from './apis';
let defaultBasePath = 'http://localhost:2746';
// ===============================================
// This file is autogenerated - Please do not edit
// ===============================================
export enum ClusterWorkflowTemplateServiceApiApiKeys {
BearerToken,
}
export class ClusterWorkflowTemplateServiceApi {
protected _basePath = defaultBasePath;
protected _defaultHeaders : any = {};
protected _useQuerystring : boolean = false;
protected authentications = {
'default': <Authentication>new VoidAuth(),
'BearerToken': new ApiKeyAuth('header', 'Authorization'),
}
protected interceptors: Interceptor[] = [];
constructor(basePath?: string);
constructor(basePathOrUsername: string, password?: string, basePath?: string) {
if (password) {
if (basePath) {
this.basePath = basePath;
}
} else {
if (basePathOrUsername) {
this.basePath = basePathOrUsername
}
}
}
set useQuerystring(value: boolean) {
this._useQuerystring = value;
}
set basePath(basePath: string) {
this._basePath = basePath;
}
set defaultHeaders(defaultHeaders: any) {
this._defaultHeaders = defaultHeaders;
}
get defaultHeaders() {
return this._defaultHeaders;
}
get basePath() {
return this._basePath;
}
public setDefaultAuthentication(auth: Authentication) {
this.authentications.default = auth;
}
public setApiKey(key: ClusterWorkflowTemplateServiceApiApiKeys, value: string) {
(this.authentications as any)[ClusterWorkflowTemplateServiceApiApiKeys[key]].apiKey = value;
}
public addInterceptor(interceptor: Interceptor) {
this.interceptors.push(interceptor);
}
/**
*
* @param body
*/
public async clusterWorkflowTemplateServiceCreateClusterWorkflowTemplate (body: IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateCreateRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate; }> {
const localVarPath = this.basePath + '/api/v1/cluster-workflow-templates';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 clusterWorkflowTemplateServiceCreateClusterWorkflowTemplate.');
}
(<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, "IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateCreateRequest")
};
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: IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate; }>((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, "IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param name
* @param deleteOptionsGracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +optional.
* @param deleteOptionsPreconditionsUid Specifies the target UID. +optional.
* @param deleteOptionsPreconditionsResourceVersion Specifies the target ResourceVersion +optional.
* @param deleteOptionsOrphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object\&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional.
* @param deleteOptionsPropagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \&#39;Orphan\&#39; - orphan the dependents; \&#39;Background\&#39; - allow the garbage collector to delete the dependents in the background; \&#39;Foreground\&#39; - a cascading policy that deletes all dependents in the foreground. +optional.
* @param deleteOptionsDryRun 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 +optional.
*/
public async clusterWorkflowTemplateServiceDeleteClusterWorkflowTemplate (name: string, deleteOptionsGracePeriodSeconds?: string, deleteOptionsPreconditionsUid?: string, deleteOptionsPreconditionsResourceVersion?: string, deleteOptionsOrphanDependents?: boolean, deleteOptionsPropagationPolicy?: string, deleteOptionsDryRun?: Array<string>, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: object; }> {
const localVarPath = this.basePath + '/api/v1/cluster-workflow-templates/{name}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'name' is not null or undefined
if (name === null || name === undefined) {
throw new Error('Required parameter name was null or undefined when calling clusterWorkflowTemplateServiceDeleteClusterWorkflowTemplate.');
}
if (deleteOptionsGracePeriodSeconds !== undefined) {
localVarQueryParameters['deleteOptions.gracePeriodSeconds'] = ObjectSerializer.serialize(deleteOptionsGracePeriodSeconds, "string");
}
if (deleteOptionsPreconditionsUid !== undefined) {
localVarQueryParameters['deleteOptions.preconditions.uid'] = ObjectSerializer.serialize(deleteOptionsPreconditionsUid, "string");
}
if (deleteOptionsPreconditionsResourceVersion !== undefined) {
localVarQueryParameters['deleteOptions.preconditions.resourceVersion'] = ObjectSerializer.serialize(deleteOptionsPreconditionsResourceVersion, "string");
}
if (deleteOptionsOrphanDependents !== undefined) {
localVarQueryParameters['deleteOptions.orphanDependents'] = ObjectSerializer.serialize(deleteOptionsOrphanDependents, "boolean");
}
if (deleteOptionsPropagationPolicy !== undefined) {
localVarQueryParameters['deleteOptions.propagationPolicy'] = ObjectSerializer.serialize(deleteOptionsPropagationPolicy, "string");
}
if (deleteOptionsDryRun !== undefined) {
localVarQueryParameters['deleteOptions.dryRun'] = ObjectSerializer.serialize(deleteOptionsDryRun, "Array<string>");
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'DELETE',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
};
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: object; }>((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, "object");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param name
* @param getOptionsResourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
*/
public async clusterWorkflowTemplateServiceGetClusterWorkflowTemplate (name: string, getOptionsResourceVersion?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate; }> {
const localVarPath = this.basePath + '/api/v1/cluster-workflow-templates/{name}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'name' is not null or undefined
if (name === null || name === undefined) {
throw new Error('Required parameter name was null or undefined when calling clusterWorkflowTemplateServiceGetClusterWorkflowTemplate.');
}
if (getOptionsResourceVersion !== undefined) {
localVarQueryParameters['getOptions.resourceVersion'] = ObjectSerializer.serialize(getOptionsResourceVersion, "string");
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'GET',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
};
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: IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate; }>((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, "IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param body
*/
public async clusterWorkflowTemplateServiceLintClusterWorkflowTemplate (body: IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateLintRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate; }> {
const localVarPath = this.basePath + '/api/v1/cluster-workflow-templates/lint';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 clusterWorkflowTemplateServiceLintClusterWorkflowTemplate.');
}
(<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, "IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateLintRequest")
};
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: IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate; }>((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, "IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param listOptionsLabelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional.
* @param listOptionsFieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional.
* @param listOptionsWatch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional.
* @param listOptionsAllowWatchBookmarks allowWatchBookmarks requests watch events with type \&quot;BOOKMARK\&quot;. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\&#39;s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional.
* @param listOptionsResourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsResourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsTimeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional.
* @param listOptionsLimit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
* @param listOptionsContinue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
*/
public async clusterWorkflowTemplateServiceListClusterWorkflowTemplates (listOptionsLabelSelector?: string, listOptionsFieldSelector?: string, listOptionsWatch?: boolean, listOptionsAllowWatchBookmarks?: boolean, listOptionsResourceVersion?: string, listOptionsResourceVersionMatch?: string, listOptionsTimeoutSeconds?: string, listOptionsLimit?: string, listOptionsContinue?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateList; }> {
const localVarPath = this.basePath + '/api/v1/cluster-workflow-templates';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// give precedence to 'application/json'
if (produces.indexOf('application/json') >= 0) {
localVarHeaderParams.Accept = 'application/json';
} else {
localVarHeaderParams.Accept = produces.join(',');
}
let localVarFormParams: any = {};
if (listOptionsLabelSelector !== undefined) {
localVarQueryParameters['listOptions.labelSelector'] = ObjectSerializer.serialize(listOptionsLabelSelector, "string");
}
if (listOptionsFieldSelector !== undefined) {
localVarQueryParameters['listOptions.fieldSelector'] = ObjectSerializer.serialize(listOptionsFieldSelector, "string");
}
if (listOptionsWatch !== undefined) {
localVarQueryParameters['listOptions.watch'] = ObjectSerializer.serialize(listOptionsWatch, "boolean");
}
if (listOptionsAllowWatchBookmarks !== undefined) {
localVarQueryParameters['listOptions.allowWatchBookmarks'] = ObjectSerializer.serialize(listOptionsAllowWatchBookmarks, "boolean");
}
if (listOptionsResourceVersion !== undefined) {
localVarQueryParameters['listOptions.resourceVersion'] = ObjectSerializer.serialize(listOptionsResourceVersion, "string");
}
if (listOptionsResourceVersionMatch !== undefined) {
localVarQueryParameters['listOptions.resourceVersionMatch'] = ObjectSerializer.serialize(listOptionsResourceVersionMatch, "string");
}
if (listOptionsTimeoutSeconds !== undefined) {
localVarQueryParameters['listOptions.timeoutSeconds'] = ObjectSerializer.serialize(listOptionsTimeoutSeconds, "string");
}
if (listOptionsLimit !== undefined) {
localVarQueryParameters['listOptions.limit'] = ObjectSerializer.serialize(listOptionsLimit, "string");
}
if (listOptionsContinue !== undefined) {
localVarQueryParameters['listOptions.continue'] = ObjectSerializer.serialize(listOptionsContinue, "string");
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'GET',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
};
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: IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateList; }>((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, "IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateList");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param name DEPRECATED: This field is ignored.
* @param body
*/
public async clusterWorkflowTemplateServiceUpdateClusterWorkflowTemplate (name: string, body: IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateUpdateRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate; }> {
const localVarPath = this.basePath + '/api/v1/cluster-workflow-templates/{name}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'name' is not null or undefined
if (name === null || name === undefined) {
throw new Error('Required parameter name was null or undefined when calling clusterWorkflowTemplateServiceUpdateClusterWorkflowTemplate.');
}
// 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 clusterWorkflowTemplateServiceUpdateClusterWorkflowTemplate.');
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'PUT',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
body: ObjectSerializer.serialize(body, "IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateUpdateRequest")
};
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: IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate; }>((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, "IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
}

View file

@ -0,0 +1,818 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import localVarRequest from 'request';
import http from 'http';
/* tslint:disable:no-unused-locals */
import { GrpcGatewayRuntimeError } from '../model/grpcGatewayRuntimeError';
import { IoArgoprojWorkflowV1alpha1CreateCronWorkflowRequest } from '../model/ioArgoprojWorkflowV1alpha1CreateCronWorkflowRequest';
import { IoArgoprojWorkflowV1alpha1CronWorkflow } from '../model/ioArgoprojWorkflowV1alpha1CronWorkflow';
import { IoArgoprojWorkflowV1alpha1CronWorkflowList } from '../model/ioArgoprojWorkflowV1alpha1CronWorkflowList';
import { IoArgoprojWorkflowV1alpha1CronWorkflowResumeRequest } from '../model/ioArgoprojWorkflowV1alpha1CronWorkflowResumeRequest';
import { IoArgoprojWorkflowV1alpha1CronWorkflowSuspendRequest } from '../model/ioArgoprojWorkflowV1alpha1CronWorkflowSuspendRequest';
import { IoArgoprojWorkflowV1alpha1LintCronWorkflowRequest } from '../model/ioArgoprojWorkflowV1alpha1LintCronWorkflowRequest';
import { IoArgoprojWorkflowV1alpha1UpdateCronWorkflowRequest } from '../model/ioArgoprojWorkflowV1alpha1UpdateCronWorkflowRequest';
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models';
import { HttpError, RequestFile } from './apis';
let defaultBasePath = 'http://localhost:2746';
// ===============================================
// This file is autogenerated - Please do not edit
// ===============================================
export enum CronWorkflowServiceApiApiKeys {
BearerToken,
}
export class CronWorkflowServiceApi {
protected _basePath = defaultBasePath;
protected _defaultHeaders : any = {};
protected _useQuerystring : boolean = false;
protected authentications = {
'default': <Authentication>new VoidAuth(),
'BearerToken': new ApiKeyAuth('header', 'Authorization'),
}
protected interceptors: Interceptor[] = [];
constructor(basePath?: string);
constructor(basePathOrUsername: string, password?: string, basePath?: string) {
if (password) {
if (basePath) {
this.basePath = basePath;
}
} else {
if (basePathOrUsername) {
this.basePath = basePathOrUsername
}
}
}
set useQuerystring(value: boolean) {
this._useQuerystring = value;
}
set basePath(basePath: string) {
this._basePath = basePath;
}
set defaultHeaders(defaultHeaders: any) {
this._defaultHeaders = defaultHeaders;
}
get defaultHeaders() {
return this._defaultHeaders;
}
get basePath() {
return this._basePath;
}
public setDefaultAuthentication(auth: Authentication) {
this.authentications.default = auth;
}
public setApiKey(key: CronWorkflowServiceApiApiKeys, value: string) {
(this.authentications as any)[CronWorkflowServiceApiApiKeys[key]].apiKey = value;
}
public addInterceptor(interceptor: Interceptor) {
this.interceptors.push(interceptor);
}
/**
*
* @param namespace
* @param body
*/
public async cronWorkflowServiceCreateCronWorkflow (namespace: string, body: IoArgoprojWorkflowV1alpha1CreateCronWorkflowRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1CronWorkflow; }> {
const localVarPath = this.basePath + '/api/v1/cron-workflows/{namespace}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new Error('Required parameter namespace was null or undefined when calling cronWorkflowServiceCreateCronWorkflow.');
}
// 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 cronWorkflowServiceCreateCronWorkflow.');
}
(<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, "IoArgoprojWorkflowV1alpha1CreateCronWorkflowRequest")
};
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: IoArgoprojWorkflowV1alpha1CronWorkflow; }>((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, "IoArgoprojWorkflowV1alpha1CronWorkflow");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param namespace
* @param name
* @param deleteOptionsGracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +optional.
* @param deleteOptionsPreconditionsUid Specifies the target UID. +optional.
* @param deleteOptionsPreconditionsResourceVersion Specifies the target ResourceVersion +optional.
* @param deleteOptionsOrphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object\&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional.
* @param deleteOptionsPropagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \&#39;Orphan\&#39; - orphan the dependents; \&#39;Background\&#39; - allow the garbage collector to delete the dependents in the background; \&#39;Foreground\&#39; - a cascading policy that deletes all dependents in the foreground. +optional.
* @param deleteOptionsDryRun 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 +optional.
*/
public async cronWorkflowServiceDeleteCronWorkflow (namespace: string, name: string, deleteOptionsGracePeriodSeconds?: string, deleteOptionsPreconditionsUid?: string, deleteOptionsPreconditionsResourceVersion?: string, deleteOptionsOrphanDependents?: boolean, deleteOptionsPropagationPolicy?: string, deleteOptionsDryRun?: Array<string>, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: object; }> {
const localVarPath = this.basePath + '/api/v1/cron-workflows/{namespace}/{name}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new Error('Required parameter namespace was null or undefined when calling cronWorkflowServiceDeleteCronWorkflow.');
}
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new Error('Required parameter name was null or undefined when calling cronWorkflowServiceDeleteCronWorkflow.');
}
if (deleteOptionsGracePeriodSeconds !== undefined) {
localVarQueryParameters['deleteOptions.gracePeriodSeconds'] = ObjectSerializer.serialize(deleteOptionsGracePeriodSeconds, "string");
}
if (deleteOptionsPreconditionsUid !== undefined) {
localVarQueryParameters['deleteOptions.preconditions.uid'] = ObjectSerializer.serialize(deleteOptionsPreconditionsUid, "string");
}
if (deleteOptionsPreconditionsResourceVersion !== undefined) {
localVarQueryParameters['deleteOptions.preconditions.resourceVersion'] = ObjectSerializer.serialize(deleteOptionsPreconditionsResourceVersion, "string");
}
if (deleteOptionsOrphanDependents !== undefined) {
localVarQueryParameters['deleteOptions.orphanDependents'] = ObjectSerializer.serialize(deleteOptionsOrphanDependents, "boolean");
}
if (deleteOptionsPropagationPolicy !== undefined) {
localVarQueryParameters['deleteOptions.propagationPolicy'] = ObjectSerializer.serialize(deleteOptionsPropagationPolicy, "string");
}
if (deleteOptionsDryRun !== undefined) {
localVarQueryParameters['deleteOptions.dryRun'] = ObjectSerializer.serialize(deleteOptionsDryRun, "Array<string>");
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'DELETE',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
};
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: object; }>((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, "object");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param namespace
* @param name
* @param getOptionsResourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
*/
public async cronWorkflowServiceGetCronWorkflow (namespace: string, name: string, getOptionsResourceVersion?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1CronWorkflow; }> {
const localVarPath = this.basePath + '/api/v1/cron-workflows/{namespace}/{name}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new Error('Required parameter namespace was null or undefined when calling cronWorkflowServiceGetCronWorkflow.');
}
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new Error('Required parameter name was null or undefined when calling cronWorkflowServiceGetCronWorkflow.');
}
if (getOptionsResourceVersion !== undefined) {
localVarQueryParameters['getOptions.resourceVersion'] = ObjectSerializer.serialize(getOptionsResourceVersion, "string");
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'GET',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
};
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: IoArgoprojWorkflowV1alpha1CronWorkflow; }>((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, "IoArgoprojWorkflowV1alpha1CronWorkflow");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param namespace
* @param body
*/
public async cronWorkflowServiceLintCronWorkflow (namespace: string, body: IoArgoprojWorkflowV1alpha1LintCronWorkflowRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1CronWorkflow; }> {
const localVarPath = this.basePath + '/api/v1/cron-workflows/{namespace}/lint'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new Error('Required parameter namespace was null or undefined when calling cronWorkflowServiceLintCronWorkflow.');
}
// 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 cronWorkflowServiceLintCronWorkflow.');
}
(<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, "IoArgoprojWorkflowV1alpha1LintCronWorkflowRequest")
};
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: IoArgoprojWorkflowV1alpha1CronWorkflow; }>((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, "IoArgoprojWorkflowV1alpha1CronWorkflow");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param namespace
* @param listOptionsLabelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional.
* @param listOptionsFieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional.
* @param listOptionsWatch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional.
* @param listOptionsAllowWatchBookmarks allowWatchBookmarks requests watch events with type \&quot;BOOKMARK\&quot;. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\&#39;s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional.
* @param listOptionsResourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsResourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsTimeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional.
* @param listOptionsLimit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
* @param listOptionsContinue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
*/
public async cronWorkflowServiceListCronWorkflows (namespace: string, listOptionsLabelSelector?: string, listOptionsFieldSelector?: string, listOptionsWatch?: boolean, listOptionsAllowWatchBookmarks?: boolean, listOptionsResourceVersion?: string, listOptionsResourceVersionMatch?: string, listOptionsTimeoutSeconds?: string, listOptionsLimit?: string, listOptionsContinue?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1CronWorkflowList; }> {
const localVarPath = this.basePath + '/api/v1/cron-workflows/{namespace}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new Error('Required parameter namespace was null or undefined when calling cronWorkflowServiceListCronWorkflows.');
}
if (listOptionsLabelSelector !== undefined) {
localVarQueryParameters['listOptions.labelSelector'] = ObjectSerializer.serialize(listOptionsLabelSelector, "string");
}
if (listOptionsFieldSelector !== undefined) {
localVarQueryParameters['listOptions.fieldSelector'] = ObjectSerializer.serialize(listOptionsFieldSelector, "string");
}
if (listOptionsWatch !== undefined) {
localVarQueryParameters['listOptions.watch'] = ObjectSerializer.serialize(listOptionsWatch, "boolean");
}
if (listOptionsAllowWatchBookmarks !== undefined) {
localVarQueryParameters['listOptions.allowWatchBookmarks'] = ObjectSerializer.serialize(listOptionsAllowWatchBookmarks, "boolean");
}
if (listOptionsResourceVersion !== undefined) {
localVarQueryParameters['listOptions.resourceVersion'] = ObjectSerializer.serialize(listOptionsResourceVersion, "string");
}
if (listOptionsResourceVersionMatch !== undefined) {
localVarQueryParameters['listOptions.resourceVersionMatch'] = ObjectSerializer.serialize(listOptionsResourceVersionMatch, "string");
}
if (listOptionsTimeoutSeconds !== undefined) {
localVarQueryParameters['listOptions.timeoutSeconds'] = ObjectSerializer.serialize(listOptionsTimeoutSeconds, "string");
}
if (listOptionsLimit !== undefined) {
localVarQueryParameters['listOptions.limit'] = ObjectSerializer.serialize(listOptionsLimit, "string");
}
if (listOptionsContinue !== undefined) {
localVarQueryParameters['listOptions.continue'] = ObjectSerializer.serialize(listOptionsContinue, "string");
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'GET',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
};
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: IoArgoprojWorkflowV1alpha1CronWorkflowList; }>((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, "IoArgoprojWorkflowV1alpha1CronWorkflowList");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param namespace
* @param name
* @param body
*/
public async cronWorkflowServiceResumeCronWorkflow (namespace: string, name: string, body: IoArgoprojWorkflowV1alpha1CronWorkflowResumeRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1CronWorkflow; }> {
const localVarPath = this.basePath + '/api/v1/cron-workflows/{namespace}/{name}/resume'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new Error('Required parameter namespace was null or undefined when calling cronWorkflowServiceResumeCronWorkflow.');
}
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new Error('Required parameter name was null or undefined when calling cronWorkflowServiceResumeCronWorkflow.');
}
// 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 cronWorkflowServiceResumeCronWorkflow.');
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'PUT',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
body: ObjectSerializer.serialize(body, "IoArgoprojWorkflowV1alpha1CronWorkflowResumeRequest")
};
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: IoArgoprojWorkflowV1alpha1CronWorkflow; }>((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, "IoArgoprojWorkflowV1alpha1CronWorkflow");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param namespace
* @param name
* @param body
*/
public async cronWorkflowServiceSuspendCronWorkflow (namespace: string, name: string, body: IoArgoprojWorkflowV1alpha1CronWorkflowSuspendRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1CronWorkflow; }> {
const localVarPath = this.basePath + '/api/v1/cron-workflows/{namespace}/{name}/suspend'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new Error('Required parameter namespace was null or undefined when calling cronWorkflowServiceSuspendCronWorkflow.');
}
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new Error('Required parameter name was null or undefined when calling cronWorkflowServiceSuspendCronWorkflow.');
}
// 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 cronWorkflowServiceSuspendCronWorkflow.');
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'PUT',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
body: ObjectSerializer.serialize(body, "IoArgoprojWorkflowV1alpha1CronWorkflowSuspendRequest")
};
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: IoArgoprojWorkflowV1alpha1CronWorkflow; }>((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, "IoArgoprojWorkflowV1alpha1CronWorkflow");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param namespace
* @param name DEPRECATED: This field is ignored.
* @param body
*/
public async cronWorkflowServiceUpdateCronWorkflow (namespace: string, name: string, body: IoArgoprojWorkflowV1alpha1UpdateCronWorkflowRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1CronWorkflow; }> {
const localVarPath = this.basePath + '/api/v1/cron-workflows/{namespace}/{name}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new Error('Required parameter namespace was null or undefined when calling cronWorkflowServiceUpdateCronWorkflow.');
}
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new Error('Required parameter name was null or undefined when calling cronWorkflowServiceUpdateCronWorkflow.');
}
// 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 cronWorkflowServiceUpdateCronWorkflow.');
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'PUT',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
body: ObjectSerializer.serialize(body, "IoArgoprojWorkflowV1alpha1UpdateCronWorkflowRequest")
};
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: IoArgoprojWorkflowV1alpha1CronWorkflow; }>((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, "IoArgoprojWorkflowV1alpha1CronWorkflow");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
}

View file

@ -0,0 +1,295 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import localVarRequest from 'request';
import http from 'http';
/* tslint:disable:no-unused-locals */
import { GrpcGatewayRuntimeError } from '../model/grpcGatewayRuntimeError';
import { IoArgoprojWorkflowV1alpha1WorkflowEventBindingList } from '../model/ioArgoprojWorkflowV1alpha1WorkflowEventBindingList';
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models';
import { HttpError, RequestFile } from './apis';
let defaultBasePath = 'http://localhost:2746';
// ===============================================
// This file is autogenerated - Please do not edit
// ===============================================
export enum EventServiceApiApiKeys {
BearerToken,
}
export class EventServiceApi {
protected _basePath = defaultBasePath;
protected _defaultHeaders : any = {};
protected _useQuerystring : boolean = false;
protected authentications = {
'default': <Authentication>new VoidAuth(),
'BearerToken': new ApiKeyAuth('header', 'Authorization'),
}
protected interceptors: Interceptor[] = [];
constructor(basePath?: string);
constructor(basePathOrUsername: string, password?: string, basePath?: string) {
if (password) {
if (basePath) {
this.basePath = basePath;
}
} else {
if (basePathOrUsername) {
this.basePath = basePathOrUsername
}
}
}
set useQuerystring(value: boolean) {
this._useQuerystring = value;
}
set basePath(basePath: string) {
this._basePath = basePath;
}
set defaultHeaders(defaultHeaders: any) {
this._defaultHeaders = defaultHeaders;
}
get defaultHeaders() {
return this._defaultHeaders;
}
get basePath() {
return this._basePath;
}
public setDefaultAuthentication(auth: Authentication) {
this.authentications.default = auth;
}
public setApiKey(key: EventServiceApiApiKeys, value: string) {
(this.authentications as any)[EventServiceApiApiKeys[key]].apiKey = value;
}
public addInterceptor(interceptor: Interceptor) {
this.interceptors.push(interceptor);
}
/**
*
* @param namespace
* @param listOptionsLabelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional.
* @param listOptionsFieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional.
* @param listOptionsWatch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional.
* @param listOptionsAllowWatchBookmarks allowWatchBookmarks requests watch events with type \&quot;BOOKMARK\&quot;. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\&#39;s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional.
* @param listOptionsResourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsResourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsTimeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional.
* @param listOptionsLimit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
* @param listOptionsContinue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
*/
public async eventServiceListWorkflowEventBindings (namespace: string, listOptionsLabelSelector?: string, listOptionsFieldSelector?: string, listOptionsWatch?: boolean, listOptionsAllowWatchBookmarks?: boolean, listOptionsResourceVersion?: string, listOptionsResourceVersionMatch?: string, listOptionsTimeoutSeconds?: string, listOptionsLimit?: string, listOptionsContinue?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1WorkflowEventBindingList; }> {
const localVarPath = this.basePath + '/api/v1/workflow-event-bindings/{namespace}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new Error('Required parameter namespace was null or undefined when calling eventServiceListWorkflowEventBindings.');
}
if (listOptionsLabelSelector !== undefined) {
localVarQueryParameters['listOptions.labelSelector'] = ObjectSerializer.serialize(listOptionsLabelSelector, "string");
}
if (listOptionsFieldSelector !== undefined) {
localVarQueryParameters['listOptions.fieldSelector'] = ObjectSerializer.serialize(listOptionsFieldSelector, "string");
}
if (listOptionsWatch !== undefined) {
localVarQueryParameters['listOptions.watch'] = ObjectSerializer.serialize(listOptionsWatch, "boolean");
}
if (listOptionsAllowWatchBookmarks !== undefined) {
localVarQueryParameters['listOptions.allowWatchBookmarks'] = ObjectSerializer.serialize(listOptionsAllowWatchBookmarks, "boolean");
}
if (listOptionsResourceVersion !== undefined) {
localVarQueryParameters['listOptions.resourceVersion'] = ObjectSerializer.serialize(listOptionsResourceVersion, "string");
}
if (listOptionsResourceVersionMatch !== undefined) {
localVarQueryParameters['listOptions.resourceVersionMatch'] = ObjectSerializer.serialize(listOptionsResourceVersionMatch, "string");
}
if (listOptionsTimeoutSeconds !== undefined) {
localVarQueryParameters['listOptions.timeoutSeconds'] = ObjectSerializer.serialize(listOptionsTimeoutSeconds, "string");
}
if (listOptionsLimit !== undefined) {
localVarQueryParameters['listOptions.limit'] = ObjectSerializer.serialize(listOptionsLimit, "string");
}
if (listOptionsContinue !== undefined) {
localVarQueryParameters['listOptions.continue'] = ObjectSerializer.serialize(listOptionsContinue, "string");
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'GET',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
};
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: IoArgoprojWorkflowV1alpha1WorkflowEventBindingList; }>((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, "IoArgoprojWorkflowV1alpha1WorkflowEventBindingList");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param namespace The namespace for the io.argoproj.workflow.v1alpha1. This can be empty if the client has cluster scoped permissions. If empty, then the event is \&quot;broadcast\&quot; to workflow event binding in all namespaces.
* @param discriminator Optional discriminator for the io.argoproj.workflow.v1alpha1. This should almost always be empty. Used for edge-cases where the event payload alone is not provide enough information to discriminate the event. This MUST NOT be used as security mechanism, e.g. to allow two clients to use the same access token, or to support webhooks on unsecured server. Instead, use access tokens. This is made available as &#x60;discriminator&#x60; in the event binding selector (&#x60;/spec/event/selector)&#x60;
* @param body The event itself can be any data.
*/
public async eventServiceReceiveEvent (namespace: string, discriminator: string, body: object, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: object; }> {
const localVarPath = this.basePath + '/api/v1/events/{namespace}/{discriminator}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
.replace('{' + 'discriminator' + '}', encodeURIComponent(String(discriminator)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new Error('Required parameter namespace was null or undefined when calling eventServiceReceiveEvent.');
}
// verify required parameter 'discriminator' is not null or undefined
if (discriminator === null || discriminator === undefined) {
throw new Error('Required parameter discriminator was null or undefined when calling eventServiceReceiveEvent.');
}
// 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 eventServiceReceiveEvent.');
}
(<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, "object")
};
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: object; }>((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, "object");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
}

View file

@ -0,0 +1,821 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import localVarRequest from 'request';
import http from 'http';
/* tslint:disable:no-unused-locals */
import { EventsourceCreateEventSourceRequest } from '../model/eventsourceCreateEventSourceRequest';
import { EventsourceUpdateEventSourceRequest } from '../model/eventsourceUpdateEventSourceRequest';
import { GrpcGatewayRuntimeError } from '../model/grpcGatewayRuntimeError';
import { IoArgoprojEventsV1alpha1EventSource } from '../model/ioArgoprojEventsV1alpha1EventSource';
import { IoArgoprojEventsV1alpha1EventSourceList } from '../model/ioArgoprojEventsV1alpha1EventSourceList';
import { StreamResultOfEventsourceEventSourceWatchEvent } from '../model/streamResultOfEventsourceEventSourceWatchEvent';
import { StreamResultOfEventsourceLogEntry } from '../model/streamResultOfEventsourceLogEntry';
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models';
import { HttpError, RequestFile } from './apis';
let defaultBasePath = 'http://localhost:2746';
// ===============================================
// This file is autogenerated - Please do not edit
// ===============================================
export enum EventSourceServiceApiApiKeys {
BearerToken,
}
export class EventSourceServiceApi {
protected _basePath = defaultBasePath;
protected _defaultHeaders : any = {};
protected _useQuerystring : boolean = false;
protected authentications = {
'default': <Authentication>new VoidAuth(),
'BearerToken': new ApiKeyAuth('header', 'Authorization'),
}
protected interceptors: Interceptor[] = [];
constructor(basePath?: string);
constructor(basePathOrUsername: string, password?: string, basePath?: string) {
if (password) {
if (basePath) {
this.basePath = basePath;
}
} else {
if (basePathOrUsername) {
this.basePath = basePathOrUsername
}
}
}
set useQuerystring(value: boolean) {
this._useQuerystring = value;
}
set basePath(basePath: string) {
this._basePath = basePath;
}
set defaultHeaders(defaultHeaders: any) {
this._defaultHeaders = defaultHeaders;
}
get defaultHeaders() {
return this._defaultHeaders;
}
get basePath() {
return this._basePath;
}
public setDefaultAuthentication(auth: Authentication) {
this.authentications.default = auth;
}
public setApiKey(key: EventSourceServiceApiApiKeys, value: string) {
(this.authentications as any)[EventSourceServiceApiApiKeys[key]].apiKey = value;
}
public addInterceptor(interceptor: Interceptor) {
this.interceptors.push(interceptor);
}
/**
*
* @param namespace
* @param body
*/
public async eventSourceServiceCreateEventSource (namespace: string, body: EventsourceCreateEventSourceRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojEventsV1alpha1EventSource; }> {
const localVarPath = this.basePath + '/api/v1/event-sources/{namespace}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new Error('Required parameter namespace was null or undefined when calling eventSourceServiceCreateEventSource.');
}
// 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 eventSourceServiceCreateEventSource.');
}
(<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, "EventsourceCreateEventSourceRequest")
};
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: IoArgoprojEventsV1alpha1EventSource; }>((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, "IoArgoprojEventsV1alpha1EventSource");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param namespace
* @param name
* @param deleteOptionsGracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +optional.
* @param deleteOptionsPreconditionsUid Specifies the target UID. +optional.
* @param deleteOptionsPreconditionsResourceVersion Specifies the target ResourceVersion +optional.
* @param deleteOptionsOrphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object\&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional.
* @param deleteOptionsPropagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \&#39;Orphan\&#39; - orphan the dependents; \&#39;Background\&#39; - allow the garbage collector to delete the dependents in the background; \&#39;Foreground\&#39; - a cascading policy that deletes all dependents in the foreground. +optional.
* @param deleteOptionsDryRun 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 +optional.
*/
public async eventSourceServiceDeleteEventSource (namespace: string, name: string, deleteOptionsGracePeriodSeconds?: string, deleteOptionsPreconditionsUid?: string, deleteOptionsPreconditionsResourceVersion?: string, deleteOptionsOrphanDependents?: boolean, deleteOptionsPropagationPolicy?: string, deleteOptionsDryRun?: Array<string>, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: object; }> {
const localVarPath = this.basePath + '/api/v1/event-sources/{namespace}/{name}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new Error('Required parameter namespace was null or undefined when calling eventSourceServiceDeleteEventSource.');
}
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new Error('Required parameter name was null or undefined when calling eventSourceServiceDeleteEventSource.');
}
if (deleteOptionsGracePeriodSeconds !== undefined) {
localVarQueryParameters['deleteOptions.gracePeriodSeconds'] = ObjectSerializer.serialize(deleteOptionsGracePeriodSeconds, "string");
}
if (deleteOptionsPreconditionsUid !== undefined) {
localVarQueryParameters['deleteOptions.preconditions.uid'] = ObjectSerializer.serialize(deleteOptionsPreconditionsUid, "string");
}
if (deleteOptionsPreconditionsResourceVersion !== undefined) {
localVarQueryParameters['deleteOptions.preconditions.resourceVersion'] = ObjectSerializer.serialize(deleteOptionsPreconditionsResourceVersion, "string");
}
if (deleteOptionsOrphanDependents !== undefined) {
localVarQueryParameters['deleteOptions.orphanDependents'] = ObjectSerializer.serialize(deleteOptionsOrphanDependents, "boolean");
}
if (deleteOptionsPropagationPolicy !== undefined) {
localVarQueryParameters['deleteOptions.propagationPolicy'] = ObjectSerializer.serialize(deleteOptionsPropagationPolicy, "string");
}
if (deleteOptionsDryRun !== undefined) {
localVarQueryParameters['deleteOptions.dryRun'] = ObjectSerializer.serialize(deleteOptionsDryRun, "Array<string>");
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'DELETE',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
};
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: object; }>((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, "object");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param namespace
* @param name optional - only return entries for this event source.
* @param eventSourceType optional - only return entries for this event source type (e.g. &#x60;webhook&#x60;).
* @param eventName optional - only return entries for this event name (e.g. &#x60;example&#x60;).
* @param grep optional - only return entries where &#x60;msg&#x60; matches this regular expression.
* @param podLogOptionsContainer The container for which to stream logs. Defaults to only container if there is one container in the pod. +optional.
* @param podLogOptionsFollow Follow the log stream of the pod. Defaults to false. +optional.
* @param podLogOptionsPrevious Return previous terminated container logs. Defaults to false. +optional.
* @param podLogOptionsSinceSeconds A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. +optional.
* @param podLogOptionsSinceTimeSeconds Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.
* @param podLogOptionsSinceTimeNanos Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 inclusive. This field may be limited in precision depending on context.
* @param podLogOptionsTimestamps If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. +optional.
* @param podLogOptionsTailLines If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime +optional.
* @param podLogOptionsLimitBytes If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. +optional.
* @param podLogOptionsInsecureSkipTLSVerifyBackend insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver\&#39;s TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). +optional.
*/
public async eventSourceServiceEventSourcesLogs (namespace: string, name?: string, eventSourceType?: string, eventName?: string, grep?: string, podLogOptionsContainer?: string, podLogOptionsFollow?: boolean, podLogOptionsPrevious?: boolean, podLogOptionsSinceSeconds?: string, podLogOptionsSinceTimeSeconds?: string, podLogOptionsSinceTimeNanos?: number, podLogOptionsTimestamps?: boolean, podLogOptionsTailLines?: string, podLogOptionsLimitBytes?: string, podLogOptionsInsecureSkipTLSVerifyBackend?: boolean, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: StreamResultOfEventsourceLogEntry; }> {
const localVarPath = this.basePath + '/api/v1/stream/event-sources/{namespace}/logs'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new Error('Required parameter namespace was null or undefined when calling eventSourceServiceEventSourcesLogs.');
}
if (name !== undefined) {
localVarQueryParameters['name'] = ObjectSerializer.serialize(name, "string");
}
if (eventSourceType !== undefined) {
localVarQueryParameters['eventSourceType'] = ObjectSerializer.serialize(eventSourceType, "string");
}
if (eventName !== undefined) {
localVarQueryParameters['eventName'] = ObjectSerializer.serialize(eventName, "string");
}
if (grep !== undefined) {
localVarQueryParameters['grep'] = ObjectSerializer.serialize(grep, "string");
}
if (podLogOptionsContainer !== undefined) {
localVarQueryParameters['podLogOptions.container'] = ObjectSerializer.serialize(podLogOptionsContainer, "string");
}
if (podLogOptionsFollow !== undefined) {
localVarQueryParameters['podLogOptions.follow'] = ObjectSerializer.serialize(podLogOptionsFollow, "boolean");
}
if (podLogOptionsPrevious !== undefined) {
localVarQueryParameters['podLogOptions.previous'] = ObjectSerializer.serialize(podLogOptionsPrevious, "boolean");
}
if (podLogOptionsSinceSeconds !== undefined) {
localVarQueryParameters['podLogOptions.sinceSeconds'] = ObjectSerializer.serialize(podLogOptionsSinceSeconds, "string");
}
if (podLogOptionsSinceTimeSeconds !== undefined) {
localVarQueryParameters['podLogOptions.sinceTime.seconds'] = ObjectSerializer.serialize(podLogOptionsSinceTimeSeconds, "string");
}
if (podLogOptionsSinceTimeNanos !== undefined) {
localVarQueryParameters['podLogOptions.sinceTime.nanos'] = ObjectSerializer.serialize(podLogOptionsSinceTimeNanos, "number");
}
if (podLogOptionsTimestamps !== undefined) {
localVarQueryParameters['podLogOptions.timestamps'] = ObjectSerializer.serialize(podLogOptionsTimestamps, "boolean");
}
if (podLogOptionsTailLines !== undefined) {
localVarQueryParameters['podLogOptions.tailLines'] = ObjectSerializer.serialize(podLogOptionsTailLines, "string");
}
if (podLogOptionsLimitBytes !== undefined) {
localVarQueryParameters['podLogOptions.limitBytes'] = ObjectSerializer.serialize(podLogOptionsLimitBytes, "string");
}
if (podLogOptionsInsecureSkipTLSVerifyBackend !== undefined) {
localVarQueryParameters['podLogOptions.insecureSkipTLSVerifyBackend'] = ObjectSerializer.serialize(podLogOptionsInsecureSkipTLSVerifyBackend, "boolean");
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'GET',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
};
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: StreamResultOfEventsourceLogEntry; }>((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, "StreamResultOfEventsourceLogEntry");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param namespace
* @param name
*/
public async eventSourceServiceGetEventSource (namespace: string, name: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojEventsV1alpha1EventSource; }> {
const localVarPath = this.basePath + '/api/v1/event-sources/{namespace}/{name}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new Error('Required parameter namespace was null or undefined when calling eventSourceServiceGetEventSource.');
}
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new Error('Required parameter name was null or undefined when calling eventSourceServiceGetEventSource.');
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'GET',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
};
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: IoArgoprojEventsV1alpha1EventSource; }>((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, "IoArgoprojEventsV1alpha1EventSource");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param namespace
* @param listOptionsLabelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional.
* @param listOptionsFieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional.
* @param listOptionsWatch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional.
* @param listOptionsAllowWatchBookmarks allowWatchBookmarks requests watch events with type \&quot;BOOKMARK\&quot;. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\&#39;s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional.
* @param listOptionsResourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsResourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsTimeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional.
* @param listOptionsLimit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
* @param listOptionsContinue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
*/
public async eventSourceServiceListEventSources (namespace: string, listOptionsLabelSelector?: string, listOptionsFieldSelector?: string, listOptionsWatch?: boolean, listOptionsAllowWatchBookmarks?: boolean, listOptionsResourceVersion?: string, listOptionsResourceVersionMatch?: string, listOptionsTimeoutSeconds?: string, listOptionsLimit?: string, listOptionsContinue?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojEventsV1alpha1EventSourceList; }> {
const localVarPath = this.basePath + '/api/v1/event-sources/{namespace}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new Error('Required parameter namespace was null or undefined when calling eventSourceServiceListEventSources.');
}
if (listOptionsLabelSelector !== undefined) {
localVarQueryParameters['listOptions.labelSelector'] = ObjectSerializer.serialize(listOptionsLabelSelector, "string");
}
if (listOptionsFieldSelector !== undefined) {
localVarQueryParameters['listOptions.fieldSelector'] = ObjectSerializer.serialize(listOptionsFieldSelector, "string");
}
if (listOptionsWatch !== undefined) {
localVarQueryParameters['listOptions.watch'] = ObjectSerializer.serialize(listOptionsWatch, "boolean");
}
if (listOptionsAllowWatchBookmarks !== undefined) {
localVarQueryParameters['listOptions.allowWatchBookmarks'] = ObjectSerializer.serialize(listOptionsAllowWatchBookmarks, "boolean");
}
if (listOptionsResourceVersion !== undefined) {
localVarQueryParameters['listOptions.resourceVersion'] = ObjectSerializer.serialize(listOptionsResourceVersion, "string");
}
if (listOptionsResourceVersionMatch !== undefined) {
localVarQueryParameters['listOptions.resourceVersionMatch'] = ObjectSerializer.serialize(listOptionsResourceVersionMatch, "string");
}
if (listOptionsTimeoutSeconds !== undefined) {
localVarQueryParameters['listOptions.timeoutSeconds'] = ObjectSerializer.serialize(listOptionsTimeoutSeconds, "string");
}
if (listOptionsLimit !== undefined) {
localVarQueryParameters['listOptions.limit'] = ObjectSerializer.serialize(listOptionsLimit, "string");
}
if (listOptionsContinue !== undefined) {
localVarQueryParameters['listOptions.continue'] = ObjectSerializer.serialize(listOptionsContinue, "string");
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'GET',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
};
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: IoArgoprojEventsV1alpha1EventSourceList; }>((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, "IoArgoprojEventsV1alpha1EventSourceList");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param namespace
* @param name
* @param body
*/
public async eventSourceServiceUpdateEventSource (namespace: string, name: string, body: EventsourceUpdateEventSourceRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojEventsV1alpha1EventSource; }> {
const localVarPath = this.basePath + '/api/v1/event-sources/{namespace}/{name}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new Error('Required parameter namespace was null or undefined when calling eventSourceServiceUpdateEventSource.');
}
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new Error('Required parameter name was null or undefined when calling eventSourceServiceUpdateEventSource.');
}
// 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 eventSourceServiceUpdateEventSource.');
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'PUT',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
body: ObjectSerializer.serialize(body, "EventsourceUpdateEventSourceRequest")
};
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: IoArgoprojEventsV1alpha1EventSource; }>((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, "IoArgoprojEventsV1alpha1EventSource");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param namespace
* @param listOptionsLabelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional.
* @param listOptionsFieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional.
* @param listOptionsWatch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional.
* @param listOptionsAllowWatchBookmarks allowWatchBookmarks requests watch events with type \&quot;BOOKMARK\&quot;. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\&#39;s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional.
* @param listOptionsResourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsResourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsTimeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional.
* @param listOptionsLimit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
* @param listOptionsContinue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
*/
public async eventSourceServiceWatchEventSources (namespace: string, listOptionsLabelSelector?: string, listOptionsFieldSelector?: string, listOptionsWatch?: boolean, listOptionsAllowWatchBookmarks?: boolean, listOptionsResourceVersion?: string, listOptionsResourceVersionMatch?: string, listOptionsTimeoutSeconds?: string, listOptionsLimit?: string, listOptionsContinue?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: StreamResultOfEventsourceEventSourceWatchEvent; }> {
const localVarPath = this.basePath + '/api/v1/stream/event-sources/{namespace}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new Error('Required parameter namespace was null or undefined when calling eventSourceServiceWatchEventSources.');
}
if (listOptionsLabelSelector !== undefined) {
localVarQueryParameters['listOptions.labelSelector'] = ObjectSerializer.serialize(listOptionsLabelSelector, "string");
}
if (listOptionsFieldSelector !== undefined) {
localVarQueryParameters['listOptions.fieldSelector'] = ObjectSerializer.serialize(listOptionsFieldSelector, "string");
}
if (listOptionsWatch !== undefined) {
localVarQueryParameters['listOptions.watch'] = ObjectSerializer.serialize(listOptionsWatch, "boolean");
}
if (listOptionsAllowWatchBookmarks !== undefined) {
localVarQueryParameters['listOptions.allowWatchBookmarks'] = ObjectSerializer.serialize(listOptionsAllowWatchBookmarks, "boolean");
}
if (listOptionsResourceVersion !== undefined) {
localVarQueryParameters['listOptions.resourceVersion'] = ObjectSerializer.serialize(listOptionsResourceVersion, "string");
}
if (listOptionsResourceVersionMatch !== undefined) {
localVarQueryParameters['listOptions.resourceVersionMatch'] = ObjectSerializer.serialize(listOptionsResourceVersionMatch, "string");
}
if (listOptionsTimeoutSeconds !== undefined) {
localVarQueryParameters['listOptions.timeoutSeconds'] = ObjectSerializer.serialize(listOptionsTimeoutSeconds, "string");
}
if (listOptionsLimit !== undefined) {
localVarQueryParameters['listOptions.limit'] = ObjectSerializer.serialize(listOptionsLimit, "string");
}
if (listOptionsContinue !== undefined) {
localVarQueryParameters['listOptions.continue'] = ObjectSerializer.serialize(listOptionsContinue, "string");
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'GET',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
};
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: StreamResultOfEventsourceEventSourceWatchEvent; }>((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, "StreamResultOfEventsourceEventSourceWatchEvent");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
}

View file

@ -0,0 +1,360 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import localVarRequest from 'request';
import http from 'http';
/* tslint:disable:no-unused-locals */
import { GrpcGatewayRuntimeError } from '../model/grpcGatewayRuntimeError';
import { IoArgoprojWorkflowV1alpha1CollectEventRequest } from '../model/ioArgoprojWorkflowV1alpha1CollectEventRequest';
import { IoArgoprojWorkflowV1alpha1GetUserInfoResponse } from '../model/ioArgoprojWorkflowV1alpha1GetUserInfoResponse';
import { IoArgoprojWorkflowV1alpha1InfoResponse } from '../model/ioArgoprojWorkflowV1alpha1InfoResponse';
import { IoArgoprojWorkflowV1alpha1Version } from '../model/ioArgoprojWorkflowV1alpha1Version';
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models';
import { HttpError, RequestFile } from './apis';
let defaultBasePath = 'http://localhost:2746';
// ===============================================
// This file is autogenerated - Please do not edit
// ===============================================
export enum InfoServiceApiApiKeys {
BearerToken,
}
export class InfoServiceApi {
protected _basePath = defaultBasePath;
protected _defaultHeaders : any = {};
protected _useQuerystring : boolean = false;
protected authentications = {
'default': <Authentication>new VoidAuth(),
'BearerToken': new ApiKeyAuth('header', 'Authorization'),
}
protected interceptors: Interceptor[] = [];
constructor(basePath?: string);
constructor(basePathOrUsername: string, password?: string, basePath?: string) {
if (password) {
if (basePath) {
this.basePath = basePath;
}
} else {
if (basePathOrUsername) {
this.basePath = basePathOrUsername
}
}
}
set useQuerystring(value: boolean) {
this._useQuerystring = value;
}
set basePath(basePath: string) {
this._basePath = basePath;
}
set defaultHeaders(defaultHeaders: any) {
this._defaultHeaders = defaultHeaders;
}
get defaultHeaders() {
return this._defaultHeaders;
}
get basePath() {
return this._basePath;
}
public setDefaultAuthentication(auth: Authentication) {
this.authentications.default = auth;
}
public setApiKey(key: InfoServiceApiApiKeys, value: string) {
(this.authentications as any)[InfoServiceApiApiKeys[key]].apiKey = value;
}
public addInterceptor(interceptor: Interceptor) {
this.interceptors.push(interceptor);
}
/**
*
* @param body
*/
public async infoServiceCollectEvent (body: IoArgoprojWorkflowV1alpha1CollectEventRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: object; }> {
const localVarPath = this.basePath + '/api/v1/tracking/event';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 infoServiceCollectEvent.');
}
(<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, "IoArgoprojWorkflowV1alpha1CollectEventRequest")
};
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: object; }>((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, "object");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
*/
public async infoServiceGetInfo (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1InfoResponse; }> {
const localVarPath = this.basePath + '/api/v1/info';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// give precedence to 'application/json'
if (produces.indexOf('application/json') >= 0) {
localVarHeaderParams.Accept = 'application/json';
} else {
localVarHeaderParams.Accept = produces.join(',');
}
let localVarFormParams: any = {};
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'GET',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
};
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: IoArgoprojWorkflowV1alpha1InfoResponse; }>((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, "IoArgoprojWorkflowV1alpha1InfoResponse");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
*/
public async infoServiceGetUserInfo (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1GetUserInfoResponse; }> {
const localVarPath = this.basePath + '/api/v1/userinfo';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// give precedence to 'application/json'
if (produces.indexOf('application/json') >= 0) {
localVarHeaderParams.Accept = 'application/json';
} else {
localVarHeaderParams.Accept = produces.join(',');
}
let localVarFormParams: any = {};
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'GET',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
};
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: IoArgoprojWorkflowV1alpha1GetUserInfoResponse; }>((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, "IoArgoprojWorkflowV1alpha1GetUserInfoResponse");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
*/
public async infoServiceGetVersion (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1Version; }> {
const localVarPath = this.basePath + '/api/v1/version';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// give precedence to 'application/json'
if (produces.indexOf('application/json') >= 0) {
localVarHeaderParams.Accept = 'application/json';
} else {
localVarHeaderParams.Accept = produces.join(',');
}
let localVarFormParams: any = {};
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'GET',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
};
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: IoArgoprojWorkflowV1alpha1Version; }>((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, "IoArgoprojWorkflowV1alpha1Version");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
}

View file

@ -0,0 +1,821 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import localVarRequest from 'request';
import http from 'http';
/* tslint:disable:no-unused-locals */
import { GrpcGatewayRuntimeError } from '../model/grpcGatewayRuntimeError';
import { IoArgoprojEventsV1alpha1Sensor } from '../model/ioArgoprojEventsV1alpha1Sensor';
import { IoArgoprojEventsV1alpha1SensorList } from '../model/ioArgoprojEventsV1alpha1SensorList';
import { SensorCreateSensorRequest } from '../model/sensorCreateSensorRequest';
import { SensorUpdateSensorRequest } from '../model/sensorUpdateSensorRequest';
import { StreamResultOfSensorLogEntry } from '../model/streamResultOfSensorLogEntry';
import { StreamResultOfSensorSensorWatchEvent } from '../model/streamResultOfSensorSensorWatchEvent';
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models';
import { HttpError, RequestFile } from './apis';
let defaultBasePath = 'http://localhost:2746';
// ===============================================
// This file is autogenerated - Please do not edit
// ===============================================
export enum SensorServiceApiApiKeys {
BearerToken,
}
export class SensorServiceApi {
protected _basePath = defaultBasePath;
protected _defaultHeaders : any = {};
protected _useQuerystring : boolean = false;
protected authentications = {
'default': <Authentication>new VoidAuth(),
'BearerToken': new ApiKeyAuth('header', 'Authorization'),
}
protected interceptors: Interceptor[] = [];
constructor(basePath?: string);
constructor(basePathOrUsername: string, password?: string, basePath?: string) {
if (password) {
if (basePath) {
this.basePath = basePath;
}
} else {
if (basePathOrUsername) {
this.basePath = basePathOrUsername
}
}
}
set useQuerystring(value: boolean) {
this._useQuerystring = value;
}
set basePath(basePath: string) {
this._basePath = basePath;
}
set defaultHeaders(defaultHeaders: any) {
this._defaultHeaders = defaultHeaders;
}
get defaultHeaders() {
return this._defaultHeaders;
}
get basePath() {
return this._basePath;
}
public setDefaultAuthentication(auth: Authentication) {
this.authentications.default = auth;
}
public setApiKey(key: SensorServiceApiApiKeys, value: string) {
(this.authentications as any)[SensorServiceApiApiKeys[key]].apiKey = value;
}
public addInterceptor(interceptor: Interceptor) {
this.interceptors.push(interceptor);
}
/**
*
* @param namespace
* @param body
*/
public async sensorServiceCreateSensor (namespace: string, body: SensorCreateSensorRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojEventsV1alpha1Sensor; }> {
const localVarPath = this.basePath + '/api/v1/sensors/{namespace}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new Error('Required parameter namespace was null or undefined when calling sensorServiceCreateSensor.');
}
// 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 sensorServiceCreateSensor.');
}
(<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, "SensorCreateSensorRequest")
};
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: IoArgoprojEventsV1alpha1Sensor; }>((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, "IoArgoprojEventsV1alpha1Sensor");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param namespace
* @param name
* @param deleteOptionsGracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +optional.
* @param deleteOptionsPreconditionsUid Specifies the target UID. +optional.
* @param deleteOptionsPreconditionsResourceVersion Specifies the target ResourceVersion +optional.
* @param deleteOptionsOrphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object\&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional.
* @param deleteOptionsPropagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \&#39;Orphan\&#39; - orphan the dependents; \&#39;Background\&#39; - allow the garbage collector to delete the dependents in the background; \&#39;Foreground\&#39; - a cascading policy that deletes all dependents in the foreground. +optional.
* @param deleteOptionsDryRun 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 +optional.
*/
public async sensorServiceDeleteSensor (namespace: string, name: string, deleteOptionsGracePeriodSeconds?: string, deleteOptionsPreconditionsUid?: string, deleteOptionsPreconditionsResourceVersion?: string, deleteOptionsOrphanDependents?: boolean, deleteOptionsPropagationPolicy?: string, deleteOptionsDryRun?: Array<string>, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: object; }> {
const localVarPath = this.basePath + '/api/v1/sensors/{namespace}/{name}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new Error('Required parameter namespace was null or undefined when calling sensorServiceDeleteSensor.');
}
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new Error('Required parameter name was null or undefined when calling sensorServiceDeleteSensor.');
}
if (deleteOptionsGracePeriodSeconds !== undefined) {
localVarQueryParameters['deleteOptions.gracePeriodSeconds'] = ObjectSerializer.serialize(deleteOptionsGracePeriodSeconds, "string");
}
if (deleteOptionsPreconditionsUid !== undefined) {
localVarQueryParameters['deleteOptions.preconditions.uid'] = ObjectSerializer.serialize(deleteOptionsPreconditionsUid, "string");
}
if (deleteOptionsPreconditionsResourceVersion !== undefined) {
localVarQueryParameters['deleteOptions.preconditions.resourceVersion'] = ObjectSerializer.serialize(deleteOptionsPreconditionsResourceVersion, "string");
}
if (deleteOptionsOrphanDependents !== undefined) {
localVarQueryParameters['deleteOptions.orphanDependents'] = ObjectSerializer.serialize(deleteOptionsOrphanDependents, "boolean");
}
if (deleteOptionsPropagationPolicy !== undefined) {
localVarQueryParameters['deleteOptions.propagationPolicy'] = ObjectSerializer.serialize(deleteOptionsPropagationPolicy, "string");
}
if (deleteOptionsDryRun !== undefined) {
localVarQueryParameters['deleteOptions.dryRun'] = ObjectSerializer.serialize(deleteOptionsDryRun, "Array<string>");
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'DELETE',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
};
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: object; }>((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, "object");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param namespace
* @param name
* @param getOptionsResourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
*/
public async sensorServiceGetSensor (namespace: string, name: string, getOptionsResourceVersion?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojEventsV1alpha1Sensor; }> {
const localVarPath = this.basePath + '/api/v1/sensors/{namespace}/{name}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new Error('Required parameter namespace was null or undefined when calling sensorServiceGetSensor.');
}
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new Error('Required parameter name was null or undefined when calling sensorServiceGetSensor.');
}
if (getOptionsResourceVersion !== undefined) {
localVarQueryParameters['getOptions.resourceVersion'] = ObjectSerializer.serialize(getOptionsResourceVersion, "string");
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'GET',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
};
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: IoArgoprojEventsV1alpha1Sensor; }>((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, "IoArgoprojEventsV1alpha1Sensor");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param namespace
* @param listOptionsLabelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional.
* @param listOptionsFieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional.
* @param listOptionsWatch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional.
* @param listOptionsAllowWatchBookmarks allowWatchBookmarks requests watch events with type \&quot;BOOKMARK\&quot;. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\&#39;s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional.
* @param listOptionsResourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsResourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsTimeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional.
* @param listOptionsLimit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
* @param listOptionsContinue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
*/
public async sensorServiceListSensors (namespace: string, listOptionsLabelSelector?: string, listOptionsFieldSelector?: string, listOptionsWatch?: boolean, listOptionsAllowWatchBookmarks?: boolean, listOptionsResourceVersion?: string, listOptionsResourceVersionMatch?: string, listOptionsTimeoutSeconds?: string, listOptionsLimit?: string, listOptionsContinue?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojEventsV1alpha1SensorList; }> {
const localVarPath = this.basePath + '/api/v1/sensors/{namespace}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new Error('Required parameter namespace was null or undefined when calling sensorServiceListSensors.');
}
if (listOptionsLabelSelector !== undefined) {
localVarQueryParameters['listOptions.labelSelector'] = ObjectSerializer.serialize(listOptionsLabelSelector, "string");
}
if (listOptionsFieldSelector !== undefined) {
localVarQueryParameters['listOptions.fieldSelector'] = ObjectSerializer.serialize(listOptionsFieldSelector, "string");
}
if (listOptionsWatch !== undefined) {
localVarQueryParameters['listOptions.watch'] = ObjectSerializer.serialize(listOptionsWatch, "boolean");
}
if (listOptionsAllowWatchBookmarks !== undefined) {
localVarQueryParameters['listOptions.allowWatchBookmarks'] = ObjectSerializer.serialize(listOptionsAllowWatchBookmarks, "boolean");
}
if (listOptionsResourceVersion !== undefined) {
localVarQueryParameters['listOptions.resourceVersion'] = ObjectSerializer.serialize(listOptionsResourceVersion, "string");
}
if (listOptionsResourceVersionMatch !== undefined) {
localVarQueryParameters['listOptions.resourceVersionMatch'] = ObjectSerializer.serialize(listOptionsResourceVersionMatch, "string");
}
if (listOptionsTimeoutSeconds !== undefined) {
localVarQueryParameters['listOptions.timeoutSeconds'] = ObjectSerializer.serialize(listOptionsTimeoutSeconds, "string");
}
if (listOptionsLimit !== undefined) {
localVarQueryParameters['listOptions.limit'] = ObjectSerializer.serialize(listOptionsLimit, "string");
}
if (listOptionsContinue !== undefined) {
localVarQueryParameters['listOptions.continue'] = ObjectSerializer.serialize(listOptionsContinue, "string");
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'GET',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
};
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: IoArgoprojEventsV1alpha1SensorList; }>((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, "IoArgoprojEventsV1alpha1SensorList");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param namespace
* @param name optional - only return entries for this sensor name.
* @param triggerName optional - only return entries for this trigger.
* @param grep option - only return entries where &#x60;msg&#x60; contains this regular expressions.
* @param podLogOptionsContainer The container for which to stream logs. Defaults to only container if there is one container in the pod. +optional.
* @param podLogOptionsFollow Follow the log stream of the pod. Defaults to false. +optional.
* @param podLogOptionsPrevious Return previous terminated container logs. Defaults to false. +optional.
* @param podLogOptionsSinceSeconds A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. +optional.
* @param podLogOptionsSinceTimeSeconds Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.
* @param podLogOptionsSinceTimeNanos Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 inclusive. This field may be limited in precision depending on context.
* @param podLogOptionsTimestamps If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. +optional.
* @param podLogOptionsTailLines If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime +optional.
* @param podLogOptionsLimitBytes If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. +optional.
* @param podLogOptionsInsecureSkipTLSVerifyBackend insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver\&#39;s TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). +optional.
*/
public async sensorServiceSensorsLogs (namespace: string, name?: string, triggerName?: string, grep?: string, podLogOptionsContainer?: string, podLogOptionsFollow?: boolean, podLogOptionsPrevious?: boolean, podLogOptionsSinceSeconds?: string, podLogOptionsSinceTimeSeconds?: string, podLogOptionsSinceTimeNanos?: number, podLogOptionsTimestamps?: boolean, podLogOptionsTailLines?: string, podLogOptionsLimitBytes?: string, podLogOptionsInsecureSkipTLSVerifyBackend?: boolean, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: StreamResultOfSensorLogEntry; }> {
const localVarPath = this.basePath + '/api/v1/stream/sensors/{namespace}/logs'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new Error('Required parameter namespace was null or undefined when calling sensorServiceSensorsLogs.');
}
if (name !== undefined) {
localVarQueryParameters['name'] = ObjectSerializer.serialize(name, "string");
}
if (triggerName !== undefined) {
localVarQueryParameters['triggerName'] = ObjectSerializer.serialize(triggerName, "string");
}
if (grep !== undefined) {
localVarQueryParameters['grep'] = ObjectSerializer.serialize(grep, "string");
}
if (podLogOptionsContainer !== undefined) {
localVarQueryParameters['podLogOptions.container'] = ObjectSerializer.serialize(podLogOptionsContainer, "string");
}
if (podLogOptionsFollow !== undefined) {
localVarQueryParameters['podLogOptions.follow'] = ObjectSerializer.serialize(podLogOptionsFollow, "boolean");
}
if (podLogOptionsPrevious !== undefined) {
localVarQueryParameters['podLogOptions.previous'] = ObjectSerializer.serialize(podLogOptionsPrevious, "boolean");
}
if (podLogOptionsSinceSeconds !== undefined) {
localVarQueryParameters['podLogOptions.sinceSeconds'] = ObjectSerializer.serialize(podLogOptionsSinceSeconds, "string");
}
if (podLogOptionsSinceTimeSeconds !== undefined) {
localVarQueryParameters['podLogOptions.sinceTime.seconds'] = ObjectSerializer.serialize(podLogOptionsSinceTimeSeconds, "string");
}
if (podLogOptionsSinceTimeNanos !== undefined) {
localVarQueryParameters['podLogOptions.sinceTime.nanos'] = ObjectSerializer.serialize(podLogOptionsSinceTimeNanos, "number");
}
if (podLogOptionsTimestamps !== undefined) {
localVarQueryParameters['podLogOptions.timestamps'] = ObjectSerializer.serialize(podLogOptionsTimestamps, "boolean");
}
if (podLogOptionsTailLines !== undefined) {
localVarQueryParameters['podLogOptions.tailLines'] = ObjectSerializer.serialize(podLogOptionsTailLines, "string");
}
if (podLogOptionsLimitBytes !== undefined) {
localVarQueryParameters['podLogOptions.limitBytes'] = ObjectSerializer.serialize(podLogOptionsLimitBytes, "string");
}
if (podLogOptionsInsecureSkipTLSVerifyBackend !== undefined) {
localVarQueryParameters['podLogOptions.insecureSkipTLSVerifyBackend'] = ObjectSerializer.serialize(podLogOptionsInsecureSkipTLSVerifyBackend, "boolean");
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'GET',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
};
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: StreamResultOfSensorLogEntry; }>((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, "StreamResultOfSensorLogEntry");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param namespace
* @param name
* @param body
*/
public async sensorServiceUpdateSensor (namespace: string, name: string, body: SensorUpdateSensorRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojEventsV1alpha1Sensor; }> {
const localVarPath = this.basePath + '/api/v1/sensors/{namespace}/{name}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new Error('Required parameter namespace was null or undefined when calling sensorServiceUpdateSensor.');
}
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new Error('Required parameter name was null or undefined when calling sensorServiceUpdateSensor.');
}
// 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 sensorServiceUpdateSensor.');
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'PUT',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
body: ObjectSerializer.serialize(body, "SensorUpdateSensorRequest")
};
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: IoArgoprojEventsV1alpha1Sensor; }>((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, "IoArgoprojEventsV1alpha1Sensor");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param namespace
* @param listOptionsLabelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional.
* @param listOptionsFieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional.
* @param listOptionsWatch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional.
* @param listOptionsAllowWatchBookmarks allowWatchBookmarks requests watch events with type \&quot;BOOKMARK\&quot;. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\&#39;s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional.
* @param listOptionsResourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsResourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsTimeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional.
* @param listOptionsLimit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
* @param listOptionsContinue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
*/
public async sensorServiceWatchSensors (namespace: string, listOptionsLabelSelector?: string, listOptionsFieldSelector?: string, listOptionsWatch?: boolean, listOptionsAllowWatchBookmarks?: boolean, listOptionsResourceVersion?: string, listOptionsResourceVersionMatch?: string, listOptionsTimeoutSeconds?: string, listOptionsLimit?: string, listOptionsContinue?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: StreamResultOfSensorSensorWatchEvent; }> {
const localVarPath = this.basePath + '/api/v1/stream/sensors/{namespace}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new Error('Required parameter namespace was null or undefined when calling sensorServiceWatchSensors.');
}
if (listOptionsLabelSelector !== undefined) {
localVarQueryParameters['listOptions.labelSelector'] = ObjectSerializer.serialize(listOptionsLabelSelector, "string");
}
if (listOptionsFieldSelector !== undefined) {
localVarQueryParameters['listOptions.fieldSelector'] = ObjectSerializer.serialize(listOptionsFieldSelector, "string");
}
if (listOptionsWatch !== undefined) {
localVarQueryParameters['listOptions.watch'] = ObjectSerializer.serialize(listOptionsWatch, "boolean");
}
if (listOptionsAllowWatchBookmarks !== undefined) {
localVarQueryParameters['listOptions.allowWatchBookmarks'] = ObjectSerializer.serialize(listOptionsAllowWatchBookmarks, "boolean");
}
if (listOptionsResourceVersion !== undefined) {
localVarQueryParameters['listOptions.resourceVersion'] = ObjectSerializer.serialize(listOptionsResourceVersion, "string");
}
if (listOptionsResourceVersionMatch !== undefined) {
localVarQueryParameters['listOptions.resourceVersionMatch'] = ObjectSerializer.serialize(listOptionsResourceVersionMatch, "string");
}
if (listOptionsTimeoutSeconds !== undefined) {
localVarQueryParameters['listOptions.timeoutSeconds'] = ObjectSerializer.serialize(listOptionsTimeoutSeconds, "string");
}
if (listOptionsLimit !== undefined) {
localVarQueryParameters['listOptions.limit'] = ObjectSerializer.serialize(listOptionsLimit, "string");
}
if (listOptionsContinue !== undefined) {
localVarQueryParameters['listOptions.continue'] = ObjectSerializer.serialize(listOptionsContinue, "string");
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'GET',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
};
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: StreamResultOfSensorSensorWatchEvent; }>((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, "StreamResultOfSensorSensorWatchEvent");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,646 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import localVarRequest from 'request';
import http from 'http';
/* tslint:disable:no-unused-locals */
import { GrpcGatewayRuntimeError } from '../model/grpcGatewayRuntimeError';
import { IoArgoprojWorkflowV1alpha1WorkflowTemplate } from '../model/ioArgoprojWorkflowV1alpha1WorkflowTemplate';
import { IoArgoprojWorkflowV1alpha1WorkflowTemplateCreateRequest } from '../model/ioArgoprojWorkflowV1alpha1WorkflowTemplateCreateRequest';
import { IoArgoprojWorkflowV1alpha1WorkflowTemplateLintRequest } from '../model/ioArgoprojWorkflowV1alpha1WorkflowTemplateLintRequest';
import { IoArgoprojWorkflowV1alpha1WorkflowTemplateList } from '../model/ioArgoprojWorkflowV1alpha1WorkflowTemplateList';
import { IoArgoprojWorkflowV1alpha1WorkflowTemplateUpdateRequest } from '../model/ioArgoprojWorkflowV1alpha1WorkflowTemplateUpdateRequest';
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models';
import { HttpError, RequestFile } from './apis';
let defaultBasePath = 'http://localhost:2746';
// ===============================================
// This file is autogenerated - Please do not edit
// ===============================================
export enum WorkflowTemplateServiceApiApiKeys {
BearerToken,
}
export class WorkflowTemplateServiceApi {
protected _basePath = defaultBasePath;
protected _defaultHeaders : any = {};
protected _useQuerystring : boolean = false;
protected authentications = {
'default': <Authentication>new VoidAuth(),
'BearerToken': new ApiKeyAuth('header', 'Authorization'),
}
protected interceptors: Interceptor[] = [];
constructor(basePath?: string);
constructor(basePathOrUsername: string, password?: string, basePath?: string) {
if (password) {
if (basePath) {
this.basePath = basePath;
}
} else {
if (basePathOrUsername) {
this.basePath = basePathOrUsername
}
}
}
set useQuerystring(value: boolean) {
this._useQuerystring = value;
}
set basePath(basePath: string) {
this._basePath = basePath;
}
set defaultHeaders(defaultHeaders: any) {
this._defaultHeaders = defaultHeaders;
}
get defaultHeaders() {
return this._defaultHeaders;
}
get basePath() {
return this._basePath;
}
public setDefaultAuthentication(auth: Authentication) {
this.authentications.default = auth;
}
public setApiKey(key: WorkflowTemplateServiceApiApiKeys, value: string) {
(this.authentications as any)[WorkflowTemplateServiceApiApiKeys[key]].apiKey = value;
}
public addInterceptor(interceptor: Interceptor) {
this.interceptors.push(interceptor);
}
/**
*
* @param namespace
* @param body
*/
public async workflowTemplateServiceCreateWorkflowTemplate (namespace: string, body: IoArgoprojWorkflowV1alpha1WorkflowTemplateCreateRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1WorkflowTemplate; }> {
const localVarPath = this.basePath + '/api/v1/workflow-templates/{namespace}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new Error('Required parameter namespace was null or undefined when calling workflowTemplateServiceCreateWorkflowTemplate.');
}
// 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 workflowTemplateServiceCreateWorkflowTemplate.');
}
(<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, "IoArgoprojWorkflowV1alpha1WorkflowTemplateCreateRequest")
};
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: IoArgoprojWorkflowV1alpha1WorkflowTemplate; }>((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, "IoArgoprojWorkflowV1alpha1WorkflowTemplate");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param namespace
* @param name
* @param deleteOptionsGracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +optional.
* @param deleteOptionsPreconditionsUid Specifies the target UID. +optional.
* @param deleteOptionsPreconditionsResourceVersion Specifies the target ResourceVersion +optional.
* @param deleteOptionsOrphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object\&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional.
* @param deleteOptionsPropagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \&#39;Orphan\&#39; - orphan the dependents; \&#39;Background\&#39; - allow the garbage collector to delete the dependents in the background; \&#39;Foreground\&#39; - a cascading policy that deletes all dependents in the foreground. +optional.
* @param deleteOptionsDryRun 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 +optional.
*/
public async workflowTemplateServiceDeleteWorkflowTemplate (namespace: string, name: string, deleteOptionsGracePeriodSeconds?: string, deleteOptionsPreconditionsUid?: string, deleteOptionsPreconditionsResourceVersion?: string, deleteOptionsOrphanDependents?: boolean, deleteOptionsPropagationPolicy?: string, deleteOptionsDryRun?: Array<string>, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: object; }> {
const localVarPath = this.basePath + '/api/v1/workflow-templates/{namespace}/{name}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new Error('Required parameter namespace was null or undefined when calling workflowTemplateServiceDeleteWorkflowTemplate.');
}
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new Error('Required parameter name was null or undefined when calling workflowTemplateServiceDeleteWorkflowTemplate.');
}
if (deleteOptionsGracePeriodSeconds !== undefined) {
localVarQueryParameters['deleteOptions.gracePeriodSeconds'] = ObjectSerializer.serialize(deleteOptionsGracePeriodSeconds, "string");
}
if (deleteOptionsPreconditionsUid !== undefined) {
localVarQueryParameters['deleteOptions.preconditions.uid'] = ObjectSerializer.serialize(deleteOptionsPreconditionsUid, "string");
}
if (deleteOptionsPreconditionsResourceVersion !== undefined) {
localVarQueryParameters['deleteOptions.preconditions.resourceVersion'] = ObjectSerializer.serialize(deleteOptionsPreconditionsResourceVersion, "string");
}
if (deleteOptionsOrphanDependents !== undefined) {
localVarQueryParameters['deleteOptions.orphanDependents'] = ObjectSerializer.serialize(deleteOptionsOrphanDependents, "boolean");
}
if (deleteOptionsPropagationPolicy !== undefined) {
localVarQueryParameters['deleteOptions.propagationPolicy'] = ObjectSerializer.serialize(deleteOptionsPropagationPolicy, "string");
}
if (deleteOptionsDryRun !== undefined) {
localVarQueryParameters['deleteOptions.dryRun'] = ObjectSerializer.serialize(deleteOptionsDryRun, "Array<string>");
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'DELETE',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
};
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: object; }>((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, "object");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param namespace
* @param name
* @param getOptionsResourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
*/
public async workflowTemplateServiceGetWorkflowTemplate (namespace: string, name: string, getOptionsResourceVersion?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1WorkflowTemplate; }> {
const localVarPath = this.basePath + '/api/v1/workflow-templates/{namespace}/{name}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new Error('Required parameter namespace was null or undefined when calling workflowTemplateServiceGetWorkflowTemplate.');
}
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new Error('Required parameter name was null or undefined when calling workflowTemplateServiceGetWorkflowTemplate.');
}
if (getOptionsResourceVersion !== undefined) {
localVarQueryParameters['getOptions.resourceVersion'] = ObjectSerializer.serialize(getOptionsResourceVersion, "string");
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'GET',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
};
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: IoArgoprojWorkflowV1alpha1WorkflowTemplate; }>((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, "IoArgoprojWorkflowV1alpha1WorkflowTemplate");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param namespace
* @param body
*/
public async workflowTemplateServiceLintWorkflowTemplate (namespace: string, body: IoArgoprojWorkflowV1alpha1WorkflowTemplateLintRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1WorkflowTemplate; }> {
const localVarPath = this.basePath + '/api/v1/workflow-templates/{namespace}/lint'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new Error('Required parameter namespace was null or undefined when calling workflowTemplateServiceLintWorkflowTemplate.');
}
// 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 workflowTemplateServiceLintWorkflowTemplate.');
}
(<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, "IoArgoprojWorkflowV1alpha1WorkflowTemplateLintRequest")
};
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: IoArgoprojWorkflowV1alpha1WorkflowTemplate; }>((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, "IoArgoprojWorkflowV1alpha1WorkflowTemplate");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param namespace
* @param listOptionsLabelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional.
* @param listOptionsFieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional.
* @param listOptionsWatch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional.
* @param listOptionsAllowWatchBookmarks allowWatchBookmarks requests watch events with type \&quot;BOOKMARK\&quot;. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\&#39;s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional.
* @param listOptionsResourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsResourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsTimeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional.
* @param listOptionsLimit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
* @param listOptionsContinue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
*/
public async workflowTemplateServiceListWorkflowTemplates (namespace: string, listOptionsLabelSelector?: string, listOptionsFieldSelector?: string, listOptionsWatch?: boolean, listOptionsAllowWatchBookmarks?: boolean, listOptionsResourceVersion?: string, listOptionsResourceVersionMatch?: string, listOptionsTimeoutSeconds?: string, listOptionsLimit?: string, listOptionsContinue?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1WorkflowTemplateList; }> {
const localVarPath = this.basePath + '/api/v1/workflow-templates/{namespace}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new Error('Required parameter namespace was null or undefined when calling workflowTemplateServiceListWorkflowTemplates.');
}
if (listOptionsLabelSelector !== undefined) {
localVarQueryParameters['listOptions.labelSelector'] = ObjectSerializer.serialize(listOptionsLabelSelector, "string");
}
if (listOptionsFieldSelector !== undefined) {
localVarQueryParameters['listOptions.fieldSelector'] = ObjectSerializer.serialize(listOptionsFieldSelector, "string");
}
if (listOptionsWatch !== undefined) {
localVarQueryParameters['listOptions.watch'] = ObjectSerializer.serialize(listOptionsWatch, "boolean");
}
if (listOptionsAllowWatchBookmarks !== undefined) {
localVarQueryParameters['listOptions.allowWatchBookmarks'] = ObjectSerializer.serialize(listOptionsAllowWatchBookmarks, "boolean");
}
if (listOptionsResourceVersion !== undefined) {
localVarQueryParameters['listOptions.resourceVersion'] = ObjectSerializer.serialize(listOptionsResourceVersion, "string");
}
if (listOptionsResourceVersionMatch !== undefined) {
localVarQueryParameters['listOptions.resourceVersionMatch'] = ObjectSerializer.serialize(listOptionsResourceVersionMatch, "string");
}
if (listOptionsTimeoutSeconds !== undefined) {
localVarQueryParameters['listOptions.timeoutSeconds'] = ObjectSerializer.serialize(listOptionsTimeoutSeconds, "string");
}
if (listOptionsLimit !== undefined) {
localVarQueryParameters['listOptions.limit'] = ObjectSerializer.serialize(listOptionsLimit, "string");
}
if (listOptionsContinue !== undefined) {
localVarQueryParameters['listOptions.continue'] = ObjectSerializer.serialize(listOptionsContinue, "string");
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'GET',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
};
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: IoArgoprojWorkflowV1alpha1WorkflowTemplateList; }>((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, "IoArgoprojWorkflowV1alpha1WorkflowTemplateList");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @param namespace
* @param name DEPRECATED: This field is ignored.
* @param body
*/
public async workflowTemplateServiceUpdateWorkflowTemplate (namespace: string, name: string, body: IoArgoprojWorkflowV1alpha1WorkflowTemplateUpdateRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1WorkflowTemplate; }> {
const localVarPath = this.basePath + '/api/v1/workflow-templates/{namespace}/{name}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// 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 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new Error('Required parameter namespace was null or undefined when calling workflowTemplateServiceUpdateWorkflowTemplate.');
}
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new Error('Required parameter name was null or undefined when calling workflowTemplateServiceUpdateWorkflowTemplate.');
}
// 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 workflowTemplateServiceUpdateWorkflowTemplate.');
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'PUT',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
body: ObjectSerializer.serialize(body, "IoArgoprojWorkflowV1alpha1WorkflowTemplateUpdateRequest")
};
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: IoArgoprojWorkflowV1alpha1WorkflowTemplate; }>((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, "IoArgoprojWorkflowV1alpha1WorkflowTemplate");
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
}

View file

@ -0,0 +1,57 @@
#!/bin/sh
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
#
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
git_user_id=$1
git_repo_id=$2
release_note=$3
git_host=$4
if [ "$git_host" = "" ]; then
git_host="github.com"
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
fi
if [ "$git_user_id" = "" ]; then
git_user_id="GIT_USER_ID"
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
fi
if [ "$git_repo_id" = "" ]; then
git_repo_id="GIT_REPO_ID"
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
fi
if [ "$release_note" = "" ]; then
release_note="Minor update"
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
fi
# Initialize the local directory as a Git repository
git init
# Adds the files in the local repository and stages them for commit.
git add .
# Commits the tracked changes and prepares them to be pushed to a remote repository.
git commit -m "$release_note"
# Sets the new remote
git_remote=$(git remote)
if [ "$git_remote" = "" ]; then # git remote not defined
if [ "$GIT_TOKEN" = "" ]; then
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
else
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
fi
fi
git pull origin master
# Pushes (Forces) the changes in the local repository up to the remote repository
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
git push origin master 2>&1 | grep -v 'To https'

View file

@ -1 +0,0 @@
export * from "./models/all";

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,34 +11,29 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1EventSource } from '../models/IoArgoprojEventsV1alpha1EventSource';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1EventSource } from './ioArgoprojEventsV1alpha1EventSource';
export class EventsourceCreateEventSourceRequest {
'eventSource'?: IoArgoprojEventsV1alpha1EventSource;
'namespace'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "eventSource",
"baseName": "eventSource",
"type": "IoArgoprojEventsV1alpha1EventSource",
"format": ""
"type": "IoArgoprojEventsV1alpha1EventSource"
},
{
"name": "namespace",
"baseName": "namespace",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return EventsourceCreateEventSourceRequest.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,34 +11,29 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1EventSource } from '../models/IoArgoprojEventsV1alpha1EventSource';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1EventSource } from './ioArgoprojEventsV1alpha1EventSource';
export class EventsourceEventSourceWatchEvent {
'object'?: IoArgoprojEventsV1alpha1EventSource;
'type'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "object",
"baseName": "object",
"type": "IoArgoprojEventsV1alpha1EventSource",
"format": ""
"type": "IoArgoprojEventsV1alpha1EventSource"
},
{
"name": "type",
"baseName": "type",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return EventsourceEventSourceWatchEvent.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,7 +11,7 @@
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
export class EventsourceLogEntry {
'eventName'?: string;
@ -24,57 +25,47 @@ export class EventsourceLogEntry {
*/
'time'?: Date;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "eventName",
"baseName": "eventName",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "eventSourceName",
"baseName": "eventSourceName",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "eventSourceType",
"baseName": "eventSourceType",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "level",
"baseName": "level",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "msg",
"baseName": "msg",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "namespace",
"baseName": "namespace",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "time",
"baseName": "time",
"type": "Date",
"format": "date-time"
"type": "Date"
} ];
static getAttributeTypeMap() {
return EventsourceLogEntry.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,41 +11,35 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1EventSource } from '../models/IoArgoprojEventsV1alpha1EventSource';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1EventSource } from './ioArgoprojEventsV1alpha1EventSource';
export class EventsourceUpdateEventSourceRequest {
'eventSource'?: IoArgoprojEventsV1alpha1EventSource;
'name'?: string;
'namespace'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "eventSource",
"baseName": "eventSource",
"type": "IoArgoprojEventsV1alpha1EventSource",
"format": ""
"type": "IoArgoprojEventsV1alpha1EventSource"
},
{
"name": "name",
"baseName": "name",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "namespace",
"baseName": "namespace",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return EventsourceUpdateEventSourceRequest.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,33 +11,28 @@
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
export class GoogleProtobufAny {
'typeUrl'?: string;
'value'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "typeUrl",
"baseName": "type_url",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "value",
"baseName": "value",
"type": "string",
"format": "byte"
"type": "string"
} ];
static getAttributeTypeMap() {
return GoogleProtobufAny.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,8 +11,8 @@
* Do not edit the class manually.
*/
import { GoogleProtobufAny } from '../models/GoogleProtobufAny';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { GoogleProtobufAny } from './googleProtobufAny';
export class GrpcGatewayRuntimeError {
'code'?: number;
@ -19,39 +20,32 @@ export class GrpcGatewayRuntimeError {
'error'?: string;
'message'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "code",
"baseName": "code",
"type": "number",
"format": ""
"type": "number"
},
{
"name": "details",
"baseName": "details",
"type": "Array<GoogleProtobufAny>",
"format": ""
"type": "Array<GoogleProtobufAny>"
},
{
"name": "error",
"baseName": "error",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "message",
"baseName": "message",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return GrpcGatewayRuntimeError.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,8 +11,8 @@
* Do not edit the class manually.
*/
import { GoogleProtobufAny } from '../models/GoogleProtobufAny';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { GoogleProtobufAny } from './googleProtobufAny';
export class GrpcGatewayRuntimeStreamError {
'details'?: Array<GoogleProtobufAny>;
@ -20,45 +21,37 @@ export class GrpcGatewayRuntimeStreamError {
'httpStatus'?: string;
'message'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "details",
"baseName": "details",
"type": "Array<GoogleProtobufAny>",
"format": ""
"type": "Array<GoogleProtobufAny>"
},
{
"name": "grpcCode",
"baseName": "grpc_code",
"type": "number",
"format": ""
"type": "number"
},
{
"name": "httpCode",
"baseName": "http_code",
"type": "number",
"format": ""
"type": "number"
},
{
"name": "httpStatus",
"baseName": "http_status",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "message",
"baseName": "message",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return GrpcGatewayRuntimeStreamError.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,7 +11,7 @@
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
export class IoArgoprojEventsV1alpha1AMQPConsumeConfig {
'autoAck'?: boolean;
@ -19,45 +20,37 @@ export class IoArgoprojEventsV1alpha1AMQPConsumeConfig {
'noLocal'?: boolean;
'noWait'?: boolean;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "autoAck",
"baseName": "autoAck",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "consumerTag",
"baseName": "consumerTag",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "exclusive",
"baseName": "exclusive",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "noLocal",
"baseName": "noLocal",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "noWait",
"baseName": "noWait",
"type": "boolean",
"format": ""
"type": "boolean"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1AMQPConsumeConfig.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,16 +11,16 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1AMQPConsumeConfig } from '../models/IoArgoprojEventsV1alpha1AMQPConsumeConfig';
import { IoArgoprojEventsV1alpha1AMQPExchangeDeclareConfig } from '../models/IoArgoprojEventsV1alpha1AMQPExchangeDeclareConfig';
import { IoArgoprojEventsV1alpha1AMQPQueueBindConfig } from '../models/IoArgoprojEventsV1alpha1AMQPQueueBindConfig';
import { IoArgoprojEventsV1alpha1AMQPQueueDeclareConfig } from '../models/IoArgoprojEventsV1alpha1AMQPQueueDeclareConfig';
import { IoArgoprojEventsV1alpha1Backoff } from '../models/IoArgoprojEventsV1alpha1Backoff';
import { IoArgoprojEventsV1alpha1BasicAuth } from '../models/IoArgoprojEventsV1alpha1BasicAuth';
import { IoArgoprojEventsV1alpha1EventSourceFilter } from '../models/IoArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1TLSConfig } from '../models/IoArgoprojEventsV1alpha1TLSConfig';
import { IoK8sApiCoreV1SecretKeySelector } from '../models/IoK8sApiCoreV1SecretKeySelector';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1AMQPConsumeConfig } from './ioArgoprojEventsV1alpha1AMQPConsumeConfig';
import { IoArgoprojEventsV1alpha1AMQPExchangeDeclareConfig } from './ioArgoprojEventsV1alpha1AMQPExchangeDeclareConfig';
import { IoArgoprojEventsV1alpha1AMQPQueueBindConfig } from './ioArgoprojEventsV1alpha1AMQPQueueBindConfig';
import { IoArgoprojEventsV1alpha1AMQPQueueDeclareConfig } from './ioArgoprojEventsV1alpha1AMQPQueueDeclareConfig';
import { IoArgoprojEventsV1alpha1Backoff } from './ioArgoprojEventsV1alpha1Backoff';
import { IoArgoprojEventsV1alpha1BasicAuth } from './ioArgoprojEventsV1alpha1BasicAuth';
import { IoArgoprojEventsV1alpha1EventSourceFilter } from './ioArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1TLSConfig } from './ioArgoprojEventsV1alpha1TLSConfig';
import { IoK8sApiCoreV1SecretKeySelector } from './ioK8sApiCoreV1SecretKeySelector';
export class IoArgoprojEventsV1alpha1AMQPEventSource {
'auth'?: IoArgoprojEventsV1alpha1BasicAuth;
@ -38,105 +39,87 @@ export class IoArgoprojEventsV1alpha1AMQPEventSource {
'url'?: string;
'urlSecret'?: IoK8sApiCoreV1SecretKeySelector;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "auth",
"baseName": "auth",
"type": "IoArgoprojEventsV1alpha1BasicAuth",
"format": ""
"type": "IoArgoprojEventsV1alpha1BasicAuth"
},
{
"name": "connectionBackoff",
"baseName": "connectionBackoff",
"type": "IoArgoprojEventsV1alpha1Backoff",
"format": ""
"type": "IoArgoprojEventsV1alpha1Backoff"
},
{
"name": "consume",
"baseName": "consume",
"type": "IoArgoprojEventsV1alpha1AMQPConsumeConfig",
"format": ""
"type": "IoArgoprojEventsV1alpha1AMQPConsumeConfig"
},
{
"name": "exchangeDeclare",
"baseName": "exchangeDeclare",
"type": "IoArgoprojEventsV1alpha1AMQPExchangeDeclareConfig",
"format": ""
"type": "IoArgoprojEventsV1alpha1AMQPExchangeDeclareConfig"
},
{
"name": "exchangeName",
"baseName": "exchangeName",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "exchangeType",
"baseName": "exchangeType",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "filter",
"baseName": "filter",
"type": "IoArgoprojEventsV1alpha1EventSourceFilter",
"format": ""
"type": "IoArgoprojEventsV1alpha1EventSourceFilter"
},
{
"name": "jsonBody",
"baseName": "jsonBody",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "metadata",
"baseName": "metadata",
"type": "{ [key: string]: string; }",
"format": ""
"type": "{ [key: string]: string; }"
},
{
"name": "queueBind",
"baseName": "queueBind",
"type": "IoArgoprojEventsV1alpha1AMQPQueueBindConfig",
"format": ""
"type": "IoArgoprojEventsV1alpha1AMQPQueueBindConfig"
},
{
"name": "queueDeclare",
"baseName": "queueDeclare",
"type": "IoArgoprojEventsV1alpha1AMQPQueueDeclareConfig",
"format": ""
"type": "IoArgoprojEventsV1alpha1AMQPQueueDeclareConfig"
},
{
"name": "routingKey",
"baseName": "routingKey",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "tls",
"baseName": "tls",
"type": "IoArgoprojEventsV1alpha1TLSConfig",
"format": ""
"type": "IoArgoprojEventsV1alpha1TLSConfig"
},
{
"name": "url",
"baseName": "url",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "urlSecret",
"baseName": "urlSecret",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1AMQPEventSource.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,7 +11,7 @@
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
export class IoArgoprojEventsV1alpha1AMQPExchangeDeclareConfig {
'autoDelete'?: boolean;
@ -18,39 +19,32 @@ export class IoArgoprojEventsV1alpha1AMQPExchangeDeclareConfig {
'internal'?: boolean;
'noWait'?: boolean;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "autoDelete",
"baseName": "autoDelete",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "durable",
"baseName": "durable",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "internal",
"baseName": "internal",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "noWait",
"baseName": "noWait",
"type": "boolean",
"format": ""
"type": "boolean"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1AMQPExchangeDeclareConfig.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,26 +11,22 @@
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
export class IoArgoprojEventsV1alpha1AMQPQueueBindConfig {
'noWait'?: boolean;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "noWait",
"baseName": "noWait",
"type": "boolean",
"format": ""
"type": "boolean"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1AMQPQueueBindConfig.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,7 +11,7 @@
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
export class IoArgoprojEventsV1alpha1AMQPQueueDeclareConfig {
'arguments'?: string;
@ -20,51 +21,42 @@ export class IoArgoprojEventsV1alpha1AMQPQueueDeclareConfig {
'name'?: string;
'noWait'?: boolean;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "arguments",
"baseName": "arguments",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "autoDelete",
"baseName": "autoDelete",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "durable",
"baseName": "durable",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "exclusive",
"baseName": "exclusive",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "name",
"baseName": "name",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "noWait",
"baseName": "noWait",
"type": "boolean",
"format": ""
"type": "boolean"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1AMQPQueueDeclareConfig.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,9 +11,9 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1TriggerParameter } from '../models/IoArgoprojEventsV1alpha1TriggerParameter';
import { IoK8sApiCoreV1SecretKeySelector } from '../models/IoK8sApiCoreV1SecretKeySelector';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1TriggerParameter } from './ioArgoprojEventsV1alpha1TriggerParameter';
import { IoK8sApiCoreV1SecretKeySelector } from './ioK8sApiCoreV1SecretKeySelector';
export class IoArgoprojEventsV1alpha1AWSLambdaTrigger {
'accessKey'?: IoK8sApiCoreV1SecretKeySelector;
@ -33,63 +34,52 @@ export class IoArgoprojEventsV1alpha1AWSLambdaTrigger {
'roleARN'?: string;
'secretKey'?: IoK8sApiCoreV1SecretKeySelector;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "accessKey",
"baseName": "accessKey",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
},
{
"name": "functionName",
"baseName": "functionName",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "invocationType",
"baseName": "invocationType",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "parameters",
"baseName": "parameters",
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>",
"format": ""
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>"
},
{
"name": "payload",
"baseName": "payload",
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>",
"format": ""
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>"
},
{
"name": "region",
"baseName": "region",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "roleARN",
"baseName": "roleARN",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "secretKey",
"baseName": "secretKey",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1AWSLambdaTrigger.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,7 +11,7 @@
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
/**
* Amount represent a numeric amount.
@ -18,21 +19,17 @@ import { HttpFile } from '../http/http';
export class IoArgoprojEventsV1alpha1Amount {
'value'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "value",
"baseName": "value",
"type": "string",
"format": "byte"
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1Amount.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,9 +11,9 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1ArtifactLocation } from '../models/IoArgoprojEventsV1alpha1ArtifactLocation';
import { IoArgoprojEventsV1alpha1TriggerParameter } from '../models/IoArgoprojEventsV1alpha1TriggerParameter';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1ArtifactLocation } from './ioArgoprojEventsV1alpha1ArtifactLocation';
import { IoArgoprojEventsV1alpha1TriggerParameter } from './ioArgoprojEventsV1alpha1TriggerParameter';
export class IoArgoprojEventsV1alpha1ArgoWorkflowTrigger {
'args'?: Array<string>;
@ -20,39 +21,32 @@ export class IoArgoprojEventsV1alpha1ArgoWorkflowTrigger {
'parameters'?: Array<IoArgoprojEventsV1alpha1TriggerParameter>;
'source'?: IoArgoprojEventsV1alpha1ArtifactLocation;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "args",
"baseName": "args",
"type": "Array<string>",
"format": ""
"type": "Array<string>"
},
{
"name": "operation",
"baseName": "operation",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "parameters",
"baseName": "parameters",
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>",
"format": ""
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>"
},
{
"name": "source",
"baseName": "source",
"type": "IoArgoprojEventsV1alpha1ArtifactLocation",
"format": ""
"type": "IoArgoprojEventsV1alpha1ArtifactLocation"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1ArgoWorkflowTrigger.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,13 +11,13 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1FileArtifact } from '../models/IoArgoprojEventsV1alpha1FileArtifact';
import { IoArgoprojEventsV1alpha1GitArtifact } from '../models/IoArgoprojEventsV1alpha1GitArtifact';
import { IoArgoprojEventsV1alpha1Resource } from '../models/IoArgoprojEventsV1alpha1Resource';
import { IoArgoprojEventsV1alpha1S3Artifact } from '../models/IoArgoprojEventsV1alpha1S3Artifact';
import { IoArgoprojEventsV1alpha1URLArtifact } from '../models/IoArgoprojEventsV1alpha1URLArtifact';
import { IoK8sApiCoreV1ConfigMapKeySelector } from '../models/IoK8sApiCoreV1ConfigMapKeySelector';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1FileArtifact } from './ioArgoprojEventsV1alpha1FileArtifact';
import { IoArgoprojEventsV1alpha1GitArtifact } from './ioArgoprojEventsV1alpha1GitArtifact';
import { IoArgoprojEventsV1alpha1Resource } from './ioArgoprojEventsV1alpha1Resource';
import { IoArgoprojEventsV1alpha1S3Artifact } from './ioArgoprojEventsV1alpha1S3Artifact';
import { IoArgoprojEventsV1alpha1URLArtifact } from './ioArgoprojEventsV1alpha1URLArtifact';
import { IoK8sApiCoreV1ConfigMapKeySelector } from './ioK8sApiCoreV1ConfigMapKeySelector';
export class IoArgoprojEventsV1alpha1ArtifactLocation {
'configmap'?: IoK8sApiCoreV1ConfigMapKeySelector;
@ -27,57 +28,47 @@ export class IoArgoprojEventsV1alpha1ArtifactLocation {
's3'?: IoArgoprojEventsV1alpha1S3Artifact;
'url'?: IoArgoprojEventsV1alpha1URLArtifact;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "configmap",
"baseName": "configmap",
"type": "IoK8sApiCoreV1ConfigMapKeySelector",
"format": ""
"type": "IoK8sApiCoreV1ConfigMapKeySelector"
},
{
"name": "file",
"baseName": "file",
"type": "IoArgoprojEventsV1alpha1FileArtifact",
"format": ""
"type": "IoArgoprojEventsV1alpha1FileArtifact"
},
{
"name": "git",
"baseName": "git",
"type": "IoArgoprojEventsV1alpha1GitArtifact",
"format": ""
"type": "IoArgoprojEventsV1alpha1GitArtifact"
},
{
"name": "inline",
"baseName": "inline",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "resource",
"baseName": "resource",
"type": "IoArgoprojEventsV1alpha1Resource",
"format": ""
"type": "IoArgoprojEventsV1alpha1Resource"
},
{
"name": "s3",
"baseName": "s3",
"type": "IoArgoprojEventsV1alpha1S3Artifact",
"format": ""
"type": "IoArgoprojEventsV1alpha1S3Artifact"
},
{
"name": "url",
"baseName": "url",
"type": "IoArgoprojEventsV1alpha1URLArtifact",
"format": ""
"type": "IoArgoprojEventsV1alpha1URLArtifact"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1ArtifactLocation.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,9 +11,9 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1TriggerParameter } from '../models/IoArgoprojEventsV1alpha1TriggerParameter';
import { IoK8sApiCoreV1SecretKeySelector } from '../models/IoK8sApiCoreV1SecretKeySelector';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1TriggerParameter } from './ioArgoprojEventsV1alpha1TriggerParameter';
import { IoK8sApiCoreV1SecretKeySelector } from './ioK8sApiCoreV1SecretKeySelector';
export class IoArgoprojEventsV1alpha1AzureEventHubsTrigger {
'fqdn'?: string;
@ -25,51 +26,42 @@ export class IoArgoprojEventsV1alpha1AzureEventHubsTrigger {
'sharedAccessKey'?: IoK8sApiCoreV1SecretKeySelector;
'sharedAccessKeyName'?: IoK8sApiCoreV1SecretKeySelector;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "fqdn",
"baseName": "fqdn",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "hubName",
"baseName": "hubName",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "parameters",
"baseName": "parameters",
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>",
"format": ""
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>"
},
{
"name": "payload",
"baseName": "payload",
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>",
"format": ""
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>"
},
{
"name": "sharedAccessKey",
"baseName": "sharedAccessKey",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
},
{
"name": "sharedAccessKeyName",
"baseName": "sharedAccessKeyName",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1AzureEventHubsTrigger.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,9 +11,9 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1EventSourceFilter } from '../models/IoArgoprojEventsV1alpha1EventSourceFilter';
import { IoK8sApiCoreV1SecretKeySelector } from '../models/IoK8sApiCoreV1SecretKeySelector';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1EventSourceFilter } from './ioArgoprojEventsV1alpha1EventSourceFilter';
import { IoK8sApiCoreV1SecretKeySelector } from './ioK8sApiCoreV1SecretKeySelector';
export class IoArgoprojEventsV1alpha1AzureEventsHubEventSource {
'filter'?: IoArgoprojEventsV1alpha1EventSourceFilter;
@ -22,51 +23,42 @@ export class IoArgoprojEventsV1alpha1AzureEventsHubEventSource {
'sharedAccessKey'?: IoK8sApiCoreV1SecretKeySelector;
'sharedAccessKeyName'?: IoK8sApiCoreV1SecretKeySelector;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "filter",
"baseName": "filter",
"type": "IoArgoprojEventsV1alpha1EventSourceFilter",
"format": ""
"type": "IoArgoprojEventsV1alpha1EventSourceFilter"
},
{
"name": "fqdn",
"baseName": "fqdn",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "hubName",
"baseName": "hubName",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "metadata",
"baseName": "metadata",
"type": "{ [key: string]: string; }",
"format": ""
"type": "{ [key: string]: string; }"
},
{
"name": "sharedAccessKey",
"baseName": "sharedAccessKey",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
},
{
"name": "sharedAccessKeyName",
"baseName": "sharedAccessKeyName",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1AzureEventsHubEventSource.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,9 +11,9 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1Amount } from '../models/IoArgoprojEventsV1alpha1Amount';
import { IoArgoprojEventsV1alpha1Int64OrString } from '../models/IoArgoprojEventsV1alpha1Int64OrString';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1Amount } from './ioArgoprojEventsV1alpha1Amount';
import { IoArgoprojEventsV1alpha1Int64OrString } from './ioArgoprojEventsV1alpha1Int64OrString';
export class IoArgoprojEventsV1alpha1Backoff {
'duration'?: IoArgoprojEventsV1alpha1Int64OrString;
@ -20,39 +21,32 @@ export class IoArgoprojEventsV1alpha1Backoff {
'jitter'?: IoArgoprojEventsV1alpha1Amount;
'steps'?: number;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "duration",
"baseName": "duration",
"type": "IoArgoprojEventsV1alpha1Int64OrString",
"format": ""
"type": "IoArgoprojEventsV1alpha1Int64OrString"
},
{
"name": "factor",
"baseName": "factor",
"type": "IoArgoprojEventsV1alpha1Amount",
"format": ""
"type": "IoArgoprojEventsV1alpha1Amount"
},
{
"name": "jitter",
"baseName": "jitter",
"type": "IoArgoprojEventsV1alpha1Amount",
"format": ""
"type": "IoArgoprojEventsV1alpha1Amount"
},
{
"name": "steps",
"baseName": "steps",
"type": "number",
"format": ""
"type": "number"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1Backoff.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,34 +11,29 @@
* Do not edit the class manually.
*/
import { IoK8sApiCoreV1SecretKeySelector } from '../models/IoK8sApiCoreV1SecretKeySelector';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoK8sApiCoreV1SecretKeySelector } from './ioK8sApiCoreV1SecretKeySelector';
export class IoArgoprojEventsV1alpha1BasicAuth {
'password'?: IoK8sApiCoreV1SecretKeySelector;
'username'?: IoK8sApiCoreV1SecretKeySelector;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "password",
"baseName": "password",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
},
{
"name": "username",
"baseName": "username",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1BasicAuth.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,35 +11,30 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1BitbucketBasicAuth } from '../models/IoArgoprojEventsV1alpha1BitbucketBasicAuth';
import { IoK8sApiCoreV1SecretKeySelector } from '../models/IoK8sApiCoreV1SecretKeySelector';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1BitbucketBasicAuth } from './ioArgoprojEventsV1alpha1BitbucketBasicAuth';
import { IoK8sApiCoreV1SecretKeySelector } from './ioK8sApiCoreV1SecretKeySelector';
export class IoArgoprojEventsV1alpha1BitbucketAuth {
'basic'?: IoArgoprojEventsV1alpha1BitbucketBasicAuth;
'oauthToken'?: IoK8sApiCoreV1SecretKeySelector;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "basic",
"baseName": "basic",
"type": "IoArgoprojEventsV1alpha1BitbucketBasicAuth",
"format": ""
"type": "IoArgoprojEventsV1alpha1BitbucketBasicAuth"
},
{
"name": "oauthToken",
"baseName": "oauthToken",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1BitbucketAuth.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,34 +11,29 @@
* Do not edit the class manually.
*/
import { IoK8sApiCoreV1SecretKeySelector } from '../models/IoK8sApiCoreV1SecretKeySelector';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoK8sApiCoreV1SecretKeySelector } from './ioK8sApiCoreV1SecretKeySelector';
export class IoArgoprojEventsV1alpha1BitbucketBasicAuth {
'password'?: IoK8sApiCoreV1SecretKeySelector;
'username'?: IoK8sApiCoreV1SecretKeySelector;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "password",
"baseName": "password",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
},
{
"name": "username",
"baseName": "username",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1BitbucketBasicAuth.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,11 +11,11 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1BitbucketAuth } from '../models/IoArgoprojEventsV1alpha1BitbucketAuth';
import { IoArgoprojEventsV1alpha1BitbucketRepository } from '../models/IoArgoprojEventsV1alpha1BitbucketRepository';
import { IoArgoprojEventsV1alpha1EventSourceFilter } from '../models/IoArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1WebhookContext } from '../models/IoArgoprojEventsV1alpha1WebhookContext';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1BitbucketAuth } from './ioArgoprojEventsV1alpha1BitbucketAuth';
import { IoArgoprojEventsV1alpha1BitbucketRepository } from './ioArgoprojEventsV1alpha1BitbucketRepository';
import { IoArgoprojEventsV1alpha1EventSourceFilter } from './ioArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1WebhookContext } from './ioArgoprojEventsV1alpha1WebhookContext';
export class IoArgoprojEventsV1alpha1BitbucketEventSource {
'auth'?: IoArgoprojEventsV1alpha1BitbucketAuth;
@ -31,75 +32,62 @@ export class IoArgoprojEventsV1alpha1BitbucketEventSource {
'repositorySlug'?: string;
'webhook'?: IoArgoprojEventsV1alpha1WebhookContext;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "auth",
"baseName": "auth",
"type": "IoArgoprojEventsV1alpha1BitbucketAuth",
"format": ""
"type": "IoArgoprojEventsV1alpha1BitbucketAuth"
},
{
"name": "deleteHookOnFinish",
"baseName": "deleteHookOnFinish",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "events",
"baseName": "events",
"type": "Array<string>",
"format": ""
"type": "Array<string>"
},
{
"name": "filter",
"baseName": "filter",
"type": "IoArgoprojEventsV1alpha1EventSourceFilter",
"format": ""
"type": "IoArgoprojEventsV1alpha1EventSourceFilter"
},
{
"name": "metadata",
"baseName": "metadata",
"type": "{ [key: string]: string; }",
"format": ""
"type": "{ [key: string]: string; }"
},
{
"name": "owner",
"baseName": "owner",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "projectKey",
"baseName": "projectKey",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "repositories",
"baseName": "repositories",
"type": "Array<IoArgoprojEventsV1alpha1BitbucketRepository>",
"format": ""
"type": "Array<IoArgoprojEventsV1alpha1BitbucketRepository>"
},
{
"name": "repositorySlug",
"baseName": "repositorySlug",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "webhook",
"baseName": "webhook",
"type": "IoArgoprojEventsV1alpha1WebhookContext",
"format": ""
"type": "IoArgoprojEventsV1alpha1WebhookContext"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1BitbucketEventSource.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,33 +11,28 @@
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
export class IoArgoprojEventsV1alpha1BitbucketRepository {
'owner'?: string;
'repositorySlug'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "owner",
"baseName": "owner",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "repositorySlug",
"baseName": "repositorySlug",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1BitbucketRepository.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,11 +11,11 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1BitbucketServerRepository } from '../models/IoArgoprojEventsV1alpha1BitbucketServerRepository';
import { IoArgoprojEventsV1alpha1EventSourceFilter } from '../models/IoArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1WebhookContext } from '../models/IoArgoprojEventsV1alpha1WebhookContext';
import { IoK8sApiCoreV1SecretKeySelector } from '../models/IoK8sApiCoreV1SecretKeySelector';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1BitbucketServerRepository } from './ioArgoprojEventsV1alpha1BitbucketServerRepository';
import { IoArgoprojEventsV1alpha1EventSourceFilter } from './ioArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1WebhookContext } from './ioArgoprojEventsV1alpha1WebhookContext';
import { IoK8sApiCoreV1SecretKeySelector } from './ioK8sApiCoreV1SecretKeySelector';
export class IoArgoprojEventsV1alpha1BitbucketServerEventSource {
'accessToken'?: IoK8sApiCoreV1SecretKeySelector;
@ -29,81 +30,67 @@ export class IoArgoprojEventsV1alpha1BitbucketServerEventSource {
'webhook'?: IoArgoprojEventsV1alpha1WebhookContext;
'webhookSecret'?: IoK8sApiCoreV1SecretKeySelector;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "accessToken",
"baseName": "accessToken",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
},
{
"name": "bitbucketserverBaseURL",
"baseName": "bitbucketserverBaseURL",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "deleteHookOnFinish",
"baseName": "deleteHookOnFinish",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "events",
"baseName": "events",
"type": "Array<string>",
"format": ""
"type": "Array<string>"
},
{
"name": "filter",
"baseName": "filter",
"type": "IoArgoprojEventsV1alpha1EventSourceFilter",
"format": ""
"type": "IoArgoprojEventsV1alpha1EventSourceFilter"
},
{
"name": "metadata",
"baseName": "metadata",
"type": "{ [key: string]: string; }",
"format": ""
"type": "{ [key: string]: string; }"
},
{
"name": "projectKey",
"baseName": "projectKey",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "repositories",
"baseName": "repositories",
"type": "Array<IoArgoprojEventsV1alpha1BitbucketServerRepository>",
"format": ""
"type": "Array<IoArgoprojEventsV1alpha1BitbucketServerRepository>"
},
{
"name": "repositorySlug",
"baseName": "repositorySlug",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "webhook",
"baseName": "webhook",
"type": "IoArgoprojEventsV1alpha1WebhookContext",
"format": ""
"type": "IoArgoprojEventsV1alpha1WebhookContext"
},
{
"name": "webhookSecret",
"baseName": "webhookSecret",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1BitbucketServerEventSource.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,33 +11,28 @@
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
export class IoArgoprojEventsV1alpha1BitbucketServerRepository {
'projectKey'?: string;
'repositorySlug'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "projectKey",
"baseName": "projectKey",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "repositorySlug",
"baseName": "repositorySlug",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1BitbucketServerRepository.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,9 +11,9 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1EventPersistence } from '../models/IoArgoprojEventsV1alpha1EventPersistence';
import { IoArgoprojEventsV1alpha1EventSourceFilter } from '../models/IoArgoprojEventsV1alpha1EventSourceFilter';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1EventPersistence } from './ioArgoprojEventsV1alpha1EventPersistence';
import { IoArgoprojEventsV1alpha1EventSourceFilter } from './ioArgoprojEventsV1alpha1EventSourceFilter';
export class IoArgoprojEventsV1alpha1CalendarEventSource {
/**
@ -26,57 +27,47 @@ export class IoArgoprojEventsV1alpha1CalendarEventSource {
'schedule'?: string;
'timezone'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "exclusionDates",
"baseName": "exclusionDates",
"type": "Array<string>",
"format": ""
"type": "Array<string>"
},
{
"name": "filter",
"baseName": "filter",
"type": "IoArgoprojEventsV1alpha1EventSourceFilter",
"format": ""
"type": "IoArgoprojEventsV1alpha1EventSourceFilter"
},
{
"name": "interval",
"baseName": "interval",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "metadata",
"baseName": "metadata",
"type": "{ [key: string]: string; }",
"format": ""
"type": "{ [key: string]: string; }"
},
{
"name": "persistence",
"baseName": "persistence",
"type": "IoArgoprojEventsV1alpha1EventPersistence",
"format": ""
"type": "IoArgoprojEventsV1alpha1EventPersistence"
},
{
"name": "schedule",
"baseName": "schedule",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "timezone",
"baseName": "timezone",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1CalendarEventSource.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,33 +11,28 @@
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
export class IoArgoprojEventsV1alpha1CatchupConfiguration {
'enabled'?: boolean;
'maxDuration'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "enabled",
"baseName": "enabled",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "maxDuration",
"baseName": "maxDuration",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1CatchupConfiguration.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,7 +11,7 @@
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
export class IoArgoprojEventsV1alpha1Condition {
/**
@ -22,45 +23,37 @@ export class IoArgoprojEventsV1alpha1Condition {
'status'?: string;
'type'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "lastTransitionTime",
"baseName": "lastTransitionTime",
"type": "Date",
"format": "date-time"
"type": "Date"
},
{
"name": "message",
"baseName": "message",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "reason",
"baseName": "reason",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "status",
"baseName": "status",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1Condition.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,33 +11,28 @@
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
export class IoArgoprojEventsV1alpha1ConditionsResetByTime {
'cron'?: string;
'timezone'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "cron",
"baseName": "cron",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "timezone",
"baseName": "timezone",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1ConditionsResetByTime.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,27 +11,23 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1ConditionsResetByTime } from '../models/IoArgoprojEventsV1alpha1ConditionsResetByTime';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1ConditionsResetByTime } from './ioArgoprojEventsV1alpha1ConditionsResetByTime';
export class IoArgoprojEventsV1alpha1ConditionsResetCriteria {
'byTime'?: IoArgoprojEventsV1alpha1ConditionsResetByTime;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "byTime",
"baseName": "byTime",
"type": "IoArgoprojEventsV1alpha1ConditionsResetByTime",
"format": ""
"type": "IoArgoprojEventsV1alpha1ConditionsResetByTime"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1ConditionsResetCriteria.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,33 +11,28 @@
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
export class IoArgoprojEventsV1alpha1ConfigMapPersistence {
'createIfNotExist'?: boolean;
'name'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "createIfNotExist",
"baseName": "createIfNotExist",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "name",
"baseName": "name",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1ConfigMapPersistence.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,9 +11,9 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1TriggerParameter } from '../models/IoArgoprojEventsV1alpha1TriggerParameter';
import { IoK8sApiCoreV1SecretKeySelector } from '../models/IoK8sApiCoreV1SecretKeySelector';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1TriggerParameter } from './ioArgoprojEventsV1alpha1TriggerParameter';
import { IoK8sApiCoreV1SecretKeySelector } from './ioK8sApiCoreV1SecretKeySelector';
/**
* CustomTrigger refers to the specification of the custom trigger.
@ -38,57 +39,47 @@ export class IoArgoprojEventsV1alpha1CustomTrigger {
*/
'spec'?: { [key: string]: string; };
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "certSecret",
"baseName": "certSecret",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
},
{
"name": "parameters",
"baseName": "parameters",
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>",
"format": ""
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>"
},
{
"name": "payload",
"baseName": "payload",
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>",
"format": ""
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>"
},
{
"name": "secure",
"baseName": "secure",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "serverNameOverride",
"baseName": "serverNameOverride",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "serverURL",
"baseName": "serverURL",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "spec",
"baseName": "spec",
"type": "{ [key: string]: string; }",
"format": ""
"type": "{ [key: string]: string; }"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1CustomTrigger.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,7 +11,7 @@
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
export class IoArgoprojEventsV1alpha1DataFilter {
/**
@ -25,45 +26,37 @@ export class IoArgoprojEventsV1alpha1DataFilter {
'type'?: string;
'value'?: Array<string>;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "comparator",
"baseName": "comparator",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "path",
"baseName": "path",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "template",
"baseName": "template",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "value",
"baseName": "value",
"type": "Array<string>",
"format": ""
"type": "Array<string>"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1DataFilter.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,11 +11,11 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1Backoff } from '../models/IoArgoprojEventsV1alpha1Backoff';
import { IoArgoprojEventsV1alpha1EventSourceFilter } from '../models/IoArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1TLSConfig } from '../models/IoArgoprojEventsV1alpha1TLSConfig';
import { IoK8sApiCoreV1SecretKeySelector } from '../models/IoK8sApiCoreV1SecretKeySelector';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1Backoff } from './ioArgoprojEventsV1alpha1Backoff';
import { IoArgoprojEventsV1alpha1EventSourceFilter } from './ioArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1TLSConfig } from './ioArgoprojEventsV1alpha1TLSConfig';
import { IoK8sApiCoreV1SecretKeySelector } from './ioK8sApiCoreV1SecretKeySelector';
export class IoArgoprojEventsV1alpha1EmitterEventSource {
/**
@ -31,75 +32,62 @@ export class IoArgoprojEventsV1alpha1EmitterEventSource {
'tls'?: IoArgoprojEventsV1alpha1TLSConfig;
'username'?: IoK8sApiCoreV1SecretKeySelector;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "broker",
"baseName": "broker",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "channelKey",
"baseName": "channelKey",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "channelName",
"baseName": "channelName",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "connectionBackoff",
"baseName": "connectionBackoff",
"type": "IoArgoprojEventsV1alpha1Backoff",
"format": ""
"type": "IoArgoprojEventsV1alpha1Backoff"
},
{
"name": "filter",
"baseName": "filter",
"type": "IoArgoprojEventsV1alpha1EventSourceFilter",
"format": ""
"type": "IoArgoprojEventsV1alpha1EventSourceFilter"
},
{
"name": "jsonBody",
"baseName": "jsonBody",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "metadata",
"baseName": "metadata",
"type": "{ [key: string]: string; }",
"format": ""
"type": "{ [key: string]: string; }"
},
{
"name": "password",
"baseName": "password",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
},
{
"name": "tls",
"baseName": "tls",
"type": "IoArgoprojEventsV1alpha1TLSConfig",
"format": ""
"type": "IoArgoprojEventsV1alpha1TLSConfig"
},
{
"name": "username",
"baseName": "username",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1EmitterEventSource.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,7 +11,7 @@
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
export class IoArgoprojEventsV1alpha1EventContext {
/**
@ -39,57 +40,47 @@ export class IoArgoprojEventsV1alpha1EventContext {
*/
'type'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "datacontenttype",
"baseName": "datacontenttype",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "id",
"baseName": "id",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "source",
"baseName": "source",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "specversion",
"baseName": "specversion",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "subject",
"baseName": "subject",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "time",
"baseName": "time",
"type": "Date",
"format": "date-time"
"type": "Date"
},
{
"name": "type",
"baseName": "type",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1EventContext.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,9 +11,9 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1EventDependencyFilter } from '../models/IoArgoprojEventsV1alpha1EventDependencyFilter';
import { IoArgoprojEventsV1alpha1EventDependencyTransformer } from '../models/IoArgoprojEventsV1alpha1EventDependencyTransformer';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1EventDependencyFilter } from './ioArgoprojEventsV1alpha1EventDependencyFilter';
import { IoArgoprojEventsV1alpha1EventDependencyTransformer } from './ioArgoprojEventsV1alpha1EventDependencyTransformer';
export class IoArgoprojEventsV1alpha1EventDependency {
'eventName'?: string;
@ -25,51 +26,42 @@ export class IoArgoprojEventsV1alpha1EventDependency {
'name'?: string;
'transform'?: IoArgoprojEventsV1alpha1EventDependencyTransformer;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "eventName",
"baseName": "eventName",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "eventSourceName",
"baseName": "eventSourceName",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "filters",
"baseName": "filters",
"type": "IoArgoprojEventsV1alpha1EventDependencyFilter",
"format": ""
"type": "IoArgoprojEventsV1alpha1EventDependencyFilter"
},
{
"name": "filtersLogicalOperator",
"baseName": "filtersLogicalOperator",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "name",
"baseName": "name",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "transform",
"baseName": "transform",
"type": "IoArgoprojEventsV1alpha1EventDependencyTransformer",
"format": ""
"type": "IoArgoprojEventsV1alpha1EventDependencyTransformer"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1EventDependency.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,11 +11,11 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1DataFilter } from '../models/IoArgoprojEventsV1alpha1DataFilter';
import { IoArgoprojEventsV1alpha1EventContext } from '../models/IoArgoprojEventsV1alpha1EventContext';
import { IoArgoprojEventsV1alpha1ExprFilter } from '../models/IoArgoprojEventsV1alpha1ExprFilter';
import { IoArgoprojEventsV1alpha1TimeFilter } from '../models/IoArgoprojEventsV1alpha1TimeFilter';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1DataFilter } from './ioArgoprojEventsV1alpha1DataFilter';
import { IoArgoprojEventsV1alpha1EventContext } from './ioArgoprojEventsV1alpha1EventContext';
import { IoArgoprojEventsV1alpha1ExprFilter } from './ioArgoprojEventsV1alpha1ExprFilter';
import { IoArgoprojEventsV1alpha1TimeFilter } from './ioArgoprojEventsV1alpha1TimeFilter';
/**
* EventDependencyFilter defines filters and constraints for a io.argoproj.workflow.v1alpha1.
@ -40,57 +41,47 @@ export class IoArgoprojEventsV1alpha1EventDependencyFilter {
'script'?: string;
'time'?: IoArgoprojEventsV1alpha1TimeFilter;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "context",
"baseName": "context",
"type": "IoArgoprojEventsV1alpha1EventContext",
"format": ""
"type": "IoArgoprojEventsV1alpha1EventContext"
},
{
"name": "data",
"baseName": "data",
"type": "Array<IoArgoprojEventsV1alpha1DataFilter>",
"format": ""
"type": "Array<IoArgoprojEventsV1alpha1DataFilter>"
},
{
"name": "dataLogicalOperator",
"baseName": "dataLogicalOperator",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "exprLogicalOperator",
"baseName": "exprLogicalOperator",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "exprs",
"baseName": "exprs",
"type": "Array<IoArgoprojEventsV1alpha1ExprFilter>",
"format": ""
"type": "Array<IoArgoprojEventsV1alpha1ExprFilter>"
},
{
"name": "script",
"baseName": "script",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "time",
"baseName": "time",
"type": "IoArgoprojEventsV1alpha1TimeFilter",
"format": ""
"type": "IoArgoprojEventsV1alpha1TimeFilter"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1EventDependencyFilter.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,33 +11,28 @@
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
export class IoArgoprojEventsV1alpha1EventDependencyTransformer {
'jq'?: string;
'script'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "jq",
"baseName": "jq",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "script",
"baseName": "script",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1EventDependencyTransformer.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,35 +11,30 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1CatchupConfiguration } from '../models/IoArgoprojEventsV1alpha1CatchupConfiguration';
import { IoArgoprojEventsV1alpha1ConfigMapPersistence } from '../models/IoArgoprojEventsV1alpha1ConfigMapPersistence';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1CatchupConfiguration } from './ioArgoprojEventsV1alpha1CatchupConfiguration';
import { IoArgoprojEventsV1alpha1ConfigMapPersistence } from './ioArgoprojEventsV1alpha1ConfigMapPersistence';
export class IoArgoprojEventsV1alpha1EventPersistence {
'catchup'?: IoArgoprojEventsV1alpha1CatchupConfiguration;
'configMap'?: IoArgoprojEventsV1alpha1ConfigMapPersistence;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "catchup",
"baseName": "catchup",
"type": "IoArgoprojEventsV1alpha1CatchupConfiguration",
"format": ""
"type": "IoArgoprojEventsV1alpha1CatchupConfiguration"
},
{
"name": "configMap",
"baseName": "configMap",
"type": "IoArgoprojEventsV1alpha1ConfigMapPersistence",
"format": ""
"type": "IoArgoprojEventsV1alpha1ConfigMapPersistence"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1EventPersistence.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,43 +11,37 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1EventSourceSpec } from '../models/IoArgoprojEventsV1alpha1EventSourceSpec';
import { IoArgoprojEventsV1alpha1EventSourceStatus } from '../models/IoArgoprojEventsV1alpha1EventSourceStatus';
import { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from '../models/IoK8sApimachineryPkgApisMetaV1ObjectMeta';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1EventSourceSpec } from './ioArgoprojEventsV1alpha1EventSourceSpec';
import { IoArgoprojEventsV1alpha1EventSourceStatus } from './ioArgoprojEventsV1alpha1EventSourceStatus';
import { IoK8sApimachineryPkgApisMetaV1ObjectMeta } from './ioK8sApimachineryPkgApisMetaV1ObjectMeta';
export class IoArgoprojEventsV1alpha1EventSource {
'metadata'?: IoK8sApimachineryPkgApisMetaV1ObjectMeta;
'spec'?: IoArgoprojEventsV1alpha1EventSourceSpec;
'status'?: IoArgoprojEventsV1alpha1EventSourceStatus;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "metadata",
"baseName": "metadata",
"type": "IoK8sApimachineryPkgApisMetaV1ObjectMeta",
"format": ""
"type": "IoK8sApimachineryPkgApisMetaV1ObjectMeta"
},
{
"name": "spec",
"baseName": "spec",
"type": "IoArgoprojEventsV1alpha1EventSourceSpec",
"format": ""
"type": "IoArgoprojEventsV1alpha1EventSourceSpec"
},
{
"name": "status",
"baseName": "status",
"type": "IoArgoprojEventsV1alpha1EventSourceStatus",
"format": ""
"type": "IoArgoprojEventsV1alpha1EventSourceStatus"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1EventSource.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,26 +11,22 @@
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
export class IoArgoprojEventsV1alpha1EventSourceFilter {
'expression'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "expression",
"baseName": "expression",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1EventSourceFilter.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,35 +11,30 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1EventSource } from '../models/IoArgoprojEventsV1alpha1EventSource';
import { IoK8sApimachineryPkgApisMetaV1ListMeta } from '../models/IoK8sApimachineryPkgApisMetaV1ListMeta';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1EventSource } from './ioArgoprojEventsV1alpha1EventSource';
import { IoK8sApimachineryPkgApisMetaV1ListMeta } from './ioK8sApimachineryPkgApisMetaV1ListMeta';
export class IoArgoprojEventsV1alpha1EventSourceList {
'items'?: Array<IoArgoprojEventsV1alpha1EventSource>;
'metadata'?: IoK8sApimachineryPkgApisMetaV1ListMeta;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "items",
"baseName": "items",
"type": "Array<IoArgoprojEventsV1alpha1EventSource>",
"format": ""
"type": "Array<IoArgoprojEventsV1alpha1EventSource>"
},
{
"name": "metadata",
"baseName": "metadata",
"type": "IoK8sApimachineryPkgApisMetaV1ListMeta",
"format": ""
"type": "IoK8sApimachineryPkgApisMetaV1ListMeta"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1EventSourceList.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,36 +11,36 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1AMQPEventSource } from '../models/IoArgoprojEventsV1alpha1AMQPEventSource';
import { IoArgoprojEventsV1alpha1AzureEventsHubEventSource } from '../models/IoArgoprojEventsV1alpha1AzureEventsHubEventSource';
import { IoArgoprojEventsV1alpha1BitbucketEventSource } from '../models/IoArgoprojEventsV1alpha1BitbucketEventSource';
import { IoArgoprojEventsV1alpha1BitbucketServerEventSource } from '../models/IoArgoprojEventsV1alpha1BitbucketServerEventSource';
import { IoArgoprojEventsV1alpha1CalendarEventSource } from '../models/IoArgoprojEventsV1alpha1CalendarEventSource';
import { IoArgoprojEventsV1alpha1EmitterEventSource } from '../models/IoArgoprojEventsV1alpha1EmitterEventSource';
import { IoArgoprojEventsV1alpha1FileEventSource } from '../models/IoArgoprojEventsV1alpha1FileEventSource';
import { IoArgoprojEventsV1alpha1GenericEventSource } from '../models/IoArgoprojEventsV1alpha1GenericEventSource';
import { IoArgoprojEventsV1alpha1GithubEventSource } from '../models/IoArgoprojEventsV1alpha1GithubEventSource';
import { IoArgoprojEventsV1alpha1GitlabEventSource } from '../models/IoArgoprojEventsV1alpha1GitlabEventSource';
import { IoArgoprojEventsV1alpha1HDFSEventSource } from '../models/IoArgoprojEventsV1alpha1HDFSEventSource';
import { IoArgoprojEventsV1alpha1KafkaEventSource } from '../models/IoArgoprojEventsV1alpha1KafkaEventSource';
import { IoArgoprojEventsV1alpha1MQTTEventSource } from '../models/IoArgoprojEventsV1alpha1MQTTEventSource';
import { IoArgoprojEventsV1alpha1NATSEventsSource } from '../models/IoArgoprojEventsV1alpha1NATSEventsSource';
import { IoArgoprojEventsV1alpha1NSQEventSource } from '../models/IoArgoprojEventsV1alpha1NSQEventSource';
import { IoArgoprojEventsV1alpha1PubSubEventSource } from '../models/IoArgoprojEventsV1alpha1PubSubEventSource';
import { IoArgoprojEventsV1alpha1PulsarEventSource } from '../models/IoArgoprojEventsV1alpha1PulsarEventSource';
import { IoArgoprojEventsV1alpha1RedisEventSource } from '../models/IoArgoprojEventsV1alpha1RedisEventSource';
import { IoArgoprojEventsV1alpha1RedisStreamEventSource } from '../models/IoArgoprojEventsV1alpha1RedisStreamEventSource';
import { IoArgoprojEventsV1alpha1ResourceEventSource } from '../models/IoArgoprojEventsV1alpha1ResourceEventSource';
import { IoArgoprojEventsV1alpha1S3Artifact } from '../models/IoArgoprojEventsV1alpha1S3Artifact';
import { IoArgoprojEventsV1alpha1SNSEventSource } from '../models/IoArgoprojEventsV1alpha1SNSEventSource';
import { IoArgoprojEventsV1alpha1SQSEventSource } from '../models/IoArgoprojEventsV1alpha1SQSEventSource';
import { IoArgoprojEventsV1alpha1Service } from '../models/IoArgoprojEventsV1alpha1Service';
import { IoArgoprojEventsV1alpha1SlackEventSource } from '../models/IoArgoprojEventsV1alpha1SlackEventSource';
import { IoArgoprojEventsV1alpha1StorageGridEventSource } from '../models/IoArgoprojEventsV1alpha1StorageGridEventSource';
import { IoArgoprojEventsV1alpha1StripeEventSource } from '../models/IoArgoprojEventsV1alpha1StripeEventSource';
import { IoArgoprojEventsV1alpha1Template } from '../models/IoArgoprojEventsV1alpha1Template';
import { IoArgoprojEventsV1alpha1WebhookEventSource } from '../models/IoArgoprojEventsV1alpha1WebhookEventSource';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1AMQPEventSource } from './ioArgoprojEventsV1alpha1AMQPEventSource';
import { IoArgoprojEventsV1alpha1AzureEventsHubEventSource } from './ioArgoprojEventsV1alpha1AzureEventsHubEventSource';
import { IoArgoprojEventsV1alpha1BitbucketEventSource } from './ioArgoprojEventsV1alpha1BitbucketEventSource';
import { IoArgoprojEventsV1alpha1BitbucketServerEventSource } from './ioArgoprojEventsV1alpha1BitbucketServerEventSource';
import { IoArgoprojEventsV1alpha1CalendarEventSource } from './ioArgoprojEventsV1alpha1CalendarEventSource';
import { IoArgoprojEventsV1alpha1EmitterEventSource } from './ioArgoprojEventsV1alpha1EmitterEventSource';
import { IoArgoprojEventsV1alpha1FileEventSource } from './ioArgoprojEventsV1alpha1FileEventSource';
import { IoArgoprojEventsV1alpha1GenericEventSource } from './ioArgoprojEventsV1alpha1GenericEventSource';
import { IoArgoprojEventsV1alpha1GithubEventSource } from './ioArgoprojEventsV1alpha1GithubEventSource';
import { IoArgoprojEventsV1alpha1GitlabEventSource } from './ioArgoprojEventsV1alpha1GitlabEventSource';
import { IoArgoprojEventsV1alpha1HDFSEventSource } from './ioArgoprojEventsV1alpha1HDFSEventSource';
import { IoArgoprojEventsV1alpha1KafkaEventSource } from './ioArgoprojEventsV1alpha1KafkaEventSource';
import { IoArgoprojEventsV1alpha1MQTTEventSource } from './ioArgoprojEventsV1alpha1MQTTEventSource';
import { IoArgoprojEventsV1alpha1NATSEventsSource } from './ioArgoprojEventsV1alpha1NATSEventsSource';
import { IoArgoprojEventsV1alpha1NSQEventSource } from './ioArgoprojEventsV1alpha1NSQEventSource';
import { IoArgoprojEventsV1alpha1PubSubEventSource } from './ioArgoprojEventsV1alpha1PubSubEventSource';
import { IoArgoprojEventsV1alpha1PulsarEventSource } from './ioArgoprojEventsV1alpha1PulsarEventSource';
import { IoArgoprojEventsV1alpha1RedisEventSource } from './ioArgoprojEventsV1alpha1RedisEventSource';
import { IoArgoprojEventsV1alpha1RedisStreamEventSource } from './ioArgoprojEventsV1alpha1RedisStreamEventSource';
import { IoArgoprojEventsV1alpha1ResourceEventSource } from './ioArgoprojEventsV1alpha1ResourceEventSource';
import { IoArgoprojEventsV1alpha1S3Artifact } from './ioArgoprojEventsV1alpha1S3Artifact';
import { IoArgoprojEventsV1alpha1SNSEventSource } from './ioArgoprojEventsV1alpha1SNSEventSource';
import { IoArgoprojEventsV1alpha1SQSEventSource } from './ioArgoprojEventsV1alpha1SQSEventSource';
import { IoArgoprojEventsV1alpha1Service } from './ioArgoprojEventsV1alpha1Service';
import { IoArgoprojEventsV1alpha1SlackEventSource } from './ioArgoprojEventsV1alpha1SlackEventSource';
import { IoArgoprojEventsV1alpha1StorageGridEventSource } from './ioArgoprojEventsV1alpha1StorageGridEventSource';
import { IoArgoprojEventsV1alpha1StripeEventSource } from './ioArgoprojEventsV1alpha1StripeEventSource';
import { IoArgoprojEventsV1alpha1Template } from './ioArgoprojEventsV1alpha1Template';
import { IoArgoprojEventsV1alpha1WebhookEventSource } from './ioArgoprojEventsV1alpha1WebhookEventSource';
export class IoArgoprojEventsV1alpha1EventSourceSpec {
'amqp'?: { [key: string]: IoArgoprojEventsV1alpha1AMQPEventSource; };
@ -74,201 +75,167 @@ export class IoArgoprojEventsV1alpha1EventSourceSpec {
'template'?: IoArgoprojEventsV1alpha1Template;
'webhook'?: { [key: string]: IoArgoprojEventsV1alpha1WebhookEventSource; };
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "amqp",
"baseName": "amqp",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1AMQPEventSource; }",
"format": ""
"type": "{ [key: string]: IoArgoprojEventsV1alpha1AMQPEventSource; }"
},
{
"name": "azureEventsHub",
"baseName": "azureEventsHub",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1AzureEventsHubEventSource; }",
"format": ""
"type": "{ [key: string]: IoArgoprojEventsV1alpha1AzureEventsHubEventSource; }"
},
{
"name": "bitbucket",
"baseName": "bitbucket",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1BitbucketEventSource; }",
"format": ""
"type": "{ [key: string]: IoArgoprojEventsV1alpha1BitbucketEventSource; }"
},
{
"name": "bitbucketserver",
"baseName": "bitbucketserver",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1BitbucketServerEventSource; }",
"format": ""
"type": "{ [key: string]: IoArgoprojEventsV1alpha1BitbucketServerEventSource; }"
},
{
"name": "calendar",
"baseName": "calendar",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1CalendarEventSource; }",
"format": ""
"type": "{ [key: string]: IoArgoprojEventsV1alpha1CalendarEventSource; }"
},
{
"name": "emitter",
"baseName": "emitter",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1EmitterEventSource; }",
"format": ""
"type": "{ [key: string]: IoArgoprojEventsV1alpha1EmitterEventSource; }"
},
{
"name": "eventBusName",
"baseName": "eventBusName",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "file",
"baseName": "file",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1FileEventSource; }",
"format": ""
"type": "{ [key: string]: IoArgoprojEventsV1alpha1FileEventSource; }"
},
{
"name": "generic",
"baseName": "generic",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1GenericEventSource; }",
"format": ""
"type": "{ [key: string]: IoArgoprojEventsV1alpha1GenericEventSource; }"
},
{
"name": "github",
"baseName": "github",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1GithubEventSource; }",
"format": ""
"type": "{ [key: string]: IoArgoprojEventsV1alpha1GithubEventSource; }"
},
{
"name": "gitlab",
"baseName": "gitlab",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1GitlabEventSource; }",
"format": ""
"type": "{ [key: string]: IoArgoprojEventsV1alpha1GitlabEventSource; }"
},
{
"name": "hdfs",
"baseName": "hdfs",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1HDFSEventSource; }",
"format": ""
"type": "{ [key: string]: IoArgoprojEventsV1alpha1HDFSEventSource; }"
},
{
"name": "kafka",
"baseName": "kafka",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1KafkaEventSource; }",
"format": ""
"type": "{ [key: string]: IoArgoprojEventsV1alpha1KafkaEventSource; }"
},
{
"name": "minio",
"baseName": "minio",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1S3Artifact; }",
"format": ""
"type": "{ [key: string]: IoArgoprojEventsV1alpha1S3Artifact; }"
},
{
"name": "mqtt",
"baseName": "mqtt",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1MQTTEventSource; }",
"format": ""
"type": "{ [key: string]: IoArgoprojEventsV1alpha1MQTTEventSource; }"
},
{
"name": "nats",
"baseName": "nats",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1NATSEventsSource; }",
"format": ""
"type": "{ [key: string]: IoArgoprojEventsV1alpha1NATSEventsSource; }"
},
{
"name": "nsq",
"baseName": "nsq",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1NSQEventSource; }",
"format": ""
"type": "{ [key: string]: IoArgoprojEventsV1alpha1NSQEventSource; }"
},
{
"name": "pubSub",
"baseName": "pubSub",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1PubSubEventSource; }",
"format": ""
"type": "{ [key: string]: IoArgoprojEventsV1alpha1PubSubEventSource; }"
},
{
"name": "pulsar",
"baseName": "pulsar",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1PulsarEventSource; }",
"format": ""
"type": "{ [key: string]: IoArgoprojEventsV1alpha1PulsarEventSource; }"
},
{
"name": "redis",
"baseName": "redis",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1RedisEventSource; }",
"format": ""
"type": "{ [key: string]: IoArgoprojEventsV1alpha1RedisEventSource; }"
},
{
"name": "redisStream",
"baseName": "redisStream",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1RedisStreamEventSource; }",
"format": ""
"type": "{ [key: string]: IoArgoprojEventsV1alpha1RedisStreamEventSource; }"
},
{
"name": "replicas",
"baseName": "replicas",
"type": "number",
"format": ""
"type": "number"
},
{
"name": "resource",
"baseName": "resource",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1ResourceEventSource; }",
"format": ""
"type": "{ [key: string]: IoArgoprojEventsV1alpha1ResourceEventSource; }"
},
{
"name": "service",
"baseName": "service",
"type": "IoArgoprojEventsV1alpha1Service",
"format": ""
"type": "IoArgoprojEventsV1alpha1Service"
},
{
"name": "slack",
"baseName": "slack",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1SlackEventSource; }",
"format": ""
"type": "{ [key: string]: IoArgoprojEventsV1alpha1SlackEventSource; }"
},
{
"name": "sns",
"baseName": "sns",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1SNSEventSource; }",
"format": ""
"type": "{ [key: string]: IoArgoprojEventsV1alpha1SNSEventSource; }"
},
{
"name": "sqs",
"baseName": "sqs",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1SQSEventSource; }",
"format": ""
"type": "{ [key: string]: IoArgoprojEventsV1alpha1SQSEventSource; }"
},
{
"name": "storageGrid",
"baseName": "storageGrid",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1StorageGridEventSource; }",
"format": ""
"type": "{ [key: string]: IoArgoprojEventsV1alpha1StorageGridEventSource; }"
},
{
"name": "stripe",
"baseName": "stripe",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1StripeEventSource; }",
"format": ""
"type": "{ [key: string]: IoArgoprojEventsV1alpha1StripeEventSource; }"
},
{
"name": "template",
"baseName": "template",
"type": "IoArgoprojEventsV1alpha1Template",
"format": ""
"type": "IoArgoprojEventsV1alpha1Template"
},
{
"name": "webhook",
"baseName": "webhook",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1WebhookEventSource; }",
"format": ""
"type": "{ [key: string]: IoArgoprojEventsV1alpha1WebhookEventSource; }"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1EventSourceSpec.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,27 +11,23 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1Status } from '../models/IoArgoprojEventsV1alpha1Status';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1Status } from './ioArgoprojEventsV1alpha1Status';
export class IoArgoprojEventsV1alpha1EventSourceStatus {
'status'?: IoArgoprojEventsV1alpha1Status;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "status",
"baseName": "status",
"type": "IoArgoprojEventsV1alpha1Status",
"format": ""
"type": "IoArgoprojEventsV1alpha1Status"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1EventSourceStatus.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,8 +11,8 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1PayloadField } from '../models/IoArgoprojEventsV1alpha1PayloadField';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1PayloadField } from './ioArgoprojEventsV1alpha1PayloadField';
export class IoArgoprojEventsV1alpha1ExprFilter {
/**
@ -23,27 +24,22 @@ export class IoArgoprojEventsV1alpha1ExprFilter {
*/
'fields'?: Array<IoArgoprojEventsV1alpha1PayloadField>;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "expr",
"baseName": "expr",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "fields",
"baseName": "fields",
"type": "Array<IoArgoprojEventsV1alpha1PayloadField>",
"format": ""
"type": "Array<IoArgoprojEventsV1alpha1PayloadField>"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1ExprFilter.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,26 +11,22 @@
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
export class IoArgoprojEventsV1alpha1FileArtifact {
'path'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "path",
"baseName": "path",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1FileArtifact.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,9 +11,9 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1EventSourceFilter } from '../models/IoArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1WatchPathConfig } from '../models/IoArgoprojEventsV1alpha1WatchPathConfig';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1EventSourceFilter } from './ioArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1WatchPathConfig } from './ioArgoprojEventsV1alpha1WatchPathConfig';
/**
* FileEventSource describes an event-source for file related events.
@ -24,45 +25,37 @@ export class IoArgoprojEventsV1alpha1FileEventSource {
'polling'?: boolean;
'watchPathConfig'?: IoArgoprojEventsV1alpha1WatchPathConfig;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "eventType",
"baseName": "eventType",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "filter",
"baseName": "filter",
"type": "IoArgoprojEventsV1alpha1EventSourceFilter",
"format": ""
"type": "IoArgoprojEventsV1alpha1EventSourceFilter"
},
{
"name": "metadata",
"baseName": "metadata",
"type": "{ [key: string]: string; }",
"format": ""
"type": "{ [key: string]: string; }"
},
{
"name": "polling",
"baseName": "polling",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "watchPathConfig",
"baseName": "watchPathConfig",
"type": "IoArgoprojEventsV1alpha1WatchPathConfig",
"format": ""
"type": "IoArgoprojEventsV1alpha1WatchPathConfig"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1FileEventSource.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,9 +11,9 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1EventSourceFilter } from '../models/IoArgoprojEventsV1alpha1EventSourceFilter';
import { IoK8sApiCoreV1SecretKeySelector } from '../models/IoK8sApiCoreV1SecretKeySelector';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1EventSourceFilter } from './ioArgoprojEventsV1alpha1EventSourceFilter';
import { IoK8sApiCoreV1SecretKeySelector } from './ioK8sApiCoreV1SecretKeySelector';
/**
* GenericEventSource refers to a generic event source. It can be used to implement a custom event source.
@ -32,57 +33,47 @@ export class IoArgoprojEventsV1alpha1GenericEventSource {
*/
'url'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "authSecret",
"baseName": "authSecret",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
},
{
"name": "config",
"baseName": "config",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "filter",
"baseName": "filter",
"type": "IoArgoprojEventsV1alpha1EventSourceFilter",
"format": ""
"type": "IoArgoprojEventsV1alpha1EventSourceFilter"
},
{
"name": "insecure",
"baseName": "insecure",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "jsonBody",
"baseName": "jsonBody",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "metadata",
"baseName": "metadata",
"type": "{ [key: string]: string; }",
"format": ""
"type": "{ [key: string]: string; }"
},
{
"name": "url",
"baseName": "url",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1GenericEventSource.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,10 +11,10 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1GitCreds } from '../models/IoArgoprojEventsV1alpha1GitCreds';
import { IoArgoprojEventsV1alpha1GitRemoteConfig } from '../models/IoArgoprojEventsV1alpha1GitRemoteConfig';
import { IoK8sApiCoreV1SecretKeySelector } from '../models/IoK8sApiCoreV1SecretKeySelector';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1GitCreds } from './ioArgoprojEventsV1alpha1GitCreds';
import { IoArgoprojEventsV1alpha1GitRemoteConfig } from './ioArgoprojEventsV1alpha1GitRemoteConfig';
import { IoK8sApiCoreV1SecretKeySelector } from './ioK8sApiCoreV1SecretKeySelector';
export class IoArgoprojEventsV1alpha1GitArtifact {
'branch'?: string;
@ -30,75 +31,62 @@ export class IoArgoprojEventsV1alpha1GitArtifact {
'tag'?: string;
'url'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "branch",
"baseName": "branch",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "cloneDirectory",
"baseName": "cloneDirectory",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "creds",
"baseName": "creds",
"type": "IoArgoprojEventsV1alpha1GitCreds",
"format": ""
"type": "IoArgoprojEventsV1alpha1GitCreds"
},
{
"name": "filePath",
"baseName": "filePath",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "insecureIgnoreHostKey",
"baseName": "insecureIgnoreHostKey",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "ref",
"baseName": "ref",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "remote",
"baseName": "remote",
"type": "IoArgoprojEventsV1alpha1GitRemoteConfig",
"format": ""
"type": "IoArgoprojEventsV1alpha1GitRemoteConfig"
},
{
"name": "sshKeySecret",
"baseName": "sshKeySecret",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
},
{
"name": "tag",
"baseName": "tag",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "url",
"baseName": "url",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1GitArtifact.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,34 +11,29 @@
* Do not edit the class manually.
*/
import { IoK8sApiCoreV1SecretKeySelector } from '../models/IoK8sApiCoreV1SecretKeySelector';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoK8sApiCoreV1SecretKeySelector } from './ioK8sApiCoreV1SecretKeySelector';
export class IoArgoprojEventsV1alpha1GitCreds {
'password'?: IoK8sApiCoreV1SecretKeySelector;
'username'?: IoK8sApiCoreV1SecretKeySelector;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "password",
"baseName": "password",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
},
{
"name": "username",
"baseName": "username",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1GitCreds.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,7 +11,7 @@
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
export class IoArgoprojEventsV1alpha1GitRemoteConfig {
/**
@ -22,27 +23,22 @@ export class IoArgoprojEventsV1alpha1GitRemoteConfig {
*/
'urls'?: Array<string>;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "name",
"baseName": "name",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "urls",
"baseName": "urls",
"type": "Array<string>",
"format": ""
"type": "Array<string>"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1GitRemoteConfig.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,41 +11,35 @@
* Do not edit the class manually.
*/
import { IoK8sApiCoreV1SecretKeySelector } from '../models/IoK8sApiCoreV1SecretKeySelector';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoK8sApiCoreV1SecretKeySelector } from './ioK8sApiCoreV1SecretKeySelector';
export class IoArgoprojEventsV1alpha1GithubAppCreds {
'appID'?: string;
'installationID'?: string;
'privateKey'?: IoK8sApiCoreV1SecretKeySelector;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "appID",
"baseName": "appID",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "installationID",
"baseName": "installationID",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "privateKey",
"baseName": "privateKey",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1GithubAppCreds.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,12 +11,12 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1EventSourceFilter } from '../models/IoArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1GithubAppCreds } from '../models/IoArgoprojEventsV1alpha1GithubAppCreds';
import { IoArgoprojEventsV1alpha1OwnedRepositories } from '../models/IoArgoprojEventsV1alpha1OwnedRepositories';
import { IoArgoprojEventsV1alpha1WebhookContext } from '../models/IoArgoprojEventsV1alpha1WebhookContext';
import { IoK8sApiCoreV1SecretKeySelector } from '../models/IoK8sApiCoreV1SecretKeySelector';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1EventSourceFilter } from './ioArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1GithubAppCreds } from './ioArgoprojEventsV1alpha1GithubAppCreds';
import { IoArgoprojEventsV1alpha1OwnedRepositories } from './ioArgoprojEventsV1alpha1OwnedRepositories';
import { IoArgoprojEventsV1alpha1WebhookContext } from './ioArgoprojEventsV1alpha1WebhookContext';
import { IoK8sApiCoreV1SecretKeySelector } from './ioK8sApiCoreV1SecretKeySelector';
export class IoArgoprojEventsV1alpha1GithubEventSource {
'active'?: boolean;
@ -43,123 +44,102 @@ export class IoArgoprojEventsV1alpha1GithubEventSource {
'webhook'?: IoArgoprojEventsV1alpha1WebhookContext;
'webhookSecret'?: IoK8sApiCoreV1SecretKeySelector;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "active",
"baseName": "active",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "apiToken",
"baseName": "apiToken",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
},
{
"name": "contentType",
"baseName": "contentType",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "deleteHookOnFinish",
"baseName": "deleteHookOnFinish",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "events",
"baseName": "events",
"type": "Array<string>",
"format": ""
"type": "Array<string>"
},
{
"name": "filter",
"baseName": "filter",
"type": "IoArgoprojEventsV1alpha1EventSourceFilter",
"format": ""
"type": "IoArgoprojEventsV1alpha1EventSourceFilter"
},
{
"name": "githubApp",
"baseName": "githubApp",
"type": "IoArgoprojEventsV1alpha1GithubAppCreds",
"format": ""
"type": "IoArgoprojEventsV1alpha1GithubAppCreds"
},
{
"name": "githubBaseURL",
"baseName": "githubBaseURL",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "githubUploadURL",
"baseName": "githubUploadURL",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "id",
"baseName": "id",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "insecure",
"baseName": "insecure",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "metadata",
"baseName": "metadata",
"type": "{ [key: string]: string; }",
"format": ""
"type": "{ [key: string]: string; }"
},
{
"name": "organizations",
"baseName": "organizations",
"type": "Array<string>",
"format": ""
"type": "Array<string>"
},
{
"name": "owner",
"baseName": "owner",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "repositories",
"baseName": "repositories",
"type": "Array<IoArgoprojEventsV1alpha1OwnedRepositories>",
"format": ""
"type": "Array<IoArgoprojEventsV1alpha1OwnedRepositories>"
},
{
"name": "repository",
"baseName": "repository",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "webhook",
"baseName": "webhook",
"type": "IoArgoprojEventsV1alpha1WebhookContext",
"format": ""
"type": "IoArgoprojEventsV1alpha1WebhookContext"
},
{
"name": "webhookSecret",
"baseName": "webhookSecret",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1GithubEventSource.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,10 +11,10 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1EventSourceFilter } from '../models/IoArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1WebhookContext } from '../models/IoArgoprojEventsV1alpha1WebhookContext';
import { IoK8sApiCoreV1SecretKeySelector } from '../models/IoK8sApiCoreV1SecretKeySelector';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1EventSourceFilter } from './ioArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1WebhookContext } from './ioArgoprojEventsV1alpha1WebhookContext';
import { IoK8sApiCoreV1SecretKeySelector } from './ioK8sApiCoreV1SecretKeySelector';
export class IoArgoprojEventsV1alpha1GitlabEventSource {
'accessToken'?: IoK8sApiCoreV1SecretKeySelector;
@ -31,81 +32,67 @@ export class IoArgoprojEventsV1alpha1GitlabEventSource {
'secretToken'?: IoK8sApiCoreV1SecretKeySelector;
'webhook'?: IoArgoprojEventsV1alpha1WebhookContext;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "accessToken",
"baseName": "accessToken",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
},
{
"name": "deleteHookOnFinish",
"baseName": "deleteHookOnFinish",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "enableSSLVerification",
"baseName": "enableSSLVerification",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "events",
"baseName": "events",
"type": "Array<string>",
"format": ""
"type": "Array<string>"
},
{
"name": "filter",
"baseName": "filter",
"type": "IoArgoprojEventsV1alpha1EventSourceFilter",
"format": ""
"type": "IoArgoprojEventsV1alpha1EventSourceFilter"
},
{
"name": "gitlabBaseURL",
"baseName": "gitlabBaseURL",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "metadata",
"baseName": "metadata",
"type": "{ [key: string]: string; }",
"format": ""
"type": "{ [key: string]: string; }"
},
{
"name": "projectID",
"baseName": "projectID",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "projects",
"baseName": "projects",
"type": "Array<string>",
"format": ""
"type": "Array<string>"
},
{
"name": "secretToken",
"baseName": "secretToken",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
},
{
"name": "webhook",
"baseName": "webhook",
"type": "IoArgoprojEventsV1alpha1WebhookContext",
"format": ""
"type": "IoArgoprojEventsV1alpha1WebhookContext"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1GitlabEventSource.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,11 +11,11 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1EventSourceFilter } from '../models/IoArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1WatchPathConfig } from '../models/IoArgoprojEventsV1alpha1WatchPathConfig';
import { IoK8sApiCoreV1ConfigMapKeySelector } from '../models/IoK8sApiCoreV1ConfigMapKeySelector';
import { IoK8sApiCoreV1SecretKeySelector } from '../models/IoK8sApiCoreV1SecretKeySelector';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1EventSourceFilter } from './ioArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1WatchPathConfig } from './ioArgoprojEventsV1alpha1WatchPathConfig';
import { IoK8sApiCoreV1ConfigMapKeySelector } from './ioK8sApiCoreV1ConfigMapKeySelector';
import { IoK8sApiCoreV1SecretKeySelector } from './ioK8sApiCoreV1SecretKeySelector';
export class IoArgoprojEventsV1alpha1HDFSEventSource {
'addresses'?: Array<string>;
@ -43,93 +44,77 @@ export class IoArgoprojEventsV1alpha1HDFSEventSource {
'type'?: string;
'watchPathConfig'?: IoArgoprojEventsV1alpha1WatchPathConfig;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "addresses",
"baseName": "addresses",
"type": "Array<string>",
"format": ""
"type": "Array<string>"
},
{
"name": "checkInterval",
"baseName": "checkInterval",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "filter",
"baseName": "filter",
"type": "IoArgoprojEventsV1alpha1EventSourceFilter",
"format": ""
"type": "IoArgoprojEventsV1alpha1EventSourceFilter"
},
{
"name": "hdfsUser",
"baseName": "hdfsUser",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "krbCCacheSecret",
"baseName": "krbCCacheSecret",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
},
{
"name": "krbConfigConfigMap",
"baseName": "krbConfigConfigMap",
"type": "IoK8sApiCoreV1ConfigMapKeySelector",
"format": ""
"type": "IoK8sApiCoreV1ConfigMapKeySelector"
},
{
"name": "krbKeytabSecret",
"baseName": "krbKeytabSecret",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
},
{
"name": "krbRealm",
"baseName": "krbRealm",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "krbServicePrincipalName",
"baseName": "krbServicePrincipalName",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "krbUsername",
"baseName": "krbUsername",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "metadata",
"baseName": "metadata",
"type": "{ [key: string]: string; }",
"format": ""
"type": "{ [key: string]: string; }"
},
{
"name": "type",
"baseName": "type",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "watchPathConfig",
"baseName": "watchPathConfig",
"type": "IoArgoprojEventsV1alpha1WatchPathConfig",
"format": ""
"type": "IoArgoprojEventsV1alpha1WatchPathConfig"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1HDFSEventSource.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,11 +11,11 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1BasicAuth } from '../models/IoArgoprojEventsV1alpha1BasicAuth';
import { IoArgoprojEventsV1alpha1SecureHeader } from '../models/IoArgoprojEventsV1alpha1SecureHeader';
import { IoArgoprojEventsV1alpha1TLSConfig } from '../models/IoArgoprojEventsV1alpha1TLSConfig';
import { IoArgoprojEventsV1alpha1TriggerParameter } from '../models/IoArgoprojEventsV1alpha1TriggerParameter';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1BasicAuth } from './ioArgoprojEventsV1alpha1BasicAuth';
import { IoArgoprojEventsV1alpha1SecureHeader } from './ioArgoprojEventsV1alpha1SecureHeader';
import { IoArgoprojEventsV1alpha1TLSConfig } from './ioArgoprojEventsV1alpha1TLSConfig';
import { IoArgoprojEventsV1alpha1TriggerParameter } from './ioArgoprojEventsV1alpha1TriggerParameter';
export class IoArgoprojEventsV1alpha1HTTPTrigger {
'basicAuth'?: IoArgoprojEventsV1alpha1BasicAuth;
@ -33,69 +34,57 @@ export class IoArgoprojEventsV1alpha1HTTPTrigger {
*/
'url'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "basicAuth",
"baseName": "basicAuth",
"type": "IoArgoprojEventsV1alpha1BasicAuth",
"format": ""
"type": "IoArgoprojEventsV1alpha1BasicAuth"
},
{
"name": "headers",
"baseName": "headers",
"type": "{ [key: string]: string; }",
"format": ""
"type": "{ [key: string]: string; }"
},
{
"name": "method",
"baseName": "method",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "parameters",
"baseName": "parameters",
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>",
"format": ""
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>"
},
{
"name": "payload",
"baseName": "payload",
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>",
"format": ""
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>"
},
{
"name": "secureHeaders",
"baseName": "secureHeaders",
"type": "Array<IoArgoprojEventsV1alpha1SecureHeader>",
"format": ""
"type": "Array<IoArgoprojEventsV1alpha1SecureHeader>"
},
{
"name": "timeout",
"baseName": "timeout",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "tls",
"baseName": "tls",
"type": "IoArgoprojEventsV1alpha1TLSConfig",
"format": ""
"type": "IoArgoprojEventsV1alpha1TLSConfig"
},
{
"name": "url",
"baseName": "url",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1HTTPTrigger.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,40 +11,34 @@
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
export class IoArgoprojEventsV1alpha1Int64OrString {
'int64Val'?: string;
'strVal'?: string;
'type'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "int64Val",
"baseName": "int64Val",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "strVal",
"baseName": "strVal",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1Int64OrString.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,41 +11,35 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1Backoff } from '../models/IoArgoprojEventsV1alpha1Backoff';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1Backoff } from './ioArgoprojEventsV1alpha1Backoff';
export class IoArgoprojEventsV1alpha1K8SResourcePolicy {
'backoff'?: IoArgoprojEventsV1alpha1Backoff;
'errorOnBackoffTimeout'?: boolean;
'labels'?: { [key: string]: string; };
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "backoff",
"baseName": "backoff",
"type": "IoArgoprojEventsV1alpha1Backoff",
"format": ""
"type": "IoArgoprojEventsV1alpha1Backoff"
},
{
"name": "errorOnBackoffTimeout",
"baseName": "errorOnBackoffTimeout",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "labels",
"baseName": "labels",
"type": "{ [key: string]: string; }",
"format": ""
"type": "{ [key: string]: string; }"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1K8SResourcePolicy.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,40 +11,34 @@
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
export class IoArgoprojEventsV1alpha1KafkaConsumerGroup {
'groupName'?: string;
'oldest'?: boolean;
'rebalanceStrategy'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "groupName",
"baseName": "groupName",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "oldest",
"baseName": "oldest",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "rebalanceStrategy",
"baseName": "rebalanceStrategy",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1KafkaConsumerGroup.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,12 +11,12 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1Backoff } from '../models/IoArgoprojEventsV1alpha1Backoff';
import { IoArgoprojEventsV1alpha1EventSourceFilter } from '../models/IoArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1KafkaConsumerGroup } from '../models/IoArgoprojEventsV1alpha1KafkaConsumerGroup';
import { IoArgoprojEventsV1alpha1SASLConfig } from '../models/IoArgoprojEventsV1alpha1SASLConfig';
import { IoArgoprojEventsV1alpha1TLSConfig } from '../models/IoArgoprojEventsV1alpha1TLSConfig';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1Backoff } from './ioArgoprojEventsV1alpha1Backoff';
import { IoArgoprojEventsV1alpha1EventSourceFilter } from './ioArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1KafkaConsumerGroup } from './ioArgoprojEventsV1alpha1KafkaConsumerGroup';
import { IoArgoprojEventsV1alpha1SASLConfig } from './ioArgoprojEventsV1alpha1SASLConfig';
import { IoArgoprojEventsV1alpha1TLSConfig } from './ioArgoprojEventsV1alpha1TLSConfig';
export class IoArgoprojEventsV1alpha1KafkaEventSource {
/**
@ -35,93 +36,77 @@ export class IoArgoprojEventsV1alpha1KafkaEventSource {
'url'?: string;
'version'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "config",
"baseName": "config",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "connectionBackoff",
"baseName": "connectionBackoff",
"type": "IoArgoprojEventsV1alpha1Backoff",
"format": ""
"type": "IoArgoprojEventsV1alpha1Backoff"
},
{
"name": "consumerGroup",
"baseName": "consumerGroup",
"type": "IoArgoprojEventsV1alpha1KafkaConsumerGroup",
"format": ""
"type": "IoArgoprojEventsV1alpha1KafkaConsumerGroup"
},
{
"name": "filter",
"baseName": "filter",
"type": "IoArgoprojEventsV1alpha1EventSourceFilter",
"format": ""
"type": "IoArgoprojEventsV1alpha1EventSourceFilter"
},
{
"name": "jsonBody",
"baseName": "jsonBody",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "limitEventsPerSecond",
"baseName": "limitEventsPerSecond",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "metadata",
"baseName": "metadata",
"type": "{ [key: string]: string; }",
"format": ""
"type": "{ [key: string]: string; }"
},
{
"name": "partition",
"baseName": "partition",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "sasl",
"baseName": "sasl",
"type": "IoArgoprojEventsV1alpha1SASLConfig",
"format": ""
"type": "IoArgoprojEventsV1alpha1SASLConfig"
},
{
"name": "tls",
"baseName": "tls",
"type": "IoArgoprojEventsV1alpha1TLSConfig",
"format": ""
"type": "IoArgoprojEventsV1alpha1TLSConfig"
},
{
"name": "topic",
"baseName": "topic",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "url",
"baseName": "url",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "version",
"baseName": "version",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1KafkaEventSource.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,10 +11,10 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1SASLConfig } from '../models/IoArgoprojEventsV1alpha1SASLConfig';
import { IoArgoprojEventsV1alpha1TLSConfig } from '../models/IoArgoprojEventsV1alpha1TLSConfig';
import { IoArgoprojEventsV1alpha1TriggerParameter } from '../models/IoArgoprojEventsV1alpha1TriggerParameter';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1SASLConfig } from './ioArgoprojEventsV1alpha1SASLConfig';
import { IoArgoprojEventsV1alpha1TLSConfig } from './ioArgoprojEventsV1alpha1TLSConfig';
import { IoArgoprojEventsV1alpha1TriggerParameter } from './ioArgoprojEventsV1alpha1TriggerParameter';
/**
* KafkaTrigger refers to the specification of the Kafka trigger.
@ -50,87 +51,72 @@ export class IoArgoprojEventsV1alpha1KafkaTrigger {
'url'?: string;
'version'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "compress",
"baseName": "compress",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "flushFrequency",
"baseName": "flushFrequency",
"type": "number",
"format": ""
"type": "number"
},
{
"name": "parameters",
"baseName": "parameters",
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>",
"format": ""
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>"
},
{
"name": "partition",
"baseName": "partition",
"type": "number",
"format": ""
"type": "number"
},
{
"name": "partitioningKey",
"baseName": "partitioningKey",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "payload",
"baseName": "payload",
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>",
"format": ""
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>"
},
{
"name": "requiredAcks",
"baseName": "requiredAcks",
"type": "number",
"format": ""
"type": "number"
},
{
"name": "sasl",
"baseName": "sasl",
"type": "IoArgoprojEventsV1alpha1SASLConfig",
"format": ""
"type": "IoArgoprojEventsV1alpha1SASLConfig"
},
{
"name": "tls",
"baseName": "tls",
"type": "IoArgoprojEventsV1alpha1TLSConfig",
"format": ""
"type": "IoArgoprojEventsV1alpha1TLSConfig"
},
{
"name": "topic",
"baseName": "topic",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "url",
"baseName": "url",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "version",
"baseName": "version",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1KafkaTrigger.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,26 +11,22 @@
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
export class IoArgoprojEventsV1alpha1LogTrigger {
'intervalSeconds'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "intervalSeconds",
"baseName": "intervalSeconds",
"type": "string",
"format": "uint64"
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1LogTrigger.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,10 +11,10 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1Backoff } from '../models/IoArgoprojEventsV1alpha1Backoff';
import { IoArgoprojEventsV1alpha1EventSourceFilter } from '../models/IoArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1TLSConfig } from '../models/IoArgoprojEventsV1alpha1TLSConfig';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1Backoff } from './ioArgoprojEventsV1alpha1Backoff';
import { IoArgoprojEventsV1alpha1EventSourceFilter } from './ioArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1TLSConfig } from './ioArgoprojEventsV1alpha1TLSConfig';
export class IoArgoprojEventsV1alpha1MQTTEventSource {
'clientId'?: string;
@ -25,63 +26,52 @@ export class IoArgoprojEventsV1alpha1MQTTEventSource {
'topic'?: string;
'url'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "clientId",
"baseName": "clientId",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "connectionBackoff",
"baseName": "connectionBackoff",
"type": "IoArgoprojEventsV1alpha1Backoff",
"format": ""
"type": "IoArgoprojEventsV1alpha1Backoff"
},
{
"name": "filter",
"baseName": "filter",
"type": "IoArgoprojEventsV1alpha1EventSourceFilter",
"format": ""
"type": "IoArgoprojEventsV1alpha1EventSourceFilter"
},
{
"name": "jsonBody",
"baseName": "jsonBody",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "metadata",
"baseName": "metadata",
"type": "{ [key: string]: string; }",
"format": ""
"type": "{ [key: string]: string; }"
},
{
"name": "tls",
"baseName": "tls",
"type": "IoArgoprojEventsV1alpha1TLSConfig",
"format": ""
"type": "IoArgoprojEventsV1alpha1TLSConfig"
},
{
"name": "topic",
"baseName": "topic",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "url",
"baseName": "url",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1MQTTEventSource.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,33 +11,28 @@
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
export class IoArgoprojEventsV1alpha1Metadata {
'annotations'?: { [key: string]: string; };
'labels'?: { [key: string]: string; };
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "annotations",
"baseName": "annotations",
"type": "{ [key: string]: string; }",
"format": ""
"type": "{ [key: string]: string; }"
},
{
"name": "labels",
"baseName": "labels",
"type": "{ [key: string]: string; }",
"format": ""
"type": "{ [key: string]: string; }"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1Metadata.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,9 +11,9 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1BasicAuth } from '../models/IoArgoprojEventsV1alpha1BasicAuth';
import { IoK8sApiCoreV1SecretKeySelector } from '../models/IoK8sApiCoreV1SecretKeySelector';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1BasicAuth } from './ioArgoprojEventsV1alpha1BasicAuth';
import { IoK8sApiCoreV1SecretKeySelector } from './ioK8sApiCoreV1SecretKeySelector';
export class IoArgoprojEventsV1alpha1NATSAuth {
'basic'?: IoArgoprojEventsV1alpha1BasicAuth;
@ -20,39 +21,32 @@ export class IoArgoprojEventsV1alpha1NATSAuth {
'nkey'?: IoK8sApiCoreV1SecretKeySelector;
'token'?: IoK8sApiCoreV1SecretKeySelector;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "basic",
"baseName": "basic",
"type": "IoArgoprojEventsV1alpha1BasicAuth",
"format": ""
"type": "IoArgoprojEventsV1alpha1BasicAuth"
},
{
"name": "credential",
"baseName": "credential",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
},
{
"name": "nkey",
"baseName": "nkey",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
},
{
"name": "token",
"baseName": "token",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1NATSAuth.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,11 +11,11 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1Backoff } from '../models/IoArgoprojEventsV1alpha1Backoff';
import { IoArgoprojEventsV1alpha1EventSourceFilter } from '../models/IoArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1NATSAuth } from '../models/IoArgoprojEventsV1alpha1NATSAuth';
import { IoArgoprojEventsV1alpha1TLSConfig } from '../models/IoArgoprojEventsV1alpha1TLSConfig';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1Backoff } from './ioArgoprojEventsV1alpha1Backoff';
import { IoArgoprojEventsV1alpha1EventSourceFilter } from './ioArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1NATSAuth } from './ioArgoprojEventsV1alpha1NATSAuth';
import { IoArgoprojEventsV1alpha1TLSConfig } from './ioArgoprojEventsV1alpha1TLSConfig';
export class IoArgoprojEventsV1alpha1NATSEventsSource {
'auth'?: IoArgoprojEventsV1alpha1NATSAuth;
@ -26,63 +27,52 @@ export class IoArgoprojEventsV1alpha1NATSEventsSource {
'tls'?: IoArgoprojEventsV1alpha1TLSConfig;
'url'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "auth",
"baseName": "auth",
"type": "IoArgoprojEventsV1alpha1NATSAuth",
"format": ""
"type": "IoArgoprojEventsV1alpha1NATSAuth"
},
{
"name": "connectionBackoff",
"baseName": "connectionBackoff",
"type": "IoArgoprojEventsV1alpha1Backoff",
"format": ""
"type": "IoArgoprojEventsV1alpha1Backoff"
},
{
"name": "filter",
"baseName": "filter",
"type": "IoArgoprojEventsV1alpha1EventSourceFilter",
"format": ""
"type": "IoArgoprojEventsV1alpha1EventSourceFilter"
},
{
"name": "jsonBody",
"baseName": "jsonBody",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "metadata",
"baseName": "metadata",
"type": "{ [key: string]: string; }",
"format": ""
"type": "{ [key: string]: string; }"
},
{
"name": "subject",
"baseName": "subject",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "tls",
"baseName": "tls",
"type": "IoArgoprojEventsV1alpha1TLSConfig",
"format": ""
"type": "IoArgoprojEventsV1alpha1TLSConfig"
},
{
"name": "url",
"baseName": "url",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1NATSEventsSource.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,9 +11,9 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1TLSConfig } from '../models/IoArgoprojEventsV1alpha1TLSConfig';
import { IoArgoprojEventsV1alpha1TriggerParameter } from '../models/IoArgoprojEventsV1alpha1TriggerParameter';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1TLSConfig } from './ioArgoprojEventsV1alpha1TLSConfig';
import { IoArgoprojEventsV1alpha1TriggerParameter } from './ioArgoprojEventsV1alpha1TriggerParameter';
/**
* NATSTrigger refers to the specification of the NATS trigger.
@ -30,45 +31,37 @@ export class IoArgoprojEventsV1alpha1NATSTrigger {
*/
'url'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "parameters",
"baseName": "parameters",
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>",
"format": ""
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>"
},
{
"name": "payload",
"baseName": "payload",
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>",
"format": ""
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>"
},
{
"name": "subject",
"baseName": "subject",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "tls",
"baseName": "tls",
"type": "IoArgoprojEventsV1alpha1TLSConfig",
"format": ""
"type": "IoArgoprojEventsV1alpha1TLSConfig"
},
{
"name": "url",
"baseName": "url",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1NATSTrigger.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,10 +11,10 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1Backoff } from '../models/IoArgoprojEventsV1alpha1Backoff';
import { IoArgoprojEventsV1alpha1EventSourceFilter } from '../models/IoArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1TLSConfig } from '../models/IoArgoprojEventsV1alpha1TLSConfig';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1Backoff } from './ioArgoprojEventsV1alpha1Backoff';
import { IoArgoprojEventsV1alpha1EventSourceFilter } from './ioArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1TLSConfig } from './ioArgoprojEventsV1alpha1TLSConfig';
export class IoArgoprojEventsV1alpha1NSQEventSource {
'channel'?: string;
@ -28,63 +29,52 @@ export class IoArgoprojEventsV1alpha1NSQEventSource {
*/
'topic'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "channel",
"baseName": "channel",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "connectionBackoff",
"baseName": "connectionBackoff",
"type": "IoArgoprojEventsV1alpha1Backoff",
"format": ""
"type": "IoArgoprojEventsV1alpha1Backoff"
},
{
"name": "filter",
"baseName": "filter",
"type": "IoArgoprojEventsV1alpha1EventSourceFilter",
"format": ""
"type": "IoArgoprojEventsV1alpha1EventSourceFilter"
},
{
"name": "hostAddress",
"baseName": "hostAddress",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "jsonBody",
"baseName": "jsonBody",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "metadata",
"baseName": "metadata",
"type": "{ [key: string]: string; }",
"format": ""
"type": "{ [key: string]: string; }"
},
{
"name": "tls",
"baseName": "tls",
"type": "IoArgoprojEventsV1alpha1TLSConfig",
"format": ""
"type": "IoArgoprojEventsV1alpha1TLSConfig"
},
{
"name": "topic",
"baseName": "topic",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1NSQEventSource.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,9 +11,9 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1TriggerParameter } from '../models/IoArgoprojEventsV1alpha1TriggerParameter';
import { IoK8sApiCoreV1SecretKeySelector } from '../models/IoK8sApiCoreV1SecretKeySelector';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1TriggerParameter } from './ioArgoprojEventsV1alpha1TriggerParameter';
import { IoK8sApiCoreV1SecretKeySelector } from './ioK8sApiCoreV1SecretKeySelector';
/**
* OpenWhiskTrigger refers to the specification of the OpenWhisk trigger.
@ -38,57 +39,47 @@ export class IoArgoprojEventsV1alpha1OpenWhiskTrigger {
'payload'?: Array<IoArgoprojEventsV1alpha1TriggerParameter>;
'version'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "actionName",
"baseName": "actionName",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "authToken",
"baseName": "authToken",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
},
{
"name": "host",
"baseName": "host",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "namespace",
"baseName": "namespace",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "parameters",
"baseName": "parameters",
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>",
"format": ""
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>"
},
{
"name": "payload",
"baseName": "payload",
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>",
"format": ""
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>"
},
{
"name": "version",
"baseName": "version",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1OpenWhiskTrigger.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,33 +11,28 @@
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
export class IoArgoprojEventsV1alpha1OwnedRepositories {
'names'?: Array<string>;
'owner'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "names",
"baseName": "names",
"type": "Array<string>",
"format": ""
"type": "Array<string>"
},
{
"name": "owner",
"baseName": "owner",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1OwnedRepositories.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,7 +11,7 @@
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
/**
* PayloadField binds a value at path within the event payload against a name.
@ -25,27 +26,22 @@ export class IoArgoprojEventsV1alpha1PayloadField {
*/
'path'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "name",
"baseName": "name",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "path",
"baseName": "path",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1PayloadField.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,9 +11,9 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1EventSourceFilter } from '../models/IoArgoprojEventsV1alpha1EventSourceFilter';
import { IoK8sApiCoreV1SecretKeySelector } from '../models/IoK8sApiCoreV1SecretKeySelector';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1EventSourceFilter } from './ioArgoprojEventsV1alpha1EventSourceFilter';
import { IoK8sApiCoreV1SecretKeySelector } from './ioK8sApiCoreV1SecretKeySelector';
/**
* PubSubEventSource refers to event-source for GCP PubSub related events.
@ -28,69 +29,57 @@ export class IoArgoprojEventsV1alpha1PubSubEventSource {
'topic'?: string;
'topicProjectID'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "credentialSecret",
"baseName": "credentialSecret",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
},
{
"name": "deleteSubscriptionOnFinish",
"baseName": "deleteSubscriptionOnFinish",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "filter",
"baseName": "filter",
"type": "IoArgoprojEventsV1alpha1EventSourceFilter",
"format": ""
"type": "IoArgoprojEventsV1alpha1EventSourceFilter"
},
{
"name": "jsonBody",
"baseName": "jsonBody",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "metadata",
"baseName": "metadata",
"type": "{ [key: string]: string; }",
"format": ""
"type": "{ [key: string]: string; }"
},
{
"name": "projectID",
"baseName": "projectID",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "subscriptionID",
"baseName": "subscriptionID",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "topic",
"baseName": "topic",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "topicProjectID",
"baseName": "topicProjectID",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1PubSubEventSource.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,11 +11,11 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1Backoff } from '../models/IoArgoprojEventsV1alpha1Backoff';
import { IoArgoprojEventsV1alpha1EventSourceFilter } from '../models/IoArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1TLSConfig } from '../models/IoArgoprojEventsV1alpha1TLSConfig';
import { IoK8sApiCoreV1SecretKeySelector } from '../models/IoK8sApiCoreV1SecretKeySelector';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1Backoff } from './ioArgoprojEventsV1alpha1Backoff';
import { IoArgoprojEventsV1alpha1EventSourceFilter } from './ioArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1TLSConfig } from './ioArgoprojEventsV1alpha1TLSConfig';
import { IoK8sApiCoreV1SecretKeySelector } from './ioK8sApiCoreV1SecretKeySelector';
export class IoArgoprojEventsV1alpha1PulsarEventSource {
'authTokenSecret'?: IoK8sApiCoreV1SecretKeySelector;
@ -30,87 +31,72 @@ export class IoArgoprojEventsV1alpha1PulsarEventSource {
'type'?: string;
'url'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "authTokenSecret",
"baseName": "authTokenSecret",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
},
{
"name": "connectionBackoff",
"baseName": "connectionBackoff",
"type": "IoArgoprojEventsV1alpha1Backoff",
"format": ""
"type": "IoArgoprojEventsV1alpha1Backoff"
},
{
"name": "filter",
"baseName": "filter",
"type": "IoArgoprojEventsV1alpha1EventSourceFilter",
"format": ""
"type": "IoArgoprojEventsV1alpha1EventSourceFilter"
},
{
"name": "jsonBody",
"baseName": "jsonBody",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "metadata",
"baseName": "metadata",
"type": "{ [key: string]: string; }",
"format": ""
"type": "{ [key: string]: string; }"
},
{
"name": "tls",
"baseName": "tls",
"type": "IoArgoprojEventsV1alpha1TLSConfig",
"format": ""
"type": "IoArgoprojEventsV1alpha1TLSConfig"
},
{
"name": "tlsAllowInsecureConnection",
"baseName": "tlsAllowInsecureConnection",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "tlsTrustCertsSecret",
"baseName": "tlsTrustCertsSecret",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
},
{
"name": "tlsValidateHostname",
"baseName": "tlsValidateHostname",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "topics",
"baseName": "topics",
"type": "Array<string>",
"format": ""
"type": "Array<string>"
},
{
"name": "type",
"baseName": "type",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "url",
"baseName": "url",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1PulsarEventSource.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,11 +11,11 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1Backoff } from '../models/IoArgoprojEventsV1alpha1Backoff';
import { IoArgoprojEventsV1alpha1TLSConfig } from '../models/IoArgoprojEventsV1alpha1TLSConfig';
import { IoArgoprojEventsV1alpha1TriggerParameter } from '../models/IoArgoprojEventsV1alpha1TriggerParameter';
import { IoK8sApiCoreV1SecretKeySelector } from '../models/IoK8sApiCoreV1SecretKeySelector';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1Backoff } from './ioArgoprojEventsV1alpha1Backoff';
import { IoArgoprojEventsV1alpha1TLSConfig } from './ioArgoprojEventsV1alpha1TLSConfig';
import { IoArgoprojEventsV1alpha1TriggerParameter } from './ioArgoprojEventsV1alpha1TriggerParameter';
import { IoK8sApiCoreV1SecretKeySelector } from './ioK8sApiCoreV1SecretKeySelector';
/**
* PulsarTrigger refers to the specification of the Pulsar trigger.
@ -37,75 +38,62 @@ export class IoArgoprojEventsV1alpha1PulsarTrigger {
'topic'?: string;
'url'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "authTokenSecret",
"baseName": "authTokenSecret",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
},
{
"name": "connectionBackoff",
"baseName": "connectionBackoff",
"type": "IoArgoprojEventsV1alpha1Backoff",
"format": ""
"type": "IoArgoprojEventsV1alpha1Backoff"
},
{
"name": "parameters",
"baseName": "parameters",
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>",
"format": ""
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>"
},
{
"name": "payload",
"baseName": "payload",
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>",
"format": ""
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>"
},
{
"name": "tls",
"baseName": "tls",
"type": "IoArgoprojEventsV1alpha1TLSConfig",
"format": ""
"type": "IoArgoprojEventsV1alpha1TLSConfig"
},
{
"name": "tlsAllowInsecureConnection",
"baseName": "tlsAllowInsecureConnection",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "tlsTrustCertsSecret",
"baseName": "tlsTrustCertsSecret",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
},
{
"name": "tlsValidateHostname",
"baseName": "tlsValidateHostname",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "topic",
"baseName": "topic",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "url",
"baseName": "url",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1PulsarTrigger.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,33 +11,28 @@
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
export class IoArgoprojEventsV1alpha1RateLimit {
'requestsPerUnit'?: number;
'unit'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "requestsPerUnit",
"baseName": "requestsPerUnit",
"type": "number",
"format": ""
"type": "number"
},
{
"name": "unit",
"baseName": "unit",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1RateLimit.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,10 +11,10 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1EventSourceFilter } from '../models/IoArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1TLSConfig } from '../models/IoArgoprojEventsV1alpha1TLSConfig';
import { IoK8sApiCoreV1SecretKeySelector } from '../models/IoK8sApiCoreV1SecretKeySelector';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1EventSourceFilter } from './ioArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1TLSConfig } from './ioArgoprojEventsV1alpha1TLSConfig';
import { IoK8sApiCoreV1SecretKeySelector } from './ioK8sApiCoreV1SecretKeySelector';
export class IoArgoprojEventsV1alpha1RedisEventSource {
'channels'?: Array<string>;
@ -27,75 +28,62 @@ export class IoArgoprojEventsV1alpha1RedisEventSource {
'tls'?: IoArgoprojEventsV1alpha1TLSConfig;
'username'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "channels",
"baseName": "channels",
"type": "Array<string>",
"format": ""
"type": "Array<string>"
},
{
"name": "db",
"baseName": "db",
"type": "number",
"format": ""
"type": "number"
},
{
"name": "filter",
"baseName": "filter",
"type": "IoArgoprojEventsV1alpha1EventSourceFilter",
"format": ""
"type": "IoArgoprojEventsV1alpha1EventSourceFilter"
},
{
"name": "hostAddress",
"baseName": "hostAddress",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "jsonBody",
"baseName": "jsonBody",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "metadata",
"baseName": "metadata",
"type": "{ [key: string]: string; }",
"format": ""
"type": "{ [key: string]: string; }"
},
{
"name": "namespace",
"baseName": "namespace",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "password",
"baseName": "password",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
},
{
"name": "tls",
"baseName": "tls",
"type": "IoArgoprojEventsV1alpha1TLSConfig",
"format": ""
"type": "IoArgoprojEventsV1alpha1TLSConfig"
},
{
"name": "username",
"baseName": "username",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1RedisEventSource.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,10 +11,10 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1EventSourceFilter } from '../models/IoArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1TLSConfig } from '../models/IoArgoprojEventsV1alpha1TLSConfig';
import { IoK8sApiCoreV1SecretKeySelector } from '../models/IoK8sApiCoreV1SecretKeySelector';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1EventSourceFilter } from './ioArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1TLSConfig } from './ioArgoprojEventsV1alpha1TLSConfig';
import { IoK8sApiCoreV1SecretKeySelector } from './ioK8sApiCoreV1SecretKeySelector';
export class IoArgoprojEventsV1alpha1RedisStreamEventSource {
'consumerGroup'?: string;
@ -30,75 +31,62 @@ export class IoArgoprojEventsV1alpha1RedisStreamEventSource {
'tls'?: IoArgoprojEventsV1alpha1TLSConfig;
'username'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "consumerGroup",
"baseName": "consumerGroup",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "db",
"baseName": "db",
"type": "number",
"format": ""
"type": "number"
},
{
"name": "filter",
"baseName": "filter",
"type": "IoArgoprojEventsV1alpha1EventSourceFilter",
"format": ""
"type": "IoArgoprojEventsV1alpha1EventSourceFilter"
},
{
"name": "hostAddress",
"baseName": "hostAddress",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "maxMsgCountPerRead",
"baseName": "maxMsgCountPerRead",
"type": "number",
"format": ""
"type": "number"
},
{
"name": "metadata",
"baseName": "metadata",
"type": "{ [key: string]: string; }",
"format": ""
"type": "{ [key: string]: string; }"
},
{
"name": "password",
"baseName": "password",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
},
{
"name": "streams",
"baseName": "streams",
"type": "Array<string>",
"format": ""
"type": "Array<string>"
},
{
"name": "tls",
"baseName": "tls",
"type": "IoArgoprojEventsV1alpha1TLSConfig",
"format": ""
"type": "IoArgoprojEventsV1alpha1TLSConfig"
},
{
"name": "username",
"baseName": "username",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1RedisStreamEventSource.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,7 +11,7 @@
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
/**
* Resource represent arbitrary structured data.
@ -18,21 +19,17 @@ import { HttpFile } from '../http/http';
export class IoArgoprojEventsV1alpha1Resource {
'value'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "value",
"baseName": "value",
"type": "string",
"format": "byte"
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1Resource.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,9 +11,9 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1ResourceFilter } from '../models/IoArgoprojEventsV1alpha1ResourceFilter';
import { IoK8sApimachineryPkgApisMetaV1GroupVersionResource } from '../models/IoK8sApimachineryPkgApisMetaV1GroupVersionResource';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1ResourceFilter } from './ioArgoprojEventsV1alpha1ResourceFilter';
import { IoK8sApimachineryPkgApisMetaV1GroupVersionResource } from './ioK8sApimachineryPkgApisMetaV1GroupVersionResource';
/**
* ResourceEventSource refers to a event-source for K8s resource related events.
@ -27,45 +28,37 @@ export class IoArgoprojEventsV1alpha1ResourceEventSource {
'metadata'?: { [key: string]: string; };
'namespace'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "eventTypes",
"baseName": "eventTypes",
"type": "Array<string>",
"format": ""
"type": "Array<string>"
},
{
"name": "filter",
"baseName": "filter",
"type": "IoArgoprojEventsV1alpha1ResourceFilter",
"format": ""
"type": "IoArgoprojEventsV1alpha1ResourceFilter"
},
{
"name": "groupVersionResource",
"baseName": "groupVersionResource",
"type": "IoK8sApimachineryPkgApisMetaV1GroupVersionResource",
"format": ""
"type": "IoK8sApimachineryPkgApisMetaV1GroupVersionResource"
},
{
"name": "metadata",
"baseName": "metadata",
"type": "{ [key: string]: string; }",
"format": ""
"type": "{ [key: string]: string; }"
},
{
"name": "namespace",
"baseName": "namespace",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1ResourceEventSource.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,8 +11,8 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1Selector } from '../models/IoArgoprojEventsV1alpha1Selector';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1Selector } from './ioArgoprojEventsV1alpha1Selector';
export class IoArgoprojEventsV1alpha1ResourceFilter {
'afterStart'?: boolean;
@ -23,45 +24,37 @@ export class IoArgoprojEventsV1alpha1ResourceFilter {
'labels'?: Array<IoArgoprojEventsV1alpha1Selector>;
'prefix'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "afterStart",
"baseName": "afterStart",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "createdBy",
"baseName": "createdBy",
"type": "Date",
"format": "date-time"
"type": "Date"
},
{
"name": "fields",
"baseName": "fields",
"type": "Array<IoArgoprojEventsV1alpha1Selector>",
"format": ""
"type": "Array<IoArgoprojEventsV1alpha1Selector>"
},
{
"name": "labels",
"baseName": "labels",
"type": "Array<IoArgoprojEventsV1alpha1Selector>",
"format": ""
"type": "Array<IoArgoprojEventsV1alpha1Selector>"
},
{
"name": "prefix",
"baseName": "prefix",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1ResourceFilter.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,10 +11,10 @@
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1S3Bucket } from '../models/IoArgoprojEventsV1alpha1S3Bucket';
import { IoArgoprojEventsV1alpha1S3Filter } from '../models/IoArgoprojEventsV1alpha1S3Filter';
import { IoK8sApiCoreV1SecretKeySelector } from '../models/IoK8sApiCoreV1SecretKeySelector';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoArgoprojEventsV1alpha1S3Bucket } from './ioArgoprojEventsV1alpha1S3Bucket';
import { IoArgoprojEventsV1alpha1S3Filter } from './ioArgoprojEventsV1alpha1S3Filter';
import { IoK8sApiCoreV1SecretKeySelector } from './ioK8sApiCoreV1SecretKeySelector';
export class IoArgoprojEventsV1alpha1S3Artifact {
'accessKey'?: IoK8sApiCoreV1SecretKeySelector;
@ -26,69 +27,57 @@ export class IoArgoprojEventsV1alpha1S3Artifact {
'region'?: string;
'secretKey'?: IoK8sApiCoreV1SecretKeySelector;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "accessKey",
"baseName": "accessKey",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
},
{
"name": "bucket",
"baseName": "bucket",
"type": "IoArgoprojEventsV1alpha1S3Bucket",
"format": ""
"type": "IoArgoprojEventsV1alpha1S3Bucket"
},
{
"name": "endpoint",
"baseName": "endpoint",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "events",
"baseName": "events",
"type": "Array<string>",
"format": ""
"type": "Array<string>"
},
{
"name": "filter",
"baseName": "filter",
"type": "IoArgoprojEventsV1alpha1S3Filter",
"format": ""
"type": "IoArgoprojEventsV1alpha1S3Filter"
},
{
"name": "insecure",
"baseName": "insecure",
"type": "boolean",
"format": ""
"type": "boolean"
},
{
"name": "metadata",
"baseName": "metadata",
"type": "{ [key: string]: string; }",
"format": ""
"type": "{ [key: string]: string; }"
},
{
"name": "region",
"baseName": "region",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "secretKey",
"baseName": "secretKey",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1S3Artifact.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,33 +11,28 @@
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
export class IoArgoprojEventsV1alpha1S3Bucket {
'key'?: string;
'name'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "key",
"baseName": "key",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "name",
"baseName": "name",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1S3Bucket.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,33 +11,28 @@
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
export class IoArgoprojEventsV1alpha1S3Filter {
'prefix'?: string;
'suffix'?: string;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "prefix",
"baseName": "prefix",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "suffix",
"baseName": "suffix",
"type": "string",
"format": ""
"type": "string"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1S3Filter.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -1,8 +1,9 @@
// @ts-nocheck
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
* The version of the OpenAPI document: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -10,41 +11,35 @@
* Do not edit the class manually.
*/
import { IoK8sApiCoreV1SecretKeySelector } from '../models/IoK8sApiCoreV1SecretKeySelector';
import { HttpFile } from '../http/http';
import { RequestFile } from './models';
import { IoK8sApiCoreV1SecretKeySelector } from './ioK8sApiCoreV1SecretKeySelector';
export class IoArgoprojEventsV1alpha1SASLConfig {
'mechanism'?: string;
'password'?: IoK8sApiCoreV1SecretKeySelector;
'user'?: IoK8sApiCoreV1SecretKeySelector;
static readonly discriminator: string | undefined = undefined;
static discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "mechanism",
"baseName": "mechanism",
"type": "string",
"format": ""
"type": "string"
},
{
"name": "password",
"baseName": "password",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
},
{
"name": "user",
"baseName": "user",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
"type": "IoK8sApiCoreV1SecretKeySelector"
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1SASLConfig.attributeTypeMap;
}
public constructor() {
}
}

Some files were not shown because too many files have changed in this diff Show more