mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 21:00:06 +01:00
45 lines
1.1 KiB
Markdown
45 lines
1.1 KiB
Markdown
# ModelsUser
|
|
|
|
## Properties
|
|
|
|
| Name | Type |
|
|
| --------------- | ------- |
|
|
| `avatar_url` | string |
|
|
| `created_at` | Date |
|
|
| `display_name` | string |
|
|
| `id` | string |
|
|
| `is_admin` | boolean |
|
|
| `is_disabled` | boolean |
|
|
| `primary_email` | string |
|
|
| `updated_at` | Date |
|
|
|
|
## Example
|
|
|
|
```typescript
|
|
import type { ModelsUser } from "@glueops/autoglue-sdk-go";
|
|
|
|
// TODO: Update the object below with actual values
|
|
const example = {
|
|
avatar_url: null,
|
|
created_at: null,
|
|
display_name: null,
|
|
id: null,
|
|
is_admin: null,
|
|
is_disabled: null,
|
|
primary_email: null,
|
|
updated_at: null,
|
|
} satisfies ModelsUser;
|
|
|
|
console.log(example);
|
|
|
|
// Convert the instance to a JSON string
|
|
const exampleJSON: string = JSON.stringify(example);
|
|
console.log(exampleJSON);
|
|
|
|
// Parse the JSON string back to an object
|
|
const exampleParsed = JSON.parse(exampleJSON) as ModelsUser;
|
|
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)
|