mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 04:40:05 +01:00
feat: build taint datasource and taint resource with minor patch to taint Response DTO
This commit is contained in:
@@ -6,9 +6,12 @@
|
||||
|
||||
Name | Type
|
||||
------------ | -------------
|
||||
`created_at` | string
|
||||
`effect` | string
|
||||
`id` | string
|
||||
`key` | string
|
||||
`organization_id` | string
|
||||
`updated_at` | string
|
||||
`value` | string
|
||||
|
||||
## Example
|
||||
@@ -18,9 +21,12 @@ import type { DtoTaintResponse } from '@glueops/autoglue-sdk-go'
|
||||
|
||||
// TODO: Update the object below with actual values
|
||||
const example = {
|
||||
"created_at": null,
|
||||
"effect": null,
|
||||
"id": null,
|
||||
"key": null,
|
||||
"organization_id": null,
|
||||
"updated_at": null,
|
||||
"value": null,
|
||||
} satisfies DtoTaintResponse
|
||||
|
||||
|
||||
@@ -19,6 +19,12 @@ import { mapValues } from '../runtime';
|
||||
* @interface DtoTaintResponse
|
||||
*/
|
||||
export interface DtoTaintResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoTaintResponse
|
||||
*/
|
||||
created_at?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
@@ -37,6 +43,18 @@ export interface DtoTaintResponse {
|
||||
* @memberof DtoTaintResponse
|
||||
*/
|
||||
key?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoTaintResponse
|
||||
*/
|
||||
organization_id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoTaintResponse
|
||||
*/
|
||||
updated_at?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
@@ -62,9 +80,12 @@ export function DtoTaintResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
|
||||
}
|
||||
return {
|
||||
|
||||
'created_at': json['created_at'] == null ? undefined : json['created_at'],
|
||||
'effect': json['effect'] == null ? undefined : json['effect'],
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'key': json['key'] == null ? undefined : json['key'],
|
||||
'organization_id': json['organization_id'] == null ? undefined : json['organization_id'],
|
||||
'updated_at': json['updated_at'] == null ? undefined : json['updated_at'],
|
||||
'value': json['value'] == null ? undefined : json['value'],
|
||||
};
|
||||
}
|
||||
@@ -80,9 +101,12 @@ export function DtoTaintResponseToJSONTyped(value?: DtoTaintResponse | null, ign
|
||||
|
||||
return {
|
||||
|
||||
'created_at': value['created_at'],
|
||||
'effect': value['effect'],
|
||||
'id': value['id'],
|
||||
'key': value['key'],
|
||||
'organization_id': value['organization_id'],
|
||||
'updated_at': value['updated_at'],
|
||||
'value': value['value'],
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user