This commit is contained in:
Manabu Mccloskey 2023-06-23 13:52:19 -07:00
parent 2a2fa25b7d
commit 670f86cd1f
860 changed files with 413756 additions and 2 deletions

View file

@ -0,0 +1 @@
module.exports = require('@backstage/cli/config/eslint-factory')(__dirname);

View file

@ -0,0 +1,14 @@
# argo-workflows-backend
Welcome to the argo-workflows-backend backend 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-backend](http://localhost:3000/argo-workflows-backend).
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.

View file

@ -0,0 +1,483 @@
# .ArchivedWorkflowServiceApi
All URIs are relative to *http://localhost:2746*
Method | HTTP request | Description
------------- | ------------- | -------------
[**archivedWorkflowServiceDeleteArchivedWorkflow**](ArchivedWorkflowServiceApi.md#archivedWorkflowServiceDeleteArchivedWorkflow) | **DELETE** /api/v1/archived-workflows/{uid} |
[**archivedWorkflowServiceGetArchivedWorkflow**](ArchivedWorkflowServiceApi.md#archivedWorkflowServiceGetArchivedWorkflow) | **GET** /api/v1/archived-workflows/{uid} |
[**archivedWorkflowServiceListArchivedWorkflowLabelKeys**](ArchivedWorkflowServiceApi.md#archivedWorkflowServiceListArchivedWorkflowLabelKeys) | **GET** /api/v1/archived-workflows-label-keys |
[**archivedWorkflowServiceListArchivedWorkflowLabelValues**](ArchivedWorkflowServiceApi.md#archivedWorkflowServiceListArchivedWorkflowLabelValues) | **GET** /api/v1/archived-workflows-label-values |
[**archivedWorkflowServiceListArchivedWorkflows**](ArchivedWorkflowServiceApi.md#archivedWorkflowServiceListArchivedWorkflows) | **GET** /api/v1/archived-workflows |
[**archivedWorkflowServiceResubmitArchivedWorkflow**](ArchivedWorkflowServiceApi.md#archivedWorkflowServiceResubmitArchivedWorkflow) | **PUT** /api/v1/archived-workflows/{uid}/resubmit |
[**archivedWorkflowServiceRetryArchivedWorkflow**](ArchivedWorkflowServiceApi.md#archivedWorkflowServiceRetryArchivedWorkflow) | **PUT** /api/v1/archived-workflows/{uid}/retry |
# **archivedWorkflowServiceDeleteArchivedWorkflow**
> any archivedWorkflowServiceDeleteArchivedWorkflow()
### Example
```typescript
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .ArchivedWorkflowServiceApi(configuration);
let body:.ArchivedWorkflowServiceApiArchivedWorkflowServiceDeleteArchivedWorkflowRequest = {
// string
uid: "uid_example",
// string (optional)
namespace: "namespace_example",
};
apiInstance.archivedWorkflowServiceDeleteArchivedWorkflow(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**uid** | [**string**] | | defaults to undefined
**namespace** | [**string**] | | (optional) defaults to undefined
### Return type
**any**
### Authorization
[BearerToken](README.md#BearerToken)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | A successful response. | - |
**0** | An unexpected error response. | - |
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
# **archivedWorkflowServiceGetArchivedWorkflow**
> IoArgoprojWorkflowV1alpha1Workflow archivedWorkflowServiceGetArchivedWorkflow()
### Example
```typescript
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .ArchivedWorkflowServiceApi(configuration);
let body:.ArchivedWorkflowServiceApiArchivedWorkflowServiceGetArchivedWorkflowRequest = {
// string
uid: "uid_example",
// string (optional)
namespace: "namespace_example",
// string (optional)
name: "name_example",
};
apiInstance.archivedWorkflowServiceGetArchivedWorkflow(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**uid** | [**string**] | | defaults to undefined
**namespace** | [**string**] | | (optional) defaults to undefined
**name** | [**string**] | | (optional) defaults to undefined
### Return type
**IoArgoprojWorkflowV1alpha1Workflow**
### Authorization
[BearerToken](README.md#BearerToken)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | A successful response. | - |
**0** | An unexpected error response. | - |
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
# **archivedWorkflowServiceListArchivedWorkflowLabelKeys**
> IoArgoprojWorkflowV1alpha1LabelKeys archivedWorkflowServiceListArchivedWorkflowLabelKeys()
### Example
```typescript
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .ArchivedWorkflowServiceApi(configuration);
let body:.ArchivedWorkflowServiceApiArchivedWorkflowServiceListArchivedWorkflowLabelKeysRequest = {
// string (optional)
namespace: "namespace_example",
};
apiInstance.archivedWorkflowServiceListArchivedWorkflowLabelKeys(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**namespace** | [**string**] | | (optional) defaults to undefined
### Return type
**IoArgoprojWorkflowV1alpha1LabelKeys**
### Authorization
[BearerToken](README.md#BearerToken)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | A successful response. | - |
**0** | An unexpected error response. | - |
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
# **archivedWorkflowServiceListArchivedWorkflowLabelValues**
> IoArgoprojWorkflowV1alpha1LabelValues archivedWorkflowServiceListArchivedWorkflowLabelValues()
### Example
```typescript
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .ArchivedWorkflowServiceApi(configuration);
let body:.ArchivedWorkflowServiceApiArchivedWorkflowServiceListArchivedWorkflowLabelValuesRequest = {
// string | A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional. (optional)
listOptionsLabelSelector: "listOptions.labelSelector_example",
// string | A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional. (optional)
listOptionsFieldSelector: "listOptions.fieldSelector_example",
// boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional. (optional)
listOptionsWatch: true,
// boolean | 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. (optional)
listOptionsAllowWatchBookmarks: true,
// string | 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 (optional)
listOptionsResourceVersion: "listOptions.resourceVersion_example",
// string | 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 (optional)
listOptionsResourceVersionMatch: "listOptions.resourceVersionMatch_example",
// string | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional. (optional)
listOptionsTimeoutSeconds: "listOptions.timeoutSeconds_example",
// string | 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. (optional)
listOptionsLimit: "listOptions.limit_example",
// string | 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. (optional)
listOptionsContinue: "listOptions.continue_example",
// string (optional)
namespace: "namespace_example",
};
apiInstance.archivedWorkflowServiceListArchivedWorkflowLabelValues(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**listOptionsLabelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional. | (optional) defaults to undefined
**listOptionsFieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional. | (optional) defaults to undefined
**listOptionsWatch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional. | (optional) defaults to undefined
**listOptionsAllowWatchBookmarks** | [**boolean**] | 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. | (optional) defaults to undefined
**listOptionsResourceVersion** | [**string**] | 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 | (optional) defaults to undefined
**listOptionsResourceVersionMatch** | [**string**] | 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 | (optional) defaults to undefined
**listOptionsTimeoutSeconds** | [**string**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional. | (optional) defaults to undefined
**listOptionsLimit** | [**string**] | 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. | (optional) defaults to undefined
**listOptionsContinue** | [**string**] | 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. | (optional) defaults to undefined
**namespace** | [**string**] | | (optional) defaults to undefined
### Return type
**IoArgoprojWorkflowV1alpha1LabelValues**
### Authorization
[BearerToken](README.md#BearerToken)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | A successful response. | - |
**0** | An unexpected error response. | - |
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
# **archivedWorkflowServiceListArchivedWorkflows**
> IoArgoprojWorkflowV1alpha1WorkflowList archivedWorkflowServiceListArchivedWorkflows()
### Example
```typescript
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .ArchivedWorkflowServiceApi(configuration);
let body:.ArchivedWorkflowServiceApiArchivedWorkflowServiceListArchivedWorkflowsRequest = {
// string | A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional. (optional)
listOptionsLabelSelector: "listOptions.labelSelector_example",
// string | A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional. (optional)
listOptionsFieldSelector: "listOptions.fieldSelector_example",
// boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional. (optional)
listOptionsWatch: true,
// boolean | 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. (optional)
listOptionsAllowWatchBookmarks: true,
// string | 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 (optional)
listOptionsResourceVersion: "listOptions.resourceVersion_example",
// string | 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 (optional)
listOptionsResourceVersionMatch: "listOptions.resourceVersionMatch_example",
// string | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional. (optional)
listOptionsTimeoutSeconds: "listOptions.timeoutSeconds_example",
// string | 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. (optional)
listOptionsLimit: "listOptions.limit_example",
// string | 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. (optional)
listOptionsContinue: "listOptions.continue_example",
// string (optional)
namePrefix: "namePrefix_example",
// string (optional)
namespace: "namespace_example",
};
apiInstance.archivedWorkflowServiceListArchivedWorkflows(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**listOptionsLabelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional. | (optional) defaults to undefined
**listOptionsFieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional. | (optional) defaults to undefined
**listOptionsWatch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional. | (optional) defaults to undefined
**listOptionsAllowWatchBookmarks** | [**boolean**] | 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. | (optional) defaults to undefined
**listOptionsResourceVersion** | [**string**] | 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 | (optional) defaults to undefined
**listOptionsResourceVersionMatch** | [**string**] | 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 | (optional) defaults to undefined
**listOptionsTimeoutSeconds** | [**string**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional. | (optional) defaults to undefined
**listOptionsLimit** | [**string**] | 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. | (optional) defaults to undefined
**listOptionsContinue** | [**string**] | 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. | (optional) defaults to undefined
**namePrefix** | [**string**] | | (optional) defaults to undefined
**namespace** | [**string**] | | (optional) defaults to undefined
### Return type
**IoArgoprojWorkflowV1alpha1WorkflowList**
### Authorization
[BearerToken](README.md#BearerToken)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | A successful response. | - |
**0** | An unexpected error response. | - |
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
# **archivedWorkflowServiceResubmitArchivedWorkflow**
> IoArgoprojWorkflowV1alpha1Workflow archivedWorkflowServiceResubmitArchivedWorkflow(body)
### Example
```typescript
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .ArchivedWorkflowServiceApi(configuration);
let body:.ArchivedWorkflowServiceApiArchivedWorkflowServiceResubmitArchivedWorkflowRequest = {
// string
uid: "uid_example",
// IoArgoprojWorkflowV1alpha1ResubmitArchivedWorkflowRequest
body: {
memoized: true,
name: "name_example",
namespace: "namespace_example",
parameters: [
"parameters_example",
],
uid: "uid_example",
},
};
apiInstance.archivedWorkflowServiceResubmitArchivedWorkflow(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | **IoArgoprojWorkflowV1alpha1ResubmitArchivedWorkflowRequest**| |
**uid** | [**string**] | | defaults to undefined
### Return type
**IoArgoprojWorkflowV1alpha1Workflow**
### Authorization
[BearerToken](README.md#BearerToken)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | A successful response. | - |
**0** | An unexpected error response. | - |
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
# **archivedWorkflowServiceRetryArchivedWorkflow**
> IoArgoprojWorkflowV1alpha1Workflow archivedWorkflowServiceRetryArchivedWorkflow(body)
### Example
```typescript
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .ArchivedWorkflowServiceApi(configuration);
let body:.ArchivedWorkflowServiceApiArchivedWorkflowServiceRetryArchivedWorkflowRequest = {
// string
uid: "uid_example",
// IoArgoprojWorkflowV1alpha1RetryArchivedWorkflowRequest
body: {
name: "name_example",
namespace: "namespace_example",
nodeFieldSelector: "nodeFieldSelector_example",
parameters: [
"parameters_example",
],
restartSuccessful: true,
uid: "uid_example",
},
};
apiInstance.archivedWorkflowServiceRetryArchivedWorkflow(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | **IoArgoprojWorkflowV1alpha1RetryArchivedWorkflowRequest**| |
**uid** | [**string**] | | defaults to undefined
### Return type
**IoArgoprojWorkflowV1alpha1Workflow**
### Authorization
[BearerToken](README.md#BearerToken)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | A successful response. | - |
**0** | An unexpected error response. | - |
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)

View file

@ -0,0 +1,329 @@
# .ArtifactServiceApi
All URIs are relative to *http://localhost:2746*
Method | HTTP request | Description
------------- | ------------- | -------------
[**artifactServiceGetArtifactFile**](ArtifactServiceApi.md#artifactServiceGetArtifactFile) | **GET** /artifact-files/{namespace}/{idDiscriminator}/{id}/{nodeId}/{artifactDiscriminator}/{artifactName} | Get an artifact.
[**artifactServiceGetInputArtifact**](ArtifactServiceApi.md#artifactServiceGetInputArtifact) | **GET** /input-artifacts/{namespace}/{name}/{nodeId}/{artifactName} | Get an input artifact.
[**artifactServiceGetInputArtifactByUID**](ArtifactServiceApi.md#artifactServiceGetInputArtifactByUID) | **GET** /input-artifacts-by-uid/{uid}/{nodeId}/{artifactName} | Get an input artifact by UID.
[**artifactServiceGetOutputArtifact**](ArtifactServiceApi.md#artifactServiceGetOutputArtifact) | **GET** /artifacts/{namespace}/{name}/{nodeId}/{artifactName} | Get an output artifact.
[**artifactServiceGetOutputArtifactByUID**](ArtifactServiceApi.md#artifactServiceGetOutputArtifactByUID) | **GET** /artifacts-by-uid/{uid}/{nodeId}/{artifactName} | Get an output artifact by UID.
# **artifactServiceGetArtifactFile**
> HttpFile artifactServiceGetArtifactFile()
### Example
```typescript
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .ArtifactServiceApi(configuration);
let body:.ArtifactServiceApiArtifactServiceGetArtifactFileRequest = {
// string
namespace: "namespace_example",
// 'workflow' | 'archived-workflows '
idDiscriminator: "workflow",
// string
id: "id_example",
// string
nodeId: "nodeId_example",
// string
artifactName: "artifactName_example",
// 'outputs'
artifactDiscriminator: "outputs",
};
apiInstance.artifactServiceGetArtifactFile(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**namespace** | [**string**] | | defaults to undefined
**idDiscriminator** | [**&#39;workflow&#39; | &#39;archived-workflows &#39;**]**Array<&#39;workflow&#39; &#124; &#39;archived-workflows &#39;>** | | defaults to undefined
**id** | [**string**] | | defaults to undefined
**nodeId** | [**string**] | | defaults to undefined
**artifactName** | [**string**] | | defaults to undefined
**artifactDiscriminator** | [**&#39;outputs&#39;**]**Array<&#39;outputs&#39;>** | | defaults to undefined
### Return type
**HttpFile**
### Authorization
[BearerToken](README.md#BearerToken)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | An artifact file. | - |
**0** | An unexpected error response. | - |
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
# **artifactServiceGetInputArtifact**
> HttpFile artifactServiceGetInputArtifact()
### Example
```typescript
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .ArtifactServiceApi(configuration);
let body:.ArtifactServiceApiArtifactServiceGetInputArtifactRequest = {
// string
namespace: "namespace_example",
// string
name: "name_example",
// string
nodeId: "nodeId_example",
// string
artifactName: "artifactName_example",
};
apiInstance.artifactServiceGetInputArtifact(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**namespace** | [**string**] | | defaults to undefined
**name** | [**string**] | | defaults to undefined
**nodeId** | [**string**] | | defaults to undefined
**artifactName** | [**string**] | | defaults to undefined
### Return type
**HttpFile**
### Authorization
[BearerToken](README.md#BearerToken)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | An artifact file. | - |
**0** | An unexpected error response. | - |
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
# **artifactServiceGetInputArtifactByUID**
> HttpFile artifactServiceGetInputArtifactByUID()
### Example
```typescript
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .ArtifactServiceApi(configuration);
let body:.ArtifactServiceApiArtifactServiceGetInputArtifactByUIDRequest = {
// string
uid: "uid_example",
// string
nodeId: "nodeId_example",
// string
artifactName: "artifactName_example",
};
apiInstance.artifactServiceGetInputArtifactByUID(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**uid** | [**string**] | | defaults to undefined
**nodeId** | [**string**] | | defaults to undefined
**artifactName** | [**string**] | | defaults to undefined
### Return type
**HttpFile**
### Authorization
[BearerToken](README.md#BearerToken)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | An artifact file. | - |
**0** | An unexpected error response. | - |
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
# **artifactServiceGetOutputArtifact**
> HttpFile artifactServiceGetOutputArtifact()
### Example
```typescript
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .ArtifactServiceApi(configuration);
let body:.ArtifactServiceApiArtifactServiceGetOutputArtifactRequest = {
// string
namespace: "namespace_example",
// string
name: "name_example",
// string
nodeId: "nodeId_example",
// string
artifactName: "artifactName_example",
};
apiInstance.artifactServiceGetOutputArtifact(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**namespace** | [**string**] | | defaults to undefined
**name** | [**string**] | | defaults to undefined
**nodeId** | [**string**] | | defaults to undefined
**artifactName** | [**string**] | | defaults to undefined
### Return type
**HttpFile**
### Authorization
[BearerToken](README.md#BearerToken)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | An artifact file. | - |
**0** | An unexpected error response. | - |
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
# **artifactServiceGetOutputArtifactByUID**
> HttpFile artifactServiceGetOutputArtifactByUID()
### Example
```typescript
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .ArtifactServiceApi(configuration);
let body:.ArtifactServiceApiArtifactServiceGetOutputArtifactByUIDRequest = {
// string
uid: "uid_example",
// string
nodeId: "nodeId_example",
// string
artifactName: "artifactName_example",
};
apiInstance.artifactServiceGetOutputArtifactByUID(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**uid** | [**string**] | | defaults to undefined
**nodeId** | [**string**] | | defaults to undefined
**artifactName** | [**string**] | | defaults to undefined
### Return type
**HttpFile**
### Authorization
[BearerToken](README.md#BearerToken)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | An artifact file. | - |
**0** | An unexpected error response. | - |
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,152 @@
# .EventServiceApi
All URIs are relative to *http://localhost:2746*
Method | HTTP request | Description
------------- | ------------- | -------------
[**eventServiceListWorkflowEventBindings**](EventServiceApi.md#eventServiceListWorkflowEventBindings) | **GET** /api/v1/workflow-event-bindings/{namespace} |
[**eventServiceReceiveEvent**](EventServiceApi.md#eventServiceReceiveEvent) | **POST** /api/v1/events/{namespace}/{discriminator} |
# **eventServiceListWorkflowEventBindings**
> IoArgoprojWorkflowV1alpha1WorkflowEventBindingList eventServiceListWorkflowEventBindings()
### Example
```typescript
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .EventServiceApi(configuration);
let body:.EventServiceApiEventServiceListWorkflowEventBindingsRequest = {
// string
namespace: "namespace_example",
// string | A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional. (optional)
listOptionsLabelSelector: "listOptions.labelSelector_example",
// string | A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional. (optional)
listOptionsFieldSelector: "listOptions.fieldSelector_example",
// boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional. (optional)
listOptionsWatch: true,
// boolean | 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. (optional)
listOptionsAllowWatchBookmarks: true,
// string | 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 (optional)
listOptionsResourceVersion: "listOptions.resourceVersion_example",
// string | 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 (optional)
listOptionsResourceVersionMatch: "listOptions.resourceVersionMatch_example",
// string | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional. (optional)
listOptionsTimeoutSeconds: "listOptions.timeoutSeconds_example",
// string | 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. (optional)
listOptionsLimit: "listOptions.limit_example",
// string | 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. (optional)
listOptionsContinue: "listOptions.continue_example",
};
apiInstance.eventServiceListWorkflowEventBindings(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**namespace** | [**string**] | | defaults to undefined
**listOptionsLabelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional. | (optional) defaults to undefined
**listOptionsFieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional. | (optional) defaults to undefined
**listOptionsWatch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional. | (optional) defaults to undefined
**listOptionsAllowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \&quot;BOOKMARK\&quot;. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\&#39;s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional. | (optional) defaults to undefined
**listOptionsResourceVersion** | [**string**] | 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 | (optional) defaults to undefined
**listOptionsResourceVersionMatch** | [**string**] | 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 | (optional) defaults to undefined
**listOptionsTimeoutSeconds** | [**string**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional. | (optional) defaults to undefined
**listOptionsLimit** | [**string**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined
**listOptionsContinue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined
### Return type
**IoArgoprojWorkflowV1alpha1WorkflowEventBindingList**
### Authorization
[BearerToken](README.md#BearerToken)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | A successful response. | - |
**0** | An unexpected error response. | - |
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
# **eventServiceReceiveEvent**
> any eventServiceReceiveEvent(body)
### Example
```typescript
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .EventServiceApi(configuration);
let body:.EventServiceApiEventServiceReceiveEventRequest = {
// string | 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.
namespace: "namespace_example",
// string | 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)`
discriminator: "discriminator_example",
// any | The event itself can be any data.
body: {},
};
apiInstance.eventServiceReceiveEvent(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | **any**| The event itself can be any data. |
**namespace** | [**string**] | The namespace for the io.argoproj.workflow.v1alpha1. This can be empty if the client has cluster scoped permissions. If empty, then the event is \&quot;broadcast\&quot; to workflow event binding in all namespaces. | defaults to undefined
**discriminator** | [**string**] | Optional discriminator for the io.argoproj.workflow.v1alpha1. This should almost always be empty. Used for edge-cases where the event payload alone is not provide enough information to discriminate the event. This MUST NOT be used as security mechanism, e.g. to allow two clients to use the same access token, or to support webhooks on unsecured server. Instead, use access tokens. This is made available as &#x60;discriminator&#x60; in the event binding selector (&#x60;/spec/event/selector)&#x60; | defaults to undefined
### Return type
**any**
### Authorization
[BearerToken](README.md#BearerToken)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | A successful response. | - |
**0** | An unexpected error response. | - |
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,213 @@
# .InfoServiceApi
All URIs are relative to *http://localhost:2746*
Method | HTTP request | Description
------------- | ------------- | -------------
[**infoServiceCollectEvent**](InfoServiceApi.md#infoServiceCollectEvent) | **POST** /api/v1/tracking/event |
[**infoServiceGetInfo**](InfoServiceApi.md#infoServiceGetInfo) | **GET** /api/v1/info |
[**infoServiceGetUserInfo**](InfoServiceApi.md#infoServiceGetUserInfo) | **GET** /api/v1/userinfo |
[**infoServiceGetVersion**](InfoServiceApi.md#infoServiceGetVersion) | **GET** /api/v1/version |
# **infoServiceCollectEvent**
> any infoServiceCollectEvent(body)
### Example
```typescript
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .InfoServiceApi(configuration);
let body:.InfoServiceApiInfoServiceCollectEventRequest = {
// IoArgoprojWorkflowV1alpha1CollectEventRequest
body: {
name: "name_example",
},
};
apiInstance.infoServiceCollectEvent(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | **IoArgoprojWorkflowV1alpha1CollectEventRequest**| |
### Return type
**any**
### Authorization
[BearerToken](README.md#BearerToken)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | A successful response. | - |
**0** | An unexpected error response. | - |
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
# **infoServiceGetInfo**
> IoArgoprojWorkflowV1alpha1InfoResponse infoServiceGetInfo()
### Example
```typescript
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .InfoServiceApi(configuration);
let body:any = {};
apiInstance.infoServiceGetInfo(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
```
### Parameters
This endpoint does not need any parameter.
### Return type
**IoArgoprojWorkflowV1alpha1InfoResponse**
### Authorization
[BearerToken](README.md#BearerToken)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | A successful response. | - |
**0** | An unexpected error response. | - |
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
# **infoServiceGetUserInfo**
> IoArgoprojWorkflowV1alpha1GetUserInfoResponse infoServiceGetUserInfo()
### Example
```typescript
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .InfoServiceApi(configuration);
let body:any = {};
apiInstance.infoServiceGetUserInfo(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
```
### Parameters
This endpoint does not need any parameter.
### Return type
**IoArgoprojWorkflowV1alpha1GetUserInfoResponse**
### Authorization
[BearerToken](README.md#BearerToken)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | A successful response. | - |
**0** | An unexpected error response. | - |
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
# **infoServiceGetVersion**
> IoArgoprojWorkflowV1alpha1Version infoServiceGetVersion()
### Example
```typescript
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .InfoServiceApi(configuration);
let body:any = {};
apiInstance.infoServiceGetVersion(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
```
### Parameters
This endpoint does not need any parameter.
### Return type
**IoArgoprojWorkflowV1alpha1Version**
### Authorization
[BearerToken](README.md#BearerToken)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | A successful response. | - |
**0** | An unexpected error response. | - |
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)

View file

@ -0,0 +1,80 @@
## @
This generator creates TypeScript/JavaScript client that utilizes fetch-api.
### Building
To build and compile the typescript sources to javascript use:
```
npm install
npm run build
```
### Publishing
First build the package then run ```npm publish```
### Consuming
Navigate to the folder of your consuming project and run one of the following commands.
_published:_
```
npm install @ --save
```
_unPublished (not recommended):_
```
npm install PATH_TO_GENERATED_PACKAGE --save
```
### Usage
Below code snippet shows exemplary usage of the configuration and the API based
on the typical `PetStore` example used for OpenAPI.
```
import * as your_api from 'your_api_package'
// Covers all auth methods included in your OpenAPI yaml definition
const authConfig: your_api.AuthMethodsConfiguration = {
"api_key": "YOUR_API_KEY"
}
// Implements a simple middleware to modify requests before (`pre`) they are sent
// and after (`post`) they have been received
class Test implements your_api.Middleware {
pre(context: your_api.RequestContext): Promise<your_api.RequestContext> {
// Modify context here and return
return Promise.resolve(context);
}
post(context: your_api.ResponseContext): Promise<your_api.ResponseContext> {
return Promise.resolve(context);
}
}
// Create configuration parameter object
const configurationParameters = {
httpApi: new your_api.JQueryHttpLibrary(), // Can also be ignored - default is usually fine
baseServer: your_api.servers[0], // First server is default
authMethods: authConfig, // No auth is default
promiseMiddleware: [new Test()],
}
// Convert to actual configuration
const config = your_api.createConfiguration(configurationParameters);
// Use configuration with your_api
const api = new your_api.PetApi(config);
your_api.Pet p = new your_api.Pet();
p.name = "My new pet";
p.photoUrls = [];
p.tags = [];
p.status = "available";
Promise<your_api.Pet> createdPet = api.addPet(p);
```

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,719 @@
// TODO: better import syntax?
import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi';
import {Configuration} from '../configuration';
import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http';
import {ObjectSerializer} from '../models/ObjectSerializer';
import {ApiException} from './exception';
import {canConsumeForm, isCodeInRange} from '../util';
import {SecurityAuthentication} from '../auth/auth';
import { GrpcGatewayRuntimeError } from '../models/GrpcGatewayRuntimeError';
import { IoArgoprojWorkflowV1alpha1LabelKeys } from '../models/IoArgoprojWorkflowV1alpha1LabelKeys';
import { IoArgoprojWorkflowV1alpha1LabelValues } from '../models/IoArgoprojWorkflowV1alpha1LabelValues';
import { IoArgoprojWorkflowV1alpha1ResubmitArchivedWorkflowRequest } from '../models/IoArgoprojWorkflowV1alpha1ResubmitArchivedWorkflowRequest';
import { IoArgoprojWorkflowV1alpha1RetryArchivedWorkflowRequest } from '../models/IoArgoprojWorkflowV1alpha1RetryArchivedWorkflowRequest';
import { IoArgoprojWorkflowV1alpha1Workflow } from '../models/IoArgoprojWorkflowV1alpha1Workflow';
import { IoArgoprojWorkflowV1alpha1WorkflowList } from '../models/IoArgoprojWorkflowV1alpha1WorkflowList';
/**
* no description
*/
export class ArchivedWorkflowServiceApiRequestFactory extends BaseAPIRequestFactory {
/**
* @param uid
* @param namespace
*/
public async archivedWorkflowServiceDeleteArchivedWorkflow(uid: string, namespace?: string, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'uid' is not null or undefined
if (uid === null || uid === undefined) {
throw new RequiredError("ArchivedWorkflowServiceApi", "archivedWorkflowServiceDeleteArchivedWorkflow", "uid");
}
// Path Params
const localVarPath = '/api/v1/archived-workflows/{uid}'
.replace('{' + 'uid' + '}', encodeURIComponent(String(uid)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Query Params
if (namespace !== undefined) {
requestContext.setQueryParam("namespace", ObjectSerializer.serialize(namespace, "string", ""));
}
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @param uid
* @param namespace
* @param name
*/
public async archivedWorkflowServiceGetArchivedWorkflow(uid: string, namespace?: string, name?: string, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'uid' is not null or undefined
if (uid === null || uid === undefined) {
throw new RequiredError("ArchivedWorkflowServiceApi", "archivedWorkflowServiceGetArchivedWorkflow", "uid");
}
// Path Params
const localVarPath = '/api/v1/archived-workflows/{uid}'
.replace('{' + 'uid' + '}', encodeURIComponent(String(uid)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Query Params
if (namespace !== undefined) {
requestContext.setQueryParam("namespace", ObjectSerializer.serialize(namespace, "string", ""));
}
// Query Params
if (name !== undefined) {
requestContext.setQueryParam("name", ObjectSerializer.serialize(name, "string", ""));
}
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @param namespace
*/
public async archivedWorkflowServiceListArchivedWorkflowLabelKeys(namespace?: string, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// Path Params
const localVarPath = '/api/v1/archived-workflows-label-keys';
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Query Params
if (namespace !== undefined) {
requestContext.setQueryParam("namespace", ObjectSerializer.serialize(namespace, "string", ""));
}
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @param listOptionsLabelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional.
* @param listOptionsFieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional.
* @param listOptionsWatch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional.
* @param listOptionsAllowWatchBookmarks allowWatchBookmarks requests watch events with type \&quot;BOOKMARK\&quot;. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\&#39;s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional.
* @param listOptionsResourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsResourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsTimeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional.
* @param listOptionsLimit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
* @param listOptionsContinue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
* @param namespace
*/
public async archivedWorkflowServiceListArchivedWorkflowLabelValues(listOptionsLabelSelector?: string, listOptionsFieldSelector?: string, listOptionsWatch?: boolean, listOptionsAllowWatchBookmarks?: boolean, listOptionsResourceVersion?: string, listOptionsResourceVersionMatch?: string, listOptionsTimeoutSeconds?: string, listOptionsLimit?: string, listOptionsContinue?: string, namespace?: string, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// Path Params
const localVarPath = '/api/v1/archived-workflows-label-values';
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Query Params
if (listOptionsLabelSelector !== undefined) {
requestContext.setQueryParam("listOptions.labelSelector", ObjectSerializer.serialize(listOptionsLabelSelector, "string", ""));
}
// Query Params
if (listOptionsFieldSelector !== undefined) {
requestContext.setQueryParam("listOptions.fieldSelector", ObjectSerializer.serialize(listOptionsFieldSelector, "string", ""));
}
// Query Params
if (listOptionsWatch !== undefined) {
requestContext.setQueryParam("listOptions.watch", ObjectSerializer.serialize(listOptionsWatch, "boolean", ""));
}
// Query Params
if (listOptionsAllowWatchBookmarks !== undefined) {
requestContext.setQueryParam("listOptions.allowWatchBookmarks", ObjectSerializer.serialize(listOptionsAllowWatchBookmarks, "boolean", ""));
}
// Query Params
if (listOptionsResourceVersion !== undefined) {
requestContext.setQueryParam("listOptions.resourceVersion", ObjectSerializer.serialize(listOptionsResourceVersion, "string", ""));
}
// Query Params
if (listOptionsResourceVersionMatch !== undefined) {
requestContext.setQueryParam("listOptions.resourceVersionMatch", ObjectSerializer.serialize(listOptionsResourceVersionMatch, "string", ""));
}
// Query Params
if (listOptionsTimeoutSeconds !== undefined) {
requestContext.setQueryParam("listOptions.timeoutSeconds", ObjectSerializer.serialize(listOptionsTimeoutSeconds, "string", "int64"));
}
// Query Params
if (listOptionsLimit !== undefined) {
requestContext.setQueryParam("listOptions.limit", ObjectSerializer.serialize(listOptionsLimit, "string", "int64"));
}
// Query Params
if (listOptionsContinue !== undefined) {
requestContext.setQueryParam("listOptions.continue", ObjectSerializer.serialize(listOptionsContinue, "string", ""));
}
// Query Params
if (namespace !== undefined) {
requestContext.setQueryParam("namespace", ObjectSerializer.serialize(namespace, "string", ""));
}
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @param listOptionsLabelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional.
* @param listOptionsFieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional.
* @param listOptionsWatch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional.
* @param listOptionsAllowWatchBookmarks allowWatchBookmarks requests watch events with type \&quot;BOOKMARK\&quot;. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\&#39;s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional.
* @param listOptionsResourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsResourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsTimeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional.
* @param listOptionsLimit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
* @param listOptionsContinue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
* @param namePrefix
* @param namespace
*/
public async archivedWorkflowServiceListArchivedWorkflows(listOptionsLabelSelector?: string, listOptionsFieldSelector?: string, listOptionsWatch?: boolean, listOptionsAllowWatchBookmarks?: boolean, listOptionsResourceVersion?: string, listOptionsResourceVersionMatch?: string, listOptionsTimeoutSeconds?: string, listOptionsLimit?: string, listOptionsContinue?: string, namePrefix?: string, namespace?: string, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// Path Params
const localVarPath = '/api/v1/archived-workflows';
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Query Params
if (listOptionsLabelSelector !== undefined) {
requestContext.setQueryParam("listOptions.labelSelector", ObjectSerializer.serialize(listOptionsLabelSelector, "string", ""));
}
// Query Params
if (listOptionsFieldSelector !== undefined) {
requestContext.setQueryParam("listOptions.fieldSelector", ObjectSerializer.serialize(listOptionsFieldSelector, "string", ""));
}
// Query Params
if (listOptionsWatch !== undefined) {
requestContext.setQueryParam("listOptions.watch", ObjectSerializer.serialize(listOptionsWatch, "boolean", ""));
}
// Query Params
if (listOptionsAllowWatchBookmarks !== undefined) {
requestContext.setQueryParam("listOptions.allowWatchBookmarks", ObjectSerializer.serialize(listOptionsAllowWatchBookmarks, "boolean", ""));
}
// Query Params
if (listOptionsResourceVersion !== undefined) {
requestContext.setQueryParam("listOptions.resourceVersion", ObjectSerializer.serialize(listOptionsResourceVersion, "string", ""));
}
// Query Params
if (listOptionsResourceVersionMatch !== undefined) {
requestContext.setQueryParam("listOptions.resourceVersionMatch", ObjectSerializer.serialize(listOptionsResourceVersionMatch, "string", ""));
}
// Query Params
if (listOptionsTimeoutSeconds !== undefined) {
requestContext.setQueryParam("listOptions.timeoutSeconds", ObjectSerializer.serialize(listOptionsTimeoutSeconds, "string", "int64"));
}
// Query Params
if (listOptionsLimit !== undefined) {
requestContext.setQueryParam("listOptions.limit", ObjectSerializer.serialize(listOptionsLimit, "string", "int64"));
}
// Query Params
if (listOptionsContinue !== undefined) {
requestContext.setQueryParam("listOptions.continue", ObjectSerializer.serialize(listOptionsContinue, "string", ""));
}
// Query Params
if (namePrefix !== undefined) {
requestContext.setQueryParam("namePrefix", ObjectSerializer.serialize(namePrefix, "string", ""));
}
// Query Params
if (namespace !== undefined) {
requestContext.setQueryParam("namespace", ObjectSerializer.serialize(namespace, "string", ""));
}
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @param uid
* @param body
*/
public async archivedWorkflowServiceResubmitArchivedWorkflow(uid: string, body: IoArgoprojWorkflowV1alpha1ResubmitArchivedWorkflowRequest, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'uid' is not null or undefined
if (uid === null || uid === undefined) {
throw new RequiredError("ArchivedWorkflowServiceApi", "archivedWorkflowServiceResubmitArchivedWorkflow", "uid");
}
// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new RequiredError("ArchivedWorkflowServiceApi", "archivedWorkflowServiceResubmitArchivedWorkflow", "body");
}
// Path Params
const localVarPath = '/api/v1/archived-workflows/{uid}/resubmit'
.replace('{' + 'uid' + '}', encodeURIComponent(String(uid)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Body Params
const contentType = ObjectSerializer.getPreferredMediaType([
"application/json"
]);
requestContext.setHeaderParam("Content-Type", contentType);
const serializedBody = ObjectSerializer.stringify(
ObjectSerializer.serialize(body, "IoArgoprojWorkflowV1alpha1ResubmitArchivedWorkflowRequest", ""),
contentType
);
requestContext.setBody(serializedBody);
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @param uid
* @param body
*/
public async archivedWorkflowServiceRetryArchivedWorkflow(uid: string, body: IoArgoprojWorkflowV1alpha1RetryArchivedWorkflowRequest, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'uid' is not null or undefined
if (uid === null || uid === undefined) {
throw new RequiredError("ArchivedWorkflowServiceApi", "archivedWorkflowServiceRetryArchivedWorkflow", "uid");
}
// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new RequiredError("ArchivedWorkflowServiceApi", "archivedWorkflowServiceRetryArchivedWorkflow", "body");
}
// Path Params
const localVarPath = '/api/v1/archived-workflows/{uid}/retry'
.replace('{' + 'uid' + '}', encodeURIComponent(String(uid)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Body Params
const contentType = ObjectSerializer.getPreferredMediaType([
"application/json"
]);
requestContext.setHeaderParam("Content-Type", contentType);
const serializedBody = ObjectSerializer.stringify(
ObjectSerializer.serialize(body, "IoArgoprojWorkflowV1alpha1RetryArchivedWorkflowRequest", ""),
contentType
);
requestContext.setBody(serializedBody);
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
}
export class ArchivedWorkflowServiceApiResponseProcessor {
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to archivedWorkflowServiceDeleteArchivedWorkflow
* @throws ApiException if the response code was not in [200, 299]
*/
public async archivedWorkflowServiceDeleteArchivedWorkflow(response: ResponseContext): Promise<any > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: any = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"any", ""
) as any;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: any = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"any", ""
) as any;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to archivedWorkflowServiceGetArchivedWorkflow
* @throws ApiException if the response code was not in [200, 299]
*/
public async archivedWorkflowServiceGetArchivedWorkflow(response: ResponseContext): Promise<IoArgoprojWorkflowV1alpha1Workflow > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojWorkflowV1alpha1Workflow = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1Workflow", ""
) as IoArgoprojWorkflowV1alpha1Workflow;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojWorkflowV1alpha1Workflow = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1Workflow", ""
) as IoArgoprojWorkflowV1alpha1Workflow;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to archivedWorkflowServiceListArchivedWorkflowLabelKeys
* @throws ApiException if the response code was not in [200, 299]
*/
public async archivedWorkflowServiceListArchivedWorkflowLabelKeys(response: ResponseContext): Promise<IoArgoprojWorkflowV1alpha1LabelKeys > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojWorkflowV1alpha1LabelKeys = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1LabelKeys", ""
) as IoArgoprojWorkflowV1alpha1LabelKeys;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojWorkflowV1alpha1LabelKeys = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1LabelKeys", ""
) as IoArgoprojWorkflowV1alpha1LabelKeys;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to archivedWorkflowServiceListArchivedWorkflowLabelValues
* @throws ApiException if the response code was not in [200, 299]
*/
public async archivedWorkflowServiceListArchivedWorkflowLabelValues(response: ResponseContext): Promise<IoArgoprojWorkflowV1alpha1LabelValues > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojWorkflowV1alpha1LabelValues = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1LabelValues", ""
) as IoArgoprojWorkflowV1alpha1LabelValues;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojWorkflowV1alpha1LabelValues = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1LabelValues", ""
) as IoArgoprojWorkflowV1alpha1LabelValues;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to archivedWorkflowServiceListArchivedWorkflows
* @throws ApiException if the response code was not in [200, 299]
*/
public async archivedWorkflowServiceListArchivedWorkflows(response: ResponseContext): Promise<IoArgoprojWorkflowV1alpha1WorkflowList > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojWorkflowV1alpha1WorkflowList = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1WorkflowList", ""
) as IoArgoprojWorkflowV1alpha1WorkflowList;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojWorkflowV1alpha1WorkflowList = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1WorkflowList", ""
) as IoArgoprojWorkflowV1alpha1WorkflowList;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to archivedWorkflowServiceResubmitArchivedWorkflow
* @throws ApiException if the response code was not in [200, 299]
*/
public async archivedWorkflowServiceResubmitArchivedWorkflow(response: ResponseContext): Promise<IoArgoprojWorkflowV1alpha1Workflow > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojWorkflowV1alpha1Workflow = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1Workflow", ""
) as IoArgoprojWorkflowV1alpha1Workflow;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojWorkflowV1alpha1Workflow = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1Workflow", ""
) as IoArgoprojWorkflowV1alpha1Workflow;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to archivedWorkflowServiceRetryArchivedWorkflow
* @throws ApiException if the response code was not in [200, 299]
*/
public async archivedWorkflowServiceRetryArchivedWorkflow(response: ResponseContext): Promise<IoArgoprojWorkflowV1alpha1Workflow > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojWorkflowV1alpha1Workflow = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1Workflow", ""
) as IoArgoprojWorkflowV1alpha1Workflow;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojWorkflowV1alpha1Workflow = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1Workflow", ""
) as IoArgoprojWorkflowV1alpha1Workflow;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
}

View file

@ -0,0 +1,492 @@
// TODO: better import syntax?
import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi';
import {Configuration} from '../configuration';
import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http';
import {ObjectSerializer} from '../models/ObjectSerializer';
import {ApiException} from './exception';
import {canConsumeForm, isCodeInRange} from '../util';
import {SecurityAuthentication} from '../auth/auth';
import { GrpcGatewayRuntimeError } from '../models/GrpcGatewayRuntimeError';
/**
* no description
*/
export class ArtifactServiceApiRequestFactory extends BaseAPIRequestFactory {
/**
* 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?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new RequiredError("ArtifactServiceApi", "artifactServiceGetArtifactFile", "namespace");
}
// verify required parameter 'idDiscriminator' is not null or undefined
if (idDiscriminator === null || idDiscriminator === undefined) {
throw new RequiredError("ArtifactServiceApi", "artifactServiceGetArtifactFile", "idDiscriminator");
}
// verify required parameter 'id' is not null or undefined
if (id === null || id === undefined) {
throw new RequiredError("ArtifactServiceApi", "artifactServiceGetArtifactFile", "id");
}
// verify required parameter 'nodeId' is not null or undefined
if (nodeId === null || nodeId === undefined) {
throw new RequiredError("ArtifactServiceApi", "artifactServiceGetArtifactFile", "nodeId");
}
// verify required parameter 'artifactName' is not null or undefined
if (artifactName === null || artifactName === undefined) {
throw new RequiredError("ArtifactServiceApi", "artifactServiceGetArtifactFile", "artifactName");
}
// verify required parameter 'artifactDiscriminator' is not null or undefined
if (artifactDiscriminator === null || artifactDiscriminator === undefined) {
throw new RequiredError("ArtifactServiceApi", "artifactServiceGetArtifactFile", "artifactDiscriminator");
}
// Path Params
const localVarPath = '/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)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* Get an input artifact.
* @param namespace
* @param name
* @param nodeId
* @param artifactName
*/
public async artifactServiceGetInputArtifact(namespace: string, name: string, nodeId: string, artifactName: string, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new RequiredError("ArtifactServiceApi", "artifactServiceGetInputArtifact", "namespace");
}
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new RequiredError("ArtifactServiceApi", "artifactServiceGetInputArtifact", "name");
}
// verify required parameter 'nodeId' is not null or undefined
if (nodeId === null || nodeId === undefined) {
throw new RequiredError("ArtifactServiceApi", "artifactServiceGetInputArtifact", "nodeId");
}
// verify required parameter 'artifactName' is not null or undefined
if (artifactName === null || artifactName === undefined) {
throw new RequiredError("ArtifactServiceApi", "artifactServiceGetInputArtifact", "artifactName");
}
// Path Params
const localVarPath = '/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)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* Get an input artifact by UID.
* @param uid
* @param nodeId
* @param artifactName
*/
public async artifactServiceGetInputArtifactByUID(uid: string, nodeId: string, artifactName: string, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'uid' is not null or undefined
if (uid === null || uid === undefined) {
throw new RequiredError("ArtifactServiceApi", "artifactServiceGetInputArtifactByUID", "uid");
}
// verify required parameter 'nodeId' is not null or undefined
if (nodeId === null || nodeId === undefined) {
throw new RequiredError("ArtifactServiceApi", "artifactServiceGetInputArtifactByUID", "nodeId");
}
// verify required parameter 'artifactName' is not null or undefined
if (artifactName === null || artifactName === undefined) {
throw new RequiredError("ArtifactServiceApi", "artifactServiceGetInputArtifactByUID", "artifactName");
}
// Path Params
const localVarPath = '/input-artifacts-by-uid/{uid}/{nodeId}/{artifactName}'
.replace('{' + 'uid' + '}', encodeURIComponent(String(uid)))
.replace('{' + 'nodeId' + '}', encodeURIComponent(String(nodeId)))
.replace('{' + 'artifactName' + '}', encodeURIComponent(String(artifactName)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* Get an output artifact.
* @param namespace
* @param name
* @param nodeId
* @param artifactName
*/
public async artifactServiceGetOutputArtifact(namespace: string, name: string, nodeId: string, artifactName: string, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new RequiredError("ArtifactServiceApi", "artifactServiceGetOutputArtifact", "namespace");
}
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new RequiredError("ArtifactServiceApi", "artifactServiceGetOutputArtifact", "name");
}
// verify required parameter 'nodeId' is not null or undefined
if (nodeId === null || nodeId === undefined) {
throw new RequiredError("ArtifactServiceApi", "artifactServiceGetOutputArtifact", "nodeId");
}
// verify required parameter 'artifactName' is not null or undefined
if (artifactName === null || artifactName === undefined) {
throw new RequiredError("ArtifactServiceApi", "artifactServiceGetOutputArtifact", "artifactName");
}
// Path Params
const localVarPath = '/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)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* Get an output artifact by UID.
* @param uid
* @param nodeId
* @param artifactName
*/
public async artifactServiceGetOutputArtifactByUID(uid: string, nodeId: string, artifactName: string, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'uid' is not null or undefined
if (uid === null || uid === undefined) {
throw new RequiredError("ArtifactServiceApi", "artifactServiceGetOutputArtifactByUID", "uid");
}
// verify required parameter 'nodeId' is not null or undefined
if (nodeId === null || nodeId === undefined) {
throw new RequiredError("ArtifactServiceApi", "artifactServiceGetOutputArtifactByUID", "nodeId");
}
// verify required parameter 'artifactName' is not null or undefined
if (artifactName === null || artifactName === undefined) {
throw new RequiredError("ArtifactServiceApi", "artifactServiceGetOutputArtifactByUID", "artifactName");
}
// Path Params
const localVarPath = '/artifacts-by-uid/{uid}/{nodeId}/{artifactName}'
.replace('{' + 'uid' + '}', encodeURIComponent(String(uid)))
.replace('{' + 'nodeId' + '}', encodeURIComponent(String(nodeId)))
.replace('{' + 'artifactName' + '}', encodeURIComponent(String(artifactName)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
}
export class ArtifactServiceApiResponseProcessor {
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to artifactServiceGetArtifactFile
* @throws ApiException if the response code was not in [200, 299]
*/
public async artifactServiceGetArtifactFile(response: ResponseContext): Promise<HttpFile > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: HttpFile = await response.getBodyAsFile() as any as HttpFile;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", "binary"
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: HttpFile = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"HttpFile", "binary"
) as HttpFile;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to artifactServiceGetInputArtifact
* @throws ApiException if the response code was not in [200, 299]
*/
public async artifactServiceGetInputArtifact(response: ResponseContext): Promise<HttpFile > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: HttpFile = await response.getBodyAsFile() as any as HttpFile;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", "binary"
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: HttpFile = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"HttpFile", "binary"
) as HttpFile;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to artifactServiceGetInputArtifactByUID
* @throws ApiException if the response code was not in [200, 299]
*/
public async artifactServiceGetInputArtifactByUID(response: ResponseContext): Promise<HttpFile > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: HttpFile = await response.getBodyAsFile() as any as HttpFile;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", "binary"
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: HttpFile = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"HttpFile", "binary"
) as HttpFile;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to artifactServiceGetOutputArtifact
* @throws ApiException if the response code was not in [200, 299]
*/
public async artifactServiceGetOutputArtifact(response: ResponseContext): Promise<HttpFile > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: HttpFile = await response.getBodyAsFile() as any as HttpFile;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", "binary"
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: HttpFile = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"HttpFile", "binary"
) as HttpFile;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to artifactServiceGetOutputArtifactByUID
* @throws ApiException if the response code was not in [200, 299]
*/
public async artifactServiceGetOutputArtifactByUID(response: ResponseContext): Promise<HttpFile > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: HttpFile = await response.getBodyAsFile() as any as HttpFile;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", "binary"
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: HttpFile = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"HttpFile", "binary"
) as HttpFile;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
}

View file

@ -0,0 +1,601 @@
// TODO: better import syntax?
import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi';
import {Configuration} from '../configuration';
import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http';
import {ObjectSerializer} from '../models/ObjectSerializer';
import {ApiException} from './exception';
import {canConsumeForm, isCodeInRange} from '../util';
import {SecurityAuthentication} from '../auth/auth';
import { GrpcGatewayRuntimeError } from '../models/GrpcGatewayRuntimeError';
import { IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate } from '../models/IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate';
import { IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateCreateRequest } from '../models/IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateCreateRequest';
import { IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateLintRequest } from '../models/IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateLintRequest';
import { IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateList } from '../models/IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateList';
import { IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateUpdateRequest } from '../models/IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateUpdateRequest';
/**
* no description
*/
export class ClusterWorkflowTemplateServiceApiRequestFactory extends BaseAPIRequestFactory {
/**
* @param body
*/
public async clusterWorkflowTemplateServiceCreateClusterWorkflowTemplate(body: IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateCreateRequest, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new RequiredError("ClusterWorkflowTemplateServiceApi", "clusterWorkflowTemplateServiceCreateClusterWorkflowTemplate", "body");
}
// Path Params
const localVarPath = '/api/v1/cluster-workflow-templates';
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Body Params
const contentType = ObjectSerializer.getPreferredMediaType([
"application/json"
]);
requestContext.setHeaderParam("Content-Type", contentType);
const serializedBody = ObjectSerializer.stringify(
ObjectSerializer.serialize(body, "IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateCreateRequest", ""),
contentType
);
requestContext.setBody(serializedBody);
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @param name
* @param deleteOptionsGracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +optional.
* @param deleteOptionsPreconditionsUid Specifies the target UID. +optional.
* @param deleteOptionsPreconditionsResourceVersion Specifies the target ResourceVersion +optional.
* @param deleteOptionsOrphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object\&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional.
* @param deleteOptionsPropagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \&#39;Orphan\&#39; - orphan the dependents; \&#39;Background\&#39; - allow the garbage collector to delete the dependents in the background; \&#39;Foreground\&#39; - a cascading policy that deletes all dependents in the foreground. +optional.
* @param deleteOptionsDryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional.
*/
public async clusterWorkflowTemplateServiceDeleteClusterWorkflowTemplate(name: string, deleteOptionsGracePeriodSeconds?: string, deleteOptionsPreconditionsUid?: string, deleteOptionsPreconditionsResourceVersion?: string, deleteOptionsOrphanDependents?: boolean, deleteOptionsPropagationPolicy?: string, deleteOptionsDryRun?: Array<string>, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new RequiredError("ClusterWorkflowTemplateServiceApi", "clusterWorkflowTemplateServiceDeleteClusterWorkflowTemplate", "name");
}
// Path Params
const localVarPath = '/api/v1/cluster-workflow-templates/{name}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Query Params
if (deleteOptionsGracePeriodSeconds !== undefined) {
requestContext.setQueryParam("deleteOptions.gracePeriodSeconds", ObjectSerializer.serialize(deleteOptionsGracePeriodSeconds, "string", "int64"));
}
// Query Params
if (deleteOptionsPreconditionsUid !== undefined) {
requestContext.setQueryParam("deleteOptions.preconditions.uid", ObjectSerializer.serialize(deleteOptionsPreconditionsUid, "string", ""));
}
// Query Params
if (deleteOptionsPreconditionsResourceVersion !== undefined) {
requestContext.setQueryParam("deleteOptions.preconditions.resourceVersion", ObjectSerializer.serialize(deleteOptionsPreconditionsResourceVersion, "string", ""));
}
// Query Params
if (deleteOptionsOrphanDependents !== undefined) {
requestContext.setQueryParam("deleteOptions.orphanDependents", ObjectSerializer.serialize(deleteOptionsOrphanDependents, "boolean", ""));
}
// Query Params
if (deleteOptionsPropagationPolicy !== undefined) {
requestContext.setQueryParam("deleteOptions.propagationPolicy", ObjectSerializer.serialize(deleteOptionsPropagationPolicy, "string", ""));
}
// Query Params
if (deleteOptionsDryRun !== undefined) {
requestContext.setQueryParam("deleteOptions.dryRun", ObjectSerializer.serialize(deleteOptionsDryRun, "Array<string>", ""));
}
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @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?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new RequiredError("ClusterWorkflowTemplateServiceApi", "clusterWorkflowTemplateServiceGetClusterWorkflowTemplate", "name");
}
// Path Params
const localVarPath = '/api/v1/cluster-workflow-templates/{name}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Query Params
if (getOptionsResourceVersion !== undefined) {
requestContext.setQueryParam("getOptions.resourceVersion", ObjectSerializer.serialize(getOptionsResourceVersion, "string", ""));
}
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @param body
*/
public async clusterWorkflowTemplateServiceLintClusterWorkflowTemplate(body: IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateLintRequest, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new RequiredError("ClusterWorkflowTemplateServiceApi", "clusterWorkflowTemplateServiceLintClusterWorkflowTemplate", "body");
}
// Path Params
const localVarPath = '/api/v1/cluster-workflow-templates/lint';
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Body Params
const contentType = ObjectSerializer.getPreferredMediaType([
"application/json"
]);
requestContext.setHeaderParam("Content-Type", contentType);
const serializedBody = ObjectSerializer.stringify(
ObjectSerializer.serialize(body, "IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateLintRequest", ""),
contentType
);
requestContext.setBody(serializedBody);
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @param listOptionsLabelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional.
* @param listOptionsFieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional.
* @param listOptionsWatch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional.
* @param listOptionsAllowWatchBookmarks allowWatchBookmarks requests watch events with type \&quot;BOOKMARK\&quot;. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\&#39;s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional.
* @param listOptionsResourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsResourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsTimeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional.
* @param listOptionsLimit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
* @param listOptionsContinue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
*/
public async clusterWorkflowTemplateServiceListClusterWorkflowTemplates(listOptionsLabelSelector?: string, listOptionsFieldSelector?: string, listOptionsWatch?: boolean, listOptionsAllowWatchBookmarks?: boolean, listOptionsResourceVersion?: string, listOptionsResourceVersionMatch?: string, listOptionsTimeoutSeconds?: string, listOptionsLimit?: string, listOptionsContinue?: string, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// Path Params
const localVarPath = '/api/v1/cluster-workflow-templates';
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Query Params
if (listOptionsLabelSelector !== undefined) {
requestContext.setQueryParam("listOptions.labelSelector", ObjectSerializer.serialize(listOptionsLabelSelector, "string", ""));
}
// Query Params
if (listOptionsFieldSelector !== undefined) {
requestContext.setQueryParam("listOptions.fieldSelector", ObjectSerializer.serialize(listOptionsFieldSelector, "string", ""));
}
// Query Params
if (listOptionsWatch !== undefined) {
requestContext.setQueryParam("listOptions.watch", ObjectSerializer.serialize(listOptionsWatch, "boolean", ""));
}
// Query Params
if (listOptionsAllowWatchBookmarks !== undefined) {
requestContext.setQueryParam("listOptions.allowWatchBookmarks", ObjectSerializer.serialize(listOptionsAllowWatchBookmarks, "boolean", ""));
}
// Query Params
if (listOptionsResourceVersion !== undefined) {
requestContext.setQueryParam("listOptions.resourceVersion", ObjectSerializer.serialize(listOptionsResourceVersion, "string", ""));
}
// Query Params
if (listOptionsResourceVersionMatch !== undefined) {
requestContext.setQueryParam("listOptions.resourceVersionMatch", ObjectSerializer.serialize(listOptionsResourceVersionMatch, "string", ""));
}
// Query Params
if (listOptionsTimeoutSeconds !== undefined) {
requestContext.setQueryParam("listOptions.timeoutSeconds", ObjectSerializer.serialize(listOptionsTimeoutSeconds, "string", "int64"));
}
// Query Params
if (listOptionsLimit !== undefined) {
requestContext.setQueryParam("listOptions.limit", ObjectSerializer.serialize(listOptionsLimit, "string", "int64"));
}
// Query Params
if (listOptionsContinue !== undefined) {
requestContext.setQueryParam("listOptions.continue", ObjectSerializer.serialize(listOptionsContinue, "string", ""));
}
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @param name DEPRECATED: This field is ignored.
* @param body
*/
public async clusterWorkflowTemplateServiceUpdateClusterWorkflowTemplate(name: string, body: IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateUpdateRequest, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new RequiredError("ClusterWorkflowTemplateServiceApi", "clusterWorkflowTemplateServiceUpdateClusterWorkflowTemplate", "name");
}
// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new RequiredError("ClusterWorkflowTemplateServiceApi", "clusterWorkflowTemplateServiceUpdateClusterWorkflowTemplate", "body");
}
// Path Params
const localVarPath = '/api/v1/cluster-workflow-templates/{name}'
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Body Params
const contentType = ObjectSerializer.getPreferredMediaType([
"application/json"
]);
requestContext.setHeaderParam("Content-Type", contentType);
const serializedBody = ObjectSerializer.stringify(
ObjectSerializer.serialize(body, "IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateUpdateRequest", ""),
contentType
);
requestContext.setBody(serializedBody);
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
}
export class ClusterWorkflowTemplateServiceApiResponseProcessor {
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to clusterWorkflowTemplateServiceCreateClusterWorkflowTemplate
* @throws ApiException if the response code was not in [200, 299]
*/
public async clusterWorkflowTemplateServiceCreateClusterWorkflowTemplate(response: ResponseContext): Promise<IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate", ""
) as IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate", ""
) as IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to clusterWorkflowTemplateServiceDeleteClusterWorkflowTemplate
* @throws ApiException if the response code was not in [200, 299]
*/
public async clusterWorkflowTemplateServiceDeleteClusterWorkflowTemplate(response: ResponseContext): Promise<any > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: any = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"any", ""
) as any;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: any = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"any", ""
) as any;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to clusterWorkflowTemplateServiceGetClusterWorkflowTemplate
* @throws ApiException if the response code was not in [200, 299]
*/
public async clusterWorkflowTemplateServiceGetClusterWorkflowTemplate(response: ResponseContext): Promise<IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate", ""
) as IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate", ""
) as IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to clusterWorkflowTemplateServiceLintClusterWorkflowTemplate
* @throws ApiException if the response code was not in [200, 299]
*/
public async clusterWorkflowTemplateServiceLintClusterWorkflowTemplate(response: ResponseContext): Promise<IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate", ""
) as IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate", ""
) as IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to clusterWorkflowTemplateServiceListClusterWorkflowTemplates
* @throws ApiException if the response code was not in [200, 299]
*/
public async clusterWorkflowTemplateServiceListClusterWorkflowTemplates(response: ResponseContext): Promise<IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateList > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateList = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateList", ""
) as IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateList;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateList = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateList", ""
) as IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateList;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to clusterWorkflowTemplateServiceUpdateClusterWorkflowTemplate
* @throws ApiException if the response code was not in [200, 299]
*/
public async clusterWorkflowTemplateServiceUpdateClusterWorkflowTemplate(response: ResponseContext): Promise<IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate", ""
) as IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate", ""
) as IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
}

View file

@ -0,0 +1,847 @@
// TODO: better import syntax?
import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi';
import {Configuration} from '../configuration';
import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http';
import {ObjectSerializer} from '../models/ObjectSerializer';
import {ApiException} from './exception';
import {canConsumeForm, isCodeInRange} from '../util';
import {SecurityAuthentication} from '../auth/auth';
import { GrpcGatewayRuntimeError } from '../models/GrpcGatewayRuntimeError';
import { IoArgoprojWorkflowV1alpha1CreateCronWorkflowRequest } from '../models/IoArgoprojWorkflowV1alpha1CreateCronWorkflowRequest';
import { IoArgoprojWorkflowV1alpha1CronWorkflow } from '../models/IoArgoprojWorkflowV1alpha1CronWorkflow';
import { IoArgoprojWorkflowV1alpha1CronWorkflowList } from '../models/IoArgoprojWorkflowV1alpha1CronWorkflowList';
import { IoArgoprojWorkflowV1alpha1CronWorkflowResumeRequest } from '../models/IoArgoprojWorkflowV1alpha1CronWorkflowResumeRequest';
import { IoArgoprojWorkflowV1alpha1CronWorkflowSuspendRequest } from '../models/IoArgoprojWorkflowV1alpha1CronWorkflowSuspendRequest';
import { IoArgoprojWorkflowV1alpha1LintCronWorkflowRequest } from '../models/IoArgoprojWorkflowV1alpha1LintCronWorkflowRequest';
import { IoArgoprojWorkflowV1alpha1UpdateCronWorkflowRequest } from '../models/IoArgoprojWorkflowV1alpha1UpdateCronWorkflowRequest';
/**
* no description
*/
export class CronWorkflowServiceApiRequestFactory extends BaseAPIRequestFactory {
/**
* @param namespace
* @param body
*/
public async cronWorkflowServiceCreateCronWorkflow(namespace: string, body: IoArgoprojWorkflowV1alpha1CreateCronWorkflowRequest, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new RequiredError("CronWorkflowServiceApi", "cronWorkflowServiceCreateCronWorkflow", "namespace");
}
// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new RequiredError("CronWorkflowServiceApi", "cronWorkflowServiceCreateCronWorkflow", "body");
}
// Path Params
const localVarPath = '/api/v1/cron-workflows/{namespace}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Body Params
const contentType = ObjectSerializer.getPreferredMediaType([
"application/json"
]);
requestContext.setHeaderParam("Content-Type", contentType);
const serializedBody = ObjectSerializer.stringify(
ObjectSerializer.serialize(body, "IoArgoprojWorkflowV1alpha1CreateCronWorkflowRequest", ""),
contentType
);
requestContext.setBody(serializedBody);
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @param namespace
* @param name
* @param deleteOptionsGracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +optional.
* @param deleteOptionsPreconditionsUid Specifies the target UID. +optional.
* @param deleteOptionsPreconditionsResourceVersion Specifies the target ResourceVersion +optional.
* @param deleteOptionsOrphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object\&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional.
* @param deleteOptionsPropagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \&#39;Orphan\&#39; - orphan the dependents; \&#39;Background\&#39; - allow the garbage collector to delete the dependents in the background; \&#39;Foreground\&#39; - a cascading policy that deletes all dependents in the foreground. +optional.
* @param deleteOptionsDryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional.
*/
public async cronWorkflowServiceDeleteCronWorkflow(namespace: string, name: string, deleteOptionsGracePeriodSeconds?: string, deleteOptionsPreconditionsUid?: string, deleteOptionsPreconditionsResourceVersion?: string, deleteOptionsOrphanDependents?: boolean, deleteOptionsPropagationPolicy?: string, deleteOptionsDryRun?: Array<string>, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new RequiredError("CronWorkflowServiceApi", "cronWorkflowServiceDeleteCronWorkflow", "namespace");
}
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new RequiredError("CronWorkflowServiceApi", "cronWorkflowServiceDeleteCronWorkflow", "name");
}
// Path Params
const localVarPath = '/api/v1/cron-workflows/{namespace}/{name}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Query Params
if (deleteOptionsGracePeriodSeconds !== undefined) {
requestContext.setQueryParam("deleteOptions.gracePeriodSeconds", ObjectSerializer.serialize(deleteOptionsGracePeriodSeconds, "string", "int64"));
}
// Query Params
if (deleteOptionsPreconditionsUid !== undefined) {
requestContext.setQueryParam("deleteOptions.preconditions.uid", ObjectSerializer.serialize(deleteOptionsPreconditionsUid, "string", ""));
}
// Query Params
if (deleteOptionsPreconditionsResourceVersion !== undefined) {
requestContext.setQueryParam("deleteOptions.preconditions.resourceVersion", ObjectSerializer.serialize(deleteOptionsPreconditionsResourceVersion, "string", ""));
}
// Query Params
if (deleteOptionsOrphanDependents !== undefined) {
requestContext.setQueryParam("deleteOptions.orphanDependents", ObjectSerializer.serialize(deleteOptionsOrphanDependents, "boolean", ""));
}
// Query Params
if (deleteOptionsPropagationPolicy !== undefined) {
requestContext.setQueryParam("deleteOptions.propagationPolicy", ObjectSerializer.serialize(deleteOptionsPropagationPolicy, "string", ""));
}
// Query Params
if (deleteOptionsDryRun !== undefined) {
requestContext.setQueryParam("deleteOptions.dryRun", ObjectSerializer.serialize(deleteOptionsDryRun, "Array<string>", ""));
}
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @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?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new RequiredError("CronWorkflowServiceApi", "cronWorkflowServiceGetCronWorkflow", "namespace");
}
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new RequiredError("CronWorkflowServiceApi", "cronWorkflowServiceGetCronWorkflow", "name");
}
// Path Params
const localVarPath = '/api/v1/cron-workflows/{namespace}/{name}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Query Params
if (getOptionsResourceVersion !== undefined) {
requestContext.setQueryParam("getOptions.resourceVersion", ObjectSerializer.serialize(getOptionsResourceVersion, "string", ""));
}
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @param namespace
* @param body
*/
public async cronWorkflowServiceLintCronWorkflow(namespace: string, body: IoArgoprojWorkflowV1alpha1LintCronWorkflowRequest, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new RequiredError("CronWorkflowServiceApi", "cronWorkflowServiceLintCronWorkflow", "namespace");
}
// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new RequiredError("CronWorkflowServiceApi", "cronWorkflowServiceLintCronWorkflow", "body");
}
// Path Params
const localVarPath = '/api/v1/cron-workflows/{namespace}/lint'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Body Params
const contentType = ObjectSerializer.getPreferredMediaType([
"application/json"
]);
requestContext.setHeaderParam("Content-Type", contentType);
const serializedBody = ObjectSerializer.stringify(
ObjectSerializer.serialize(body, "IoArgoprojWorkflowV1alpha1LintCronWorkflowRequest", ""),
contentType
);
requestContext.setBody(serializedBody);
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @param namespace
* @param listOptionsLabelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional.
* @param listOptionsFieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional.
* @param listOptionsWatch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional.
* @param listOptionsAllowWatchBookmarks allowWatchBookmarks requests watch events with type \&quot;BOOKMARK\&quot;. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\&#39;s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional.
* @param listOptionsResourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsResourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsTimeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional.
* @param listOptionsLimit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
* @param listOptionsContinue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
*/
public async cronWorkflowServiceListCronWorkflows(namespace: string, listOptionsLabelSelector?: string, listOptionsFieldSelector?: string, listOptionsWatch?: boolean, listOptionsAllowWatchBookmarks?: boolean, listOptionsResourceVersion?: string, listOptionsResourceVersionMatch?: string, listOptionsTimeoutSeconds?: string, listOptionsLimit?: string, listOptionsContinue?: string, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new RequiredError("CronWorkflowServiceApi", "cronWorkflowServiceListCronWorkflows", "namespace");
}
// Path Params
const localVarPath = '/api/v1/cron-workflows/{namespace}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Query Params
if (listOptionsLabelSelector !== undefined) {
requestContext.setQueryParam("listOptions.labelSelector", ObjectSerializer.serialize(listOptionsLabelSelector, "string", ""));
}
// Query Params
if (listOptionsFieldSelector !== undefined) {
requestContext.setQueryParam("listOptions.fieldSelector", ObjectSerializer.serialize(listOptionsFieldSelector, "string", ""));
}
// Query Params
if (listOptionsWatch !== undefined) {
requestContext.setQueryParam("listOptions.watch", ObjectSerializer.serialize(listOptionsWatch, "boolean", ""));
}
// Query Params
if (listOptionsAllowWatchBookmarks !== undefined) {
requestContext.setQueryParam("listOptions.allowWatchBookmarks", ObjectSerializer.serialize(listOptionsAllowWatchBookmarks, "boolean", ""));
}
// Query Params
if (listOptionsResourceVersion !== undefined) {
requestContext.setQueryParam("listOptions.resourceVersion", ObjectSerializer.serialize(listOptionsResourceVersion, "string", ""));
}
// Query Params
if (listOptionsResourceVersionMatch !== undefined) {
requestContext.setQueryParam("listOptions.resourceVersionMatch", ObjectSerializer.serialize(listOptionsResourceVersionMatch, "string", ""));
}
// Query Params
if (listOptionsTimeoutSeconds !== undefined) {
requestContext.setQueryParam("listOptions.timeoutSeconds", ObjectSerializer.serialize(listOptionsTimeoutSeconds, "string", "int64"));
}
// Query Params
if (listOptionsLimit !== undefined) {
requestContext.setQueryParam("listOptions.limit", ObjectSerializer.serialize(listOptionsLimit, "string", "int64"));
}
// Query Params
if (listOptionsContinue !== undefined) {
requestContext.setQueryParam("listOptions.continue", ObjectSerializer.serialize(listOptionsContinue, "string", ""));
}
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @param namespace
* @param name
* @param body
*/
public async cronWorkflowServiceResumeCronWorkflow(namespace: string, name: string, body: IoArgoprojWorkflowV1alpha1CronWorkflowResumeRequest, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new RequiredError("CronWorkflowServiceApi", "cronWorkflowServiceResumeCronWorkflow", "namespace");
}
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new RequiredError("CronWorkflowServiceApi", "cronWorkflowServiceResumeCronWorkflow", "name");
}
// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new RequiredError("CronWorkflowServiceApi", "cronWorkflowServiceResumeCronWorkflow", "body");
}
// Path Params
const localVarPath = '/api/v1/cron-workflows/{namespace}/{name}/resume'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Body Params
const contentType = ObjectSerializer.getPreferredMediaType([
"application/json"
]);
requestContext.setHeaderParam("Content-Type", contentType);
const serializedBody = ObjectSerializer.stringify(
ObjectSerializer.serialize(body, "IoArgoprojWorkflowV1alpha1CronWorkflowResumeRequest", ""),
contentType
);
requestContext.setBody(serializedBody);
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @param namespace
* @param name
* @param body
*/
public async cronWorkflowServiceSuspendCronWorkflow(namespace: string, name: string, body: IoArgoprojWorkflowV1alpha1CronWorkflowSuspendRequest, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new RequiredError("CronWorkflowServiceApi", "cronWorkflowServiceSuspendCronWorkflow", "namespace");
}
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new RequiredError("CronWorkflowServiceApi", "cronWorkflowServiceSuspendCronWorkflow", "name");
}
// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new RequiredError("CronWorkflowServiceApi", "cronWorkflowServiceSuspendCronWorkflow", "body");
}
// Path Params
const localVarPath = '/api/v1/cron-workflows/{namespace}/{name}/suspend'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Body Params
const contentType = ObjectSerializer.getPreferredMediaType([
"application/json"
]);
requestContext.setHeaderParam("Content-Type", contentType);
const serializedBody = ObjectSerializer.stringify(
ObjectSerializer.serialize(body, "IoArgoprojWorkflowV1alpha1CronWorkflowSuspendRequest", ""),
contentType
);
requestContext.setBody(serializedBody);
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @param namespace
* @param name DEPRECATED: This field is ignored.
* @param body
*/
public async cronWorkflowServiceUpdateCronWorkflow(namespace: string, name: string, body: IoArgoprojWorkflowV1alpha1UpdateCronWorkflowRequest, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new RequiredError("CronWorkflowServiceApi", "cronWorkflowServiceUpdateCronWorkflow", "namespace");
}
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new RequiredError("CronWorkflowServiceApi", "cronWorkflowServiceUpdateCronWorkflow", "name");
}
// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new RequiredError("CronWorkflowServiceApi", "cronWorkflowServiceUpdateCronWorkflow", "body");
}
// Path Params
const localVarPath = '/api/v1/cron-workflows/{namespace}/{name}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Body Params
const contentType = ObjectSerializer.getPreferredMediaType([
"application/json"
]);
requestContext.setHeaderParam("Content-Type", contentType);
const serializedBody = ObjectSerializer.stringify(
ObjectSerializer.serialize(body, "IoArgoprojWorkflowV1alpha1UpdateCronWorkflowRequest", ""),
contentType
);
requestContext.setBody(serializedBody);
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
}
export class CronWorkflowServiceApiResponseProcessor {
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to cronWorkflowServiceCreateCronWorkflow
* @throws ApiException if the response code was not in [200, 299]
*/
public async cronWorkflowServiceCreateCronWorkflow(response: ResponseContext): Promise<IoArgoprojWorkflowV1alpha1CronWorkflow > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojWorkflowV1alpha1CronWorkflow = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1CronWorkflow", ""
) as IoArgoprojWorkflowV1alpha1CronWorkflow;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojWorkflowV1alpha1CronWorkflow = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1CronWorkflow", ""
) as IoArgoprojWorkflowV1alpha1CronWorkflow;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to cronWorkflowServiceDeleteCronWorkflow
* @throws ApiException if the response code was not in [200, 299]
*/
public async cronWorkflowServiceDeleteCronWorkflow(response: ResponseContext): Promise<any > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: any = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"any", ""
) as any;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: any = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"any", ""
) as any;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to cronWorkflowServiceGetCronWorkflow
* @throws ApiException if the response code was not in [200, 299]
*/
public async cronWorkflowServiceGetCronWorkflow(response: ResponseContext): Promise<IoArgoprojWorkflowV1alpha1CronWorkflow > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojWorkflowV1alpha1CronWorkflow = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1CronWorkflow", ""
) as IoArgoprojWorkflowV1alpha1CronWorkflow;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojWorkflowV1alpha1CronWorkflow = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1CronWorkflow", ""
) as IoArgoprojWorkflowV1alpha1CronWorkflow;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to cronWorkflowServiceLintCronWorkflow
* @throws ApiException if the response code was not in [200, 299]
*/
public async cronWorkflowServiceLintCronWorkflow(response: ResponseContext): Promise<IoArgoprojWorkflowV1alpha1CronWorkflow > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojWorkflowV1alpha1CronWorkflow = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1CronWorkflow", ""
) as IoArgoprojWorkflowV1alpha1CronWorkflow;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojWorkflowV1alpha1CronWorkflow = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1CronWorkflow", ""
) as IoArgoprojWorkflowV1alpha1CronWorkflow;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to cronWorkflowServiceListCronWorkflows
* @throws ApiException if the response code was not in [200, 299]
*/
public async cronWorkflowServiceListCronWorkflows(response: ResponseContext): Promise<IoArgoprojWorkflowV1alpha1CronWorkflowList > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojWorkflowV1alpha1CronWorkflowList = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1CronWorkflowList", ""
) as IoArgoprojWorkflowV1alpha1CronWorkflowList;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojWorkflowV1alpha1CronWorkflowList = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1CronWorkflowList", ""
) as IoArgoprojWorkflowV1alpha1CronWorkflowList;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to cronWorkflowServiceResumeCronWorkflow
* @throws ApiException if the response code was not in [200, 299]
*/
public async cronWorkflowServiceResumeCronWorkflow(response: ResponseContext): Promise<IoArgoprojWorkflowV1alpha1CronWorkflow > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojWorkflowV1alpha1CronWorkflow = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1CronWorkflow", ""
) as IoArgoprojWorkflowV1alpha1CronWorkflow;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojWorkflowV1alpha1CronWorkflow = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1CronWorkflow", ""
) as IoArgoprojWorkflowV1alpha1CronWorkflow;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to cronWorkflowServiceSuspendCronWorkflow
* @throws ApiException if the response code was not in [200, 299]
*/
public async cronWorkflowServiceSuspendCronWorkflow(response: ResponseContext): Promise<IoArgoprojWorkflowV1alpha1CronWorkflow > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojWorkflowV1alpha1CronWorkflow = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1CronWorkflow", ""
) as IoArgoprojWorkflowV1alpha1CronWorkflow;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojWorkflowV1alpha1CronWorkflow = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1CronWorkflow", ""
) as IoArgoprojWorkflowV1alpha1CronWorkflow;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to cronWorkflowServiceUpdateCronWorkflow
* @throws ApiException if the response code was not in [200, 299]
*/
public async cronWorkflowServiceUpdateCronWorkflow(response: ResponseContext): Promise<IoArgoprojWorkflowV1alpha1CronWorkflow > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojWorkflowV1alpha1CronWorkflow = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1CronWorkflow", ""
) as IoArgoprojWorkflowV1alpha1CronWorkflow;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojWorkflowV1alpha1CronWorkflow = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1CronWorkflow", ""
) as IoArgoprojWorkflowV1alpha1CronWorkflow;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
}

View file

@ -0,0 +1,256 @@
// TODO: better import syntax?
import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi';
import {Configuration} from '../configuration';
import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http';
import {ObjectSerializer} from '../models/ObjectSerializer';
import {ApiException} from './exception';
import {canConsumeForm, isCodeInRange} from '../util';
import {SecurityAuthentication} from '../auth/auth';
import { GrpcGatewayRuntimeError } from '../models/GrpcGatewayRuntimeError';
import { IoArgoprojWorkflowV1alpha1WorkflowEventBindingList } from '../models/IoArgoprojWorkflowV1alpha1WorkflowEventBindingList';
/**
* no description
*/
export class EventServiceApiRequestFactory extends BaseAPIRequestFactory {
/**
* @param namespace
* @param listOptionsLabelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional.
* @param listOptionsFieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional.
* @param listOptionsWatch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional.
* @param listOptionsAllowWatchBookmarks allowWatchBookmarks requests watch events with type \&quot;BOOKMARK\&quot;. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\&#39;s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional.
* @param listOptionsResourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsResourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsTimeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional.
* @param listOptionsLimit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
* @param listOptionsContinue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
*/
public async eventServiceListWorkflowEventBindings(namespace: string, listOptionsLabelSelector?: string, listOptionsFieldSelector?: string, listOptionsWatch?: boolean, listOptionsAllowWatchBookmarks?: boolean, listOptionsResourceVersion?: string, listOptionsResourceVersionMatch?: string, listOptionsTimeoutSeconds?: string, listOptionsLimit?: string, listOptionsContinue?: string, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new RequiredError("EventServiceApi", "eventServiceListWorkflowEventBindings", "namespace");
}
// Path Params
const localVarPath = '/api/v1/workflow-event-bindings/{namespace}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Query Params
if (listOptionsLabelSelector !== undefined) {
requestContext.setQueryParam("listOptions.labelSelector", ObjectSerializer.serialize(listOptionsLabelSelector, "string", ""));
}
// Query Params
if (listOptionsFieldSelector !== undefined) {
requestContext.setQueryParam("listOptions.fieldSelector", ObjectSerializer.serialize(listOptionsFieldSelector, "string", ""));
}
// Query Params
if (listOptionsWatch !== undefined) {
requestContext.setQueryParam("listOptions.watch", ObjectSerializer.serialize(listOptionsWatch, "boolean", ""));
}
// Query Params
if (listOptionsAllowWatchBookmarks !== undefined) {
requestContext.setQueryParam("listOptions.allowWatchBookmarks", ObjectSerializer.serialize(listOptionsAllowWatchBookmarks, "boolean", ""));
}
// Query Params
if (listOptionsResourceVersion !== undefined) {
requestContext.setQueryParam("listOptions.resourceVersion", ObjectSerializer.serialize(listOptionsResourceVersion, "string", ""));
}
// Query Params
if (listOptionsResourceVersionMatch !== undefined) {
requestContext.setQueryParam("listOptions.resourceVersionMatch", ObjectSerializer.serialize(listOptionsResourceVersionMatch, "string", ""));
}
// Query Params
if (listOptionsTimeoutSeconds !== undefined) {
requestContext.setQueryParam("listOptions.timeoutSeconds", ObjectSerializer.serialize(listOptionsTimeoutSeconds, "string", "int64"));
}
// Query Params
if (listOptionsLimit !== undefined) {
requestContext.setQueryParam("listOptions.limit", ObjectSerializer.serialize(listOptionsLimit, "string", "int64"));
}
// Query Params
if (listOptionsContinue !== undefined) {
requestContext.setQueryParam("listOptions.continue", ObjectSerializer.serialize(listOptionsContinue, "string", ""));
}
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @param namespace The namespace for the io.argoproj.workflow.v1alpha1. This can be empty if the client has cluster scoped permissions. If empty, then the event is \&quot;broadcast\&quot; to workflow event binding in all namespaces.
* @param discriminator Optional discriminator for the io.argoproj.workflow.v1alpha1. This should almost always be empty. Used for edge-cases where the event payload alone is not provide enough information to discriminate the event. This MUST NOT be used as security mechanism, e.g. to allow two clients to use the same access token, or to support webhooks on unsecured server. Instead, use access tokens. This is made available as &#x60;discriminator&#x60; in the event binding selector (&#x60;/spec/event/selector)&#x60;
* @param body The event itself can be any data.
*/
public async eventServiceReceiveEvent(namespace: string, discriminator: string, body: any, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new RequiredError("EventServiceApi", "eventServiceReceiveEvent", "namespace");
}
// verify required parameter 'discriminator' is not null or undefined
if (discriminator === null || discriminator === undefined) {
throw new RequiredError("EventServiceApi", "eventServiceReceiveEvent", "discriminator");
}
// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new RequiredError("EventServiceApi", "eventServiceReceiveEvent", "body");
}
// Path Params
const localVarPath = '/api/v1/events/{namespace}/{discriminator}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
.replace('{' + 'discriminator' + '}', encodeURIComponent(String(discriminator)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Body Params
const contentType = ObjectSerializer.getPreferredMediaType([
"application/json"
]);
requestContext.setHeaderParam("Content-Type", contentType);
const serializedBody = ObjectSerializer.stringify(
ObjectSerializer.serialize(body, "any", ""),
contentType
);
requestContext.setBody(serializedBody);
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
}
export class EventServiceApiResponseProcessor {
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to eventServiceListWorkflowEventBindings
* @throws ApiException if the response code was not in [200, 299]
*/
public async eventServiceListWorkflowEventBindings(response: ResponseContext): Promise<IoArgoprojWorkflowV1alpha1WorkflowEventBindingList > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojWorkflowV1alpha1WorkflowEventBindingList = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1WorkflowEventBindingList", ""
) as IoArgoprojWorkflowV1alpha1WorkflowEventBindingList;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojWorkflowV1alpha1WorkflowEventBindingList = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1WorkflowEventBindingList", ""
) as IoArgoprojWorkflowV1alpha1WorkflowEventBindingList;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to eventServiceReceiveEvent
* @throws ApiException if the response code was not in [200, 299]
*/
public async eventServiceReceiveEvent(response: ResponseContext): Promise<any > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: any = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"any", ""
) as any;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: any = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"any", ""
) as any;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
}

View file

@ -0,0 +1,858 @@
// TODO: better import syntax?
import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi';
import {Configuration} from '../configuration';
import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http';
import {ObjectSerializer} from '../models/ObjectSerializer';
import {ApiException} from './exception';
import {canConsumeForm, isCodeInRange} from '../util';
import {SecurityAuthentication} from '../auth/auth';
import { EventsourceCreateEventSourceRequest } from '../models/EventsourceCreateEventSourceRequest';
import { EventsourceUpdateEventSourceRequest } from '../models/EventsourceUpdateEventSourceRequest';
import { GrpcGatewayRuntimeError } from '../models/GrpcGatewayRuntimeError';
import { IoArgoprojEventsV1alpha1EventSource } from '../models/IoArgoprojEventsV1alpha1EventSource';
import { IoArgoprojEventsV1alpha1EventSourceList } from '../models/IoArgoprojEventsV1alpha1EventSourceList';
import { StreamResultOfEventsourceEventSourceWatchEvent } from '../models/StreamResultOfEventsourceEventSourceWatchEvent';
import { StreamResultOfEventsourceLogEntry } from '../models/StreamResultOfEventsourceLogEntry';
/**
* no description
*/
export class EventSourceServiceApiRequestFactory extends BaseAPIRequestFactory {
/**
* @param namespace
* @param body
*/
public async eventSourceServiceCreateEventSource(namespace: string, body: EventsourceCreateEventSourceRequest, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new RequiredError("EventSourceServiceApi", "eventSourceServiceCreateEventSource", "namespace");
}
// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new RequiredError("EventSourceServiceApi", "eventSourceServiceCreateEventSource", "body");
}
// Path Params
const localVarPath = '/api/v1/event-sources/{namespace}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Body Params
const contentType = ObjectSerializer.getPreferredMediaType([
"application/json"
]);
requestContext.setHeaderParam("Content-Type", contentType);
const serializedBody = ObjectSerializer.stringify(
ObjectSerializer.serialize(body, "EventsourceCreateEventSourceRequest", ""),
contentType
);
requestContext.setBody(serializedBody);
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @param namespace
* @param name
* @param deleteOptionsGracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +optional.
* @param deleteOptionsPreconditionsUid Specifies the target UID. +optional.
* @param deleteOptionsPreconditionsResourceVersion Specifies the target ResourceVersion +optional.
* @param deleteOptionsOrphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object\&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional.
* @param deleteOptionsPropagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \&#39;Orphan\&#39; - orphan the dependents; \&#39;Background\&#39; - allow the garbage collector to delete the dependents in the background; \&#39;Foreground\&#39; - a cascading policy that deletes all dependents in the foreground. +optional.
* @param deleteOptionsDryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional.
*/
public async eventSourceServiceDeleteEventSource(namespace: string, name: string, deleteOptionsGracePeriodSeconds?: string, deleteOptionsPreconditionsUid?: string, deleteOptionsPreconditionsResourceVersion?: string, deleteOptionsOrphanDependents?: boolean, deleteOptionsPropagationPolicy?: string, deleteOptionsDryRun?: Array<string>, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new RequiredError("EventSourceServiceApi", "eventSourceServiceDeleteEventSource", "namespace");
}
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new RequiredError("EventSourceServiceApi", "eventSourceServiceDeleteEventSource", "name");
}
// Path Params
const localVarPath = '/api/v1/event-sources/{namespace}/{name}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Query Params
if (deleteOptionsGracePeriodSeconds !== undefined) {
requestContext.setQueryParam("deleteOptions.gracePeriodSeconds", ObjectSerializer.serialize(deleteOptionsGracePeriodSeconds, "string", "int64"));
}
// Query Params
if (deleteOptionsPreconditionsUid !== undefined) {
requestContext.setQueryParam("deleteOptions.preconditions.uid", ObjectSerializer.serialize(deleteOptionsPreconditionsUid, "string", ""));
}
// Query Params
if (deleteOptionsPreconditionsResourceVersion !== undefined) {
requestContext.setQueryParam("deleteOptions.preconditions.resourceVersion", ObjectSerializer.serialize(deleteOptionsPreconditionsResourceVersion, "string", ""));
}
// Query Params
if (deleteOptionsOrphanDependents !== undefined) {
requestContext.setQueryParam("deleteOptions.orphanDependents", ObjectSerializer.serialize(deleteOptionsOrphanDependents, "boolean", ""));
}
// Query Params
if (deleteOptionsPropagationPolicy !== undefined) {
requestContext.setQueryParam("deleteOptions.propagationPolicy", ObjectSerializer.serialize(deleteOptionsPropagationPolicy, "string", ""));
}
// Query Params
if (deleteOptionsDryRun !== undefined) {
requestContext.setQueryParam("deleteOptions.dryRun", ObjectSerializer.serialize(deleteOptionsDryRun, "Array<string>", ""));
}
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @param namespace
* @param name optional - only return entries for this event source.
* @param eventSourceType optional - only return entries for this event source type (e.g. &#x60;webhook&#x60;).
* @param eventName optional - only return entries for this event name (e.g. &#x60;example&#x60;).
* @param grep optional - only return entries where &#x60;msg&#x60; matches this regular expression.
* @param podLogOptionsContainer The container for which to stream logs. Defaults to only container if there is one container in the pod. +optional.
* @param podLogOptionsFollow Follow the log stream of the pod. Defaults to false. +optional.
* @param podLogOptionsPrevious Return previous terminated container logs. Defaults to false. +optional.
* @param podLogOptionsSinceSeconds A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. +optional.
* @param podLogOptionsSinceTimeSeconds Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.
* @param podLogOptionsSinceTimeNanos Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 inclusive. This field may be limited in precision depending on context.
* @param podLogOptionsTimestamps If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. +optional.
* @param podLogOptionsTailLines If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime +optional.
* @param podLogOptionsLimitBytes If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. +optional.
* @param podLogOptionsInsecureSkipTLSVerifyBackend insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver\&#39;s TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). +optional.
*/
public async eventSourceServiceEventSourcesLogs(namespace: string, name?: string, eventSourceType?: string, eventName?: string, grep?: string, podLogOptionsContainer?: string, podLogOptionsFollow?: boolean, podLogOptionsPrevious?: boolean, podLogOptionsSinceSeconds?: string, podLogOptionsSinceTimeSeconds?: string, podLogOptionsSinceTimeNanos?: number, podLogOptionsTimestamps?: boolean, podLogOptionsTailLines?: string, podLogOptionsLimitBytes?: string, podLogOptionsInsecureSkipTLSVerifyBackend?: boolean, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new RequiredError("EventSourceServiceApi", "eventSourceServiceEventSourcesLogs", "namespace");
}
// Path Params
const localVarPath = '/api/v1/stream/event-sources/{namespace}/logs'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Query Params
if (name !== undefined) {
requestContext.setQueryParam("name", ObjectSerializer.serialize(name, "string", ""));
}
// Query Params
if (eventSourceType !== undefined) {
requestContext.setQueryParam("eventSourceType", ObjectSerializer.serialize(eventSourceType, "string", ""));
}
// Query Params
if (eventName !== undefined) {
requestContext.setQueryParam("eventName", ObjectSerializer.serialize(eventName, "string", ""));
}
// Query Params
if (grep !== undefined) {
requestContext.setQueryParam("grep", ObjectSerializer.serialize(grep, "string", ""));
}
// Query Params
if (podLogOptionsContainer !== undefined) {
requestContext.setQueryParam("podLogOptions.container", ObjectSerializer.serialize(podLogOptionsContainer, "string", ""));
}
// Query Params
if (podLogOptionsFollow !== undefined) {
requestContext.setQueryParam("podLogOptions.follow", ObjectSerializer.serialize(podLogOptionsFollow, "boolean", ""));
}
// Query Params
if (podLogOptionsPrevious !== undefined) {
requestContext.setQueryParam("podLogOptions.previous", ObjectSerializer.serialize(podLogOptionsPrevious, "boolean", ""));
}
// Query Params
if (podLogOptionsSinceSeconds !== undefined) {
requestContext.setQueryParam("podLogOptions.sinceSeconds", ObjectSerializer.serialize(podLogOptionsSinceSeconds, "string", "int64"));
}
// Query Params
if (podLogOptionsSinceTimeSeconds !== undefined) {
requestContext.setQueryParam("podLogOptions.sinceTime.seconds", ObjectSerializer.serialize(podLogOptionsSinceTimeSeconds, "string", "int64"));
}
// Query Params
if (podLogOptionsSinceTimeNanos !== undefined) {
requestContext.setQueryParam("podLogOptions.sinceTime.nanos", ObjectSerializer.serialize(podLogOptionsSinceTimeNanos, "number", "int32"));
}
// Query Params
if (podLogOptionsTimestamps !== undefined) {
requestContext.setQueryParam("podLogOptions.timestamps", ObjectSerializer.serialize(podLogOptionsTimestamps, "boolean", ""));
}
// Query Params
if (podLogOptionsTailLines !== undefined) {
requestContext.setQueryParam("podLogOptions.tailLines", ObjectSerializer.serialize(podLogOptionsTailLines, "string", "int64"));
}
// Query Params
if (podLogOptionsLimitBytes !== undefined) {
requestContext.setQueryParam("podLogOptions.limitBytes", ObjectSerializer.serialize(podLogOptionsLimitBytes, "string", "int64"));
}
// Query Params
if (podLogOptionsInsecureSkipTLSVerifyBackend !== undefined) {
requestContext.setQueryParam("podLogOptions.insecureSkipTLSVerifyBackend", ObjectSerializer.serialize(podLogOptionsInsecureSkipTLSVerifyBackend, "boolean", ""));
}
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @param namespace
* @param name
*/
public async eventSourceServiceGetEventSource(namespace: string, name: string, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new RequiredError("EventSourceServiceApi", "eventSourceServiceGetEventSource", "namespace");
}
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new RequiredError("EventSourceServiceApi", "eventSourceServiceGetEventSource", "name");
}
// Path Params
const localVarPath = '/api/v1/event-sources/{namespace}/{name}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @param namespace
* @param listOptionsLabelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional.
* @param listOptionsFieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional.
* @param listOptionsWatch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional.
* @param listOptionsAllowWatchBookmarks allowWatchBookmarks requests watch events with type \&quot;BOOKMARK\&quot;. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\&#39;s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional.
* @param listOptionsResourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsResourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsTimeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional.
* @param listOptionsLimit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
* @param listOptionsContinue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
*/
public async eventSourceServiceListEventSources(namespace: string, listOptionsLabelSelector?: string, listOptionsFieldSelector?: string, listOptionsWatch?: boolean, listOptionsAllowWatchBookmarks?: boolean, listOptionsResourceVersion?: string, listOptionsResourceVersionMatch?: string, listOptionsTimeoutSeconds?: string, listOptionsLimit?: string, listOptionsContinue?: string, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new RequiredError("EventSourceServiceApi", "eventSourceServiceListEventSources", "namespace");
}
// Path Params
const localVarPath = '/api/v1/event-sources/{namespace}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Query Params
if (listOptionsLabelSelector !== undefined) {
requestContext.setQueryParam("listOptions.labelSelector", ObjectSerializer.serialize(listOptionsLabelSelector, "string", ""));
}
// Query Params
if (listOptionsFieldSelector !== undefined) {
requestContext.setQueryParam("listOptions.fieldSelector", ObjectSerializer.serialize(listOptionsFieldSelector, "string", ""));
}
// Query Params
if (listOptionsWatch !== undefined) {
requestContext.setQueryParam("listOptions.watch", ObjectSerializer.serialize(listOptionsWatch, "boolean", ""));
}
// Query Params
if (listOptionsAllowWatchBookmarks !== undefined) {
requestContext.setQueryParam("listOptions.allowWatchBookmarks", ObjectSerializer.serialize(listOptionsAllowWatchBookmarks, "boolean", ""));
}
// Query Params
if (listOptionsResourceVersion !== undefined) {
requestContext.setQueryParam("listOptions.resourceVersion", ObjectSerializer.serialize(listOptionsResourceVersion, "string", ""));
}
// Query Params
if (listOptionsResourceVersionMatch !== undefined) {
requestContext.setQueryParam("listOptions.resourceVersionMatch", ObjectSerializer.serialize(listOptionsResourceVersionMatch, "string", ""));
}
// Query Params
if (listOptionsTimeoutSeconds !== undefined) {
requestContext.setQueryParam("listOptions.timeoutSeconds", ObjectSerializer.serialize(listOptionsTimeoutSeconds, "string", "int64"));
}
// Query Params
if (listOptionsLimit !== undefined) {
requestContext.setQueryParam("listOptions.limit", ObjectSerializer.serialize(listOptionsLimit, "string", "int64"));
}
// Query Params
if (listOptionsContinue !== undefined) {
requestContext.setQueryParam("listOptions.continue", ObjectSerializer.serialize(listOptionsContinue, "string", ""));
}
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @param namespace
* @param name
* @param body
*/
public async eventSourceServiceUpdateEventSource(namespace: string, name: string, body: EventsourceUpdateEventSourceRequest, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new RequiredError("EventSourceServiceApi", "eventSourceServiceUpdateEventSource", "namespace");
}
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new RequiredError("EventSourceServiceApi", "eventSourceServiceUpdateEventSource", "name");
}
// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new RequiredError("EventSourceServiceApi", "eventSourceServiceUpdateEventSource", "body");
}
// Path Params
const localVarPath = '/api/v1/event-sources/{namespace}/{name}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Body Params
const contentType = ObjectSerializer.getPreferredMediaType([
"application/json"
]);
requestContext.setHeaderParam("Content-Type", contentType);
const serializedBody = ObjectSerializer.stringify(
ObjectSerializer.serialize(body, "EventsourceUpdateEventSourceRequest", ""),
contentType
);
requestContext.setBody(serializedBody);
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @param namespace
* @param listOptionsLabelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional.
* @param listOptionsFieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional.
* @param listOptionsWatch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional.
* @param listOptionsAllowWatchBookmarks allowWatchBookmarks requests watch events with type \&quot;BOOKMARK\&quot;. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\&#39;s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional.
* @param listOptionsResourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsResourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsTimeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional.
* @param listOptionsLimit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
* @param listOptionsContinue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
*/
public async eventSourceServiceWatchEventSources(namespace: string, listOptionsLabelSelector?: string, listOptionsFieldSelector?: string, listOptionsWatch?: boolean, listOptionsAllowWatchBookmarks?: boolean, listOptionsResourceVersion?: string, listOptionsResourceVersionMatch?: string, listOptionsTimeoutSeconds?: string, listOptionsLimit?: string, listOptionsContinue?: string, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new RequiredError("EventSourceServiceApi", "eventSourceServiceWatchEventSources", "namespace");
}
// Path Params
const localVarPath = '/api/v1/stream/event-sources/{namespace}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Query Params
if (listOptionsLabelSelector !== undefined) {
requestContext.setQueryParam("listOptions.labelSelector", ObjectSerializer.serialize(listOptionsLabelSelector, "string", ""));
}
// Query Params
if (listOptionsFieldSelector !== undefined) {
requestContext.setQueryParam("listOptions.fieldSelector", ObjectSerializer.serialize(listOptionsFieldSelector, "string", ""));
}
// Query Params
if (listOptionsWatch !== undefined) {
requestContext.setQueryParam("listOptions.watch", ObjectSerializer.serialize(listOptionsWatch, "boolean", ""));
}
// Query Params
if (listOptionsAllowWatchBookmarks !== undefined) {
requestContext.setQueryParam("listOptions.allowWatchBookmarks", ObjectSerializer.serialize(listOptionsAllowWatchBookmarks, "boolean", ""));
}
// Query Params
if (listOptionsResourceVersion !== undefined) {
requestContext.setQueryParam("listOptions.resourceVersion", ObjectSerializer.serialize(listOptionsResourceVersion, "string", ""));
}
// Query Params
if (listOptionsResourceVersionMatch !== undefined) {
requestContext.setQueryParam("listOptions.resourceVersionMatch", ObjectSerializer.serialize(listOptionsResourceVersionMatch, "string", ""));
}
// Query Params
if (listOptionsTimeoutSeconds !== undefined) {
requestContext.setQueryParam("listOptions.timeoutSeconds", ObjectSerializer.serialize(listOptionsTimeoutSeconds, "string", "int64"));
}
// Query Params
if (listOptionsLimit !== undefined) {
requestContext.setQueryParam("listOptions.limit", ObjectSerializer.serialize(listOptionsLimit, "string", "int64"));
}
// Query Params
if (listOptionsContinue !== undefined) {
requestContext.setQueryParam("listOptions.continue", ObjectSerializer.serialize(listOptionsContinue, "string", ""));
}
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
}
export class EventSourceServiceApiResponseProcessor {
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to eventSourceServiceCreateEventSource
* @throws ApiException if the response code was not in [200, 299]
*/
public async eventSourceServiceCreateEventSource(response: ResponseContext): Promise<IoArgoprojEventsV1alpha1EventSource > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojEventsV1alpha1EventSource = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojEventsV1alpha1EventSource", ""
) as IoArgoprojEventsV1alpha1EventSource;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojEventsV1alpha1EventSource = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojEventsV1alpha1EventSource", ""
) as IoArgoprojEventsV1alpha1EventSource;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to eventSourceServiceDeleteEventSource
* @throws ApiException if the response code was not in [200, 299]
*/
public async eventSourceServiceDeleteEventSource(response: ResponseContext): Promise<any > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: any = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"any", ""
) as any;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: any = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"any", ""
) as any;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to eventSourceServiceEventSourcesLogs
* @throws ApiException if the response code was not in [200, 299]
*/
public async eventSourceServiceEventSourcesLogs(response: ResponseContext): Promise<StreamResultOfEventsourceLogEntry > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: StreamResultOfEventsourceLogEntry = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"StreamResultOfEventsourceLogEntry", ""
) as StreamResultOfEventsourceLogEntry;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: StreamResultOfEventsourceLogEntry = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"StreamResultOfEventsourceLogEntry", ""
) as StreamResultOfEventsourceLogEntry;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to eventSourceServiceGetEventSource
* @throws ApiException if the response code was not in [200, 299]
*/
public async eventSourceServiceGetEventSource(response: ResponseContext): Promise<IoArgoprojEventsV1alpha1EventSource > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojEventsV1alpha1EventSource = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojEventsV1alpha1EventSource", ""
) as IoArgoprojEventsV1alpha1EventSource;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojEventsV1alpha1EventSource = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojEventsV1alpha1EventSource", ""
) as IoArgoprojEventsV1alpha1EventSource;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to eventSourceServiceListEventSources
* @throws ApiException if the response code was not in [200, 299]
*/
public async eventSourceServiceListEventSources(response: ResponseContext): Promise<IoArgoprojEventsV1alpha1EventSourceList > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojEventsV1alpha1EventSourceList = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojEventsV1alpha1EventSourceList", ""
) as IoArgoprojEventsV1alpha1EventSourceList;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojEventsV1alpha1EventSourceList = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojEventsV1alpha1EventSourceList", ""
) as IoArgoprojEventsV1alpha1EventSourceList;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to eventSourceServiceUpdateEventSource
* @throws ApiException if the response code was not in [200, 299]
*/
public async eventSourceServiceUpdateEventSource(response: ResponseContext): Promise<IoArgoprojEventsV1alpha1EventSource > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojEventsV1alpha1EventSource = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojEventsV1alpha1EventSource", ""
) as IoArgoprojEventsV1alpha1EventSource;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojEventsV1alpha1EventSource = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojEventsV1alpha1EventSource", ""
) as IoArgoprojEventsV1alpha1EventSource;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to eventSourceServiceWatchEventSources
* @throws ApiException if the response code was not in [200, 299]
*/
public async eventSourceServiceWatchEventSources(response: ResponseContext): Promise<StreamResultOfEventsourceEventSourceWatchEvent > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: StreamResultOfEventsourceEventSourceWatchEvent = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"StreamResultOfEventsourceEventSourceWatchEvent", ""
) as StreamResultOfEventsourceEventSourceWatchEvent;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: StreamResultOfEventsourceEventSourceWatchEvent = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"StreamResultOfEventsourceEventSourceWatchEvent", ""
) as StreamResultOfEventsourceEventSourceWatchEvent;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
}

View file

@ -0,0 +1,300 @@
// TODO: better import syntax?
import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi';
import {Configuration} from '../configuration';
import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http';
import {ObjectSerializer} from '../models/ObjectSerializer';
import {ApiException} from './exception';
import {canConsumeForm, isCodeInRange} from '../util';
import {SecurityAuthentication} from '../auth/auth';
import { GrpcGatewayRuntimeError } from '../models/GrpcGatewayRuntimeError';
import { IoArgoprojWorkflowV1alpha1CollectEventRequest } from '../models/IoArgoprojWorkflowV1alpha1CollectEventRequest';
import { IoArgoprojWorkflowV1alpha1GetUserInfoResponse } from '../models/IoArgoprojWorkflowV1alpha1GetUserInfoResponse';
import { IoArgoprojWorkflowV1alpha1InfoResponse } from '../models/IoArgoprojWorkflowV1alpha1InfoResponse';
import { IoArgoprojWorkflowV1alpha1Version } from '../models/IoArgoprojWorkflowV1alpha1Version';
/**
* no description
*/
export class InfoServiceApiRequestFactory extends BaseAPIRequestFactory {
/**
* @param body
*/
public async infoServiceCollectEvent(body: IoArgoprojWorkflowV1alpha1CollectEventRequest, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new RequiredError("InfoServiceApi", "infoServiceCollectEvent", "body");
}
// Path Params
const localVarPath = '/api/v1/tracking/event';
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Body Params
const contentType = ObjectSerializer.getPreferredMediaType([
"application/json"
]);
requestContext.setHeaderParam("Content-Type", contentType);
const serializedBody = ObjectSerializer.stringify(
ObjectSerializer.serialize(body, "IoArgoprojWorkflowV1alpha1CollectEventRequest", ""),
contentType
);
requestContext.setBody(serializedBody);
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
*/
public async infoServiceGetInfo(_options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// Path Params
const localVarPath = '/api/v1/info';
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
*/
public async infoServiceGetUserInfo(_options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// Path Params
const localVarPath = '/api/v1/userinfo';
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
*/
public async infoServiceGetVersion(_options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// Path Params
const localVarPath = '/api/v1/version';
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
}
export class InfoServiceApiResponseProcessor {
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to infoServiceCollectEvent
* @throws ApiException if the response code was not in [200, 299]
*/
public async infoServiceCollectEvent(response: ResponseContext): Promise<any > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: any = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"any", ""
) as any;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: any = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"any", ""
) as any;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to infoServiceGetInfo
* @throws ApiException if the response code was not in [200, 299]
*/
public async infoServiceGetInfo(response: ResponseContext): Promise<IoArgoprojWorkflowV1alpha1InfoResponse > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojWorkflowV1alpha1InfoResponse = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1InfoResponse", ""
) as IoArgoprojWorkflowV1alpha1InfoResponse;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojWorkflowV1alpha1InfoResponse = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1InfoResponse", ""
) as IoArgoprojWorkflowV1alpha1InfoResponse;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to infoServiceGetUserInfo
* @throws ApiException if the response code was not in [200, 299]
*/
public async infoServiceGetUserInfo(response: ResponseContext): Promise<IoArgoprojWorkflowV1alpha1GetUserInfoResponse > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojWorkflowV1alpha1GetUserInfoResponse = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1GetUserInfoResponse", ""
) as IoArgoprojWorkflowV1alpha1GetUserInfoResponse;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojWorkflowV1alpha1GetUserInfoResponse = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1GetUserInfoResponse", ""
) as IoArgoprojWorkflowV1alpha1GetUserInfoResponse;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to infoServiceGetVersion
* @throws ApiException if the response code was not in [200, 299]
*/
public async infoServiceGetVersion(response: ResponseContext): Promise<IoArgoprojWorkflowV1alpha1Version > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojWorkflowV1alpha1Version = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1Version", ""
) as IoArgoprojWorkflowV1alpha1Version;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojWorkflowV1alpha1Version = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1Version", ""
) as IoArgoprojWorkflowV1alpha1Version;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
}

View file

@ -0,0 +1,858 @@
// TODO: better import syntax?
import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi';
import {Configuration} from '../configuration';
import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http';
import {ObjectSerializer} from '../models/ObjectSerializer';
import {ApiException} from './exception';
import {canConsumeForm, isCodeInRange} from '../util';
import {SecurityAuthentication} from '../auth/auth';
import { GrpcGatewayRuntimeError } from '../models/GrpcGatewayRuntimeError';
import { IoArgoprojEventsV1alpha1Sensor } from '../models/IoArgoprojEventsV1alpha1Sensor';
import { IoArgoprojEventsV1alpha1SensorList } from '../models/IoArgoprojEventsV1alpha1SensorList';
import { SensorCreateSensorRequest } from '../models/SensorCreateSensorRequest';
import { SensorUpdateSensorRequest } from '../models/SensorUpdateSensorRequest';
import { StreamResultOfSensorLogEntry } from '../models/StreamResultOfSensorLogEntry';
import { StreamResultOfSensorSensorWatchEvent } from '../models/StreamResultOfSensorSensorWatchEvent';
/**
* no description
*/
export class SensorServiceApiRequestFactory extends BaseAPIRequestFactory {
/**
* @param namespace
* @param body
*/
public async sensorServiceCreateSensor(namespace: string, body: SensorCreateSensorRequest, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new RequiredError("SensorServiceApi", "sensorServiceCreateSensor", "namespace");
}
// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new RequiredError("SensorServiceApi", "sensorServiceCreateSensor", "body");
}
// Path Params
const localVarPath = '/api/v1/sensors/{namespace}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Body Params
const contentType = ObjectSerializer.getPreferredMediaType([
"application/json"
]);
requestContext.setHeaderParam("Content-Type", contentType);
const serializedBody = ObjectSerializer.stringify(
ObjectSerializer.serialize(body, "SensorCreateSensorRequest", ""),
contentType
);
requestContext.setBody(serializedBody);
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @param namespace
* @param name
* @param deleteOptionsGracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +optional.
* @param deleteOptionsPreconditionsUid Specifies the target UID. +optional.
* @param deleteOptionsPreconditionsResourceVersion Specifies the target ResourceVersion +optional.
* @param deleteOptionsOrphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object\&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional.
* @param deleteOptionsPropagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \&#39;Orphan\&#39; - orphan the dependents; \&#39;Background\&#39; - allow the garbage collector to delete the dependents in the background; \&#39;Foreground\&#39; - a cascading policy that deletes all dependents in the foreground. +optional.
* @param deleteOptionsDryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional.
*/
public async sensorServiceDeleteSensor(namespace: string, name: string, deleteOptionsGracePeriodSeconds?: string, deleteOptionsPreconditionsUid?: string, deleteOptionsPreconditionsResourceVersion?: string, deleteOptionsOrphanDependents?: boolean, deleteOptionsPropagationPolicy?: string, deleteOptionsDryRun?: Array<string>, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new RequiredError("SensorServiceApi", "sensorServiceDeleteSensor", "namespace");
}
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new RequiredError("SensorServiceApi", "sensorServiceDeleteSensor", "name");
}
// Path Params
const localVarPath = '/api/v1/sensors/{namespace}/{name}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Query Params
if (deleteOptionsGracePeriodSeconds !== undefined) {
requestContext.setQueryParam("deleteOptions.gracePeriodSeconds", ObjectSerializer.serialize(deleteOptionsGracePeriodSeconds, "string", "int64"));
}
// Query Params
if (deleteOptionsPreconditionsUid !== undefined) {
requestContext.setQueryParam("deleteOptions.preconditions.uid", ObjectSerializer.serialize(deleteOptionsPreconditionsUid, "string", ""));
}
// Query Params
if (deleteOptionsPreconditionsResourceVersion !== undefined) {
requestContext.setQueryParam("deleteOptions.preconditions.resourceVersion", ObjectSerializer.serialize(deleteOptionsPreconditionsResourceVersion, "string", ""));
}
// Query Params
if (deleteOptionsOrphanDependents !== undefined) {
requestContext.setQueryParam("deleteOptions.orphanDependents", ObjectSerializer.serialize(deleteOptionsOrphanDependents, "boolean", ""));
}
// Query Params
if (deleteOptionsPropagationPolicy !== undefined) {
requestContext.setQueryParam("deleteOptions.propagationPolicy", ObjectSerializer.serialize(deleteOptionsPropagationPolicy, "string", ""));
}
// Query Params
if (deleteOptionsDryRun !== undefined) {
requestContext.setQueryParam("deleteOptions.dryRun", ObjectSerializer.serialize(deleteOptionsDryRun, "Array<string>", ""));
}
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @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?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new RequiredError("SensorServiceApi", "sensorServiceGetSensor", "namespace");
}
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new RequiredError("SensorServiceApi", "sensorServiceGetSensor", "name");
}
// Path Params
const localVarPath = '/api/v1/sensors/{namespace}/{name}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Query Params
if (getOptionsResourceVersion !== undefined) {
requestContext.setQueryParam("getOptions.resourceVersion", ObjectSerializer.serialize(getOptionsResourceVersion, "string", ""));
}
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @param namespace
* @param listOptionsLabelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional.
* @param listOptionsFieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional.
* @param listOptionsWatch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional.
* @param listOptionsAllowWatchBookmarks allowWatchBookmarks requests watch events with type \&quot;BOOKMARK\&quot;. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\&#39;s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional.
* @param listOptionsResourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsResourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsTimeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional.
* @param listOptionsLimit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
* @param listOptionsContinue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
*/
public async sensorServiceListSensors(namespace: string, listOptionsLabelSelector?: string, listOptionsFieldSelector?: string, listOptionsWatch?: boolean, listOptionsAllowWatchBookmarks?: boolean, listOptionsResourceVersion?: string, listOptionsResourceVersionMatch?: string, listOptionsTimeoutSeconds?: string, listOptionsLimit?: string, listOptionsContinue?: string, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new RequiredError("SensorServiceApi", "sensorServiceListSensors", "namespace");
}
// Path Params
const localVarPath = '/api/v1/sensors/{namespace}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Query Params
if (listOptionsLabelSelector !== undefined) {
requestContext.setQueryParam("listOptions.labelSelector", ObjectSerializer.serialize(listOptionsLabelSelector, "string", ""));
}
// Query Params
if (listOptionsFieldSelector !== undefined) {
requestContext.setQueryParam("listOptions.fieldSelector", ObjectSerializer.serialize(listOptionsFieldSelector, "string", ""));
}
// Query Params
if (listOptionsWatch !== undefined) {
requestContext.setQueryParam("listOptions.watch", ObjectSerializer.serialize(listOptionsWatch, "boolean", ""));
}
// Query Params
if (listOptionsAllowWatchBookmarks !== undefined) {
requestContext.setQueryParam("listOptions.allowWatchBookmarks", ObjectSerializer.serialize(listOptionsAllowWatchBookmarks, "boolean", ""));
}
// Query Params
if (listOptionsResourceVersion !== undefined) {
requestContext.setQueryParam("listOptions.resourceVersion", ObjectSerializer.serialize(listOptionsResourceVersion, "string", ""));
}
// Query Params
if (listOptionsResourceVersionMatch !== undefined) {
requestContext.setQueryParam("listOptions.resourceVersionMatch", ObjectSerializer.serialize(listOptionsResourceVersionMatch, "string", ""));
}
// Query Params
if (listOptionsTimeoutSeconds !== undefined) {
requestContext.setQueryParam("listOptions.timeoutSeconds", ObjectSerializer.serialize(listOptionsTimeoutSeconds, "string", "int64"));
}
// Query Params
if (listOptionsLimit !== undefined) {
requestContext.setQueryParam("listOptions.limit", ObjectSerializer.serialize(listOptionsLimit, "string", "int64"));
}
// Query Params
if (listOptionsContinue !== undefined) {
requestContext.setQueryParam("listOptions.continue", ObjectSerializer.serialize(listOptionsContinue, "string", ""));
}
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @param namespace
* @param name optional - only return entries for this sensor name.
* @param triggerName optional - only return entries for this trigger.
* @param grep option - only return entries where &#x60;msg&#x60; contains this regular expressions.
* @param podLogOptionsContainer The container for which to stream logs. Defaults to only container if there is one container in the pod. +optional.
* @param podLogOptionsFollow Follow the log stream of the pod. Defaults to false. +optional.
* @param podLogOptionsPrevious Return previous terminated container logs. Defaults to false. +optional.
* @param podLogOptionsSinceSeconds A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. +optional.
* @param podLogOptionsSinceTimeSeconds Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.
* @param podLogOptionsSinceTimeNanos Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 inclusive. This field may be limited in precision depending on context.
* @param podLogOptionsTimestamps If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. +optional.
* @param podLogOptionsTailLines If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime +optional.
* @param podLogOptionsLimitBytes If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. +optional.
* @param podLogOptionsInsecureSkipTLSVerifyBackend insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver\&#39;s TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). +optional.
*/
public async sensorServiceSensorsLogs(namespace: string, name?: string, triggerName?: string, grep?: string, podLogOptionsContainer?: string, podLogOptionsFollow?: boolean, podLogOptionsPrevious?: boolean, podLogOptionsSinceSeconds?: string, podLogOptionsSinceTimeSeconds?: string, podLogOptionsSinceTimeNanos?: number, podLogOptionsTimestamps?: boolean, podLogOptionsTailLines?: string, podLogOptionsLimitBytes?: string, podLogOptionsInsecureSkipTLSVerifyBackend?: boolean, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new RequiredError("SensorServiceApi", "sensorServiceSensorsLogs", "namespace");
}
// Path Params
const localVarPath = '/api/v1/stream/sensors/{namespace}/logs'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Query Params
if (name !== undefined) {
requestContext.setQueryParam("name", ObjectSerializer.serialize(name, "string", ""));
}
// Query Params
if (triggerName !== undefined) {
requestContext.setQueryParam("triggerName", ObjectSerializer.serialize(triggerName, "string", ""));
}
// Query Params
if (grep !== undefined) {
requestContext.setQueryParam("grep", ObjectSerializer.serialize(grep, "string", ""));
}
// Query Params
if (podLogOptionsContainer !== undefined) {
requestContext.setQueryParam("podLogOptions.container", ObjectSerializer.serialize(podLogOptionsContainer, "string", ""));
}
// Query Params
if (podLogOptionsFollow !== undefined) {
requestContext.setQueryParam("podLogOptions.follow", ObjectSerializer.serialize(podLogOptionsFollow, "boolean", ""));
}
// Query Params
if (podLogOptionsPrevious !== undefined) {
requestContext.setQueryParam("podLogOptions.previous", ObjectSerializer.serialize(podLogOptionsPrevious, "boolean", ""));
}
// Query Params
if (podLogOptionsSinceSeconds !== undefined) {
requestContext.setQueryParam("podLogOptions.sinceSeconds", ObjectSerializer.serialize(podLogOptionsSinceSeconds, "string", "int64"));
}
// Query Params
if (podLogOptionsSinceTimeSeconds !== undefined) {
requestContext.setQueryParam("podLogOptions.sinceTime.seconds", ObjectSerializer.serialize(podLogOptionsSinceTimeSeconds, "string", "int64"));
}
// Query Params
if (podLogOptionsSinceTimeNanos !== undefined) {
requestContext.setQueryParam("podLogOptions.sinceTime.nanos", ObjectSerializer.serialize(podLogOptionsSinceTimeNanos, "number", "int32"));
}
// Query Params
if (podLogOptionsTimestamps !== undefined) {
requestContext.setQueryParam("podLogOptions.timestamps", ObjectSerializer.serialize(podLogOptionsTimestamps, "boolean", ""));
}
// Query Params
if (podLogOptionsTailLines !== undefined) {
requestContext.setQueryParam("podLogOptions.tailLines", ObjectSerializer.serialize(podLogOptionsTailLines, "string", "int64"));
}
// Query Params
if (podLogOptionsLimitBytes !== undefined) {
requestContext.setQueryParam("podLogOptions.limitBytes", ObjectSerializer.serialize(podLogOptionsLimitBytes, "string", "int64"));
}
// Query Params
if (podLogOptionsInsecureSkipTLSVerifyBackend !== undefined) {
requestContext.setQueryParam("podLogOptions.insecureSkipTLSVerifyBackend", ObjectSerializer.serialize(podLogOptionsInsecureSkipTLSVerifyBackend, "boolean", ""));
}
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @param namespace
* @param name
* @param body
*/
public async sensorServiceUpdateSensor(namespace: string, name: string, body: SensorUpdateSensorRequest, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new RequiredError("SensorServiceApi", "sensorServiceUpdateSensor", "namespace");
}
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new RequiredError("SensorServiceApi", "sensorServiceUpdateSensor", "name");
}
// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new RequiredError("SensorServiceApi", "sensorServiceUpdateSensor", "body");
}
// Path Params
const localVarPath = '/api/v1/sensors/{namespace}/{name}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Body Params
const contentType = ObjectSerializer.getPreferredMediaType([
"application/json"
]);
requestContext.setHeaderParam("Content-Type", contentType);
const serializedBody = ObjectSerializer.stringify(
ObjectSerializer.serialize(body, "SensorUpdateSensorRequest", ""),
contentType
);
requestContext.setBody(serializedBody);
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @param namespace
* @param listOptionsLabelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional.
* @param listOptionsFieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional.
* @param listOptionsWatch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional.
* @param listOptionsAllowWatchBookmarks allowWatchBookmarks requests watch events with type \&quot;BOOKMARK\&quot;. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\&#39;s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional.
* @param listOptionsResourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsResourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsTimeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional.
* @param listOptionsLimit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
* @param listOptionsContinue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
*/
public async sensorServiceWatchSensors(namespace: string, listOptionsLabelSelector?: string, listOptionsFieldSelector?: string, listOptionsWatch?: boolean, listOptionsAllowWatchBookmarks?: boolean, listOptionsResourceVersion?: string, listOptionsResourceVersionMatch?: string, listOptionsTimeoutSeconds?: string, listOptionsLimit?: string, listOptionsContinue?: string, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new RequiredError("SensorServiceApi", "sensorServiceWatchSensors", "namespace");
}
// Path Params
const localVarPath = '/api/v1/stream/sensors/{namespace}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Query Params
if (listOptionsLabelSelector !== undefined) {
requestContext.setQueryParam("listOptions.labelSelector", ObjectSerializer.serialize(listOptionsLabelSelector, "string", ""));
}
// Query Params
if (listOptionsFieldSelector !== undefined) {
requestContext.setQueryParam("listOptions.fieldSelector", ObjectSerializer.serialize(listOptionsFieldSelector, "string", ""));
}
// Query Params
if (listOptionsWatch !== undefined) {
requestContext.setQueryParam("listOptions.watch", ObjectSerializer.serialize(listOptionsWatch, "boolean", ""));
}
// Query Params
if (listOptionsAllowWatchBookmarks !== undefined) {
requestContext.setQueryParam("listOptions.allowWatchBookmarks", ObjectSerializer.serialize(listOptionsAllowWatchBookmarks, "boolean", ""));
}
// Query Params
if (listOptionsResourceVersion !== undefined) {
requestContext.setQueryParam("listOptions.resourceVersion", ObjectSerializer.serialize(listOptionsResourceVersion, "string", ""));
}
// Query Params
if (listOptionsResourceVersionMatch !== undefined) {
requestContext.setQueryParam("listOptions.resourceVersionMatch", ObjectSerializer.serialize(listOptionsResourceVersionMatch, "string", ""));
}
// Query Params
if (listOptionsTimeoutSeconds !== undefined) {
requestContext.setQueryParam("listOptions.timeoutSeconds", ObjectSerializer.serialize(listOptionsTimeoutSeconds, "string", "int64"));
}
// Query Params
if (listOptionsLimit !== undefined) {
requestContext.setQueryParam("listOptions.limit", ObjectSerializer.serialize(listOptionsLimit, "string", "int64"));
}
// Query Params
if (listOptionsContinue !== undefined) {
requestContext.setQueryParam("listOptions.continue", ObjectSerializer.serialize(listOptionsContinue, "string", ""));
}
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
}
export class SensorServiceApiResponseProcessor {
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to sensorServiceCreateSensor
* @throws ApiException if the response code was not in [200, 299]
*/
public async sensorServiceCreateSensor(response: ResponseContext): Promise<IoArgoprojEventsV1alpha1Sensor > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojEventsV1alpha1Sensor = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojEventsV1alpha1Sensor", ""
) as IoArgoprojEventsV1alpha1Sensor;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojEventsV1alpha1Sensor = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojEventsV1alpha1Sensor", ""
) as IoArgoprojEventsV1alpha1Sensor;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to sensorServiceDeleteSensor
* @throws ApiException if the response code was not in [200, 299]
*/
public async sensorServiceDeleteSensor(response: ResponseContext): Promise<any > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: any = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"any", ""
) as any;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: any = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"any", ""
) as any;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to sensorServiceGetSensor
* @throws ApiException if the response code was not in [200, 299]
*/
public async sensorServiceGetSensor(response: ResponseContext): Promise<IoArgoprojEventsV1alpha1Sensor > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojEventsV1alpha1Sensor = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojEventsV1alpha1Sensor", ""
) as IoArgoprojEventsV1alpha1Sensor;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojEventsV1alpha1Sensor = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojEventsV1alpha1Sensor", ""
) as IoArgoprojEventsV1alpha1Sensor;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to sensorServiceListSensors
* @throws ApiException if the response code was not in [200, 299]
*/
public async sensorServiceListSensors(response: ResponseContext): Promise<IoArgoprojEventsV1alpha1SensorList > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojEventsV1alpha1SensorList = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojEventsV1alpha1SensorList", ""
) as IoArgoprojEventsV1alpha1SensorList;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojEventsV1alpha1SensorList = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojEventsV1alpha1SensorList", ""
) as IoArgoprojEventsV1alpha1SensorList;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to sensorServiceSensorsLogs
* @throws ApiException if the response code was not in [200, 299]
*/
public async sensorServiceSensorsLogs(response: ResponseContext): Promise<StreamResultOfSensorLogEntry > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: StreamResultOfSensorLogEntry = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"StreamResultOfSensorLogEntry", ""
) as StreamResultOfSensorLogEntry;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: StreamResultOfSensorLogEntry = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"StreamResultOfSensorLogEntry", ""
) as StreamResultOfSensorLogEntry;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to sensorServiceUpdateSensor
* @throws ApiException if the response code was not in [200, 299]
*/
public async sensorServiceUpdateSensor(response: ResponseContext): Promise<IoArgoprojEventsV1alpha1Sensor > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojEventsV1alpha1Sensor = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojEventsV1alpha1Sensor", ""
) as IoArgoprojEventsV1alpha1Sensor;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojEventsV1alpha1Sensor = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojEventsV1alpha1Sensor", ""
) as IoArgoprojEventsV1alpha1Sensor;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to sensorServiceWatchSensors
* @throws ApiException if the response code was not in [200, 299]
*/
public async sensorServiceWatchSensors(response: ResponseContext): Promise<StreamResultOfSensorSensorWatchEvent > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: StreamResultOfSensorSensorWatchEvent = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"StreamResultOfSensorSensorWatchEvent", ""
) as StreamResultOfSensorSensorWatchEvent;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: StreamResultOfSensorSensorWatchEvent = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"StreamResultOfSensorSensorWatchEvent", ""
) as StreamResultOfSensorSensorWatchEvent;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,649 @@
// TODO: better import syntax?
import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi';
import {Configuration} from '../configuration';
import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http';
import {ObjectSerializer} from '../models/ObjectSerializer';
import {ApiException} from './exception';
import {canConsumeForm, isCodeInRange} from '../util';
import {SecurityAuthentication} from '../auth/auth';
import { GrpcGatewayRuntimeError } from '../models/GrpcGatewayRuntimeError';
import { IoArgoprojWorkflowV1alpha1WorkflowTemplate } from '../models/IoArgoprojWorkflowV1alpha1WorkflowTemplate';
import { IoArgoprojWorkflowV1alpha1WorkflowTemplateCreateRequest } from '../models/IoArgoprojWorkflowV1alpha1WorkflowTemplateCreateRequest';
import { IoArgoprojWorkflowV1alpha1WorkflowTemplateLintRequest } from '../models/IoArgoprojWorkflowV1alpha1WorkflowTemplateLintRequest';
import { IoArgoprojWorkflowV1alpha1WorkflowTemplateList } from '../models/IoArgoprojWorkflowV1alpha1WorkflowTemplateList';
import { IoArgoprojWorkflowV1alpha1WorkflowTemplateUpdateRequest } from '../models/IoArgoprojWorkflowV1alpha1WorkflowTemplateUpdateRequest';
/**
* no description
*/
export class WorkflowTemplateServiceApiRequestFactory extends BaseAPIRequestFactory {
/**
* @param namespace
* @param body
*/
public async workflowTemplateServiceCreateWorkflowTemplate(namespace: string, body: IoArgoprojWorkflowV1alpha1WorkflowTemplateCreateRequest, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new RequiredError("WorkflowTemplateServiceApi", "workflowTemplateServiceCreateWorkflowTemplate", "namespace");
}
// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new RequiredError("WorkflowTemplateServiceApi", "workflowTemplateServiceCreateWorkflowTemplate", "body");
}
// Path Params
const localVarPath = '/api/v1/workflow-templates/{namespace}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Body Params
const contentType = ObjectSerializer.getPreferredMediaType([
"application/json"
]);
requestContext.setHeaderParam("Content-Type", contentType);
const serializedBody = ObjectSerializer.stringify(
ObjectSerializer.serialize(body, "IoArgoprojWorkflowV1alpha1WorkflowTemplateCreateRequest", ""),
contentType
);
requestContext.setBody(serializedBody);
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @param namespace
* @param name
* @param deleteOptionsGracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +optional.
* @param deleteOptionsPreconditionsUid Specifies the target UID. +optional.
* @param deleteOptionsPreconditionsResourceVersion Specifies the target ResourceVersion +optional.
* @param deleteOptionsOrphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object\&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both. +optional.
* @param deleteOptionsPropagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \&#39;Orphan\&#39; - orphan the dependents; \&#39;Background\&#39; - allow the garbage collector to delete the dependents in the background; \&#39;Foreground\&#39; - a cascading policy that deletes all dependents in the foreground. +optional.
* @param deleteOptionsDryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +optional.
*/
public async workflowTemplateServiceDeleteWorkflowTemplate(namespace: string, name: string, deleteOptionsGracePeriodSeconds?: string, deleteOptionsPreconditionsUid?: string, deleteOptionsPreconditionsResourceVersion?: string, deleteOptionsOrphanDependents?: boolean, deleteOptionsPropagationPolicy?: string, deleteOptionsDryRun?: Array<string>, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new RequiredError("WorkflowTemplateServiceApi", "workflowTemplateServiceDeleteWorkflowTemplate", "namespace");
}
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new RequiredError("WorkflowTemplateServiceApi", "workflowTemplateServiceDeleteWorkflowTemplate", "name");
}
// Path Params
const localVarPath = '/api/v1/workflow-templates/{namespace}/{name}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Query Params
if (deleteOptionsGracePeriodSeconds !== undefined) {
requestContext.setQueryParam("deleteOptions.gracePeriodSeconds", ObjectSerializer.serialize(deleteOptionsGracePeriodSeconds, "string", "int64"));
}
// Query Params
if (deleteOptionsPreconditionsUid !== undefined) {
requestContext.setQueryParam("deleteOptions.preconditions.uid", ObjectSerializer.serialize(deleteOptionsPreconditionsUid, "string", ""));
}
// Query Params
if (deleteOptionsPreconditionsResourceVersion !== undefined) {
requestContext.setQueryParam("deleteOptions.preconditions.resourceVersion", ObjectSerializer.serialize(deleteOptionsPreconditionsResourceVersion, "string", ""));
}
// Query Params
if (deleteOptionsOrphanDependents !== undefined) {
requestContext.setQueryParam("deleteOptions.orphanDependents", ObjectSerializer.serialize(deleteOptionsOrphanDependents, "boolean", ""));
}
// Query Params
if (deleteOptionsPropagationPolicy !== undefined) {
requestContext.setQueryParam("deleteOptions.propagationPolicy", ObjectSerializer.serialize(deleteOptionsPropagationPolicy, "string", ""));
}
// Query Params
if (deleteOptionsDryRun !== undefined) {
requestContext.setQueryParam("deleteOptions.dryRun", ObjectSerializer.serialize(deleteOptionsDryRun, "Array<string>", ""));
}
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @param namespace
* @param name
* @param getOptionsResourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
*/
public async workflowTemplateServiceGetWorkflowTemplate(namespace: string, name: string, getOptionsResourceVersion?: string, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new RequiredError("WorkflowTemplateServiceApi", "workflowTemplateServiceGetWorkflowTemplate", "namespace");
}
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new RequiredError("WorkflowTemplateServiceApi", "workflowTemplateServiceGetWorkflowTemplate", "name");
}
// Path Params
const localVarPath = '/api/v1/workflow-templates/{namespace}/{name}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Query Params
if (getOptionsResourceVersion !== undefined) {
requestContext.setQueryParam("getOptions.resourceVersion", ObjectSerializer.serialize(getOptionsResourceVersion, "string", ""));
}
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @param namespace
* @param body
*/
public async workflowTemplateServiceLintWorkflowTemplate(namespace: string, body: IoArgoprojWorkflowV1alpha1WorkflowTemplateLintRequest, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new RequiredError("WorkflowTemplateServiceApi", "workflowTemplateServiceLintWorkflowTemplate", "namespace");
}
// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new RequiredError("WorkflowTemplateServiceApi", "workflowTemplateServiceLintWorkflowTemplate", "body");
}
// Path Params
const localVarPath = '/api/v1/workflow-templates/{namespace}/lint'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Body Params
const contentType = ObjectSerializer.getPreferredMediaType([
"application/json"
]);
requestContext.setHeaderParam("Content-Type", contentType);
const serializedBody = ObjectSerializer.stringify(
ObjectSerializer.serialize(body, "IoArgoprojWorkflowV1alpha1WorkflowTemplateLintRequest", ""),
contentType
);
requestContext.setBody(serializedBody);
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @param namespace
* @param listOptionsLabelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. +optional.
* @param listOptionsFieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. +optional.
* @param listOptionsWatch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +optional.
* @param listOptionsAllowWatchBookmarks allowWatchBookmarks requests watch events with type \&quot;BOOKMARK\&quot;. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\&#39;s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +optional.
* @param listOptionsResourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsResourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +optional
* @param listOptionsTimeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +optional.
* @param listOptionsLimit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
* @param listOptionsContinue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
*/
public async workflowTemplateServiceListWorkflowTemplates(namespace: string, listOptionsLabelSelector?: string, listOptionsFieldSelector?: string, listOptionsWatch?: boolean, listOptionsAllowWatchBookmarks?: boolean, listOptionsResourceVersion?: string, listOptionsResourceVersionMatch?: string, listOptionsTimeoutSeconds?: string, listOptionsLimit?: string, listOptionsContinue?: string, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new RequiredError("WorkflowTemplateServiceApi", "workflowTemplateServiceListWorkflowTemplates", "namespace");
}
// Path Params
const localVarPath = '/api/v1/workflow-templates/{namespace}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Query Params
if (listOptionsLabelSelector !== undefined) {
requestContext.setQueryParam("listOptions.labelSelector", ObjectSerializer.serialize(listOptionsLabelSelector, "string", ""));
}
// Query Params
if (listOptionsFieldSelector !== undefined) {
requestContext.setQueryParam("listOptions.fieldSelector", ObjectSerializer.serialize(listOptionsFieldSelector, "string", ""));
}
// Query Params
if (listOptionsWatch !== undefined) {
requestContext.setQueryParam("listOptions.watch", ObjectSerializer.serialize(listOptionsWatch, "boolean", ""));
}
// Query Params
if (listOptionsAllowWatchBookmarks !== undefined) {
requestContext.setQueryParam("listOptions.allowWatchBookmarks", ObjectSerializer.serialize(listOptionsAllowWatchBookmarks, "boolean", ""));
}
// Query Params
if (listOptionsResourceVersion !== undefined) {
requestContext.setQueryParam("listOptions.resourceVersion", ObjectSerializer.serialize(listOptionsResourceVersion, "string", ""));
}
// Query Params
if (listOptionsResourceVersionMatch !== undefined) {
requestContext.setQueryParam("listOptions.resourceVersionMatch", ObjectSerializer.serialize(listOptionsResourceVersionMatch, "string", ""));
}
// Query Params
if (listOptionsTimeoutSeconds !== undefined) {
requestContext.setQueryParam("listOptions.timeoutSeconds", ObjectSerializer.serialize(listOptionsTimeoutSeconds, "string", "int64"));
}
// Query Params
if (listOptionsLimit !== undefined) {
requestContext.setQueryParam("listOptions.limit", ObjectSerializer.serialize(listOptionsLimit, "string", "int64"));
}
// Query Params
if (listOptionsContinue !== undefined) {
requestContext.setQueryParam("listOptions.continue", ObjectSerializer.serialize(listOptionsContinue, "string", ""));
}
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
/**
* @param namespace
* @param name DEPRECATED: This field is ignored.
* @param body
*/
public async workflowTemplateServiceUpdateWorkflowTemplate(namespace: string, name: string, body: IoArgoprojWorkflowV1alpha1WorkflowTemplateUpdateRequest, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'namespace' is not null or undefined
if (namespace === null || namespace === undefined) {
throw new RequiredError("WorkflowTemplateServiceApi", "workflowTemplateServiceUpdateWorkflowTemplate", "namespace");
}
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new RequiredError("WorkflowTemplateServiceApi", "workflowTemplateServiceUpdateWorkflowTemplate", "name");
}
// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new RequiredError("WorkflowTemplateServiceApi", "workflowTemplateServiceUpdateWorkflowTemplate", "body");
}
// Path Params
const localVarPath = '/api/v1/workflow-templates/{namespace}/{name}'
.replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Body Params
const contentType = ObjectSerializer.getPreferredMediaType([
"application/json"
]);
requestContext.setHeaderParam("Content-Type", contentType);
const serializedBody = ObjectSerializer.stringify(
ObjectSerializer.serialize(body, "IoArgoprojWorkflowV1alpha1WorkflowTemplateUpdateRequest", ""),
contentType
);
requestContext.setBody(serializedBody);
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["BearerToken"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
}
}
export class WorkflowTemplateServiceApiResponseProcessor {
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to workflowTemplateServiceCreateWorkflowTemplate
* @throws ApiException if the response code was not in [200, 299]
*/
public async workflowTemplateServiceCreateWorkflowTemplate(response: ResponseContext): Promise<IoArgoprojWorkflowV1alpha1WorkflowTemplate > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojWorkflowV1alpha1WorkflowTemplate = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1WorkflowTemplate", ""
) as IoArgoprojWorkflowV1alpha1WorkflowTemplate;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojWorkflowV1alpha1WorkflowTemplate = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1WorkflowTemplate", ""
) as IoArgoprojWorkflowV1alpha1WorkflowTemplate;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to workflowTemplateServiceDeleteWorkflowTemplate
* @throws ApiException if the response code was not in [200, 299]
*/
public async workflowTemplateServiceDeleteWorkflowTemplate(response: ResponseContext): Promise<any > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: any = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"any", ""
) as any;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: any = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"any", ""
) as any;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to workflowTemplateServiceGetWorkflowTemplate
* @throws ApiException if the response code was not in [200, 299]
*/
public async workflowTemplateServiceGetWorkflowTemplate(response: ResponseContext): Promise<IoArgoprojWorkflowV1alpha1WorkflowTemplate > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojWorkflowV1alpha1WorkflowTemplate = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1WorkflowTemplate", ""
) as IoArgoprojWorkflowV1alpha1WorkflowTemplate;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojWorkflowV1alpha1WorkflowTemplate = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1WorkflowTemplate", ""
) as IoArgoprojWorkflowV1alpha1WorkflowTemplate;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to workflowTemplateServiceLintWorkflowTemplate
* @throws ApiException if the response code was not in [200, 299]
*/
public async workflowTemplateServiceLintWorkflowTemplate(response: ResponseContext): Promise<IoArgoprojWorkflowV1alpha1WorkflowTemplate > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojWorkflowV1alpha1WorkflowTemplate = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1WorkflowTemplate", ""
) as IoArgoprojWorkflowV1alpha1WorkflowTemplate;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojWorkflowV1alpha1WorkflowTemplate = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1WorkflowTemplate", ""
) as IoArgoprojWorkflowV1alpha1WorkflowTemplate;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to workflowTemplateServiceListWorkflowTemplates
* @throws ApiException if the response code was not in [200, 299]
*/
public async workflowTemplateServiceListWorkflowTemplates(response: ResponseContext): Promise<IoArgoprojWorkflowV1alpha1WorkflowTemplateList > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojWorkflowV1alpha1WorkflowTemplateList = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1WorkflowTemplateList", ""
) as IoArgoprojWorkflowV1alpha1WorkflowTemplateList;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojWorkflowV1alpha1WorkflowTemplateList = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1WorkflowTemplateList", ""
) as IoArgoprojWorkflowV1alpha1WorkflowTemplateList;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to workflowTemplateServiceUpdateWorkflowTemplate
* @throws ApiException if the response code was not in [200, 299]
*/
public async workflowTemplateServiceUpdateWorkflowTemplate(response: ResponseContext): Promise<IoArgoprojWorkflowV1alpha1WorkflowTemplate > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: IoArgoprojWorkflowV1alpha1WorkflowTemplate = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1WorkflowTemplate", ""
) as IoArgoprojWorkflowV1alpha1WorkflowTemplate;
return body;
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: GrpcGatewayRuntimeError = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"GrpcGatewayRuntimeError", ""
) as GrpcGatewayRuntimeError;
throw new ApiException<GrpcGatewayRuntimeError>(response.httpStatusCode, "An unexpected error response.", body, response.headers);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: IoArgoprojWorkflowV1alpha1WorkflowTemplate = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"IoArgoprojWorkflowV1alpha1WorkflowTemplate", ""
) as IoArgoprojWorkflowV1alpha1WorkflowTemplate;
return body;
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
}
}

View file

@ -0,0 +1,37 @@
import { Configuration } from '../configuration'
/**
*
* @export
*/
export const COLLECTION_FORMATS = {
csv: ",",
ssv: " ",
tsv: "\t",
pipes: "|",
};
/**
*
* @export
* @class BaseAPI
*/
export class BaseAPIRequestFactory {
constructor(protected configuration: Configuration) {
}
};
/**
*
* @export
* @class RequiredError
* @extends {Error}
*/
export class RequiredError extends Error {
name: "RequiredError" = "RequiredError";
constructor(public api: string, public method: string, public field: string) {
super("Required parameter " + field + " was null or undefined when calling " + api + "." + method + ".");
}
}

View file

@ -0,0 +1,15 @@
/**
* Represents an error caused by an api call i.e. it has attributes for a HTTP status code
* and the returned body object.
*
* Example
* API returns a ErrorMessageObject whenever HTTP status code is not in [200, 299]
* => ApiException(404, someErrorMessageObject)
*
*/
export class ApiException<T> extends Error {
public constructor(public code: number, message: string, public body: T, public headers: { [key: string]: string; }) {
super("HTTP-Code: " + code + "\nMessage: " + message + "\nBody: " + JSON.stringify(body) + "\nHeaders: " +
JSON.stringify(headers))
}
}

View file

@ -0,0 +1,79 @@
import { RequestContext } from "../http/http";
/**
* Interface authentication schemes.
*/
export interface SecurityAuthentication {
/*
* @return returns the name of the security authentication as specified in OAI
*/
getName(): string;
/**
* Applies the authentication scheme to the request context
*
* @params context the request context which should use this authentication scheme
*/
applySecurityAuthentication(context: RequestContext): void | Promise<void>;
}
export interface TokenProvider {
getToken(): Promise<string> | string;
}
/**
* Applies apiKey authentication to the request context.
*/
export class BearerTokenAuthentication implements SecurityAuthentication {
/**
* Configures this api key authentication with the necessary properties
*
* @param apiKey: The api key to be used for every request
*/
public constructor(private apiKey: string) {}
public getName(): string {
return "BearerToken";
}
public applySecurityAuthentication(context: RequestContext) {
context.setHeaderParam("Authorization", this.apiKey);
}
}
export type AuthMethods = {
"default"?: SecurityAuthentication,
"BearerToken"?: SecurityAuthentication
}
export type ApiKeyConfiguration = string;
export type HttpBasicConfiguration = { "username": string, "password": string };
export type HttpBearerConfiguration = { tokenProvider: TokenProvider };
export type OAuth2Configuration = { accessToken: string };
export type AuthMethodsConfiguration = {
"default"?: SecurityAuthentication,
"BearerToken"?: ApiKeyConfiguration
}
/**
* Creates the authentication methods from a swagger description.
*
*/
export function configureAuthMethods(config: AuthMethodsConfiguration | undefined): AuthMethods {
let authMethods: AuthMethods = {}
if (!config) {
return authMethods;
}
authMethods["default"] = config["default"]
if (config["BearerToken"]) {
authMethods["BearerToken"] = new BearerTokenAuthentication(
config["BearerToken"]
);
}
return authMethods;
}

View file

@ -0,0 +1,82 @@
import { HttpLibrary } from "./http/http";
import { Middleware, PromiseMiddleware, PromiseMiddlewareWrapper } from "./middleware";
import { IsomorphicFetchHttpLibrary as DefaultHttpLibrary } from "./http/isomorphic-fetch";
import { BaseServerConfiguration, server1 } from "./servers";
import { configureAuthMethods, AuthMethods, AuthMethodsConfiguration } from "./auth/auth";
export interface Configuration {
readonly baseServer: BaseServerConfiguration;
readonly httpApi: HttpLibrary;
readonly middleware: Middleware[];
readonly authMethods: AuthMethods;
}
/**
* Interface with which a configuration object can be configured.
*/
export interface ConfigurationParameters {
/**
* Default server to use - a list of available servers (according to the
* OpenAPI yaml definition) is included in the `servers` const in `./servers`. You can also
* create your own server with the `ServerConfiguration` class from the same
* file.
*/
baseServer?: BaseServerConfiguration;
/**
* HTTP library to use e.g. IsomorphicFetch. This can usually be skipped as
* all generators come with a default library.
* If available, additional libraries can be imported from `./http/*`
*/
httpApi?: HttpLibrary;
/**
* The middlewares which will be applied to requests and responses. You can
* add any number of middleware components to modify requests before they
* are sent or before they are deserialized by implementing the `Middleware`
* interface defined in `./middleware`
*/
middleware?: Middleware[];
/**
* Configures middleware functions that return promises instead of
* Observables (which are used by `middleware`). Otherwise allows for the
* same functionality as `middleware`, i.e., modifying requests before they
* are sent and before they are deserialized.
*/
promiseMiddleware?: PromiseMiddleware[];
/**
* Configuration for the available authentication methods (e.g., api keys)
* according to the OpenAPI yaml definition. For the definition, please refer to
* `./auth/auth`
*/
authMethods?: AuthMethodsConfiguration
}
/**
* Provide your `ConfigurationParameters` to this function to get a `Configuration`
* object that can be used to configure your APIs (in the constructor or
* for each request individually).
*
* If a property is not included in conf, a default is used:
* - baseServer: server1
* - httpApi: IsomorphicFetchHttpLibrary
* - middleware: []
* - promiseMiddleware: []
* - authMethods: {}
*
* @param conf partial configuration
*/
export function createConfiguration(conf: ConfigurationParameters = {}): Configuration {
const configuration: Configuration = {
baseServer: conf.baseServer !== undefined ? conf.baseServer : server1,
httpApi: conf.httpApi || new DefaultHttpLibrary(),
middleware: conf.middleware || [],
authMethods: configureAuthMethods(conf.authMethods)
};
if (conf.promiseMiddleware) {
conf.promiseMiddleware.forEach(
m => configuration.middleware.push(new PromiseMiddlewareWrapper(m))
);
}
return configuration;
}

View file

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

View file

@ -0,0 +1,232 @@
import { Observable, from } from '../rxjsStub';
export * from './isomorphic-fetch';
/**
* Represents an HTTP method.
*/
export enum HttpMethod {
GET = "GET",
HEAD = "HEAD",
POST = "POST",
PUT = "PUT",
DELETE = "DELETE",
CONNECT = "CONNECT",
OPTIONS = "OPTIONS",
TRACE = "TRACE",
PATCH = "PATCH"
}
/**
* Represents an HTTP file which will be transferred from or to a server.
*/
export type HttpFile = Blob & { readonly name: string };
export class HttpException extends Error {
public constructor(msg: string) {
super(msg);
}
}
/**
* Represents the body of an outgoing HTTP request.
*/
export type RequestBody = undefined | string | FormData | URLSearchParams;
/**
* Represents an HTTP request context
*/
export class RequestContext {
private headers: { [key: string]: string } = {};
private body: RequestBody = undefined;
private url: URL;
/**
* Creates the request context using a http method and request resource url
*
* @param url url of the requested resource
* @param httpMethod http method
*/
public constructor(url: string, private httpMethod: HttpMethod) {
this.url = new URL(url);
}
/*
* Returns the url set in the constructor including the query string
*
*/
public getUrl(): string {
return this.url.toString().endsWith("/") ?
this.url.toString().slice(0, -1)
: this.url.toString();
}
/**
* Replaces the url set in the constructor with this url.
*
*/
public setUrl(url: string) {
this.url = new URL(url);
}
/**
* Sets the body of the http request either as a string or FormData
*
* Note that setting a body on a HTTP GET, HEAD, DELETE, CONNECT or TRACE
* request is discouraged.
* https://httpwg.org/http-core/draft-ietf-httpbis-semantics-latest.html#rfc.section.7.3.1
*
* @param body the body of the request
*/
public setBody(body: RequestBody) {
this.body = body;
}
public getHttpMethod(): HttpMethod {
return this.httpMethod;
}
public getHeaders(): { [key: string]: string } {
return this.headers;
}
public getBody(): RequestBody {
return this.body;
}
public setQueryParam(name: string, value: string) {
this.url.searchParams.set(name, value);
}
/**
* Sets a cookie with the name and value. NO check for duplicate cookies is performed
*
*/
public addCookie(name: string, value: string): void {
if (!this.headers["Cookie"]) {
this.headers["Cookie"] = "";
}
this.headers["Cookie"] += name + "=" + value + "; ";
}
public setHeaderParam(key: string, value: string): void {
this.headers[key] = value;
}
}
export interface ResponseBody {
text(): Promise<string>;
binary(): Promise<Blob>;
}
/**
* Helper class to generate a `ResponseBody` from binary data
*/
export class SelfDecodingBody implements ResponseBody {
constructor(private dataSource: Promise<Blob>) {}
binary(): Promise<Blob> {
return this.dataSource;
}
async text(): Promise<string> {
const data: Blob = await this.dataSource;
// @ts-ignore
if (data.text) {
// @ts-ignore
return data.text();
}
return new Promise<string>((resolve, reject) => {
const reader = new FileReader();
reader.addEventListener("load", () => resolve(reader.result as string));
reader.addEventListener("error", () => reject(reader.error));
reader.readAsText(data);
});
}
}
export class ResponseContext {
public constructor(
public httpStatusCode: number,
public headers: { [key: string]: string },
public body: ResponseBody
) {}
/**
* Parse header value in the form `value; param1="value1"`
*
* E.g. for Content-Type or Content-Disposition
* Parameter names are converted to lower case
* The first parameter is returned with the key `""`
*/
public getParsedHeader(headerName: string): { [parameter: string]: string } {
const result: { [parameter: string]: string } = {};
if (!this.headers[headerName]) {
return result;
}
const parameters = this.headers[headerName].split(";");
for (const parameter of parameters) {
let [key, value] = parameter.split("=", 2);
key = key.toLowerCase().trim();
if (value === undefined) {
result[""] = key;
} else {
value = value.trim();
if (value.startsWith('"') && value.endsWith('"')) {
value = value.substring(1, value.length - 1);
}
result[key] = value;
}
}
return result;
}
public async getBodyAsFile(): Promise<HttpFile> {
const data = await this.body.binary();
const fileName = this.getParsedHeader("content-disposition")["filename"] || "";
const contentType = this.headers["content-type"] || "";
try {
return new File([data], fileName, { type: contentType });
} catch (error) {
/** Fallback for when the File constructor is not available */
return Object.assign(data, {
name: fileName,
type: contentType
});
}
}
/**
* Use a heuristic to get a body of unknown data structure.
* Return as string if possible, otherwise as binary.
*/
public getBodyAsAny(): Promise<string | Blob | undefined> {
try {
return this.body.text();
} catch {}
try {
return this.body.binary();
} catch {}
return Promise.resolve(undefined);
}
}
export interface HttpLibrary {
send(request: RequestContext): Observable<ResponseContext>;
}
export interface PromiseHttpLibrary {
send(request: RequestContext): Promise<ResponseContext>;
}
export function wrapHttpLibrary(promiseHttpLibrary: PromiseHttpLibrary): HttpLibrary {
return {
send(request: RequestContext): Observable<ResponseContext> {
return from(promiseHttpLibrary.send(request));
}
}
}

View file

@ -0,0 +1,32 @@
import {HttpLibrary, RequestContext, ResponseContext} from './http';
import { from, Observable } from '../rxjsStub';
import "whatwg-fetch";
export class IsomorphicFetchHttpLibrary implements HttpLibrary {
public send(request: RequestContext): Observable<ResponseContext> {
let method = request.getHttpMethod().toString();
let body = request.getBody();
const resultPromise = fetch(request.getUrl(), {
method: method,
body: body as any,
headers: request.getHeaders(),
credentials: "same-origin"
}).then((resp: any) => {
const headers: { [name: string]: string } = {};
resp.headers.forEach((value: string, name: string) => {
headers[name] = value;
});
const body = {
text: () => resp.text(),
binary: () => resp.blob()
};
return new ResponseContext(resp.status, headers, body);
});
return from<Promise<ResponseContext>>(resultPromise);
}
}

View file

@ -0,0 +1,12 @@
export * from "./http/http";
export * from "./auth/auth";
export * from "./models/all";
export { createConfiguration } from "./configuration"
export { Configuration } from "./configuration"
export * from "./apis/exception";
export * from "./servers";
export { RequiredError } from "./apis/baseapi";
export { PromiseMiddleware as Middleware } from './middleware';
export { PromiseArchivedWorkflowServiceApi as ArchivedWorkflowServiceApi, PromiseArtifactServiceApi as ArtifactServiceApi, PromiseClusterWorkflowTemplateServiceApi as ClusterWorkflowTemplateServiceApi, PromiseCronWorkflowServiceApi as CronWorkflowServiceApi, PromiseEventServiceApi as EventServiceApi, PromiseEventSourceServiceApi as EventSourceServiceApi, PromiseInfoServiceApi as InfoServiceApi, PromiseSensorServiceApi as SensorServiceApi, PromiseWorkflowServiceApi as WorkflowServiceApi, PromiseWorkflowTemplateServiceApi as WorkflowTemplateServiceApi } from './types/PromiseAPI';

View file

@ -0,0 +1,66 @@
import {RequestContext, ResponseContext} from './http/http';
import { Observable, from } from './rxjsStub';
/**
* Defines the contract for a middleware intercepting requests before
* they are sent (but after the RequestContext was created)
* and before the ResponseContext is unwrapped.
*
*/
export interface Middleware {
/**
* Modifies the request before the request is sent.
*
* @param context RequestContext of a request which is about to be sent to the server
* @returns an observable of the updated request context
*
*/
pre(context: RequestContext): Observable<RequestContext>;
/**
* Modifies the returned response before it is deserialized.
*
* @param context ResponseContext of a sent request
* @returns an observable of the modified response context
*/
post(context: ResponseContext): Observable<ResponseContext>;
}
export class PromiseMiddlewareWrapper implements Middleware {
public constructor(private middleware: PromiseMiddleware) {
}
pre(context: RequestContext): Observable<RequestContext> {
return from(this.middleware.pre(context));
}
post(context: ResponseContext): Observable<ResponseContext> {
return from(this.middleware.post(context));
}
}
/**
* Defines the contract for a middleware intercepting requests before
* they are sent (but after the RequestContext was created)
* and before the ResponseContext is unwrapped.
*
*/
export interface PromiseMiddleware {
/**
* Modifies the request before the request is sent.
*
* @param context RequestContext of a request which is about to be sent to the server
* @returns an observable of the updated request context
*
*/
pre(context: RequestContext): Promise<RequestContext>;
/**
* Modifies the returned response before it is deserialized.
*
* @param context ResponseContext of a sent request
* @returns an observable of the modified response context
*/
post(context: ResponseContext): Promise<ResponseContext>;
}

View file

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

View file

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

View file

@ -0,0 +1,80 @@
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
export class EventsourceLogEntry {
'eventName'?: string;
'eventSourceName'?: string;
'eventSourceType'?: string;
'level'?: string;
'msg'?: string;
'namespace'?: string;
/**
* Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
*/
'time'?: Date;
static readonly discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "eventName",
"baseName": "eventName",
"type": "string",
"format": ""
},
{
"name": "eventSourceName",
"baseName": "eventSourceName",
"type": "string",
"format": ""
},
{
"name": "eventSourceType",
"baseName": "eventSourceType",
"type": "string",
"format": ""
},
{
"name": "level",
"baseName": "level",
"type": "string",
"format": ""
},
{
"name": "msg",
"baseName": "msg",
"type": "string",
"format": ""
},
{
"name": "namespace",
"baseName": "namespace",
"type": "string",
"format": ""
},
{
"name": "time",
"baseName": "time",
"type": "Date",
"format": "date-time"
} ];
static getAttributeTypeMap() {
return EventsourceLogEntry.attributeTypeMap;
}
public constructor() {
}
}

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -0,0 +1,95 @@
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1TriggerParameter } from '../models/IoArgoprojEventsV1alpha1TriggerParameter';
import { IoK8sApiCoreV1SecretKeySelector } from '../models/IoK8sApiCoreV1SecretKeySelector';
import { HttpFile } from '../http/http';
export class IoArgoprojEventsV1alpha1AWSLambdaTrigger {
'accessKey'?: IoK8sApiCoreV1SecretKeySelector;
/**
* FunctionName refers to the name of the function to invoke.
*/
'functionName'?: string;
/**
* Choose from the following options. * RequestResponse (default) - Invoke the function synchronously. Keep the connection open until the function returns a response or times out. The API response includes the function response and additional data. * Event - Invoke the function asynchronously. Send events that fail multiple times to the function\'s dead-letter queue (if it\'s configured). The API response only includes a status code. * DryRun - Validate parameter values and verify that the user or role has permission to invoke the function. +optional
*/
'invocationType'?: string;
'parameters'?: Array<IoArgoprojEventsV1alpha1TriggerParameter>;
/**
* Payload is the list of key-value extracted from an event payload to construct the request payload.
*/
'payload'?: Array<IoArgoprojEventsV1alpha1TriggerParameter>;
'region'?: string;
'roleARN'?: string;
'secretKey'?: IoK8sApiCoreV1SecretKeySelector;
static readonly discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "accessKey",
"baseName": "accessKey",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
},
{
"name": "functionName",
"baseName": "functionName",
"type": "string",
"format": ""
},
{
"name": "invocationType",
"baseName": "invocationType",
"type": "string",
"format": ""
},
{
"name": "parameters",
"baseName": "parameters",
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>",
"format": ""
},
{
"name": "payload",
"baseName": "payload",
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>",
"format": ""
},
{
"name": "region",
"baseName": "region",
"type": "string",
"format": ""
},
{
"name": "roleARN",
"baseName": "roleARN",
"type": "string",
"format": ""
},
{
"name": "secretKey",
"baseName": "secretKey",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1AWSLambdaTrigger.attributeTypeMap;
}
public constructor() {
}
}

View file

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

View file

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

View file

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

View file

@ -0,0 +1,75 @@
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1TriggerParameter } from '../models/IoArgoprojEventsV1alpha1TriggerParameter';
import { IoK8sApiCoreV1SecretKeySelector } from '../models/IoK8sApiCoreV1SecretKeySelector';
import { HttpFile } from '../http/http';
export class IoArgoprojEventsV1alpha1AzureEventHubsTrigger {
'fqdn'?: string;
'hubName'?: string;
'parameters'?: Array<IoArgoprojEventsV1alpha1TriggerParameter>;
/**
* Payload is the list of key-value extracted from an event payload to construct the request payload.
*/
'payload'?: Array<IoArgoprojEventsV1alpha1TriggerParameter>;
'sharedAccessKey'?: IoK8sApiCoreV1SecretKeySelector;
'sharedAccessKeyName'?: IoK8sApiCoreV1SecretKeySelector;
static readonly discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "fqdn",
"baseName": "fqdn",
"type": "string",
"format": ""
},
{
"name": "hubName",
"baseName": "hubName",
"type": "string",
"format": ""
},
{
"name": "parameters",
"baseName": "parameters",
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>",
"format": ""
},
{
"name": "payload",
"baseName": "payload",
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>",
"format": ""
},
{
"name": "sharedAccessKey",
"baseName": "sharedAccessKey",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
},
{
"name": "sharedAccessKeyName",
"baseName": "sharedAccessKeyName",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1AzureEventHubsTrigger.attributeTypeMap;
}
public constructor() {
}
}

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -0,0 +1,66 @@
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
export class IoArgoprojEventsV1alpha1Condition {
/**
* Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
*/
'lastTransitionTime'?: Date;
'message'?: string;
'reason'?: string;
'status'?: string;
'type'?: string;
static readonly discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "lastTransitionTime",
"baseName": "lastTransitionTime",
"type": "Date",
"format": "date-time"
},
{
"name": "message",
"baseName": "message",
"type": "string",
"format": ""
},
{
"name": "reason",
"baseName": "reason",
"type": "string",
"format": ""
},
{
"name": "status",
"baseName": "status",
"type": "string",
"format": ""
},
{
"name": "type",
"baseName": "type",
"type": "string",
"format": ""
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1Condition.attributeTypeMap;
}
public constructor() {
}
}

View file

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

View file

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

View file

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

View file

@ -0,0 +1,94 @@
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1TriggerParameter } from '../models/IoArgoprojEventsV1alpha1TriggerParameter';
import { IoK8sApiCoreV1SecretKeySelector } from '../models/IoK8sApiCoreV1SecretKeySelector';
import { HttpFile } from '../http/http';
/**
* CustomTrigger refers to the specification of the custom trigger.
*/
export class IoArgoprojEventsV1alpha1CustomTrigger {
'certSecret'?: IoK8sApiCoreV1SecretKeySelector;
/**
* Parameters is the list of parameters that is applied to resolved custom trigger trigger object.
*/
'parameters'?: Array<IoArgoprojEventsV1alpha1TriggerParameter>;
/**
* Payload is the list of key-value extracted from an event payload to construct the request payload.
*/
'payload'?: Array<IoArgoprojEventsV1alpha1TriggerParameter>;
'secure'?: boolean;
/**
* ServerNameOverride for the secure connection between sensor and custom trigger gRPC server.
*/
'serverNameOverride'?: string;
'serverURL'?: string;
/**
* Spec is the custom trigger resource specification that custom trigger gRPC server knows how to interpret.
*/
'spec'?: { [key: string]: string; };
static readonly discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "certSecret",
"baseName": "certSecret",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
},
{
"name": "parameters",
"baseName": "parameters",
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>",
"format": ""
},
{
"name": "payload",
"baseName": "payload",
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>",
"format": ""
},
{
"name": "secure",
"baseName": "secure",
"type": "boolean",
"format": ""
},
{
"name": "serverNameOverride",
"baseName": "serverNameOverride",
"type": "string",
"format": ""
},
{
"name": "serverURL",
"baseName": "serverURL",
"type": "string",
"format": ""
},
{
"name": "spec",
"baseName": "spec",
"type": "{ [key: string]: string; }",
"format": ""
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1CustomTrigger.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -0,0 +1,69 @@
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
export class IoArgoprojEventsV1alpha1DataFilter {
/**
* Comparator compares the event data with a user given value. Can be \">=\", \">\", \"=\", \"!=\", \"<\", or \"<=\". Is optional, and if left blank treated as equality \"=\".
*/
'comparator'?: string;
/**
* Path is the JSONPath of the event\'s (JSON decoded) data key Path is a series of keys separated by a dot. A key may contain wildcard characters \'*\' and \'?\'. To access an array value use the index as the key. The dot and wildcard characters can be escaped with \'\\\\\'. See https://github.com/tidwall/gjson#path-syntax for more information on how to use this.
*/
'path'?: string;
'template'?: string;
'type'?: string;
'value'?: Array<string>;
static readonly discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "comparator",
"baseName": "comparator",
"type": "string",
"format": ""
},
{
"name": "path",
"baseName": "path",
"type": "string",
"format": ""
},
{
"name": "template",
"baseName": "template",
"type": "string",
"format": ""
},
{
"name": "type",
"baseName": "type",
"type": "string",
"format": ""
},
{
"name": "value",
"baseName": "value",
"type": "Array<string>",
"format": ""
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1DataFilter.attributeTypeMap;
}
public constructor() {
}
}

View file

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

View file

@ -0,0 +1,95 @@
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
export class IoArgoprojEventsV1alpha1EventContext {
/**
* DataContentType - A MIME (RFC2046) string describing the media type of `data`.
*/
'datacontenttype'?: string;
/**
* ID of the event; must be non-empty and unique within the scope of the producer.
*/
'id'?: string;
/**
* Source - A URI describing the event producer.
*/
'source'?: string;
/**
* SpecVersion - The version of the CloudEvents specification used by the io.argoproj.workflow.v1alpha1.
*/
'specversion'?: string;
'subject'?: string;
/**
* Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
*/
'time'?: Date;
/**
* Type - The type of the occurrence which has happened.
*/
'type'?: string;
static readonly discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "datacontenttype",
"baseName": "datacontenttype",
"type": "string",
"format": ""
},
{
"name": "id",
"baseName": "id",
"type": "string",
"format": ""
},
{
"name": "source",
"baseName": "source",
"type": "string",
"format": ""
},
{
"name": "specversion",
"baseName": "specversion",
"type": "string",
"format": ""
},
{
"name": "subject",
"baseName": "subject",
"type": "string",
"format": ""
},
{
"name": "time",
"baseName": "time",
"type": "Date",
"format": "date-time"
},
{
"name": "type",
"baseName": "type",
"type": "string",
"format": ""
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1EventContext.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -0,0 +1,75 @@
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1EventDependencyFilter } from '../models/IoArgoprojEventsV1alpha1EventDependencyFilter';
import { IoArgoprojEventsV1alpha1EventDependencyTransformer } from '../models/IoArgoprojEventsV1alpha1EventDependencyTransformer';
import { HttpFile } from '../http/http';
export class IoArgoprojEventsV1alpha1EventDependency {
'eventName'?: string;
'eventSourceName'?: string;
'filters'?: IoArgoprojEventsV1alpha1EventDependencyFilter;
/**
* FiltersLogicalOperator defines how different filters are evaluated together. Available values: and (&&), or (||) Is optional and if left blank treated as and (&&).
*/
'filtersLogicalOperator'?: string;
'name'?: string;
'transform'?: IoArgoprojEventsV1alpha1EventDependencyTransformer;
static readonly discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "eventName",
"baseName": "eventName",
"type": "string",
"format": ""
},
{
"name": "eventSourceName",
"baseName": "eventSourceName",
"type": "string",
"format": ""
},
{
"name": "filters",
"baseName": "filters",
"type": "IoArgoprojEventsV1alpha1EventDependencyFilter",
"format": ""
},
{
"name": "filtersLogicalOperator",
"baseName": "filtersLogicalOperator",
"type": "string",
"format": ""
},
{
"name": "name",
"baseName": "name",
"type": "string",
"format": ""
},
{
"name": "transform",
"baseName": "transform",
"type": "IoArgoprojEventsV1alpha1EventDependencyTransformer",
"format": ""
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1EventDependency.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -0,0 +1,96 @@
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1DataFilter } from '../models/IoArgoprojEventsV1alpha1DataFilter';
import { IoArgoprojEventsV1alpha1EventContext } from '../models/IoArgoprojEventsV1alpha1EventContext';
import { IoArgoprojEventsV1alpha1ExprFilter } from '../models/IoArgoprojEventsV1alpha1ExprFilter';
import { IoArgoprojEventsV1alpha1TimeFilter } from '../models/IoArgoprojEventsV1alpha1TimeFilter';
import { HttpFile } from '../http/http';
/**
* EventDependencyFilter defines filters and constraints for a io.argoproj.workflow.v1alpha1.
*/
export class IoArgoprojEventsV1alpha1EventDependencyFilter {
'context'?: IoArgoprojEventsV1alpha1EventContext;
'data'?: Array<IoArgoprojEventsV1alpha1DataFilter>;
/**
* DataLogicalOperator defines how multiple Data filters (if defined) are evaluated together. Available values: and (&&), or (||) Is optional and if left blank treated as and (&&).
*/
'dataLogicalOperator'?: string;
/**
* ExprLogicalOperator defines how multiple Exprs filters (if defined) are evaluated together. Available values: and (&&), or (||) Is optional and if left blank treated as and (&&).
*/
'exprLogicalOperator'?: string;
/**
* Exprs contains the list of expressions evaluated against the event payload.
*/
'exprs'?: Array<IoArgoprojEventsV1alpha1ExprFilter>;
/**
* Script refers to a Lua script evaluated to determine the validity of an io.argoproj.workflow.v1alpha1.
*/
'script'?: string;
'time'?: IoArgoprojEventsV1alpha1TimeFilter;
static readonly discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "context",
"baseName": "context",
"type": "IoArgoprojEventsV1alpha1EventContext",
"format": ""
},
{
"name": "data",
"baseName": "data",
"type": "Array<IoArgoprojEventsV1alpha1DataFilter>",
"format": ""
},
{
"name": "dataLogicalOperator",
"baseName": "dataLogicalOperator",
"type": "string",
"format": ""
},
{
"name": "exprLogicalOperator",
"baseName": "exprLogicalOperator",
"type": "string",
"format": ""
},
{
"name": "exprs",
"baseName": "exprs",
"type": "Array<IoArgoprojEventsV1alpha1ExprFilter>",
"format": ""
},
{
"name": "script",
"baseName": "script",
"type": "string",
"format": ""
},
{
"name": "time",
"baseName": "time",
"type": "IoArgoprojEventsV1alpha1TimeFilter",
"format": ""
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1EventDependencyFilter.attributeTypeMap;
}
public constructor() {
}
}

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -0,0 +1,274 @@
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1AMQPEventSource } from '../models/IoArgoprojEventsV1alpha1AMQPEventSource';
import { IoArgoprojEventsV1alpha1AzureEventsHubEventSource } from '../models/IoArgoprojEventsV1alpha1AzureEventsHubEventSource';
import { IoArgoprojEventsV1alpha1BitbucketEventSource } from '../models/IoArgoprojEventsV1alpha1BitbucketEventSource';
import { IoArgoprojEventsV1alpha1BitbucketServerEventSource } from '../models/IoArgoprojEventsV1alpha1BitbucketServerEventSource';
import { IoArgoprojEventsV1alpha1CalendarEventSource } from '../models/IoArgoprojEventsV1alpha1CalendarEventSource';
import { IoArgoprojEventsV1alpha1EmitterEventSource } from '../models/IoArgoprojEventsV1alpha1EmitterEventSource';
import { IoArgoprojEventsV1alpha1FileEventSource } from '../models/IoArgoprojEventsV1alpha1FileEventSource';
import { IoArgoprojEventsV1alpha1GenericEventSource } from '../models/IoArgoprojEventsV1alpha1GenericEventSource';
import { IoArgoprojEventsV1alpha1GithubEventSource } from '../models/IoArgoprojEventsV1alpha1GithubEventSource';
import { IoArgoprojEventsV1alpha1GitlabEventSource } from '../models/IoArgoprojEventsV1alpha1GitlabEventSource';
import { IoArgoprojEventsV1alpha1HDFSEventSource } from '../models/IoArgoprojEventsV1alpha1HDFSEventSource';
import { IoArgoprojEventsV1alpha1KafkaEventSource } from '../models/IoArgoprojEventsV1alpha1KafkaEventSource';
import { IoArgoprojEventsV1alpha1MQTTEventSource } from '../models/IoArgoprojEventsV1alpha1MQTTEventSource';
import { IoArgoprojEventsV1alpha1NATSEventsSource } from '../models/IoArgoprojEventsV1alpha1NATSEventsSource';
import { IoArgoprojEventsV1alpha1NSQEventSource } from '../models/IoArgoprojEventsV1alpha1NSQEventSource';
import { IoArgoprojEventsV1alpha1PubSubEventSource } from '../models/IoArgoprojEventsV1alpha1PubSubEventSource';
import { IoArgoprojEventsV1alpha1PulsarEventSource } from '../models/IoArgoprojEventsV1alpha1PulsarEventSource';
import { IoArgoprojEventsV1alpha1RedisEventSource } from '../models/IoArgoprojEventsV1alpha1RedisEventSource';
import { IoArgoprojEventsV1alpha1RedisStreamEventSource } from '../models/IoArgoprojEventsV1alpha1RedisStreamEventSource';
import { IoArgoprojEventsV1alpha1ResourceEventSource } from '../models/IoArgoprojEventsV1alpha1ResourceEventSource';
import { IoArgoprojEventsV1alpha1S3Artifact } from '../models/IoArgoprojEventsV1alpha1S3Artifact';
import { IoArgoprojEventsV1alpha1SNSEventSource } from '../models/IoArgoprojEventsV1alpha1SNSEventSource';
import { IoArgoprojEventsV1alpha1SQSEventSource } from '../models/IoArgoprojEventsV1alpha1SQSEventSource';
import { IoArgoprojEventsV1alpha1Service } from '../models/IoArgoprojEventsV1alpha1Service';
import { IoArgoprojEventsV1alpha1SlackEventSource } from '../models/IoArgoprojEventsV1alpha1SlackEventSource';
import { IoArgoprojEventsV1alpha1StorageGridEventSource } from '../models/IoArgoprojEventsV1alpha1StorageGridEventSource';
import { IoArgoprojEventsV1alpha1StripeEventSource } from '../models/IoArgoprojEventsV1alpha1StripeEventSource';
import { IoArgoprojEventsV1alpha1Template } from '../models/IoArgoprojEventsV1alpha1Template';
import { IoArgoprojEventsV1alpha1WebhookEventSource } from '../models/IoArgoprojEventsV1alpha1WebhookEventSource';
import { HttpFile } from '../http/http';
export class IoArgoprojEventsV1alpha1EventSourceSpec {
'amqp'?: { [key: string]: IoArgoprojEventsV1alpha1AMQPEventSource; };
'azureEventsHub'?: { [key: string]: IoArgoprojEventsV1alpha1AzureEventsHubEventSource; };
'bitbucket'?: { [key: string]: IoArgoprojEventsV1alpha1BitbucketEventSource; };
'bitbucketserver'?: { [key: string]: IoArgoprojEventsV1alpha1BitbucketServerEventSource; };
'calendar'?: { [key: string]: IoArgoprojEventsV1alpha1CalendarEventSource; };
'emitter'?: { [key: string]: IoArgoprojEventsV1alpha1EmitterEventSource; };
'eventBusName'?: string;
'file'?: { [key: string]: IoArgoprojEventsV1alpha1FileEventSource; };
'generic'?: { [key: string]: IoArgoprojEventsV1alpha1GenericEventSource; };
'github'?: { [key: string]: IoArgoprojEventsV1alpha1GithubEventSource; };
'gitlab'?: { [key: string]: IoArgoprojEventsV1alpha1GitlabEventSource; };
'hdfs'?: { [key: string]: IoArgoprojEventsV1alpha1HDFSEventSource; };
'kafka'?: { [key: string]: IoArgoprojEventsV1alpha1KafkaEventSource; };
'minio'?: { [key: string]: IoArgoprojEventsV1alpha1S3Artifact; };
'mqtt'?: { [key: string]: IoArgoprojEventsV1alpha1MQTTEventSource; };
'nats'?: { [key: string]: IoArgoprojEventsV1alpha1NATSEventsSource; };
'nsq'?: { [key: string]: IoArgoprojEventsV1alpha1NSQEventSource; };
'pubSub'?: { [key: string]: IoArgoprojEventsV1alpha1PubSubEventSource; };
'pulsar'?: { [key: string]: IoArgoprojEventsV1alpha1PulsarEventSource; };
'redis'?: { [key: string]: IoArgoprojEventsV1alpha1RedisEventSource; };
'redisStream'?: { [key: string]: IoArgoprojEventsV1alpha1RedisStreamEventSource; };
'replicas'?: number;
'resource'?: { [key: string]: IoArgoprojEventsV1alpha1ResourceEventSource; };
'service'?: IoArgoprojEventsV1alpha1Service;
'slack'?: { [key: string]: IoArgoprojEventsV1alpha1SlackEventSource; };
'sns'?: { [key: string]: IoArgoprojEventsV1alpha1SNSEventSource; };
'sqs'?: { [key: string]: IoArgoprojEventsV1alpha1SQSEventSource; };
'storageGrid'?: { [key: string]: IoArgoprojEventsV1alpha1StorageGridEventSource; };
'stripe'?: { [key: string]: IoArgoprojEventsV1alpha1StripeEventSource; };
'template'?: IoArgoprojEventsV1alpha1Template;
'webhook'?: { [key: string]: IoArgoprojEventsV1alpha1WebhookEventSource; };
static readonly discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "amqp",
"baseName": "amqp",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1AMQPEventSource; }",
"format": ""
},
{
"name": "azureEventsHub",
"baseName": "azureEventsHub",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1AzureEventsHubEventSource; }",
"format": ""
},
{
"name": "bitbucket",
"baseName": "bitbucket",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1BitbucketEventSource; }",
"format": ""
},
{
"name": "bitbucketserver",
"baseName": "bitbucketserver",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1BitbucketServerEventSource; }",
"format": ""
},
{
"name": "calendar",
"baseName": "calendar",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1CalendarEventSource; }",
"format": ""
},
{
"name": "emitter",
"baseName": "emitter",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1EmitterEventSource; }",
"format": ""
},
{
"name": "eventBusName",
"baseName": "eventBusName",
"type": "string",
"format": ""
},
{
"name": "file",
"baseName": "file",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1FileEventSource; }",
"format": ""
},
{
"name": "generic",
"baseName": "generic",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1GenericEventSource; }",
"format": ""
},
{
"name": "github",
"baseName": "github",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1GithubEventSource; }",
"format": ""
},
{
"name": "gitlab",
"baseName": "gitlab",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1GitlabEventSource; }",
"format": ""
},
{
"name": "hdfs",
"baseName": "hdfs",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1HDFSEventSource; }",
"format": ""
},
{
"name": "kafka",
"baseName": "kafka",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1KafkaEventSource; }",
"format": ""
},
{
"name": "minio",
"baseName": "minio",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1S3Artifact; }",
"format": ""
},
{
"name": "mqtt",
"baseName": "mqtt",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1MQTTEventSource; }",
"format": ""
},
{
"name": "nats",
"baseName": "nats",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1NATSEventsSource; }",
"format": ""
},
{
"name": "nsq",
"baseName": "nsq",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1NSQEventSource; }",
"format": ""
},
{
"name": "pubSub",
"baseName": "pubSub",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1PubSubEventSource; }",
"format": ""
},
{
"name": "pulsar",
"baseName": "pulsar",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1PulsarEventSource; }",
"format": ""
},
{
"name": "redis",
"baseName": "redis",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1RedisEventSource; }",
"format": ""
},
{
"name": "redisStream",
"baseName": "redisStream",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1RedisStreamEventSource; }",
"format": ""
},
{
"name": "replicas",
"baseName": "replicas",
"type": "number",
"format": ""
},
{
"name": "resource",
"baseName": "resource",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1ResourceEventSource; }",
"format": ""
},
{
"name": "service",
"baseName": "service",
"type": "IoArgoprojEventsV1alpha1Service",
"format": ""
},
{
"name": "slack",
"baseName": "slack",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1SlackEventSource; }",
"format": ""
},
{
"name": "sns",
"baseName": "sns",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1SNSEventSource; }",
"format": ""
},
{
"name": "sqs",
"baseName": "sqs",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1SQSEventSource; }",
"format": ""
},
{
"name": "storageGrid",
"baseName": "storageGrid",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1StorageGridEventSource; }",
"format": ""
},
{
"name": "stripe",
"baseName": "stripe",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1StripeEventSource; }",
"format": ""
},
{
"name": "template",
"baseName": "template",
"type": "IoArgoprojEventsV1alpha1Template",
"format": ""
},
{
"name": "webhook",
"baseName": "webhook",
"type": "{ [key: string]: IoArgoprojEventsV1alpha1WebhookEventSource; }",
"format": ""
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1EventSourceSpec.attributeTypeMap;
}
public constructor() {
}
}

View file

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

View file

@ -0,0 +1,49 @@
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1PayloadField } from '../models/IoArgoprojEventsV1alpha1PayloadField';
import { HttpFile } from '../http/http';
export class IoArgoprojEventsV1alpha1ExprFilter {
/**
* Expr refers to the expression that determines the outcome of the filter.
*/
'expr'?: string;
/**
* Fields refers to set of keys that refer to the paths within event payload.
*/
'fields'?: Array<IoArgoprojEventsV1alpha1PayloadField>;
static readonly discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "expr",
"baseName": "expr",
"type": "string",
"format": ""
},
{
"name": "fields",
"baseName": "fields",
"type": "Array<IoArgoprojEventsV1alpha1PayloadField>",
"format": ""
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1ExprFilter.attributeTypeMap;
}
public constructor() {
}
}

View file

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

View file

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

View file

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

View file

@ -0,0 +1,104 @@
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1GitCreds } from '../models/IoArgoprojEventsV1alpha1GitCreds';
import { IoArgoprojEventsV1alpha1GitRemoteConfig } from '../models/IoArgoprojEventsV1alpha1GitRemoteConfig';
import { IoK8sApiCoreV1SecretKeySelector } from '../models/IoK8sApiCoreV1SecretKeySelector';
import { HttpFile } from '../http/http';
export class IoArgoprojEventsV1alpha1GitArtifact {
'branch'?: string;
/**
* Directory to clone the repository. We clone complete directory because GitArtifact is not limited to any specific Git service providers. Hence we don\'t use any specific git provider client.
*/
'cloneDirectory'?: string;
'creds'?: IoArgoprojEventsV1alpha1GitCreds;
'filePath'?: string;
'insecureIgnoreHostKey'?: boolean;
'ref'?: string;
'remote'?: IoArgoprojEventsV1alpha1GitRemoteConfig;
'sshKeySecret'?: IoK8sApiCoreV1SecretKeySelector;
'tag'?: string;
'url'?: string;
static readonly discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "branch",
"baseName": "branch",
"type": "string",
"format": ""
},
{
"name": "cloneDirectory",
"baseName": "cloneDirectory",
"type": "string",
"format": ""
},
{
"name": "creds",
"baseName": "creds",
"type": "IoArgoprojEventsV1alpha1GitCreds",
"format": ""
},
{
"name": "filePath",
"baseName": "filePath",
"type": "string",
"format": ""
},
{
"name": "insecureIgnoreHostKey",
"baseName": "insecureIgnoreHostKey",
"type": "boolean",
"format": ""
},
{
"name": "ref",
"baseName": "ref",
"type": "string",
"format": ""
},
{
"name": "remote",
"baseName": "remote",
"type": "IoArgoprojEventsV1alpha1GitRemoteConfig",
"format": ""
},
{
"name": "sshKeySecret",
"baseName": "sshKeySecret",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
},
{
"name": "tag",
"baseName": "tag",
"type": "string",
"format": ""
},
{
"name": "url",
"baseName": "url",
"type": "string",
"format": ""
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1GitArtifact.attributeTypeMap;
}
public constructor() {
}
}

View file

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

View file

@ -0,0 +1,48 @@
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
export class IoArgoprojEventsV1alpha1GitRemoteConfig {
/**
* Name of the remote to fetch from.
*/
'name'?: string;
/**
* URLs the URLs of a remote repository. It must be non-empty. Fetch will always use the first URL, while push will use all of them.
*/
'urls'?: Array<string>;
static readonly discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "name",
"baseName": "name",
"type": "string",
"format": ""
},
{
"name": "urls",
"baseName": "urls",
"type": "Array<string>",
"format": ""
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1GitRemoteConfig.attributeTypeMap;
}
public constructor() {
}
}

View file

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

View file

@ -0,0 +1,165 @@
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1EventSourceFilter } from '../models/IoArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1GithubAppCreds } from '../models/IoArgoprojEventsV1alpha1GithubAppCreds';
import { IoArgoprojEventsV1alpha1OwnedRepositories } from '../models/IoArgoprojEventsV1alpha1OwnedRepositories';
import { IoArgoprojEventsV1alpha1WebhookContext } from '../models/IoArgoprojEventsV1alpha1WebhookContext';
import { IoK8sApiCoreV1SecretKeySelector } from '../models/IoK8sApiCoreV1SecretKeySelector';
import { HttpFile } from '../http/http';
export class IoArgoprojEventsV1alpha1GithubEventSource {
'active'?: boolean;
'apiToken'?: IoK8sApiCoreV1SecretKeySelector;
'contentType'?: string;
'deleteHookOnFinish'?: boolean;
'events'?: Array<string>;
'filter'?: IoArgoprojEventsV1alpha1EventSourceFilter;
'githubApp'?: IoArgoprojEventsV1alpha1GithubAppCreds;
'githubBaseURL'?: string;
'githubUploadURL'?: string;
'id'?: string;
'insecure'?: boolean;
'metadata'?: { [key: string]: string; };
/**
* Organizations holds the names of organizations (used for organization level webhooks). Not required if Repositories is set.
*/
'organizations'?: Array<string>;
'owner'?: string;
/**
* Repositories holds the information of repositories, which uses repo owner as the key, and list of repo names as the value. Not required if Organizations is set.
*/
'repositories'?: Array<IoArgoprojEventsV1alpha1OwnedRepositories>;
'repository'?: string;
'webhook'?: IoArgoprojEventsV1alpha1WebhookContext;
'webhookSecret'?: IoK8sApiCoreV1SecretKeySelector;
static readonly discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "active",
"baseName": "active",
"type": "boolean",
"format": ""
},
{
"name": "apiToken",
"baseName": "apiToken",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
},
{
"name": "contentType",
"baseName": "contentType",
"type": "string",
"format": ""
},
{
"name": "deleteHookOnFinish",
"baseName": "deleteHookOnFinish",
"type": "boolean",
"format": ""
},
{
"name": "events",
"baseName": "events",
"type": "Array<string>",
"format": ""
},
{
"name": "filter",
"baseName": "filter",
"type": "IoArgoprojEventsV1alpha1EventSourceFilter",
"format": ""
},
{
"name": "githubApp",
"baseName": "githubApp",
"type": "IoArgoprojEventsV1alpha1GithubAppCreds",
"format": ""
},
{
"name": "githubBaseURL",
"baseName": "githubBaseURL",
"type": "string",
"format": ""
},
{
"name": "githubUploadURL",
"baseName": "githubUploadURL",
"type": "string",
"format": ""
},
{
"name": "id",
"baseName": "id",
"type": "string",
"format": ""
},
{
"name": "insecure",
"baseName": "insecure",
"type": "boolean",
"format": ""
},
{
"name": "metadata",
"baseName": "metadata",
"type": "{ [key: string]: string; }",
"format": ""
},
{
"name": "organizations",
"baseName": "organizations",
"type": "Array<string>",
"format": ""
},
{
"name": "owner",
"baseName": "owner",
"type": "string",
"format": ""
},
{
"name": "repositories",
"baseName": "repositories",
"type": "Array<IoArgoprojEventsV1alpha1OwnedRepositories>",
"format": ""
},
{
"name": "repository",
"baseName": "repository",
"type": "string",
"format": ""
},
{
"name": "webhook",
"baseName": "webhook",
"type": "IoArgoprojEventsV1alpha1WebhookContext",
"format": ""
},
{
"name": "webhookSecret",
"baseName": "webhookSecret",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1GithubEventSource.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -0,0 +1,111 @@
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1EventSourceFilter } from '../models/IoArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1WebhookContext } from '../models/IoArgoprojEventsV1alpha1WebhookContext';
import { IoK8sApiCoreV1SecretKeySelector } from '../models/IoK8sApiCoreV1SecretKeySelector';
import { HttpFile } from '../http/http';
export class IoArgoprojEventsV1alpha1GitlabEventSource {
'accessToken'?: IoK8sApiCoreV1SecretKeySelector;
'deleteHookOnFinish'?: boolean;
'enableSSLVerification'?: boolean;
/**
* Events are gitlab event to listen to. Refer https://github.com/xanzy/go-gitlab/blob/bf34eca5d13a9f4c3f501d8a97b8ac226d55e4d9/projects.go#L794.
*/
'events'?: Array<string>;
'filter'?: IoArgoprojEventsV1alpha1EventSourceFilter;
'gitlabBaseURL'?: string;
'metadata'?: { [key: string]: string; };
'projectID'?: string;
'projects'?: Array<string>;
'secretToken'?: IoK8sApiCoreV1SecretKeySelector;
'webhook'?: IoArgoprojEventsV1alpha1WebhookContext;
static readonly discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "accessToken",
"baseName": "accessToken",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
},
{
"name": "deleteHookOnFinish",
"baseName": "deleteHookOnFinish",
"type": "boolean",
"format": ""
},
{
"name": "enableSSLVerification",
"baseName": "enableSSLVerification",
"type": "boolean",
"format": ""
},
{
"name": "events",
"baseName": "events",
"type": "Array<string>",
"format": ""
},
{
"name": "filter",
"baseName": "filter",
"type": "IoArgoprojEventsV1alpha1EventSourceFilter",
"format": ""
},
{
"name": "gitlabBaseURL",
"baseName": "gitlabBaseURL",
"type": "string",
"format": ""
},
{
"name": "metadata",
"baseName": "metadata",
"type": "{ [key: string]: string; }",
"format": ""
},
{
"name": "projectID",
"baseName": "projectID",
"type": "string",
"format": ""
},
{
"name": "projects",
"baseName": "projects",
"type": "Array<string>",
"format": ""
},
{
"name": "secretToken",
"baseName": "secretToken",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
},
{
"name": "webhook",
"baseName": "webhook",
"type": "IoArgoprojEventsV1alpha1WebhookContext",
"format": ""
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1GitlabEventSource.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -0,0 +1,135 @@
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1EventSourceFilter } from '../models/IoArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1WatchPathConfig } from '../models/IoArgoprojEventsV1alpha1WatchPathConfig';
import { IoK8sApiCoreV1ConfigMapKeySelector } from '../models/IoK8sApiCoreV1ConfigMapKeySelector';
import { IoK8sApiCoreV1SecretKeySelector } from '../models/IoK8sApiCoreV1SecretKeySelector';
import { HttpFile } from '../http/http';
export class IoArgoprojEventsV1alpha1HDFSEventSource {
'addresses'?: Array<string>;
'checkInterval'?: string;
'filter'?: IoArgoprojEventsV1alpha1EventSourceFilter;
/**
* HDFSUser is the user to access HDFS file system. It is ignored if either ccache or keytab is used.
*/
'hdfsUser'?: string;
'krbCCacheSecret'?: IoK8sApiCoreV1SecretKeySelector;
'krbConfigConfigMap'?: IoK8sApiCoreV1ConfigMapKeySelector;
'krbKeytabSecret'?: IoK8sApiCoreV1SecretKeySelector;
/**
* KrbRealm is the Kerberos realm used with Kerberos keytab It must be set if keytab is used.
*/
'krbRealm'?: string;
/**
* KrbServicePrincipalName is the principal name of Kerberos service It must be set if either ccache or keytab is used.
*/
'krbServicePrincipalName'?: string;
/**
* KrbUsername is the Kerberos username used with Kerberos keytab It must be set if keytab is used.
*/
'krbUsername'?: string;
'metadata'?: { [key: string]: string; };
'type'?: string;
'watchPathConfig'?: IoArgoprojEventsV1alpha1WatchPathConfig;
static readonly discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "addresses",
"baseName": "addresses",
"type": "Array<string>",
"format": ""
},
{
"name": "checkInterval",
"baseName": "checkInterval",
"type": "string",
"format": ""
},
{
"name": "filter",
"baseName": "filter",
"type": "IoArgoprojEventsV1alpha1EventSourceFilter",
"format": ""
},
{
"name": "hdfsUser",
"baseName": "hdfsUser",
"type": "string",
"format": ""
},
{
"name": "krbCCacheSecret",
"baseName": "krbCCacheSecret",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
},
{
"name": "krbConfigConfigMap",
"baseName": "krbConfigConfigMap",
"type": "IoK8sApiCoreV1ConfigMapKeySelector",
"format": ""
},
{
"name": "krbKeytabSecret",
"baseName": "krbKeytabSecret",
"type": "IoK8sApiCoreV1SecretKeySelector",
"format": ""
},
{
"name": "krbRealm",
"baseName": "krbRealm",
"type": "string",
"format": ""
},
{
"name": "krbServicePrincipalName",
"baseName": "krbServicePrincipalName",
"type": "string",
"format": ""
},
{
"name": "krbUsername",
"baseName": "krbUsername",
"type": "string",
"format": ""
},
{
"name": "metadata",
"baseName": "metadata",
"type": "{ [key: string]: string; }",
"format": ""
},
{
"name": "type",
"baseName": "type",
"type": "string",
"format": ""
},
{
"name": "watchPathConfig",
"baseName": "watchPathConfig",
"type": "IoArgoprojEventsV1alpha1WatchPathConfig",
"format": ""
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1HDFSEventSource.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -0,0 +1,101 @@
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1BasicAuth } from '../models/IoArgoprojEventsV1alpha1BasicAuth';
import { IoArgoprojEventsV1alpha1SecureHeader } from '../models/IoArgoprojEventsV1alpha1SecureHeader';
import { IoArgoprojEventsV1alpha1TLSConfig } from '../models/IoArgoprojEventsV1alpha1TLSConfig';
import { IoArgoprojEventsV1alpha1TriggerParameter } from '../models/IoArgoprojEventsV1alpha1TriggerParameter';
import { HttpFile } from '../http/http';
export class IoArgoprojEventsV1alpha1HTTPTrigger {
'basicAuth'?: IoArgoprojEventsV1alpha1BasicAuth;
'headers'?: { [key: string]: string; };
'method'?: string;
/**
* Parameters is the list of key-value extracted from event\'s payload that are applied to the HTTP trigger resource.
*/
'parameters'?: Array<IoArgoprojEventsV1alpha1TriggerParameter>;
'payload'?: Array<IoArgoprojEventsV1alpha1TriggerParameter>;
'secureHeaders'?: Array<IoArgoprojEventsV1alpha1SecureHeader>;
'timeout'?: string;
'tls'?: IoArgoprojEventsV1alpha1TLSConfig;
/**
* URL refers to the URL to send HTTP request to.
*/
'url'?: string;
static readonly discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "basicAuth",
"baseName": "basicAuth",
"type": "IoArgoprojEventsV1alpha1BasicAuth",
"format": ""
},
{
"name": "headers",
"baseName": "headers",
"type": "{ [key: string]: string; }",
"format": ""
},
{
"name": "method",
"baseName": "method",
"type": "string",
"format": ""
},
{
"name": "parameters",
"baseName": "parameters",
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>",
"format": ""
},
{
"name": "payload",
"baseName": "payload",
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>",
"format": ""
},
{
"name": "secureHeaders",
"baseName": "secureHeaders",
"type": "Array<IoArgoprojEventsV1alpha1SecureHeader>",
"format": ""
},
{
"name": "timeout",
"baseName": "timeout",
"type": "string",
"format": ""
},
{
"name": "tls",
"baseName": "tls",
"type": "IoArgoprojEventsV1alpha1TLSConfig",
"format": ""
},
{
"name": "url",
"baseName": "url",
"type": "string",
"format": ""
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1HTTPTrigger.attributeTypeMap;
}
public constructor() {
}
}

View file

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

View file

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

View file

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

View file

@ -0,0 +1,127 @@
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1Backoff } from '../models/IoArgoprojEventsV1alpha1Backoff';
import { IoArgoprojEventsV1alpha1EventSourceFilter } from '../models/IoArgoprojEventsV1alpha1EventSourceFilter';
import { IoArgoprojEventsV1alpha1KafkaConsumerGroup } from '../models/IoArgoprojEventsV1alpha1KafkaConsumerGroup';
import { IoArgoprojEventsV1alpha1SASLConfig } from '../models/IoArgoprojEventsV1alpha1SASLConfig';
import { IoArgoprojEventsV1alpha1TLSConfig } from '../models/IoArgoprojEventsV1alpha1TLSConfig';
import { HttpFile } from '../http/http';
export class IoArgoprojEventsV1alpha1KafkaEventSource {
/**
* Yaml format Sarama config for Kafka connection. It follows the struct of sarama.Config. See https://github.com/Shopify/sarama/blob/main/config.go e.g. consumer: fetch: min: 1 net: MaxOpenRequests: 5 +optional
*/
'config'?: string;
'connectionBackoff'?: IoArgoprojEventsV1alpha1Backoff;
'consumerGroup'?: IoArgoprojEventsV1alpha1KafkaConsumerGroup;
'filter'?: IoArgoprojEventsV1alpha1EventSourceFilter;
'jsonBody'?: boolean;
'limitEventsPerSecond'?: string;
'metadata'?: { [key: string]: string; };
'partition'?: string;
'sasl'?: IoArgoprojEventsV1alpha1SASLConfig;
'tls'?: IoArgoprojEventsV1alpha1TLSConfig;
'topic'?: string;
'url'?: string;
'version'?: string;
static readonly discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "config",
"baseName": "config",
"type": "string",
"format": ""
},
{
"name": "connectionBackoff",
"baseName": "connectionBackoff",
"type": "IoArgoprojEventsV1alpha1Backoff",
"format": ""
},
{
"name": "consumerGroup",
"baseName": "consumerGroup",
"type": "IoArgoprojEventsV1alpha1KafkaConsumerGroup",
"format": ""
},
{
"name": "filter",
"baseName": "filter",
"type": "IoArgoprojEventsV1alpha1EventSourceFilter",
"format": ""
},
{
"name": "jsonBody",
"baseName": "jsonBody",
"type": "boolean",
"format": ""
},
{
"name": "limitEventsPerSecond",
"baseName": "limitEventsPerSecond",
"type": "string",
"format": ""
},
{
"name": "metadata",
"baseName": "metadata",
"type": "{ [key: string]: string; }",
"format": ""
},
{
"name": "partition",
"baseName": "partition",
"type": "string",
"format": ""
},
{
"name": "sasl",
"baseName": "sasl",
"type": "IoArgoprojEventsV1alpha1SASLConfig",
"format": ""
},
{
"name": "tls",
"baseName": "tls",
"type": "IoArgoprojEventsV1alpha1TLSConfig",
"format": ""
},
{
"name": "topic",
"baseName": "topic",
"type": "string",
"format": ""
},
{
"name": "url",
"baseName": "url",
"type": "string",
"format": ""
},
{
"name": "version",
"baseName": "version",
"type": "string",
"format": ""
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1KafkaEventSource.attributeTypeMap;
}
public constructor() {
}
}

View file

@ -0,0 +1,136 @@
/**
* Argo Workflows API
* Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/
*
* OpenAPI spec version: VERSION
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { IoArgoprojEventsV1alpha1SASLConfig } from '../models/IoArgoprojEventsV1alpha1SASLConfig';
import { IoArgoprojEventsV1alpha1TLSConfig } from '../models/IoArgoprojEventsV1alpha1TLSConfig';
import { IoArgoprojEventsV1alpha1TriggerParameter } from '../models/IoArgoprojEventsV1alpha1TriggerParameter';
import { HttpFile } from '../http/http';
/**
* KafkaTrigger refers to the specification of the Kafka trigger.
*/
export class IoArgoprojEventsV1alpha1KafkaTrigger {
'compress'?: boolean;
'flushFrequency'?: number;
/**
* Parameters is the list of parameters that is applied to resolved Kafka trigger object.
*/
'parameters'?: Array<IoArgoprojEventsV1alpha1TriggerParameter>;
/**
* Partition to write data to.
*/
'partition'?: number;
/**
* The partitioning key for the messages put on the Kafka topic. Defaults to broker url. +optional.
*/
'partitioningKey'?: string;
/**
* Payload is the list of key-value extracted from an event payload to construct the request payload.
*/
'payload'?: Array<IoArgoprojEventsV1alpha1TriggerParameter>;
/**
* RequiredAcks used in producer to tell the broker how many replica acknowledgements Defaults to 1 (Only wait for the leader to ack). +optional.
*/
'requiredAcks'?: number;
'sasl'?: IoArgoprojEventsV1alpha1SASLConfig;
'tls'?: IoArgoprojEventsV1alpha1TLSConfig;
'topic'?: string;
/**
* URL of the Kafka broker, multiple URLs separated by comma.
*/
'url'?: string;
'version'?: string;
static readonly discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "compress",
"baseName": "compress",
"type": "boolean",
"format": ""
},
{
"name": "flushFrequency",
"baseName": "flushFrequency",
"type": "number",
"format": ""
},
{
"name": "parameters",
"baseName": "parameters",
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>",
"format": ""
},
{
"name": "partition",
"baseName": "partition",
"type": "number",
"format": ""
},
{
"name": "partitioningKey",
"baseName": "partitioningKey",
"type": "string",
"format": ""
},
{
"name": "payload",
"baseName": "payload",
"type": "Array<IoArgoprojEventsV1alpha1TriggerParameter>",
"format": ""
},
{
"name": "requiredAcks",
"baseName": "requiredAcks",
"type": "number",
"format": ""
},
{
"name": "sasl",
"baseName": "sasl",
"type": "IoArgoprojEventsV1alpha1SASLConfig",
"format": ""
},
{
"name": "tls",
"baseName": "tls",
"type": "IoArgoprojEventsV1alpha1TLSConfig",
"format": ""
},
{
"name": "topic",
"baseName": "topic",
"type": "string",
"format": ""
},
{
"name": "url",
"baseName": "url",
"type": "string",
"format": ""
},
{
"name": "version",
"baseName": "version",
"type": "string",
"format": ""
} ];
static getAttributeTypeMap() {
return IoArgoprojEventsV1alpha1KafkaTrigger.attributeTypeMap;
}
public constructor() {
}
}

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

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