mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 04:40:05 +01:00
feat: adding taints, labels and annotations to terraform provider and ui all implementing the SDK
This commit is contained in:
@@ -278,7 +278,7 @@ paths:
|
||||
/annotations:
|
||||
get:
|
||||
description: "Returns annotations for the organization in X-Org-ID. Filters:\
|
||||
\ `name`, `value`, and `q` (name contains). Add `include=node_pools` to include\
|
||||
\ `key`, `value`, and `q` (key contains). Add `include=node_pools` to include\
|
||||
\ linked node pools."
|
||||
operationId: ListAnnotations
|
||||
parameters:
|
||||
@@ -287,9 +287,9 @@ paths:
|
||||
name: X-Org-ID
|
||||
schema:
|
||||
type: string
|
||||
- description: Exact name
|
||||
- description: Exact key
|
||||
in: query
|
||||
name: name
|
||||
name: key
|
||||
schema:
|
||||
type: string
|
||||
- description: Exact value
|
||||
@@ -297,7 +297,7 @@ paths:
|
||||
name: value
|
||||
schema:
|
||||
type: string
|
||||
- description: name contains (case-insensitive)
|
||||
- description: key contains (case-insensitive)
|
||||
in: query
|
||||
name: q
|
||||
schema:
|
||||
@@ -2446,54 +2446,51 @@ components:
|
||||
type: object
|
||||
dto.Job:
|
||||
example:
|
||||
updated_at: updated_at
|
||||
updated_at: 2025-11-04T09:30:00Z
|
||||
payload: "{}"
|
||||
max_attempts: 6
|
||||
created_at: created_at
|
||||
id: id
|
||||
last_error: last_error
|
||||
run_at: run_at
|
||||
type: type
|
||||
queue: queue
|
||||
max_attempts: 3
|
||||
created_at: 2025-11-04T09:30:00Z
|
||||
id: 01HF7SZK8Z8WG1M3J7S2Z8M2N6
|
||||
last_error: error message
|
||||
run_at: 2025-11-04T09:30:00Z
|
||||
type: email.send
|
||||
queue: default
|
||||
attempts: 0
|
||||
status: "{}"
|
||||
status: queued
|
||||
properties:
|
||||
attempts:
|
||||
description: "example: 0"
|
||||
example: 0
|
||||
type: integer
|
||||
created_at:
|
||||
description: "example: 2025-11-04T09:30:00Z"
|
||||
example: 2025-11-04T09:30:00Z
|
||||
type: string
|
||||
id:
|
||||
description: "example: 01HF7SZK8Z8WG1M3J7S2Z8M2N6"
|
||||
example: 01HF7SZK8Z8WG1M3J7S2Z8M2N6
|
||||
type: string
|
||||
last_error:
|
||||
description: "example: dial tcp: i/o timeout"
|
||||
example: error message
|
||||
type: string
|
||||
max_attempts:
|
||||
description: "example: 3"
|
||||
example: 3
|
||||
type: integer
|
||||
payload:
|
||||
description: arbitrary JSON payload
|
||||
type: object
|
||||
queue:
|
||||
description: "example: default"
|
||||
example: default
|
||||
type: string
|
||||
run_at:
|
||||
description: "example: 2025-11-05T08:00:00Z"
|
||||
example: 2025-11-04T09:30:00Z
|
||||
type: string
|
||||
status:
|
||||
allOf:
|
||||
- $ref: "#/components/schemas/dto.JobStatus"
|
||||
description: |-
|
||||
enum: queued,running,succeeded,failed,canceled,retrying,scheduled
|
||||
example: queued
|
||||
example: queued
|
||||
type: object
|
||||
type:
|
||||
description: "example: email.send"
|
||||
example: email.send
|
||||
type: string
|
||||
updated_at:
|
||||
description: "example: 2025-11-04T09:31:00Z"
|
||||
example: 2025-11-04T09:30:00Z
|
||||
type: string
|
||||
type: object
|
||||
dto.JobStatus:
|
||||
@@ -2544,69 +2541,69 @@ components:
|
||||
type: object
|
||||
dto.PageJob:
|
||||
example:
|
||||
total: 5
|
||||
total: 120
|
||||
page: 1
|
||||
items:
|
||||
- updated_at: updated_at
|
||||
- updated_at: 2025-11-04T09:30:00Z
|
||||
payload: "{}"
|
||||
max_attempts: 6
|
||||
created_at: created_at
|
||||
id: id
|
||||
last_error: last_error
|
||||
run_at: run_at
|
||||
type: type
|
||||
queue: queue
|
||||
max_attempts: 3
|
||||
created_at: 2025-11-04T09:30:00Z
|
||||
id: 01HF7SZK8Z8WG1M3J7S2Z8M2N6
|
||||
last_error: error message
|
||||
run_at: 2025-11-04T09:30:00Z
|
||||
type: email.send
|
||||
queue: default
|
||||
attempts: 0
|
||||
status: "{}"
|
||||
- updated_at: updated_at
|
||||
status: queued
|
||||
- updated_at: 2025-11-04T09:30:00Z
|
||||
payload: "{}"
|
||||
max_attempts: 6
|
||||
created_at: created_at
|
||||
id: id
|
||||
last_error: last_error
|
||||
run_at: run_at
|
||||
type: type
|
||||
queue: queue
|
||||
max_attempts: 3
|
||||
created_at: 2025-11-04T09:30:00Z
|
||||
id: 01HF7SZK8Z8WG1M3J7S2Z8M2N6
|
||||
last_error: error message
|
||||
run_at: 2025-11-04T09:30:00Z
|
||||
type: email.send
|
||||
queue: default
|
||||
attempts: 0
|
||||
status: "{}"
|
||||
page_size: 5
|
||||
status: queued
|
||||
page_size: 25
|
||||
properties:
|
||||
items:
|
||||
items:
|
||||
$ref: "#/components/schemas/dto.Job"
|
||||
type: array
|
||||
page:
|
||||
description: "example: 1"
|
||||
example: 1
|
||||
type: integer
|
||||
page_size:
|
||||
description: "example: 25"
|
||||
example: 25
|
||||
type: integer
|
||||
total:
|
||||
description: "example: 120"
|
||||
example: 120
|
||||
type: integer
|
||||
type: object
|
||||
dto.QueueInfo:
|
||||
example:
|
||||
running: 1
|
||||
scheduled: 5
|
||||
pending: 6
|
||||
name: name
|
||||
failed: 0
|
||||
running: 3
|
||||
scheduled: 7
|
||||
pending: 42
|
||||
name: default
|
||||
failed: 5
|
||||
properties:
|
||||
failed:
|
||||
description: "example: 5"
|
||||
example: 5
|
||||
type: integer
|
||||
name:
|
||||
description: "example: default"
|
||||
example: default
|
||||
type: string
|
||||
pending:
|
||||
description: "example: 42"
|
||||
example: 42
|
||||
type: integer
|
||||
running:
|
||||
description: "example: 3"
|
||||
example: 3
|
||||
type: integer
|
||||
scheduled:
|
||||
description: "example: 7"
|
||||
example: 7
|
||||
type: integer
|
||||
type: object
|
||||
dto.RefreshRequest:
|
||||
|
||||
@@ -642,7 +642,7 @@ type ApiListAnnotationsRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *AnnotationsAPIService
|
||||
xOrgID *string
|
||||
name *string
|
||||
key *string
|
||||
value *string
|
||||
q *string
|
||||
}
|
||||
@@ -653,9 +653,9 @@ func (r ApiListAnnotationsRequest) XOrgID(xOrgID string) ApiListAnnotationsReque
|
||||
return r
|
||||
}
|
||||
|
||||
// Exact name
|
||||
func (r ApiListAnnotationsRequest) Name(name string) ApiListAnnotationsRequest {
|
||||
r.name = &name
|
||||
// Exact key
|
||||
func (r ApiListAnnotationsRequest) Key(key string) ApiListAnnotationsRequest {
|
||||
r.key = &key
|
||||
return r
|
||||
}
|
||||
|
||||
@@ -665,7 +665,7 @@ func (r ApiListAnnotationsRequest) Value(value string) ApiListAnnotationsRequest
|
||||
return r
|
||||
}
|
||||
|
||||
// name contains (case-insensitive)
|
||||
// key contains (case-insensitive)
|
||||
func (r ApiListAnnotationsRequest) Q(q string) ApiListAnnotationsRequest {
|
||||
r.q = &q
|
||||
return r
|
||||
@@ -678,7 +678,7 @@ func (r ApiListAnnotationsRequest) Execute() ([]DtoAnnotationResponse, *http.Res
|
||||
/*
|
||||
ListAnnotations List annotations (org scoped)
|
||||
|
||||
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.
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiListAnnotationsRequest
|
||||
@@ -712,8 +712,8 @@ func (a *AnnotationsAPIService) ListAnnotationsExecute(r ApiListAnnotationsReque
|
||||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
if r.name != nil {
|
||||
parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "", "")
|
||||
if r.key != nil {
|
||||
parameterAddToHeaderOrQuery(localVarQueryParams, "key", r.key, "", "")
|
||||
}
|
||||
if r.value != nil {
|
||||
parameterAddToHeaderOrQuery(localVarQueryParams, "value", r.value, "", "")
|
||||
|
||||
@@ -226,7 +226,7 @@ Name | Type | Description | Notes
|
||||
|
||||
## ListAnnotations
|
||||
|
||||
> []DtoAnnotationResponse ListAnnotations(ctx).XOrgID(xOrgID).Name(name).Value(value).Q(q).Execute()
|
||||
> []DtoAnnotationResponse ListAnnotations(ctx).XOrgID(xOrgID).Key(key).Value(value).Q(q).Execute()
|
||||
|
||||
List annotations (org scoped)
|
||||
|
||||
@@ -246,13 +246,13 @@ import (
|
||||
|
||||
func main() {
|
||||
xOrgID := "xOrgID_example" // string | Organization UUID (optional)
|
||||
name := "name_example" // string | Exact name (optional)
|
||||
key := "key_example" // string | Exact key (optional)
|
||||
value := "value_example" // string | Exact value (optional)
|
||||
q := "q_example" // string | name contains (case-insensitive) (optional)
|
||||
q := "q_example" // string | key contains (case-insensitive) (optional)
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.AnnotationsAPI.ListAnnotations(context.Background()).XOrgID(xOrgID).Name(name).Value(value).Q(q).Execute()
|
||||
resp, r, err := apiClient.AnnotationsAPI.ListAnnotations(context.Background()).XOrgID(xOrgID).Key(key).Value(value).Q(q).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `AnnotationsAPI.ListAnnotations``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
@@ -274,9 +274,9 @@ Other parameters are passed through a pointer to a apiListAnnotationsRequest str
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**xOrgID** | **string** | Organization UUID |
|
||||
**name** | **string** | Exact name |
|
||||
**key** | **string** | Exact key |
|
||||
**value** | **string** | Exact value |
|
||||
**q** | **string** | name contains (case-insensitive) |
|
||||
**q** | **string** | key contains (case-insensitive) |
|
||||
|
||||
### Return type
|
||||
|
||||
|
||||
@@ -4,17 +4,17 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Attempts** | Pointer to **int32** | example: 0 | [optional]
|
||||
**CreatedAt** | Pointer to **string** | example: 2025-11-04T09:30:00Z | [optional]
|
||||
**Id** | Pointer to **string** | example: 01HF7SZK8Z8WG1M3J7S2Z8M2N6 | [optional]
|
||||
**LastError** | Pointer to **string** | example: dial tcp: i/o timeout | [optional]
|
||||
**MaxAttempts** | Pointer to **int32** | example: 3 | [optional]
|
||||
**Payload** | Pointer to **map[string]interface{}** | arbitrary JSON payload | [optional]
|
||||
**Queue** | Pointer to **string** | example: default | [optional]
|
||||
**RunAt** | Pointer to **string** | example: 2025-11-05T08:00:00Z | [optional]
|
||||
**Status** | Pointer to [**DtoJobStatus**](DtoJobStatus.md) | enum: queued,running,succeeded,failed,canceled,retrying,scheduled example: queued | [optional]
|
||||
**Type** | Pointer to **string** | example: email.send | [optional]
|
||||
**UpdatedAt** | Pointer to **string** | example: 2025-11-04T09:31:00Z | [optional]
|
||||
**Attempts** | Pointer to **int32** | | [optional]
|
||||
**CreatedAt** | Pointer to **string** | | [optional]
|
||||
**Id** | Pointer to **string** | | [optional]
|
||||
**LastError** | Pointer to **string** | | [optional]
|
||||
**MaxAttempts** | Pointer to **int32** | | [optional]
|
||||
**Payload** | Pointer to **map[string]interface{}** | | [optional]
|
||||
**Queue** | Pointer to **string** | | [optional]
|
||||
**RunAt** | Pointer to **string** | | [optional]
|
||||
**Status** | Pointer to [**DtoJobStatus**](DtoJobStatus.md) | | [optional]
|
||||
**Type** | Pointer to **string** | | [optional]
|
||||
**UpdatedAt** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Items** | Pointer to [**[]DtoJob**](DtoJob.md) | | [optional]
|
||||
**Page** | Pointer to **int32** | example: 1 | [optional]
|
||||
**PageSize** | Pointer to **int32** | example: 25 | [optional]
|
||||
**Total** | Pointer to **int32** | example: 120 | [optional]
|
||||
**Page** | Pointer to **int32** | | [optional]
|
||||
**PageSize** | Pointer to **int32** | | [optional]
|
||||
**Total** | Pointer to **int32** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Failed** | Pointer to **int32** | example: 5 | [optional]
|
||||
**Name** | Pointer to **string** | example: default | [optional]
|
||||
**Pending** | Pointer to **int32** | example: 42 | [optional]
|
||||
**Running** | Pointer to **int32** | example: 3 | [optional]
|
||||
**Scheduled** | Pointer to **int32** | example: 7 | [optional]
|
||||
**Failed** | Pointer to **int32** | | [optional]
|
||||
**Name** | Pointer to **string** | | [optional]
|
||||
**Pending** | Pointer to **int32** | | [optional]
|
||||
**Running** | Pointer to **int32** | | [optional]
|
||||
**Scheduled** | Pointer to **int32** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
|
||||
@@ -19,28 +19,17 @@ var _ MappedNullable = &DtoJob{}
|
||||
|
||||
// DtoJob struct for DtoJob
|
||||
type DtoJob struct {
|
||||
// example: 0
|
||||
Attempts *int32 `json:"attempts,omitempty"`
|
||||
// example: 2025-11-04T09:30:00Z
|
||||
CreatedAt *string `json:"created_at,omitempty"`
|
||||
// example: 01HF7SZK8Z8WG1M3J7S2Z8M2N6
|
||||
Id *string `json:"id,omitempty"`
|
||||
// example: dial tcp: i/o timeout
|
||||
LastError *string `json:"last_error,omitempty"`
|
||||
// example: 3
|
||||
MaxAttempts *int32 `json:"max_attempts,omitempty"`
|
||||
// arbitrary JSON payload
|
||||
Payload map[string]interface{} `json:"payload,omitempty"`
|
||||
// example: default
|
||||
Queue *string `json:"queue,omitempty"`
|
||||
// example: 2025-11-05T08:00:00Z
|
||||
RunAt *string `json:"run_at,omitempty"`
|
||||
// enum: queued,running,succeeded,failed,canceled,retrying,scheduled example: queued
|
||||
Status *DtoJobStatus `json:"status,omitempty"`
|
||||
// example: email.send
|
||||
Type *string `json:"type,omitempty"`
|
||||
// example: 2025-11-04T09:31:00Z
|
||||
UpdatedAt *string `json:"updated_at,omitempty"`
|
||||
Attempts *int32 `json:"attempts,omitempty"`
|
||||
CreatedAt *string `json:"created_at,omitempty"`
|
||||
Id *string `json:"id,omitempty"`
|
||||
LastError *string `json:"last_error,omitempty"`
|
||||
MaxAttempts *int32 `json:"max_attempts,omitempty"`
|
||||
Payload map[string]interface{} `json:"payload,omitempty"`
|
||||
Queue *string `json:"queue,omitempty"`
|
||||
RunAt *string `json:"run_at,omitempty"`
|
||||
Status *DtoJobStatus `json:"status,omitempty"`
|
||||
Type *string `json:"type,omitempty"`
|
||||
UpdatedAt *string `json:"updated_at,omitempty"`
|
||||
}
|
||||
|
||||
// NewDtoJob instantiates a new DtoJob object
|
||||
|
||||
@@ -19,13 +19,10 @@ var _ MappedNullable = &DtoPageJob{}
|
||||
|
||||
// DtoPageJob struct for DtoPageJob
|
||||
type DtoPageJob struct {
|
||||
Items []DtoJob `json:"items,omitempty"`
|
||||
// example: 1
|
||||
Page *int32 `json:"page,omitempty"`
|
||||
// example: 25
|
||||
PageSize *int32 `json:"page_size,omitempty"`
|
||||
// example: 120
|
||||
Total *int32 `json:"total,omitempty"`
|
||||
Items []DtoJob `json:"items,omitempty"`
|
||||
Page *int32 `json:"page,omitempty"`
|
||||
PageSize *int32 `json:"page_size,omitempty"`
|
||||
Total *int32 `json:"total,omitempty"`
|
||||
}
|
||||
|
||||
// NewDtoPageJob instantiates a new DtoPageJob object
|
||||
|
||||
@@ -19,16 +19,11 @@ var _ MappedNullable = &DtoQueueInfo{}
|
||||
|
||||
// DtoQueueInfo struct for DtoQueueInfo
|
||||
type DtoQueueInfo struct {
|
||||
// example: 5
|
||||
Failed *int32 `json:"failed,omitempty"`
|
||||
// example: default
|
||||
Name *string `json:"name,omitempty"`
|
||||
// example: 42
|
||||
Pending *int32 `json:"pending,omitempty"`
|
||||
// example: 3
|
||||
Running *int32 `json:"running,omitempty"`
|
||||
// example: 7
|
||||
Scheduled *int32 `json:"scheduled,omitempty"`
|
||||
Failed *int32 `json:"failed,omitempty"`
|
||||
Name *string `json:"name,omitempty"`
|
||||
Pending *int32 `json:"pending,omitempty"`
|
||||
Running *int32 `json:"running,omitempty"`
|
||||
Scheduled *int32 `json:"scheduled,omitempty"`
|
||||
}
|
||||
|
||||
// NewDtoQueueInfo instantiates a new DtoQueueInfo object
|
||||
|
||||
@@ -247,11 +247,11 @@ example().catch(console.error);
|
||||
|
||||
## listAnnotations
|
||||
|
||||
> Array<DtoAnnotationResponse> listAnnotations(xOrgID, name, value, q)
|
||||
> Array<DtoAnnotationResponse> listAnnotations(xOrgID, key, value, q)
|
||||
|
||||
List annotations (org scoped)
|
||||
|
||||
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.
|
||||
|
||||
### Example
|
||||
|
||||
@@ -274,11 +274,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;
|
||||
|
||||
@@ -296,12 +296,12 @@ example().catch(console.error);
|
||||
|
||||
### Parameters
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
| ---------- | -------- | -------------------------------- | ------------------------------------ |
|
||||
| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] |
|
||||
| **name** | `string` | Exact name | [Optional] [Defaults to `undefined`] |
|
||||
| **value** | `string` | Exact value | [Optional] [Defaults to `undefined`] |
|
||||
| **q** | `string` | name contains (case-insensitive) | [Optional] [Defaults to `undefined`] |
|
||||
| Name | Type | Description | Notes |
|
||||
| ---------- | -------- | ------------------------------- | ------------------------------------ |
|
||||
| **xOrgID** | `string` | Organization UUID | [Optional] [Defaults to `undefined`] |
|
||||
| **key** | `string` | Exact key | [Optional] [Defaults to `undefined`] |
|
||||
| **value** | `string` | Exact value | [Optional] [Defaults to `undefined`] |
|
||||
| **q** | `string` | key contains (case-insensitive) | [Optional] [Defaults to `undefined`] |
|
||||
|
||||
### Return type
|
||||
|
||||
|
||||
@@ -19,32 +19,32 @@
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { DtoJob } from "@glueops/autoglue-sdk-go";
|
||||
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,
|
||||
payload: null,
|
||||
queue: null,
|
||||
run_at: null,
|
||||
status: null,
|
||||
type: null,
|
||||
updated_at: null,
|
||||
} satisfies DtoJob;
|
||||
"attempts": 0,
|
||||
"created_at": 2025-11-04T09:30:00Z,
|
||||
"id": 01HF7SZK8Z8WG1M3J7S2Z8M2N6,
|
||||
"last_error": error message,
|
||||
"max_attempts": 3,
|
||||
"payload": null,
|
||||
"queue": default,
|
||||
"run_at": 2025-11-04T09:30:00Z,
|
||||
"status": null,
|
||||
"type": email.send,
|
||||
"updated_at": 2025-11-04T09:30:00Z,
|
||||
} satisfies DtoJob
|
||||
|
||||
console.log(example);
|
||||
console.log(example)
|
||||
|
||||
// Convert the instance to a JSON string
|
||||
const exampleJSON: string = JSON.stringify(example);
|
||||
console.log(exampleJSON);
|
||||
const exampleJSON: string = JSON.stringify(example)
|
||||
console.log(exampleJSON)
|
||||
|
||||
// Parse the JSON string back to an object
|
||||
const exampleParsed = JSON.parse(exampleJSON) as DtoJob;
|
||||
console.log(exampleParsed);
|
||||
const exampleParsed = JSON.parse(exampleJSON) as DtoJob
|
||||
console.log(exampleParsed)
|
||||
```
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
||||
|
||||
@@ -17,9 +17,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);
|
||||
|
||||
@@ -13,26 +13,26 @@
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import type { DtoQueueInfo } from "@glueops/autoglue-sdk-go";
|
||||
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,
|
||||
} satisfies DtoQueueInfo;
|
||||
"failed": 5,
|
||||
"name": default,
|
||||
"pending": 42,
|
||||
"running": 3,
|
||||
"scheduled": 7,
|
||||
} satisfies DtoQueueInfo
|
||||
|
||||
console.log(example);
|
||||
console.log(example)
|
||||
|
||||
// Convert the instance to a JSON string
|
||||
const exampleJSON: string = JSON.stringify(example);
|
||||
console.log(exampleJSON);
|
||||
const exampleJSON: string = JSON.stringify(example)
|
||||
console.log(exampleJSON)
|
||||
|
||||
// Parse the JSON string back to an object
|
||||
const exampleParsed = JSON.parse(exampleJSON) as DtoQueueInfo;
|
||||
console.log(exampleParsed);
|
||||
const exampleParsed = JSON.parse(exampleJSON) as DtoQueueInfo
|
||||
console.log(exampleParsed)
|
||||
```
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
||||
|
||||
@@ -44,7 +44,7 @@ export interface GetAnnotationRequest {
|
||||
|
||||
export interface ListAnnotationsRequest {
|
||||
xOrgID?: string;
|
||||
name?: string;
|
||||
key?: string;
|
||||
value?: string;
|
||||
q?: string;
|
||||
}
|
||||
@@ -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 listAnnotationsRaw(
|
||||
@@ -292,8 +292,8 @@ export class AnnotationsApi extends runtime.BaseAPI {
|
||||
): 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) {
|
||||
@@ -343,7 +343,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(
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user