+ );
+};
diff --git a/plugins/apache-spark/src/components/Overview/Overview.tsx b/plugins/apache-spark/src/components/Overview/Overview.tsx
new file mode 100644
index 0000000..92d87f2
--- /dev/null
+++ b/plugins/apache-spark/src/components/Overview/Overview.tsx
@@ -0,0 +1,14 @@
+import { Content, Header, HeaderLabel, Page } from '@backstage/core-components';
+import { ApacheSparkOverviewTable } from '../ApacheSparkOverviewTable/ApacheSparkOverviewTable';
+import React from 'react';
+
+export const ApacheSparkOverviewPage = () => (
+
+
+
+
+
+
+
+
+);
diff --git a/plugins/apache-spark/src/components/Overview/index.ts b/plugins/apache-spark/src/components/Overview/index.ts
new file mode 100644
index 0000000..64d1896
--- /dev/null
+++ b/plugins/apache-spark/src/components/Overview/index.ts
@@ -0,0 +1 @@
+export * from './Overview';
diff --git a/plugins/apache-spark/src/components/utils.ts b/plugins/apache-spark/src/components/utils.ts
new file mode 100644
index 0000000..6e551f3
--- /dev/null
+++ b/plugins/apache-spark/src/components/utils.ts
@@ -0,0 +1,26 @@
+import {Entity} from '@backstage/catalog-model';
+import {
+ APACHE_SPARK_LABEL_SELECTOR_ANNOTATION,
+ CLUSTER_NAME_ANNOTATION,
+ K8S_NAMESPACE_ANNOTATION,
+} from '../consts';
+
+export type getAnnotationValuesOutput = {
+ ns: string;
+ clusterName?: string;
+ labelSelector?: string;
+};
+
+export function getAnnotationValues(entity: Entity): getAnnotationValuesOutput {
+ const ns =
+ entity.metadata.annotations?.[K8S_NAMESPACE_ANNOTATION] !== undefined
+ ? entity.metadata.annotations?.[K8S_NAMESPACE_ANNOTATION]
+ : 'default';
+ const clusterName = entity.metadata.annotations?.[CLUSTER_NAME_ANNOTATION];
+ const labelSelector = entity.metadata?.annotations?.[APACHE_SPARK_LABEL_SELECTOR_ANNOTATION]
+ return {
+ ns: ns,
+ clusterName: clusterName,
+ labelSelector: labelSelector,
+ };
+}
diff --git a/plugins/apache-spark/src/consts.ts b/plugins/apache-spark/src/consts.ts
new file mode 100644
index 0000000..dd62b72
--- /dev/null
+++ b/plugins/apache-spark/src/consts.ts
@@ -0,0 +1,4 @@
+export const APACHE_SPARK_LABEL_SELECTOR_ANNOTATION =
+ 'apache-spark.cnoe.io/label-selector';
+export const CLUSTER_NAME_ANNOTATION = 'apache-spark.cnoe.io/cluster-name';
+export const K8S_NAMESPACE_ANNOTATION = 'backstage.io/kubernetes-namespace';
diff --git a/plugins/apache-spark/src/index.ts b/plugins/apache-spark/src/index.ts
new file mode 100644
index 0000000..b9bdd3a
--- /dev/null
+++ b/plugins/apache-spark/src/index.ts
@@ -0,0 +1 @@
+export {apacheSparkPlugin, ApacheSparkPage, isApacheSparkAvailable} from './plugin';
diff --git a/plugins/apache-spark/src/plugin.test.ts b/plugins/apache-spark/src/plugin.test.ts
new file mode 100644
index 0000000..adf309a
--- /dev/null
+++ b/plugins/apache-spark/src/plugin.test.ts
@@ -0,0 +1,7 @@
+// import { apacheSparkPlugin } from './plugin';
+//
+// describe('apache-spark', () => {
+// it('should export plugin', () => {
+// expect(apacheSparkPlugin).toBeDefined();
+// });
+// });
diff --git a/plugins/apache-spark/src/plugin.ts b/plugins/apache-spark/src/plugin.ts
new file mode 100644
index 0000000..a241b70
--- /dev/null
+++ b/plugins/apache-spark/src/plugin.ts
@@ -0,0 +1,42 @@
+import {
+ createApiFactory,
+ createPlugin,
+ createRoutableExtension,
+} from '@backstage/core-plugin-api';
+
+import {rootRouteRef} from './routes';
+import {apacheSparkApiRef, ApacheSparkClient} from './api';
+import {kubernetesApiRef} from '@backstage/plugin-kubernetes';
+import {Entity} from '@backstage/catalog-model';
+
+import {
+ APACHE_SPARK_LABEL_SELECTOR_ANNOTATION,
+} from './consts';
+
+export const isApacheSparkAvailable = (entity: Entity) =>
+ Boolean(entity.metadata.annotations?.[APACHE_SPARK_LABEL_SELECTOR_ANNOTATION]);
+
+export const apacheSparkPlugin = createPlugin({
+ id: 'apache-spark',
+ routes: {
+ root: rootRouteRef,
+ },
+ apis: [
+ createApiFactory({
+ api: apacheSparkApiRef,
+ deps: {
+ kubernetesApi: kubernetesApiRef,
+ },
+ factory: ({kubernetesApi}) => new ApacheSparkClient(kubernetesApi),
+ }),
+ ],
+});
+
+export const ApacheSparkPage = apacheSparkPlugin.provide(
+ createRoutableExtension({
+ name: 'ApacheSparkPage',
+ component: () =>
+ import('./components/Overview').then(m => m.ApacheSparkOverviewPage),
+ mountPoint: rootRouteRef,
+ }),
+);
diff --git a/plugins/apache-spark/src/routes.ts b/plugins/apache-spark/src/routes.ts
new file mode 100644
index 0000000..f2230a1
--- /dev/null
+++ b/plugins/apache-spark/src/routes.ts
@@ -0,0 +1,5 @@
+import { createRouteRef } from '@backstage/core-plugin-api';
+
+export const rootRouteRef = createRouteRef({
+ id: 'apache-spark',
+});
diff --git a/plugins/apache-spark/src/setupTests.ts b/plugins/apache-spark/src/setupTests.ts
new file mode 100644
index 0000000..48c09b5
--- /dev/null
+++ b/plugins/apache-spark/src/setupTests.ts
@@ -0,0 +1,2 @@
+import '@testing-library/jest-dom';
+import 'cross-fetch/polyfill';
diff --git a/plugins/argo-workflows/.eslintrc.js b/plugins/argo-workflows/.eslintrc.js
new file mode 100644
index 0000000..e2a53a6
--- /dev/null
+++ b/plugins/argo-workflows/.eslintrc.js
@@ -0,0 +1 @@
+module.exports = require('@backstage/cli/config/eslint-factory')(__dirname);
diff --git a/plugins/argo-workflows/README.md b/plugins/argo-workflows/README.md
new file mode 100644
index 0000000..e155d71
--- /dev/null
+++ b/plugins/argo-workflows/README.md
@@ -0,0 +1,13 @@
+# argo-workflows
+
+Welcome to the argo-workflows plugin!
+
+_This plugin was created through the Backstage CLI_
+
+## Getting started
+
+Your plugin has been added to the example app in this repository, meaning you'll be able to access it by running `yarn start` in the root directory, and then navigating to [/argo-workflows](http://localhost:3000/argo-workflows).
+
+You can also serve the plugin in isolation by running `yarn start` in the plugin directory.
+This method of serving the plugin provides quicker iteration speed and a faster startup and hot reloads.
+It is only meant for local development, and the setup for it can be found inside the [/dev](./dev) directory.
diff --git a/plugins/argo-workflows/config.d.ts b/plugins/argo-workflows/config.d.ts
new file mode 100644
index 0000000..02b3081
--- /dev/null
+++ b/plugins/argo-workflows/config.d.ts
@@ -0,0 +1,12 @@
+export interface Config {
+ /** Optional configurations for the Argo Workflows plugin
+ * @visibility frontend
+ */
+ argoWorkflows?: {
+ /**
+ * The base url of the Argo Workflows installation.
+ * @visibility frontend
+ */
+ baseUrl: string;
+ };
+}
diff --git a/plugins/argo-workflows/dev/index.tsx b/plugins/argo-workflows/dev/index.tsx
new file mode 100644
index 0000000..712176c
--- /dev/null
+++ b/plugins/argo-workflows/dev/index.tsx
@@ -0,0 +1,12 @@
+import React from 'react';
+import { createDevApp } from '@backstage/dev-utils';
+import { argoWorkflowsPlugin, ArgoWorkflowsPage } from '../src/plugin';
+
+createDevApp()
+ .registerPlugin(argoWorkflowsPlugin)
+ .addPage({
+ element: ,
+ title: 'Root Page',
+ path: '/argo-workflows'
+ })
+ .render();
diff --git a/plugins/argo-workflows/package.json b/plugins/argo-workflows/package.json
new file mode 100644
index 0000000..55dbffd
--- /dev/null
+++ b/plugins/argo-workflows/package.json
@@ -0,0 +1,53 @@
+{
+ "name": "@internal/plugin-argo-workflows",
+ "version": "0.1.0",
+ "main": "src/index.ts",
+ "types": "src/index.ts",
+ "license": "Apache-2.0",
+ "private": true,
+ "publishConfig": {
+ "access": "public",
+ "main": "dist/index.esm.js",
+ "types": "dist/index.d.ts"
+ },
+ "backstage": {
+ "role": "frontend-plugin"
+ },
+ "sideEffects": false,
+ "scripts": {
+ "start": "backstage-cli package start",
+ "build": "backstage-cli package build",
+ "lint": "backstage-cli package lint",
+ "test": "backstage-cli package test",
+ "clean": "backstage-cli package clean",
+ "prepack": "backstage-cli package prepack",
+ "postpack": "backstage-cli package postpack"
+ },
+ "dependencies": {
+ "@backstage/core-components": "^0.13.8",
+ "@backstage/core-plugin-api": "^1.8.2",
+ "@backstage/theme": "^0.5.0",
+ "@material-ui/core": "^4.9.13",
+ "@material-ui/icons": "^4.9.1",
+ "@material-ui/lab": "^4.0.0-alpha.61",
+ "react-use": "^17.2.4"
+ },
+ "peerDependencies": {
+ "react": "^16.13.1 || ^17.0.0"
+ },
+ "devDependencies": {
+ "@backstage/cli": "^0.25.1",
+ "@backstage/core-app-api": "^1.11.3",
+ "@backstage/dev-utils": "^1.0.26",
+ "@backstage/test-utils": "^1.4.7",
+ "@testing-library/jest-dom": "^5.10.1",
+ "@testing-library/react": "^12.1.3",
+ "@testing-library/user-event": "^14.0.0",
+ "msw": "^1.0.0"
+ },
+ "files": [
+ "dist",
+ "config.d.ts"
+ ],
+ "configSchema": "config.d.ts"
+}
diff --git a/plugins/argo-workflows/src/api/ArgoWorkflows.test.ts b/plugins/argo-workflows/src/api/ArgoWorkflows.test.ts
new file mode 100644
index 0000000..bc7d6fa
--- /dev/null
+++ b/plugins/argo-workflows/src/api/ArgoWorkflows.test.ts
@@ -0,0 +1,116 @@
+// import { DiscoveryApi } from "@backstage/core-plugin-api";
+// import { ArgoWorkflows } from "./ArgoWorkflows";
+// import { KubernetesApi } from "@backstage/plugin-kubernetes";
+// import { MockFetchApi } from "@backstage/test-utils";
+// import { FrontendHostDiscovery } from "@backstage/core-app-api";
+// import { UserIdentity } from "@backstage/core-components";
+// import { inProgress } from "../test-data/testResponse";
+//
+// describe("ArgoWorkflowsClient", () => {
+// const mockDiscoveryApi: jest.Mocked = {
+// getBaseUrl: jest.fn().mockImplementation((id) => {
+// return Promise.resolve(`https://backstage.io/${id}`);
+// }),
+// };
+// const noopFetchApi = new MockFetchApi({ baseImplementation: "none" });
+//
+// const mockKClient: jest.Mocked = {
+// getObjectsByEntity: jest.fn(),
+// getClusters: jest.fn(),
+// getWorkloadsByEntity: jest.fn(),
+// getCustomObjectsByEntity: jest.fn(),
+// proxy: jest.fn(),
+// };
+//
+// beforeAll(() => {
+// jest
+// .spyOn(FrontendHostDiscovery.prototype, "getBaseUrl")
+// .mockImplementation((id) => {
+// return Promise.resolve(`https://backstage.io/${id}`);
+// });
+// jest
+// .spyOn(UserIdentity.prototype, "getCredentials")
+// .mockImplementation(() => {
+// return Promise.resolve({ token: "abc" });
+// });
+// });
+//
+// afterEach(() => {
+// jest.clearAllMocks();
+// });
+//
+// it("can fetch from k8s", async () => {
+// mockKClient.proxy.mockResolvedValue({
+// status: 200,
+// ok: true,
+// text: async () => JSON.stringify(inProgress),
+// } as Response);
+//
+// const a = new ArgoWorkflows(mockDiscoveryApi, mockKClient, noopFetchApi);
+// const spy = jest.spyOn(mockKClient, "proxy");
+// const resp = await a.getWorkflowsFromK8s("abc", "default", "my=env");
+// expect(resp.items.length).toBe(1);
+// expect(spy).toHaveBeenCalledWith({
+// clusterName: "abc",
+// path: "/apis/argoproj.io/v1alpha1/namespaces/default/workflows?timeoutSeconds=30&labelSelector=my%3Denv",
+// });
+// });
+// it("can fetch from default k8s cluster", async () => {
+// mockKClient.proxy.mockResolvedValue({
+// status: 200,
+// ok: true,
+// text: async () => JSON.stringify(inProgress),
+// } as Response);
+// mockKClient.getClusters.mockResolvedValue([
+// {
+// name: "cluster-1",
+// authProvider: "provider-1",
+// },
+// ]);
+//
+// const a = new ArgoWorkflows(mockDiscoveryApi, mockKClient, noopFetchApi);
+// const spy = jest.spyOn(a, "getFirstCluster");
+// const resp = await a.getWorkflowsFromK8s(undefined, "default", "my=env");
+// expect(resp.items.length).toBe(1);
+// expect(spy).toHaveBeenCalled();
+// });
+// it("rejects when non-ok status returned", async () => {
+// mockKClient.proxy.mockResolvedValue({
+// status: 500,
+// ok: false,
+// statusText: "something went wrong",
+// text: async () => "oh no",
+// } as Response);
+//
+// const a = new ArgoWorkflows(mockDiscoveryApi, mockKClient, noopFetchApi);
+// await expect(
+// a.getWorkflowsFromK8s("abc", "default", "not used")
+// ).rejects.toEqual(
+// "failed to fetch resources: 500, something went wrong, oh no"
+// );
+// });
+// it("can get workflow from proxy", async () => {
+// const impl = jest.fn().mockResolvedValue({
+// status: 200,
+// ok: true,
+// text: async () => JSON.stringify(inProgress),
+// });
+// const fetchApi = new MockFetchApi({ baseImplementation: impl });
+// const a = new ArgoWorkflows(mockDiscoveryApi, mockKClient, fetchApi);
+// const resp = await a.getWorkflowsFromProxy("default", "my=env");
+// expect(resp.items.length).toBe(1);
+// });
+// it("rejects when error is returned", async () => {
+// const impl = jest.fn().mockResolvedValue({
+// status: 500,
+// ok: false,
+// statusText: "something went wrong",
+// text: async () => "oh no",
+// });
+// const fetchApi = new MockFetchApi({ baseImplementation: impl });
+// const a = new ArgoWorkflows(mockDiscoveryApi, mockKClient, fetchApi);
+// await expect(a.getWorkflowsFromProxy("default", "my=env")).rejects.toEqual(
+// "failed to fetch resources: 500, something went wrong, oh no"
+// );
+// });
+// });
diff --git a/plugins/argo-workflows/src/api/ArgoWorkflows.ts b/plugins/argo-workflows/src/api/ArgoWorkflows.ts
new file mode 100644
index 0000000..deb8961
--- /dev/null
+++ b/plugins/argo-workflows/src/api/ArgoWorkflows.ts
@@ -0,0 +1,141 @@
+import { DiscoveryApi, FetchApi } from "@backstage/core-plugin-api";
+import { KubernetesApi } from "@backstage/plugin-kubernetes";
+import {
+ IoArgoprojWorkflowV1alpha1WorkflowList,
+ IoArgoprojWorkflowV1alpha1WorkflowTemplateList,
+} from "./generated/api";
+import { ArgoWorkflowsApi } from "./index";
+
+const API_VERSION = "argoproj.io/v1alpha1";
+const WORKFLOW_PLURAL = "workflows";
+const DEFAULT_WORKFLOW_PROXY = "/argo-workflows/api";
+const API_LABEL_SELECTOR = "listOptions.labelSelector";
+const API_TIMEOUT = "listOptions.timeoutSeconds";
+const K8s_API_TIMEOUT = "timeoutSeconds";
+
+export class ArgoWorkflows implements ArgoWorkflowsApi {
+ private discoveryApi: DiscoveryApi;
+ private kubernetesApi: KubernetesApi;
+ private fetchApi: FetchApi;
+
+ constructor(
+ discoveryApi: DiscoveryApi,
+ kubernetesApi: KubernetesApi,
+ fetchApi: FetchApi
+ ) {
+ this.discoveryApi = discoveryApi;
+ this.kubernetesApi = kubernetesApi;
+ this.fetchApi = fetchApi;
+ }
+
+ async getWorkflowsFromK8s(
+ clusterName: string | undefined,
+ namespace: string,
+ labels: string | undefined
+ ): Promise {
+ const ns = namespace !== undefined ? namespace : "default";
+ const path = `/apis/${API_VERSION}/namespaces/${ns}/${WORKFLOW_PLURAL}`;
+ const query = new URLSearchParams({
+ [K8s_API_TIMEOUT]: "30",
+ });
+ if (labels) {
+ query.set("labelSelector", labels);
+ }
+ // need limits and pagination
+ const resp = await this.kubernetesApi.proxy({
+ clusterName:
+ clusterName !== undefined ? clusterName : await this.getFirstCluster(),
+ path: `${path}?${query.toString()}`,
+ });
+
+ if (!resp.ok) {
+ return Promise.reject(
+ `failed to fetch resources: ${resp.status}, ${
+ resp.statusText
+ }, ${await resp.text()}`
+ );
+ }
+ // need validation
+ return JSON.parse(
+ await resp.text()
+ ) as IoArgoprojWorkflowV1alpha1WorkflowList;
+ }
+
+ getWorkflows(
+ clusterName: string | undefined,
+ namespace: string,
+ labels: string | undefined
+ ): Promise {
+ if (clusterName) {
+ return this.getWorkflowsFromK8s(clusterName, namespace, labels);
+ }
+ return this.getWorkflowsFromProxy(namespace, labels);
+ }
+
+ async getWorkflowTemplates(
+ clusterName: string | undefined,
+ namespace: string,
+ labels: string | undefined
+ ): Promise {
+ if (clusterName) {
+ return Promise.reject("t");
+ }
+ return this.getWorkflowTemplatesFromProxy(namespace, labels);
+ }
+
+ async getWorkflowsFromProxy(
+ namespace: string,
+ labels: string | undefined
+ ): Promise {
+ const path = `/api/v1/workflows/${namespace}`;
+ const resp = await this.fetchFromPath(path, labels);
+ return await checkAndReturn(
+ resp
+ );
+ }
+
+ async getWorkflowTemplatesFromProxy(
+ namespace: string,
+ labels: string | undefined
+ ): Promise {
+ const path = `/api/v1/workflow-templates/${namespace}`;
+
+ const resp = await this.fetchFromPath(path, labels);
+ return await checkAndReturn(
+ resp
+ );
+ }
+
+ async getFirstCluster(): Promise {
+ const clusters = await this.kubernetesApi.getClusters();
+ if (clusters.length > 0) {
+ return Promise.resolve(clusters[0].name);
+ }
+ return Promise.reject("no clusters found in configuration");
+ }
+
+ async fetchFromPath(
+ path: string,
+ labels: string | undefined
+ ): Promise {
+ const proxyUrl = await this.discoveryApi.getBaseUrl("proxy");
+ const url = `${proxyUrl}${DEFAULT_WORKFLOW_PROXY}${path}`;
+ const query = new URLSearchParams({ [API_TIMEOUT]: "30" });
+ if (labels) {
+ query.set(API_LABEL_SELECTOR, labels);
+ }
+ return this.fetchApi.fetch(`${url}?${query.toString()}`, {});
+ }
+}
+
+async function checkAndReturn(resp: Response): Promise {
+ if (!resp.ok) {
+ return Promise.reject(
+ `failed to fetch resources: ${resp.status}, ${
+ resp.statusText
+ }, ${await resp.text()}`
+ );
+ }
+ // need validation
+ return Promise.resolve(JSON.parse(await resp.text()) as T);
+}
diff --git a/plugins/argo-workflows/src/api/generated/.gitignore b/plugins/argo-workflows/src/api/generated/.gitignore
new file mode 100644
index 0000000..149b576
--- /dev/null
+++ b/plugins/argo-workflows/src/api/generated/.gitignore
@@ -0,0 +1,4 @@
+wwwroot/*.js
+node_modules
+typings
+dist
diff --git a/plugins/argo-workflows/src/api/generated/.openapi-generator-ignore b/plugins/argo-workflows/src/api/generated/.openapi-generator-ignore
new file mode 100644
index 0000000..7484ee5
--- /dev/null
+++ b/plugins/argo-workflows/src/api/generated/.openapi-generator-ignore
@@ -0,0 +1,23 @@
+# OpenAPI Generator Ignore
+# Generated by openapi-generator https://github.com/openapitools/openapi-generator
+
+# Use this file to prevent files from being overwritten by the generator.
+# The patterns follow closely to .gitignore or .dockerignore.
+
+# As an example, the C# client generator defines ApiClient.cs.
+# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
+#ApiClient.cs
+
+# You can match any string of characters against a directory, file or extension with a single asterisk (*):
+#foo/*/qux
+# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
+
+# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
+#foo/**/qux
+# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
+
+# You can also negate patterns with an exclamation (!).
+# For example, you can ignore all files in a docs folder with the file extension .md:
+#docs/*.md
+# Then explicitly reverse the ignore rule for a single file:
+#!docs/README.md
diff --git a/plugins/argo-workflows/src/api/generated/.openapi-generator/FILES b/plugins/argo-workflows/src/api/generated/.openapi-generator/FILES
new file mode 100644
index 0000000..d9446d3
--- /dev/null
+++ b/plugins/argo-workflows/src/api/generated/.openapi-generator/FILES
@@ -0,0 +1,397 @@
+.gitignore
+.openapi-generator-ignore
+api.ts
+api/apis.ts
+api/archivedWorkflowServiceApi.ts
+api/artifactServiceApi.ts
+api/clusterWorkflowTemplateServiceApi.ts
+api/cronWorkflowServiceApi.ts
+api/eventServiceApi.ts
+api/eventSourceServiceApi.ts
+api/infoServiceApi.ts
+api/sensorServiceApi.ts
+api/workflowServiceApi.ts
+api/workflowTemplateServiceApi.ts
+git_push.sh
+model/eventsourceCreateEventSourceRequest.ts
+model/eventsourceEventSourceWatchEvent.ts
+model/eventsourceLogEntry.ts
+model/eventsourceUpdateEventSourceRequest.ts
+model/googleProtobufAny.ts
+model/grpcGatewayRuntimeError.ts
+model/grpcGatewayRuntimeStreamError.ts
+model/ioArgoprojEventsV1alpha1AMQPConsumeConfig.ts
+model/ioArgoprojEventsV1alpha1AMQPEventSource.ts
+model/ioArgoprojEventsV1alpha1AMQPExchangeDeclareConfig.ts
+model/ioArgoprojEventsV1alpha1AMQPQueueBindConfig.ts
+model/ioArgoprojEventsV1alpha1AMQPQueueDeclareConfig.ts
+model/ioArgoprojEventsV1alpha1AWSLambdaTrigger.ts
+model/ioArgoprojEventsV1alpha1Amount.ts
+model/ioArgoprojEventsV1alpha1ArgoWorkflowTrigger.ts
+model/ioArgoprojEventsV1alpha1ArtifactLocation.ts
+model/ioArgoprojEventsV1alpha1AzureEventHubsTrigger.ts
+model/ioArgoprojEventsV1alpha1AzureEventsHubEventSource.ts
+model/ioArgoprojEventsV1alpha1Backoff.ts
+model/ioArgoprojEventsV1alpha1BasicAuth.ts
+model/ioArgoprojEventsV1alpha1BitbucketAuth.ts
+model/ioArgoprojEventsV1alpha1BitbucketBasicAuth.ts
+model/ioArgoprojEventsV1alpha1BitbucketEventSource.ts
+model/ioArgoprojEventsV1alpha1BitbucketRepository.ts
+model/ioArgoprojEventsV1alpha1BitbucketServerEventSource.ts
+model/ioArgoprojEventsV1alpha1BitbucketServerRepository.ts
+model/ioArgoprojEventsV1alpha1CalendarEventSource.ts
+model/ioArgoprojEventsV1alpha1CatchupConfiguration.ts
+model/ioArgoprojEventsV1alpha1Condition.ts
+model/ioArgoprojEventsV1alpha1ConditionsResetByTime.ts
+model/ioArgoprojEventsV1alpha1ConditionsResetCriteria.ts
+model/ioArgoprojEventsV1alpha1ConfigMapPersistence.ts
+model/ioArgoprojEventsV1alpha1CustomTrigger.ts
+model/ioArgoprojEventsV1alpha1DataFilter.ts
+model/ioArgoprojEventsV1alpha1EmitterEventSource.ts
+model/ioArgoprojEventsV1alpha1EventContext.ts
+model/ioArgoprojEventsV1alpha1EventDependency.ts
+model/ioArgoprojEventsV1alpha1EventDependencyFilter.ts
+model/ioArgoprojEventsV1alpha1EventDependencyTransformer.ts
+model/ioArgoprojEventsV1alpha1EventPersistence.ts
+model/ioArgoprojEventsV1alpha1EventSource.ts
+model/ioArgoprojEventsV1alpha1EventSourceFilter.ts
+model/ioArgoprojEventsV1alpha1EventSourceList.ts
+model/ioArgoprojEventsV1alpha1EventSourceSpec.ts
+model/ioArgoprojEventsV1alpha1EventSourceStatus.ts
+model/ioArgoprojEventsV1alpha1ExprFilter.ts
+model/ioArgoprojEventsV1alpha1FileArtifact.ts
+model/ioArgoprojEventsV1alpha1FileEventSource.ts
+model/ioArgoprojEventsV1alpha1GenericEventSource.ts
+model/ioArgoprojEventsV1alpha1GitArtifact.ts
+model/ioArgoprojEventsV1alpha1GitCreds.ts
+model/ioArgoprojEventsV1alpha1GitRemoteConfig.ts
+model/ioArgoprojEventsV1alpha1GithubAppCreds.ts
+model/ioArgoprojEventsV1alpha1GithubEventSource.ts
+model/ioArgoprojEventsV1alpha1GitlabEventSource.ts
+model/ioArgoprojEventsV1alpha1HDFSEventSource.ts
+model/ioArgoprojEventsV1alpha1HTTPTrigger.ts
+model/ioArgoprojEventsV1alpha1Int64OrString.ts
+model/ioArgoprojEventsV1alpha1K8SResourcePolicy.ts
+model/ioArgoprojEventsV1alpha1KafkaConsumerGroup.ts
+model/ioArgoprojEventsV1alpha1KafkaEventSource.ts
+model/ioArgoprojEventsV1alpha1KafkaTrigger.ts
+model/ioArgoprojEventsV1alpha1LogTrigger.ts
+model/ioArgoprojEventsV1alpha1MQTTEventSource.ts
+model/ioArgoprojEventsV1alpha1Metadata.ts
+model/ioArgoprojEventsV1alpha1NATSAuth.ts
+model/ioArgoprojEventsV1alpha1NATSEventsSource.ts
+model/ioArgoprojEventsV1alpha1NATSTrigger.ts
+model/ioArgoprojEventsV1alpha1NSQEventSource.ts
+model/ioArgoprojEventsV1alpha1OpenWhiskTrigger.ts
+model/ioArgoprojEventsV1alpha1OwnedRepositories.ts
+model/ioArgoprojEventsV1alpha1PayloadField.ts
+model/ioArgoprojEventsV1alpha1PubSubEventSource.ts
+model/ioArgoprojEventsV1alpha1PulsarEventSource.ts
+model/ioArgoprojEventsV1alpha1PulsarTrigger.ts
+model/ioArgoprojEventsV1alpha1RateLimit.ts
+model/ioArgoprojEventsV1alpha1RedisEventSource.ts
+model/ioArgoprojEventsV1alpha1RedisStreamEventSource.ts
+model/ioArgoprojEventsV1alpha1Resource.ts
+model/ioArgoprojEventsV1alpha1ResourceEventSource.ts
+model/ioArgoprojEventsV1alpha1ResourceFilter.ts
+model/ioArgoprojEventsV1alpha1S3Artifact.ts
+model/ioArgoprojEventsV1alpha1S3Bucket.ts
+model/ioArgoprojEventsV1alpha1S3Filter.ts
+model/ioArgoprojEventsV1alpha1SASLConfig.ts
+model/ioArgoprojEventsV1alpha1SNSEventSource.ts
+model/ioArgoprojEventsV1alpha1SQSEventSource.ts
+model/ioArgoprojEventsV1alpha1SecureHeader.ts
+model/ioArgoprojEventsV1alpha1Selector.ts
+model/ioArgoprojEventsV1alpha1Sensor.ts
+model/ioArgoprojEventsV1alpha1SensorList.ts
+model/ioArgoprojEventsV1alpha1SensorSpec.ts
+model/ioArgoprojEventsV1alpha1SensorStatus.ts
+model/ioArgoprojEventsV1alpha1Service.ts
+model/ioArgoprojEventsV1alpha1SlackEventSource.ts
+model/ioArgoprojEventsV1alpha1SlackTrigger.ts
+model/ioArgoprojEventsV1alpha1StandardK8STrigger.ts
+model/ioArgoprojEventsV1alpha1Status.ts
+model/ioArgoprojEventsV1alpha1StatusPolicy.ts
+model/ioArgoprojEventsV1alpha1StorageGridEventSource.ts
+model/ioArgoprojEventsV1alpha1StorageGridFilter.ts
+model/ioArgoprojEventsV1alpha1StripeEventSource.ts
+model/ioArgoprojEventsV1alpha1TLSConfig.ts
+model/ioArgoprojEventsV1alpha1Template.ts
+model/ioArgoprojEventsV1alpha1TimeFilter.ts
+model/ioArgoprojEventsV1alpha1Trigger.ts
+model/ioArgoprojEventsV1alpha1TriggerParameter.ts
+model/ioArgoprojEventsV1alpha1TriggerParameterSource.ts
+model/ioArgoprojEventsV1alpha1TriggerPolicy.ts
+model/ioArgoprojEventsV1alpha1TriggerTemplate.ts
+model/ioArgoprojEventsV1alpha1URLArtifact.ts
+model/ioArgoprojEventsV1alpha1ValueFromSource.ts
+model/ioArgoprojEventsV1alpha1WatchPathConfig.ts
+model/ioArgoprojEventsV1alpha1WebhookContext.ts
+model/ioArgoprojEventsV1alpha1WebhookEventSource.ts
+model/ioArgoprojWorkflowV1alpha1ArchiveStrategy.ts
+model/ioArgoprojWorkflowV1alpha1Arguments.ts
+model/ioArgoprojWorkflowV1alpha1ArtGCStatus.ts
+model/ioArgoprojWorkflowV1alpha1Artifact.ts
+model/ioArgoprojWorkflowV1alpha1ArtifactGC.ts
+model/ioArgoprojWorkflowV1alpha1ArtifactGCSpec.ts
+model/ioArgoprojWorkflowV1alpha1ArtifactGCStatus.ts
+model/ioArgoprojWorkflowV1alpha1ArtifactLocation.ts
+model/ioArgoprojWorkflowV1alpha1ArtifactNodeSpec.ts
+model/ioArgoprojWorkflowV1alpha1ArtifactPaths.ts
+model/ioArgoprojWorkflowV1alpha1ArtifactRepository.ts
+model/ioArgoprojWorkflowV1alpha1ArtifactRepositoryRef.ts
+model/ioArgoprojWorkflowV1alpha1ArtifactRepositoryRefStatus.ts
+model/ioArgoprojWorkflowV1alpha1ArtifactResult.ts
+model/ioArgoprojWorkflowV1alpha1ArtifactResultNodeStatus.ts
+model/ioArgoprojWorkflowV1alpha1ArtifactoryArtifact.ts
+model/ioArgoprojWorkflowV1alpha1ArtifactoryArtifactRepository.ts
+model/ioArgoprojWorkflowV1alpha1AzureArtifact.ts
+model/ioArgoprojWorkflowV1alpha1AzureArtifactRepository.ts
+model/ioArgoprojWorkflowV1alpha1Backoff.ts
+model/ioArgoprojWorkflowV1alpha1BasicAuth.ts
+model/ioArgoprojWorkflowV1alpha1Cache.ts
+model/ioArgoprojWorkflowV1alpha1ClientCertAuth.ts
+model/ioArgoprojWorkflowV1alpha1ClusterWorkflowTemplate.ts
+model/ioArgoprojWorkflowV1alpha1ClusterWorkflowTemplateCreateRequest.ts
+model/ioArgoprojWorkflowV1alpha1ClusterWorkflowTemplateLintRequest.ts
+model/ioArgoprojWorkflowV1alpha1ClusterWorkflowTemplateList.ts
+model/ioArgoprojWorkflowV1alpha1ClusterWorkflowTemplateUpdateRequest.ts
+model/ioArgoprojWorkflowV1alpha1CollectEventRequest.ts
+model/ioArgoprojWorkflowV1alpha1Column.ts
+model/ioArgoprojWorkflowV1alpha1Condition.ts
+model/ioArgoprojWorkflowV1alpha1ContainerNode.ts
+model/ioArgoprojWorkflowV1alpha1ContainerSetRetryStrategy.ts
+model/ioArgoprojWorkflowV1alpha1ContainerSetTemplate.ts
+model/ioArgoprojWorkflowV1alpha1ContinueOn.ts
+model/ioArgoprojWorkflowV1alpha1Counter.ts
+model/ioArgoprojWorkflowV1alpha1CreateCronWorkflowRequest.ts
+model/ioArgoprojWorkflowV1alpha1CreateS3BucketOptions.ts
+model/ioArgoprojWorkflowV1alpha1CronWorkflow.ts
+model/ioArgoprojWorkflowV1alpha1CronWorkflowList.ts
+model/ioArgoprojWorkflowV1alpha1CronWorkflowResumeRequest.ts
+model/ioArgoprojWorkflowV1alpha1CronWorkflowSpec.ts
+model/ioArgoprojWorkflowV1alpha1CronWorkflowStatus.ts
+model/ioArgoprojWorkflowV1alpha1CronWorkflowSuspendRequest.ts
+model/ioArgoprojWorkflowV1alpha1DAGTask.ts
+model/ioArgoprojWorkflowV1alpha1DAGTemplate.ts
+model/ioArgoprojWorkflowV1alpha1Data.ts
+model/ioArgoprojWorkflowV1alpha1DataSource.ts
+model/ioArgoprojWorkflowV1alpha1Event.ts
+model/ioArgoprojWorkflowV1alpha1ExecutorConfig.ts
+model/ioArgoprojWorkflowV1alpha1GCSArtifact.ts
+model/ioArgoprojWorkflowV1alpha1GCSArtifactRepository.ts
+model/ioArgoprojWorkflowV1alpha1Gauge.ts
+model/ioArgoprojWorkflowV1alpha1GetUserInfoResponse.ts
+model/ioArgoprojWorkflowV1alpha1GitArtifact.ts
+model/ioArgoprojWorkflowV1alpha1HDFSArtifact.ts
+model/ioArgoprojWorkflowV1alpha1HDFSArtifactRepository.ts
+model/ioArgoprojWorkflowV1alpha1HTTP.ts
+model/ioArgoprojWorkflowV1alpha1HTTPArtifact.ts
+model/ioArgoprojWorkflowV1alpha1HTTPAuth.ts
+model/ioArgoprojWorkflowV1alpha1HTTPBodySource.ts
+model/ioArgoprojWorkflowV1alpha1HTTPHeader.ts
+model/ioArgoprojWorkflowV1alpha1HTTPHeaderSource.ts
+model/ioArgoprojWorkflowV1alpha1Header.ts
+model/ioArgoprojWorkflowV1alpha1Histogram.ts
+model/ioArgoprojWorkflowV1alpha1InfoResponse.ts
+model/ioArgoprojWorkflowV1alpha1Inputs.ts
+model/ioArgoprojWorkflowV1alpha1LabelKeys.ts
+model/ioArgoprojWorkflowV1alpha1LabelValueFrom.ts
+model/ioArgoprojWorkflowV1alpha1LabelValues.ts
+model/ioArgoprojWorkflowV1alpha1LifecycleHook.ts
+model/ioArgoprojWorkflowV1alpha1Link.ts
+model/ioArgoprojWorkflowV1alpha1LintCronWorkflowRequest.ts
+model/ioArgoprojWorkflowV1alpha1LogEntry.ts
+model/ioArgoprojWorkflowV1alpha1ManifestFrom.ts
+model/ioArgoprojWorkflowV1alpha1MemoizationStatus.ts
+model/ioArgoprojWorkflowV1alpha1Memoize.ts
+model/ioArgoprojWorkflowV1alpha1Metadata.ts
+model/ioArgoprojWorkflowV1alpha1MetricLabel.ts
+model/ioArgoprojWorkflowV1alpha1Metrics.ts
+model/ioArgoprojWorkflowV1alpha1Mutex.ts
+model/ioArgoprojWorkflowV1alpha1MutexHolding.ts
+model/ioArgoprojWorkflowV1alpha1MutexStatus.ts
+model/ioArgoprojWorkflowV1alpha1NodeResult.ts
+model/ioArgoprojWorkflowV1alpha1NodeStatus.ts
+model/ioArgoprojWorkflowV1alpha1NodeSynchronizationStatus.ts
+model/ioArgoprojWorkflowV1alpha1OAuth2Auth.ts
+model/ioArgoprojWorkflowV1alpha1OAuth2EndpointParam.ts
+model/ioArgoprojWorkflowV1alpha1OSSArtifact.ts
+model/ioArgoprojWorkflowV1alpha1OSSArtifactRepository.ts
+model/ioArgoprojWorkflowV1alpha1OSSLifecycleRule.ts
+model/ioArgoprojWorkflowV1alpha1Outputs.ts
+model/ioArgoprojWorkflowV1alpha1Parameter.ts
+model/ioArgoprojWorkflowV1alpha1PodGC.ts
+model/ioArgoprojWorkflowV1alpha1Prometheus.ts
+model/ioArgoprojWorkflowV1alpha1RawArtifact.ts
+model/ioArgoprojWorkflowV1alpha1ResourceTemplate.ts
+model/ioArgoprojWorkflowV1alpha1ResubmitArchivedWorkflowRequest.ts
+model/ioArgoprojWorkflowV1alpha1RetryAffinity.ts
+model/ioArgoprojWorkflowV1alpha1RetryArchivedWorkflowRequest.ts
+model/ioArgoprojWorkflowV1alpha1RetryStrategy.ts
+model/ioArgoprojWorkflowV1alpha1S3Artifact.ts
+model/ioArgoprojWorkflowV1alpha1S3ArtifactRepository.ts
+model/ioArgoprojWorkflowV1alpha1S3EncryptionOptions.ts
+model/ioArgoprojWorkflowV1alpha1ScriptTemplate.ts
+model/ioArgoprojWorkflowV1alpha1SemaphoreHolding.ts
+model/ioArgoprojWorkflowV1alpha1SemaphoreRef.ts
+model/ioArgoprojWorkflowV1alpha1SemaphoreStatus.ts
+model/ioArgoprojWorkflowV1alpha1Sequence.ts
+model/ioArgoprojWorkflowV1alpha1Submit.ts
+model/ioArgoprojWorkflowV1alpha1SubmitOpts.ts
+model/ioArgoprojWorkflowV1alpha1SuspendTemplate.ts
+model/ioArgoprojWorkflowV1alpha1Synchronization.ts
+model/ioArgoprojWorkflowV1alpha1SynchronizationStatus.ts
+model/ioArgoprojWorkflowV1alpha1TTLStrategy.ts
+model/ioArgoprojWorkflowV1alpha1TarStrategy.ts
+model/ioArgoprojWorkflowV1alpha1Template.ts
+model/ioArgoprojWorkflowV1alpha1TemplateRef.ts
+model/ioArgoprojWorkflowV1alpha1TransformationStep.ts
+model/ioArgoprojWorkflowV1alpha1UpdateCronWorkflowRequest.ts
+model/ioArgoprojWorkflowV1alpha1UserContainer.ts
+model/ioArgoprojWorkflowV1alpha1ValueFrom.ts
+model/ioArgoprojWorkflowV1alpha1Version.ts
+model/ioArgoprojWorkflowV1alpha1VolumeClaimGC.ts
+model/ioArgoprojWorkflowV1alpha1Workflow.ts
+model/ioArgoprojWorkflowV1alpha1WorkflowCreateRequest.ts
+model/ioArgoprojWorkflowV1alpha1WorkflowEventBinding.ts
+model/ioArgoprojWorkflowV1alpha1WorkflowEventBindingList.ts
+model/ioArgoprojWorkflowV1alpha1WorkflowEventBindingSpec.ts
+model/ioArgoprojWorkflowV1alpha1WorkflowLevelArtifactGC.ts
+model/ioArgoprojWorkflowV1alpha1WorkflowLintRequest.ts
+model/ioArgoprojWorkflowV1alpha1WorkflowList.ts
+model/ioArgoprojWorkflowV1alpha1WorkflowMetadata.ts
+model/ioArgoprojWorkflowV1alpha1WorkflowResubmitRequest.ts
+model/ioArgoprojWorkflowV1alpha1WorkflowResumeRequest.ts
+model/ioArgoprojWorkflowV1alpha1WorkflowRetryRequest.ts
+model/ioArgoprojWorkflowV1alpha1WorkflowSetRequest.ts
+model/ioArgoprojWorkflowV1alpha1WorkflowSpec.ts
+model/ioArgoprojWorkflowV1alpha1WorkflowStatus.ts
+model/ioArgoprojWorkflowV1alpha1WorkflowStep.ts
+model/ioArgoprojWorkflowV1alpha1WorkflowStopRequest.ts
+model/ioArgoprojWorkflowV1alpha1WorkflowSubmitRequest.ts
+model/ioArgoprojWorkflowV1alpha1WorkflowSuspendRequest.ts
+model/ioArgoprojWorkflowV1alpha1WorkflowTaskSetSpec.ts
+model/ioArgoprojWorkflowV1alpha1WorkflowTaskSetStatus.ts
+model/ioArgoprojWorkflowV1alpha1WorkflowTemplate.ts
+model/ioArgoprojWorkflowV1alpha1WorkflowTemplateCreateRequest.ts
+model/ioArgoprojWorkflowV1alpha1WorkflowTemplateLintRequest.ts
+model/ioArgoprojWorkflowV1alpha1WorkflowTemplateList.ts
+model/ioArgoprojWorkflowV1alpha1WorkflowTemplateRef.ts
+model/ioArgoprojWorkflowV1alpha1WorkflowTemplateUpdateRequest.ts
+model/ioArgoprojWorkflowV1alpha1WorkflowTerminateRequest.ts
+model/ioArgoprojWorkflowV1alpha1WorkflowWatchEvent.ts
+model/ioK8sApiCoreV1AWSElasticBlockStoreVolumeSource.ts
+model/ioK8sApiCoreV1Affinity.ts
+model/ioK8sApiCoreV1AzureDiskVolumeSource.ts
+model/ioK8sApiCoreV1AzureFileVolumeSource.ts
+model/ioK8sApiCoreV1CSIVolumeSource.ts
+model/ioK8sApiCoreV1Capabilities.ts
+model/ioK8sApiCoreV1CephFSVolumeSource.ts
+model/ioK8sApiCoreV1CinderVolumeSource.ts
+model/ioK8sApiCoreV1ConfigMapEnvSource.ts
+model/ioK8sApiCoreV1ConfigMapKeySelector.ts
+model/ioK8sApiCoreV1ConfigMapProjection.ts
+model/ioK8sApiCoreV1ConfigMapVolumeSource.ts
+model/ioK8sApiCoreV1Container.ts
+model/ioK8sApiCoreV1ContainerPort.ts
+model/ioK8sApiCoreV1DownwardAPIProjection.ts
+model/ioK8sApiCoreV1DownwardAPIVolumeFile.ts
+model/ioK8sApiCoreV1DownwardAPIVolumeSource.ts
+model/ioK8sApiCoreV1EmptyDirVolumeSource.ts
+model/ioK8sApiCoreV1EnvFromSource.ts
+model/ioK8sApiCoreV1EnvVar.ts
+model/ioK8sApiCoreV1EnvVarSource.ts
+model/ioK8sApiCoreV1EphemeralVolumeSource.ts
+model/ioK8sApiCoreV1Event.ts
+model/ioK8sApiCoreV1EventSeries.ts
+model/ioK8sApiCoreV1EventSource.ts
+model/ioK8sApiCoreV1ExecAction.ts
+model/ioK8sApiCoreV1FCVolumeSource.ts
+model/ioK8sApiCoreV1FlexVolumeSource.ts
+model/ioK8sApiCoreV1FlockerVolumeSource.ts
+model/ioK8sApiCoreV1GCEPersistentDiskVolumeSource.ts
+model/ioK8sApiCoreV1GRPCAction.ts
+model/ioK8sApiCoreV1GitRepoVolumeSource.ts
+model/ioK8sApiCoreV1GlusterfsVolumeSource.ts
+model/ioK8sApiCoreV1HTTPGetAction.ts
+model/ioK8sApiCoreV1HTTPHeader.ts
+model/ioK8sApiCoreV1HostAlias.ts
+model/ioK8sApiCoreV1HostPathVolumeSource.ts
+model/ioK8sApiCoreV1ISCSIVolumeSource.ts
+model/ioK8sApiCoreV1KeyToPath.ts
+model/ioK8sApiCoreV1Lifecycle.ts
+model/ioK8sApiCoreV1LifecycleHandler.ts
+model/ioK8sApiCoreV1LocalObjectReference.ts
+model/ioK8sApiCoreV1NFSVolumeSource.ts
+model/ioK8sApiCoreV1NodeAffinity.ts
+model/ioK8sApiCoreV1NodeSelector.ts
+model/ioK8sApiCoreV1NodeSelectorRequirement.ts
+model/ioK8sApiCoreV1NodeSelectorTerm.ts
+model/ioK8sApiCoreV1ObjectFieldSelector.ts
+model/ioK8sApiCoreV1ObjectReference.ts
+model/ioK8sApiCoreV1PersistentVolumeClaim.ts
+model/ioK8sApiCoreV1PersistentVolumeClaimCondition.ts
+model/ioK8sApiCoreV1PersistentVolumeClaimSpec.ts
+model/ioK8sApiCoreV1PersistentVolumeClaimStatus.ts
+model/ioK8sApiCoreV1PersistentVolumeClaimTemplate.ts
+model/ioK8sApiCoreV1PersistentVolumeClaimVolumeSource.ts
+model/ioK8sApiCoreV1PhotonPersistentDiskVolumeSource.ts
+model/ioK8sApiCoreV1PodAffinity.ts
+model/ioK8sApiCoreV1PodAffinityTerm.ts
+model/ioK8sApiCoreV1PodAntiAffinity.ts
+model/ioK8sApiCoreV1PodDNSConfig.ts
+model/ioK8sApiCoreV1PodDNSConfigOption.ts
+model/ioK8sApiCoreV1PodSecurityContext.ts
+model/ioK8sApiCoreV1PortworxVolumeSource.ts
+model/ioK8sApiCoreV1PreferredSchedulingTerm.ts
+model/ioK8sApiCoreV1Probe.ts
+model/ioK8sApiCoreV1ProjectedVolumeSource.ts
+model/ioK8sApiCoreV1QuobyteVolumeSource.ts
+model/ioK8sApiCoreV1RBDVolumeSource.ts
+model/ioK8sApiCoreV1ResourceFieldSelector.ts
+model/ioK8sApiCoreV1ResourceRequirements.ts
+model/ioK8sApiCoreV1SELinuxOptions.ts
+model/ioK8sApiCoreV1ScaleIOVolumeSource.ts
+model/ioK8sApiCoreV1SeccompProfile.ts
+model/ioK8sApiCoreV1SecretEnvSource.ts
+model/ioK8sApiCoreV1SecretKeySelector.ts
+model/ioK8sApiCoreV1SecretProjection.ts
+model/ioK8sApiCoreV1SecretVolumeSource.ts
+model/ioK8sApiCoreV1SecurityContext.ts
+model/ioK8sApiCoreV1ServiceAccountTokenProjection.ts
+model/ioK8sApiCoreV1ServicePort.ts
+model/ioK8sApiCoreV1StorageOSVolumeSource.ts
+model/ioK8sApiCoreV1Sysctl.ts
+model/ioK8sApiCoreV1TCPSocketAction.ts
+model/ioK8sApiCoreV1Toleration.ts
+model/ioK8sApiCoreV1TypedLocalObjectReference.ts
+model/ioK8sApiCoreV1Volume.ts
+model/ioK8sApiCoreV1VolumeDevice.ts
+model/ioK8sApiCoreV1VolumeMount.ts
+model/ioK8sApiCoreV1VolumeProjection.ts
+model/ioK8sApiCoreV1VsphereVirtualDiskVolumeSource.ts
+model/ioK8sApiCoreV1WeightedPodAffinityTerm.ts
+model/ioK8sApiCoreV1WindowsSecurityContextOptions.ts
+model/ioK8sApiPolicyV1PodDisruptionBudgetSpec.ts
+model/ioK8sApimachineryPkgApisMetaV1CreateOptions.ts
+model/ioK8sApimachineryPkgApisMetaV1GroupVersionResource.ts
+model/ioK8sApimachineryPkgApisMetaV1LabelSelector.ts
+model/ioK8sApimachineryPkgApisMetaV1LabelSelectorRequirement.ts
+model/ioK8sApimachineryPkgApisMetaV1ListMeta.ts
+model/ioK8sApimachineryPkgApisMetaV1ManagedFieldsEntry.ts
+model/ioK8sApimachineryPkgApisMetaV1ObjectMeta.ts
+model/ioK8sApimachineryPkgApisMetaV1OwnerReference.ts
+model/ioK8sApimachineryPkgApisMetaV1StatusCause.ts
+model/models.ts
+model/sensorCreateSensorRequest.ts
+model/sensorLogEntry.ts
+model/sensorSensorWatchEvent.ts
+model/sensorUpdateSensorRequest.ts
+model/streamResultOfEventsourceEventSourceWatchEvent.ts
+model/streamResultOfEventsourceLogEntry.ts
+model/streamResultOfIoArgoprojWorkflowV1alpha1LogEntry.ts
+model/streamResultOfIoArgoprojWorkflowV1alpha1WorkflowWatchEvent.ts
+model/streamResultOfIoK8sApiCoreV1Event.ts
+model/streamResultOfSensorLogEntry.ts
+model/streamResultOfSensorSensorWatchEvent.ts
diff --git a/plugins/argo-workflows/src/api/generated/.openapi-generator/VERSION b/plugins/argo-workflows/src/api/generated/.openapi-generator/VERSION
new file mode 100644
index 0000000..cd802a1
--- /dev/null
+++ b/plugins/argo-workflows/src/api/generated/.openapi-generator/VERSION
@@ -0,0 +1 @@
+6.6.0
\ No newline at end of file
diff --git a/plugins/argo-workflows/src/api/generated/api.ts b/plugins/argo-workflows/src/api/generated/api.ts
new file mode 100644
index 0000000..4b76122
--- /dev/null
+++ b/plugins/argo-workflows/src/api/generated/api.ts
@@ -0,0 +1,3 @@
+// This is the entrypoint for the package
+export * from './api/apis';
+export * from './model/models';
\ No newline at end of file
diff --git a/plugins/argo-workflows/src/api/generated/api/apis.ts b/plugins/argo-workflows/src/api/generated/api/apis.ts
new file mode 100644
index 0000000..547c881
--- /dev/null
+++ b/plugins/argo-workflows/src/api/generated/api/apis.ts
@@ -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];
diff --git a/plugins/argo-workflows/src/api/generated/api/archivedWorkflowServiceApi.ts b/plugins/argo-workflows/src/api/generated/api/archivedWorkflowServiceApi.ts
new file mode 100644
index 0000000..6062004
--- /dev/null
+++ b/plugins/argo-workflows/src/api/generated/api/archivedWorkflowServiceApi.ts
@@ -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': 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 = (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");
+ }
+
+ (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) {
+ (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 = (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");
+ }
+
+ (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) {
+ (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 = (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");
+ }
+
+ (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) {
+ (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 \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'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 `continue` 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 \"next key\". 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 = (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");
+ }
+
+ (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) {
+ (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 \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'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 `continue` 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 \"next key\". 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 = (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");
+ }
+
+ (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) {
+ (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 = (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.');
+ }
+
+ (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) {
+ (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 = (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.');
+ }
+
+ (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) {
+ (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));
+ }
+ }
+ });
+ });
+ });
+ }
+}
diff --git a/plugins/argo-workflows/src/api/generated/api/artifactServiceApi.ts b/plugins/argo-workflows/src/api/generated/api/artifactServiceApi.ts
new file mode 100644
index 0000000..542938d
--- /dev/null
+++ b/plugins/argo-workflows/src/api/generated/api/artifactServiceApi.ts
@@ -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': 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 = (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.');
+ }
+
+ (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) {
+ (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 = (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.');
+ }
+
+ (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) {
+ (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 = (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.');
+ }
+
+ (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) {
+ (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 = (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.');
+ }
+
+ (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) {
+ (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 = (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.');
+ }
+
+ (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) {
+ (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));
+ }
+ }
+ });
+ });
+ });
+ }
+}
diff --git a/plugins/argo-workflows/src/api/generated/api/clusterWorkflowTemplateServiceApi.ts b/plugins/argo-workflows/src/api/generated/api/clusterWorkflowTemplateServiceApi.ts
new file mode 100644
index 0000000..9fbb932
--- /dev/null
+++ b/plugins/argo-workflows/src/api/generated/api/clusterWorkflowTemplateServiceApi.ts
@@ -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': 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 = (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.');
+ }
+
+ (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) {
+ (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 \"orphan\" finalizer will be added to/removed from the object\'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: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. +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, 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 = (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");
+ }
+
+ (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) {
+ (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 = (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");
+ }
+
+ (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) {
+ (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 = (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.');
+ }
+
+ (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) {
+ (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 \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'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 `continue` 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 \"next key\". 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 = (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");
+ }
+
+ (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) {
+ (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 = (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.');
+ }
+
+ (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) {
+ (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));
+ }
+ }
+ });
+ });
+ });
+ }
+}
diff --git a/plugins/argo-workflows/src/api/generated/api/cronWorkflowServiceApi.ts b/plugins/argo-workflows/src/api/generated/api/cronWorkflowServiceApi.ts
new file mode 100644
index 0000000..04a1337
--- /dev/null
+++ b/plugins/argo-workflows/src/api/generated/api/cronWorkflowServiceApi.ts
@@ -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': 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 = (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.');
+ }
+
+ (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) {
+ (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 \"orphan\" finalizer will be added to/removed from the object\'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: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. +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, 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 = (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");
+ }
+
+ (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) {
+ (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 = (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");
+ }
+
+ (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) {
+ (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 = (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.');
+ }
+
+ (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) {
+ (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 \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'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 `continue` 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 \"next key\". 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 = (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");
+ }
+
+ (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) {
+ (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 = (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.');
+ }
+
+ (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) {
+ (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 = (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.');
+ }
+
+ (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) {
+ (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 = (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.');
+ }
+
+ (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) {
+ (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));
+ }
+ }
+ });
+ });
+ });
+ }
+}
diff --git a/plugins/argo-workflows/src/api/generated/api/eventServiceApi.ts b/plugins/argo-workflows/src/api/generated/api/eventServiceApi.ts
new file mode 100644
index 0000000..35f123c
--- /dev/null
+++ b/plugins/argo-workflows/src/api/generated/api/eventServiceApi.ts
@@ -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': 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 \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'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 `continue` 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 \"next key\". 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 = (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");
+ }
+
+ (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) {
+ (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 \"broadcast\" 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 `discriminator` in the event binding selector (`/spec/event/selector)`
+ * @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 = (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.');
+ }
+
+ (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) {
+ (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));
+ }
+ }
+ });
+ });
+ });
+ }
+}
diff --git a/plugins/argo-workflows/src/api/generated/api/eventSourceServiceApi.ts b/plugins/argo-workflows/src/api/generated/api/eventSourceServiceApi.ts
new file mode 100644
index 0000000..b0526eb
--- /dev/null
+++ b/plugins/argo-workflows/src/api/generated/api/eventSourceServiceApi.ts
@@ -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': 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 = (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.');
+ }
+
+ (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) {
+ (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 \"orphan\" finalizer will be added to/removed from the object\'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: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. +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, 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 = (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");
+ }
+
+ (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) {
+ (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. `webhook`).
+ * @param eventName optional - only return entries for this event name (e.g. `example`).
+ * @param grep optional - only return entries where `msg` 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\'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 = (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");
+ }
+
+ (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) {
+ (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 = (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.');
+ }
+
+ (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) {
+ (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 \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'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 `continue` 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 \"next key\". 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 = (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");
+ }
+
+ (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) {
+ (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 = (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.');
+ }
+
+ (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) {
+ (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 \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'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 `continue` 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 \"next key\". 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 = (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");
+ }
+
+ (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) {
+ (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));
+ }
+ }
+ });
+ });
+ });
+ }
+}
diff --git a/plugins/argo-workflows/src/api/generated/api/infoServiceApi.ts b/plugins/argo-workflows/src/api/generated/api/infoServiceApi.ts
new file mode 100644
index 0000000..e9af56c
--- /dev/null
+++ b/plugins/argo-workflows/src/api/generated/api/infoServiceApi.ts
@@ -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': 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 = (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.');
+ }
+
+ (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) {
+ (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 = (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 = {};
+
+ (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) {
+ (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 = (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 = {};
+
+ (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) {
+ (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 = (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 = {};
+
+ (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) {
+ (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));
+ }
+ }
+ });
+ });
+ });
+ }
+}
diff --git a/plugins/argo-workflows/src/api/generated/api/sensorServiceApi.ts b/plugins/argo-workflows/src/api/generated/api/sensorServiceApi.ts
new file mode 100644
index 0000000..7e5f0ad
--- /dev/null
+++ b/plugins/argo-workflows/src/api/generated/api/sensorServiceApi.ts
@@ -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': 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 = (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.');
+ }
+
+ (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) {
+ (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 \"orphan\" finalizer will be added to/removed from the object\'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: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. +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, 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 = (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");
+ }
+
+ (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) {
+ (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 = (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");
+ }
+
+ (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) {
+ (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 \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'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 `continue` 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 \"next key\". 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 = (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");
+ }
+
+ (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) {
+ (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 `msg` 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\'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 = (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");
+ }
+
+ (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) {
+ (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 = (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.');
+ }
+
+ (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) {
+ (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 \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'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 `continue` 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 \"next key\". 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 = (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");
+ }
+
+ (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) {
+ (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));
+ }
+ }
+ });
+ });
+ });
+ }
+}
diff --git a/plugins/argo-workflows/src/api/generated/api/workflowServiceApi.ts b/plugins/argo-workflows/src/api/generated/api/workflowServiceApi.ts
new file mode 100644
index 0000000..5df7148
--- /dev/null
+++ b/plugins/argo-workflows/src/api/generated/api/workflowServiceApi.ts
@@ -0,0 +1,1785 @@
+// @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 { IoArgoprojWorkflowV1alpha1Workflow } from '../model/ioArgoprojWorkflowV1alpha1Workflow';
+import { IoArgoprojWorkflowV1alpha1WorkflowCreateRequest } from '../model/ioArgoprojWorkflowV1alpha1WorkflowCreateRequest';
+import { IoArgoprojWorkflowV1alpha1WorkflowLintRequest } from '../model/ioArgoprojWorkflowV1alpha1WorkflowLintRequest';
+import { IoArgoprojWorkflowV1alpha1WorkflowList } from '../model/ioArgoprojWorkflowV1alpha1WorkflowList';
+import { IoArgoprojWorkflowV1alpha1WorkflowResubmitRequest } from '../model/ioArgoprojWorkflowV1alpha1WorkflowResubmitRequest';
+import { IoArgoprojWorkflowV1alpha1WorkflowResumeRequest } from '../model/ioArgoprojWorkflowV1alpha1WorkflowResumeRequest';
+import { IoArgoprojWorkflowV1alpha1WorkflowRetryRequest } from '../model/ioArgoprojWorkflowV1alpha1WorkflowRetryRequest';
+import { IoArgoprojWorkflowV1alpha1WorkflowSetRequest } from '../model/ioArgoprojWorkflowV1alpha1WorkflowSetRequest';
+import { IoArgoprojWorkflowV1alpha1WorkflowStopRequest } from '../model/ioArgoprojWorkflowV1alpha1WorkflowStopRequest';
+import { IoArgoprojWorkflowV1alpha1WorkflowSubmitRequest } from '../model/ioArgoprojWorkflowV1alpha1WorkflowSubmitRequest';
+import { IoArgoprojWorkflowV1alpha1WorkflowSuspendRequest } from '../model/ioArgoprojWorkflowV1alpha1WorkflowSuspendRequest';
+import { IoArgoprojWorkflowV1alpha1WorkflowTerminateRequest } from '../model/ioArgoprojWorkflowV1alpha1WorkflowTerminateRequest';
+import { StreamResultOfIoArgoprojWorkflowV1alpha1LogEntry } from '../model/streamResultOfIoArgoprojWorkflowV1alpha1LogEntry';
+import { StreamResultOfIoArgoprojWorkflowV1alpha1WorkflowWatchEvent } from '../model/streamResultOfIoArgoprojWorkflowV1alpha1WorkflowWatchEvent';
+import { StreamResultOfIoK8sApiCoreV1Event } from '../model/streamResultOfIoK8sApiCoreV1Event';
+
+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 WorkflowServiceApiApiKeys {
+ BearerToken,
+}
+
+export class WorkflowServiceApi {
+ protected _basePath = defaultBasePath;
+ protected _defaultHeaders : any = {};
+ protected _useQuerystring : boolean = false;
+
+ protected authentications = {
+ 'default': 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: WorkflowServiceApiApiKeys, value: string) {
+ (this.authentications as any)[WorkflowServiceApiApiKeys[key]].apiKey = value;
+ }
+
+ public addInterceptor(interceptor: Interceptor) {
+ this.interceptors.push(interceptor);
+ }
+
+ /**
+ *
+ * @param namespace
+ * @param body
+ */
+ public async workflowServiceCreateWorkflow (namespace: string, body: IoArgoprojWorkflowV1alpha1WorkflowCreateRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1Workflow; }> {
+ const localVarPath = this.basePath + '/api/v1/workflows/{namespace}'
+ .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: 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 workflowServiceCreateWorkflow.');
+ }
+
+ // 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 workflowServiceCreateWorkflow.');
+ }
+
+ (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, "IoArgoprojWorkflowV1alpha1WorkflowCreateRequest")
+ };
+
+ 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) {
+ (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
+ * @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 \"orphan\" finalizer will be added to/removed from the object\'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: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. +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.
+ * @param force
+ */
+ public async workflowServiceDeleteWorkflow (namespace: string, name: string, deleteOptionsGracePeriodSeconds?: string, deleteOptionsPreconditionsUid?: string, deleteOptionsPreconditionsResourceVersion?: string, deleteOptionsOrphanDependents?: boolean, deleteOptionsPropagationPolicy?: string, deleteOptionsDryRun?: Array, force?: boolean, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: object; }> {
+ const localVarPath = this.basePath + '/api/v1/workflows/{namespace}/{name}'
+ .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: 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 workflowServiceDeleteWorkflow.');
+ }
+
+ // 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 workflowServiceDeleteWorkflow.');
+ }
+
+ 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");
+ }
+
+ if (force !== undefined) {
+ localVarQueryParameters['force'] = ObjectSerializer.serialize(force, "boolean");
+ }
+
+ (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) {
+ (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
+ * @param fields Fields to be included or excluded in the response. e.g. \"spec,status.phase\", \"-status.nodes\".
+ */
+ public async workflowServiceGetWorkflow (namespace: string, name: string, getOptionsResourceVersion?: string, fields?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1Workflow; }> {
+ const localVarPath = this.basePath + '/api/v1/workflows/{namespace}/{name}'
+ .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: 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 workflowServiceGetWorkflow.');
+ }
+
+ // 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 workflowServiceGetWorkflow.');
+ }
+
+ if (getOptionsResourceVersion !== undefined) {
+ localVarQueryParameters['getOptions.resourceVersion'] = ObjectSerializer.serialize(getOptionsResourceVersion, "string");
+ }
+
+ if (fields !== undefined) {
+ localVarQueryParameters['fields'] = ObjectSerializer.serialize(fields, "string");
+ }
+
+ (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) {
+ (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
+ * @param body
+ */
+ public async workflowServiceLintWorkflow (namespace: string, body: IoArgoprojWorkflowV1alpha1WorkflowLintRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1Workflow; }> {
+ const localVarPath = this.basePath + '/api/v1/workflows/{namespace}/lint'
+ .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: 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 workflowServiceLintWorkflow.');
+ }
+
+ // 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 workflowServiceLintWorkflow.');
+ }
+
+ (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, "IoArgoprojWorkflowV1alpha1WorkflowLintRequest")
+ };
+
+ 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) {
+ (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
+ * @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 \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'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 `continue` 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 \"next key\". 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 fields Fields to be included or excluded in the response. e.g. \"items.spec,items.status.phase\", \"-items.status.nodes\".
+ */
+ public async workflowServiceListWorkflows (namespace: string, listOptionsLabelSelector?: string, listOptionsFieldSelector?: string, listOptionsWatch?: boolean, listOptionsAllowWatchBookmarks?: boolean, listOptionsResourceVersion?: string, listOptionsResourceVersionMatch?: string, listOptionsTimeoutSeconds?: string, listOptionsLimit?: string, listOptionsContinue?: string, fields?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1WorkflowList; }> {
+ const localVarPath = this.basePath + '/api/v1/workflows/{namespace}'
+ .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: 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 workflowServiceListWorkflows.');
+ }
+
+ 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 (fields !== undefined) {
+ localVarQueryParameters['fields'] = ObjectSerializer.serialize(fields, "string");
+ }
+
+ (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) {
+ (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));
+ }
+ }
+ });
+ });
+ });
+ }
+ /**
+ *
+ * @summary DEPRECATED: Cannot work via HTTP if podName is an empty string. Use WorkflowLogs.
+ * @param namespace
+ * @param name
+ * @param podName
+ * @param logOptionsContainer The container for which to stream logs. Defaults to only container if there is one container in the pod. +optional.
+ * @param logOptionsFollow Follow the log stream of the pod. Defaults to false. +optional.
+ * @param logOptionsPrevious Return previous terminated container logs. Defaults to false. +optional.
+ * @param logOptionsSinceSeconds 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 logOptionsSinceTimeSeconds 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 logOptionsSinceTimeNanos 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 logOptionsTimestamps If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. +optional.
+ * @param logOptionsTailLines 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 logOptionsLimitBytes 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 logOptionsInsecureSkipTLSVerifyBackend 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\'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.
+ * @param grep
+ * @param selector
+ */
+ public async workflowServicePodLogs (namespace: string, name: string, podName: string, logOptionsContainer?: string, logOptionsFollow?: boolean, logOptionsPrevious?: boolean, logOptionsSinceSeconds?: string, logOptionsSinceTimeSeconds?: string, logOptionsSinceTimeNanos?: number, logOptionsTimestamps?: boolean, logOptionsTailLines?: string, logOptionsLimitBytes?: string, logOptionsInsecureSkipTLSVerifyBackend?: boolean, grep?: string, selector?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: StreamResultOfIoArgoprojWorkflowV1alpha1LogEntry; }> {
+ const localVarPath = this.basePath + '/api/v1/workflows/{namespace}/{name}/{podName}/log'
+ .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
+ .replace('{' + 'podName' + '}', encodeURIComponent(String(podName)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: 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 workflowServicePodLogs.');
+ }
+
+ // 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 workflowServicePodLogs.');
+ }
+
+ // verify required parameter 'podName' is not null or undefined
+ if (podName === null || podName === undefined) {
+ throw new Error('Required parameter podName was null or undefined when calling workflowServicePodLogs.');
+ }
+
+ if (logOptionsContainer !== undefined) {
+ localVarQueryParameters['logOptions.container'] = ObjectSerializer.serialize(logOptionsContainer, "string");
+ }
+
+ if (logOptionsFollow !== undefined) {
+ localVarQueryParameters['logOptions.follow'] = ObjectSerializer.serialize(logOptionsFollow, "boolean");
+ }
+
+ if (logOptionsPrevious !== undefined) {
+ localVarQueryParameters['logOptions.previous'] = ObjectSerializer.serialize(logOptionsPrevious, "boolean");
+ }
+
+ if (logOptionsSinceSeconds !== undefined) {
+ localVarQueryParameters['logOptions.sinceSeconds'] = ObjectSerializer.serialize(logOptionsSinceSeconds, "string");
+ }
+
+ if (logOptionsSinceTimeSeconds !== undefined) {
+ localVarQueryParameters['logOptions.sinceTime.seconds'] = ObjectSerializer.serialize(logOptionsSinceTimeSeconds, "string");
+ }
+
+ if (logOptionsSinceTimeNanos !== undefined) {
+ localVarQueryParameters['logOptions.sinceTime.nanos'] = ObjectSerializer.serialize(logOptionsSinceTimeNanos, "number");
+ }
+
+ if (logOptionsTimestamps !== undefined) {
+ localVarQueryParameters['logOptions.timestamps'] = ObjectSerializer.serialize(logOptionsTimestamps, "boolean");
+ }
+
+ if (logOptionsTailLines !== undefined) {
+ localVarQueryParameters['logOptions.tailLines'] = ObjectSerializer.serialize(logOptionsTailLines, "string");
+ }
+
+ if (logOptionsLimitBytes !== undefined) {
+ localVarQueryParameters['logOptions.limitBytes'] = ObjectSerializer.serialize(logOptionsLimitBytes, "string");
+ }
+
+ if (logOptionsInsecureSkipTLSVerifyBackend !== undefined) {
+ localVarQueryParameters['logOptions.insecureSkipTLSVerifyBackend'] = ObjectSerializer.serialize(logOptionsInsecureSkipTLSVerifyBackend, "boolean");
+ }
+
+ if (grep !== undefined) {
+ localVarQueryParameters['grep'] = ObjectSerializer.serialize(grep, "string");
+ }
+
+ if (selector !== undefined) {
+ localVarQueryParameters['selector'] = ObjectSerializer.serialize(selector, "string");
+ }
+
+ (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) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ return new Promise<{ response: http.IncomingMessage; body: StreamResultOfIoArgoprojWorkflowV1alpha1LogEntry; }>((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, "StreamResultOfIoArgoprojWorkflowV1alpha1LogEntry");
+ resolve({ response: response, body: body });
+ } else {
+ reject(new HttpError(response, body, response.statusCode));
+ }
+ }
+ });
+ });
+ });
+ }
+ /**
+ *
+ * @param namespace
+ * @param name
+ * @param body
+ */
+ public async workflowServiceResubmitWorkflow (namespace: string, name: string, body: IoArgoprojWorkflowV1alpha1WorkflowResubmitRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1Workflow; }> {
+ const localVarPath = this.basePath + '/api/v1/workflows/{namespace}/{name}/resubmit'
+ .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: 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 workflowServiceResubmitWorkflow.');
+ }
+
+ // 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 workflowServiceResubmitWorkflow.');
+ }
+
+ // 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 workflowServiceResubmitWorkflow.');
+ }
+
+ (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, "IoArgoprojWorkflowV1alpha1WorkflowResubmitRequest")
+ };
+
+ 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) {
+ (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
+ * @param name
+ * @param body
+ */
+ public async workflowServiceResumeWorkflow (namespace: string, name: string, body: IoArgoprojWorkflowV1alpha1WorkflowResumeRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1Workflow; }> {
+ const localVarPath = this.basePath + '/api/v1/workflows/{namespace}/{name}/resume'
+ .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: 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 workflowServiceResumeWorkflow.');
+ }
+
+ // 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 workflowServiceResumeWorkflow.');
+ }
+
+ // 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 workflowServiceResumeWorkflow.');
+ }
+
+ (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, "IoArgoprojWorkflowV1alpha1WorkflowResumeRequest")
+ };
+
+ 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) {
+ (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
+ * @param name
+ * @param body
+ */
+ public async workflowServiceRetryWorkflow (namespace: string, name: string, body: IoArgoprojWorkflowV1alpha1WorkflowRetryRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1Workflow; }> {
+ const localVarPath = this.basePath + '/api/v1/workflows/{namespace}/{name}/retry'
+ .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: 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 workflowServiceRetryWorkflow.');
+ }
+
+ // 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 workflowServiceRetryWorkflow.');
+ }
+
+ // 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 workflowServiceRetryWorkflow.');
+ }
+
+ (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, "IoArgoprojWorkflowV1alpha1WorkflowRetryRequest")
+ };
+
+ 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) {
+ (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
+ * @param name
+ * @param body
+ */
+ public async workflowServiceSetWorkflow (namespace: string, name: string, body: IoArgoprojWorkflowV1alpha1WorkflowSetRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1Workflow; }> {
+ const localVarPath = this.basePath + '/api/v1/workflows/{namespace}/{name}/set'
+ .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: 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 workflowServiceSetWorkflow.');
+ }
+
+ // 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 workflowServiceSetWorkflow.');
+ }
+
+ // 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 workflowServiceSetWorkflow.');
+ }
+
+ (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, "IoArgoprojWorkflowV1alpha1WorkflowSetRequest")
+ };
+
+ 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) {
+ (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
+ * @param name
+ * @param body
+ */
+ public async workflowServiceStopWorkflow (namespace: string, name: string, body: IoArgoprojWorkflowV1alpha1WorkflowStopRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1Workflow; }> {
+ const localVarPath = this.basePath + '/api/v1/workflows/{namespace}/{name}/stop'
+ .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: 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 workflowServiceStopWorkflow.');
+ }
+
+ // 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 workflowServiceStopWorkflow.');
+ }
+
+ // 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 workflowServiceStopWorkflow.');
+ }
+
+ (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, "IoArgoprojWorkflowV1alpha1WorkflowStopRequest")
+ };
+
+ 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) {
+ (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
+ * @param body
+ */
+ public async workflowServiceSubmitWorkflow (namespace: string, body: IoArgoprojWorkflowV1alpha1WorkflowSubmitRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1Workflow; }> {
+ const localVarPath = this.basePath + '/api/v1/workflows/{namespace}/submit'
+ .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: 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 workflowServiceSubmitWorkflow.');
+ }
+
+ // 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 workflowServiceSubmitWorkflow.');
+ }
+
+ (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, "IoArgoprojWorkflowV1alpha1WorkflowSubmitRequest")
+ };
+
+ 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) {
+ (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
+ * @param name
+ * @param body
+ */
+ public async workflowServiceSuspendWorkflow (namespace: string, name: string, body: IoArgoprojWorkflowV1alpha1WorkflowSuspendRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1Workflow; }> {
+ const localVarPath = this.basePath + '/api/v1/workflows/{namespace}/{name}/suspend'
+ .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: 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 workflowServiceSuspendWorkflow.');
+ }
+
+ // 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 workflowServiceSuspendWorkflow.');
+ }
+
+ // 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 workflowServiceSuspendWorkflow.');
+ }
+
+ (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, "IoArgoprojWorkflowV1alpha1WorkflowSuspendRequest")
+ };
+
+ 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) {
+ (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
+ * @param name
+ * @param body
+ */
+ public async workflowServiceTerminateWorkflow (namespace: string, name: string, body: IoArgoprojWorkflowV1alpha1WorkflowTerminateRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: IoArgoprojWorkflowV1alpha1Workflow; }> {
+ const localVarPath = this.basePath + '/api/v1/workflows/{namespace}/{name}/terminate'
+ .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: 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 workflowServiceTerminateWorkflow.');
+ }
+
+ // 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 workflowServiceTerminateWorkflow.');
+ }
+
+ // 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 workflowServiceTerminateWorkflow.');
+ }
+
+ (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, "IoArgoprojWorkflowV1alpha1WorkflowTerminateRequest")
+ };
+
+ 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) {
+ (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
+ * @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 \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'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 `continue` 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 \"next key\". 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 workflowServiceWatchEvents (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: StreamResultOfIoK8sApiCoreV1Event; }> {
+ const localVarPath = this.basePath + '/api/v1/stream/events/{namespace}'
+ .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: 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 workflowServiceWatchEvents.');
+ }
+
+ 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");
+ }
+
+ (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) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ return new Promise<{ response: http.IncomingMessage; body: StreamResultOfIoK8sApiCoreV1Event; }>((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, "StreamResultOfIoK8sApiCoreV1Event");
+ 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 \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'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 `continue` 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 \"next key\". 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 fields
+ */
+ public async workflowServiceWatchWorkflows (namespace: string, listOptionsLabelSelector?: string, listOptionsFieldSelector?: string, listOptionsWatch?: boolean, listOptionsAllowWatchBookmarks?: boolean, listOptionsResourceVersion?: string, listOptionsResourceVersionMatch?: string, listOptionsTimeoutSeconds?: string, listOptionsLimit?: string, listOptionsContinue?: string, fields?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: StreamResultOfIoArgoprojWorkflowV1alpha1WorkflowWatchEvent; }> {
+ const localVarPath = this.basePath + '/api/v1/workflow-events/{namespace}'
+ .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: 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 workflowServiceWatchWorkflows.');
+ }
+
+ 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 (fields !== undefined) {
+ localVarQueryParameters['fields'] = ObjectSerializer.serialize(fields, "string");
+ }
+
+ (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) {
+ (localVarRequestOptions).formData = localVarFormParams;
+ } else {
+ localVarRequestOptions.form = localVarFormParams;
+ }
+ }
+ return new Promise<{ response: http.IncomingMessage; body: StreamResultOfIoArgoprojWorkflowV1alpha1WorkflowWatchEvent; }>((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, "StreamResultOfIoArgoprojWorkflowV1alpha1WorkflowWatchEvent");
+ resolve({ response: response, body: body });
+ } else {
+ reject(new HttpError(response, body, response.statusCode));
+ }
+ }
+ });
+ });
+ });
+ }
+ /**
+ *
+ * @param namespace
+ * @param name
+ * @param podName
+ * @param logOptionsContainer The container for which to stream logs. Defaults to only container if there is one container in the pod. +optional.
+ * @param logOptionsFollow Follow the log stream of the pod. Defaults to false. +optional.
+ * @param logOptionsPrevious Return previous terminated container logs. Defaults to false. +optional.
+ * @param logOptionsSinceSeconds 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 logOptionsSinceTimeSeconds 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 logOptionsSinceTimeNanos 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 logOptionsTimestamps If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. +optional.
+ * @param logOptionsTailLines 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 logOptionsLimitBytes 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 logOptionsInsecureSkipTLSVerifyBackend 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\'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.
+ * @param grep
+ * @param selector
+ */
+ public async workflowServiceWorkflowLogs (namespace: string, name: string, podName?: string, logOptionsContainer?: string, logOptionsFollow?: boolean, logOptionsPrevious?: boolean, logOptionsSinceSeconds?: string, logOptionsSinceTimeSeconds?: string, logOptionsSinceTimeNanos?: number, logOptionsTimestamps?: boolean, logOptionsTailLines?: string, logOptionsLimitBytes?: string, logOptionsInsecureSkipTLSVerifyBackend?: boolean, grep?: string, selector?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: StreamResultOfIoArgoprojWorkflowV1alpha1LogEntry; }> {
+ const localVarPath = this.basePath + '/api/v1/workflows/{namespace}/{name}/log'
+ .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
+ .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
+ let localVarQueryParameters: any = {};
+ let localVarHeaderParams: 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 workflowServiceWorkflowLogs.');
+ }
+
+ // 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 workflowServiceWorkflowLogs.');
+ }
+
+ if (podName !== undefined) {
+ localVarQueryParameters['podName'] = ObjectSerializer.serialize(podName, "string");
+ }
+
+ if (logOptionsContainer !== undefined) {
+ localVarQueryParameters['logOptions.container'] = ObjectSerializer.serialize(logOptionsContainer, "string");
+ }
+
+ if (logOptionsFollow !== undefined) {
+ localVarQueryParameters['logOptions.follow'] = ObjectSerializer.serialize(logOptionsFollow, "boolean");
+ }
+
+ if (logOptionsPrevious !== undefined) {
+ localVarQueryParameters['logOptions.previous'] = ObjectSerializer.serialize(logOptionsPrevious, "boolean");
+ }
+
+ if (logOptionsSinceSeconds !== undefined) {
+ localVarQueryParameters['logOptions.sinceSeconds'] = ObjectSerializer.serialize(logOptionsSinceSeconds, "string");
+ }
+
+ if (logOptionsSinceTimeSeconds !== undefined) {
+ localVarQueryParameters['logOptions.sinceTime.seconds'] = ObjectSerializer.serialize(logOptionsSinceTimeSeconds, "string");
+ }
+
+ if (logOptionsSinceTimeNanos !== undefined) {
+ localVarQueryParameters['logOptions.sinceTime.nanos'] = ObjectSerializer.serialize(logOptionsSinceTimeNanos, "number");
+ }
+
+ if (logOptionsTimestamps !== undefined) {
+ localVarQueryParameters['logOptions.timestamps'] = ObjectSerializer.serialize(logOptionsTimestamps, "boolean");
+ }
+
+ if (logOptionsTailLines !== undefined) {
+ localVarQueryParameters['logOptions.tailLines'] = ObjectSerializer.serialize(logOptionsTailLines, "string");
+ }
+
+ if (logOptionsLimitBytes !== undefined) {
+ localVarQueryParameters['logOptions.limitBytes'] = ObjectSerializer.serialize(logOptionsLimitBytes, "string");
+ }
+
+ if (logOptionsInsecureSkipTLSVerifyBackend !== undefined) {
+ localVarQueryParameters['logOptions.insecureSkipTLSVerifyBackend'] = ObjectSerializer.serialize(logOptionsInsecureSkipTLSVerifyBackend, "boolean");
+ }
+
+ if (grep !== undefined) {
+ localVarQueryParameters['grep'] = ObjectSerializer.serialize(grep, "string");
+ }
+
+ if (selector !== undefined) {
+ localVarQueryParameters['selector'] = ObjectSerializer.serialize(selector, "string");
+ }
+
+ (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) {
+ (