feat: adding taints, labels and annotations to terraform provider and ui all implementing the SDK

This commit is contained in:
allanice001
2025-11-05 21:31:13 +00:00
parent c41af60b26
commit b09c3179c7
46 changed files with 1021 additions and 271 deletions

View File

@@ -45,7 +45,7 @@ export interface GetAnnotationRequest {
export interface ListAnnotationsRequest {
xOrgID?: string;
name?: string;
key?: string;
value?: string;
q?: string;
}
@@ -233,14 +233,14 @@ export class AnnotationsApi extends runtime.BaseAPI {
}
/**
* Returns annotations for the organization in X-Org-ID. Filters: `name`, `value`, and `q` (name contains). Add `include=node_pools` to include linked node pools.
* Returns annotations for the organization in X-Org-ID. Filters: `key`, `value`, and `q` (key contains). Add `include=node_pools` to include linked node pools.
* List annotations (org scoped)
*/
async listAnnotationsRaw(requestParameters: ListAnnotationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<DtoAnnotationResponse>>> {
const queryParameters: any = {};
if (requestParameters['name'] != null) {
queryParameters['name'] = requestParameters['name'];
if (requestParameters['key'] != null) {
queryParameters['key'] = requestParameters['key'];
}
if (requestParameters['value'] != null) {
@@ -283,7 +283,7 @@ export class AnnotationsApi extends runtime.BaseAPI {
}
/**
* Returns annotations for the organization in X-Org-ID. Filters: `name`, `value`, and `q` (name contains). Add `include=node_pools` to include linked node pools.
* Returns annotations for the organization in X-Org-ID. Filters: `key`, `value`, and `q` (key contains). Add `include=node_pools` to include linked node pools.
* List annotations (org scoped)
*/
async listAnnotations(requestParameters: ListAnnotationsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<DtoAnnotationResponse>> {

View File

@@ -261,11 +261,11 @@ example().catch(console.error);
## listAnnotations
> Array&lt;DtoAnnotationResponse&gt; listAnnotations(xOrgID, name, value, q)
> Array&lt;DtoAnnotationResponse&gt; listAnnotations(xOrgID, key, value, q)
List annotations (org scoped)
Returns annotations for the organization in X-Org-ID. Filters: &#x60;name&#x60;, &#x60;value&#x60;, and &#x60;q&#x60; (name contains). Add &#x60;include&#x3D;node_pools&#x60; to include linked node pools.
Returns annotations for the organization in X-Org-ID. Filters: &#x60;key&#x60;, &#x60;value&#x60;, and &#x60;q&#x60; (key contains). Add &#x60;include&#x3D;node_pools&#x60; to include linked node pools.
### Example
@@ -291,11 +291,11 @@ async function example() {
const body = {
// string | Organization UUID (optional)
xOrgID: xOrgID_example,
// string | Exact name (optional)
name: name_example,
// string | Exact key (optional)
key: key_example,
// string | Exact value (optional)
value: value_example,
// string | name contains (case-insensitive) (optional)
// string | key contains (case-insensitive) (optional)
q: q_example,
} satisfies ListAnnotationsRequest;
@@ -317,9 +317,9 @@ example().catch(console.error);
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] |
| **name** | `string` | Exact name | [Optional] [Defaults to `undefined`] |
| **key** | `string` | Exact key | [Optional] [Defaults to `undefined`] |
| **value** | `string` | Exact value | [Optional] [Defaults to `undefined`] |
| **q** | `string` | name contains (case-insensitive) | [Optional] [Defaults to `undefined`] |
| **q** | `string` | key contains (case-insensitive) | [Optional] [Defaults to `undefined`] |
### Return type

View File

@@ -25,17 +25,17 @@ import type { DtoJob } from '@glueops/autoglue-sdk-go'
// TODO: Update the object below with actual values
const example = {
"attempts": null,
"created_at": null,
"id": null,
"last_error": null,
"max_attempts": null,
"attempts": 0,
"created_at": 2025-11-04T09:30:00Z,
"id": 01HF7SZK8Z8WG1M3J7S2Z8M2N6,
"last_error": error message,
"max_attempts": 3,
"payload": null,
"queue": null,
"run_at": null,
"queue": default,
"run_at": 2025-11-04T09:30:00Z,
"status": null,
"type": null,
"updated_at": null,
"type": email.send,
"updated_at": 2025-11-04T09:30:00Z,
} satisfies DtoJob
console.log(example)

View File

@@ -19,9 +19,9 @@ import type { DtoPageJob } from '@glueops/autoglue-sdk-go'
// TODO: Update the object below with actual values
const example = {
"items": null,
"page": null,
"page_size": null,
"total": null,
"page": 1,
"page_size": 25,
"total": 120,
} satisfies DtoPageJob
console.log(example)

View File

@@ -19,11 +19,11 @@ import type { DtoQueueInfo } from '@glueops/autoglue-sdk-go'
// TODO: Update the object below with actual values
const example = {
"failed": null,
"name": null,
"pending": null,
"running": null,
"scheduled": null,
"failed": 5,
"name": default,
"pending": 42,
"running": 3,
"scheduled": 7,
} satisfies DtoQueueInfo
console.log(example)

View File

@@ -28,68 +28,67 @@ import {
*/
export interface DtoJob {
/**
* example: 0
*
* @type {number}
* @memberof DtoJob
*/
attempts?: number;
/**
* example: 2025-11-04T09:30:00Z
*
* @type {string}
* @memberof DtoJob
*/
created_at?: string;
/**
* example: 01HF7SZK8Z8WG1M3J7S2Z8M2N6
*
* @type {string}
* @memberof DtoJob
*/
id?: string;
/**
* example: dial tcp: i/o timeout
*
* @type {string}
* @memberof DtoJob
*/
last_error?: string;
/**
* example: 3
*
* @type {number}
* @memberof DtoJob
*/
max_attempts?: number;
/**
* arbitrary JSON payload
*
* @type {object}
* @memberof DtoJob
*/
payload?: object;
/**
* example: default
*
* @type {string}
* @memberof DtoJob
*/
queue?: string;
/**
* example: 2025-11-05T08:00:00Z
*
* @type {string}
* @memberof DtoJob
*/
run_at?: string;
/**
* enum: queued,running,succeeded,failed,canceled,retrying,scheduled
* example: queued
*
* @type {DtoJobStatus}
* @memberof DtoJob
*/
status?: DtoJobStatus;
/**
* example: email.send
*
* @type {string}
* @memberof DtoJob
*/
type?: string;
/**
* example: 2025-11-04T09:31:00Z
*
* @type {string}
* @memberof DtoJob
*/

View File

@@ -34,19 +34,19 @@ export interface DtoPageJob {
*/
items?: Array<DtoJob>;
/**
* example: 1
*
* @type {number}
* @memberof DtoPageJob
*/
page?: number;
/**
* example: 25
*
* @type {number}
* @memberof DtoPageJob
*/
page_size?: number;
/**
* example: 120
*
* @type {number}
* @memberof DtoPageJob
*/

View File

@@ -20,31 +20,31 @@ import { mapValues } from '../runtime';
*/
export interface DtoQueueInfo {
/**
* example: 5
*
* @type {number}
* @memberof DtoQueueInfo
*/
failed?: number;
/**
* example: default
*
* @type {string}
* @memberof DtoQueueInfo
*/
name?: string;
/**
* example: 42
*
* @type {number}
* @memberof DtoQueueInfo
*/
pending?: number;
/**
* example: 3
*
* @type {number}
* @memberof DtoQueueInfo
*/
running?: number;
/**
* example: 7
*
* @type {number}
* @memberof DtoQueueInfo
*/