Skip to main content
Home
Works with
This package works with Deno
This package works with Deno
JSR Score52%
Downloads13/wk
Published2 years ago (0.2.1)

Système de gestion des ressources de cohabit.

class Machine
extends Resource

Constructors

new
Machine(unnamed 0: Pick<Machine,
"tags"
| "url"
| "status"
| "avatar"
| "groups"
> & Pick<Resource,
"name"
| "uuid"
| "avatar"
| "createdAt"
| "updatedAt"
>
)

Properties

readonly
groups: readonly Ref<Group>[]
readonly
tags: readonly string[]
readonly
type: "machine"
readonly
url: UrlString

Methods

toJSON(): ResourceJson<Machine,
"tags"
| "url"
| "status"
> & ResourceRefJson<Machine, Group, "groups">
update(props: Partial<Omit<Machine,
"type"
| "uuid"
| "createdAt"
>>
): Machine

Static Methods

create(unnamed 0: Pick<Machine,
"name"
| "tags"
| "url"
| "status"
| "avatar"
| "groups"
>
): Machine
fromJSON(unnamed 0: ToJson<Machine>): Machine
load(unnamed 0: { name: Machine["name"]; avatar?: Machine["avatar"]; tags?: Machine["tags"]; url: Machine["url"]; status?: Machine["status"]; groups?: Machine["groups"]; }): Machine

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@cohabit/resources-manager

Import symbol

import { Machine } from "@cohabit/resources-manager/models";
or

Import directly with a jsr specifier

import { Machine } from "jsr:@cohabit/resources-manager/models";