|
| 1 | +import "./model.tsp"; |
| 2 | +import "../../models/channels/model.tsp"; |
| 3 | +import "../../models/common/model.tsp"; |
| 4 | + |
| 5 | +const exampleChannel: Channel = #{ |
| 6 | + kind: "Channel", |
| 7 | + id: "019466a2-1234-7abc-9def-0123456789ab", |
| 8 | + href: "https://api.hyperfleet.com/v1/channels/019466a2-1234-7abc-9def-0123456789ab", |
| 9 | + name: "stable", |
| 10 | + labels: #{ tier: "production" }, |
| 11 | + spec: #{ |
| 12 | + is_default: true, |
| 13 | + enabled_regex: "^4\\.\\d+\\.\\d+$", |
| 14 | + }, |
| 15 | + generation: 1, |
| 16 | + created_time: "2021-01-01T00:00:00Z", |
| 17 | + updated_time: "2021-01-01T10:02:00Z", |
| 18 | + created_by: "user-123@example.com", |
| 19 | + updated_by: "user-123@example.com", |
| 20 | +}; |
| 21 | + |
| 22 | +const exampleDeletedChannel: Channel = #{ |
| 23 | + kind: "Channel", |
| 24 | + id: "019466a2-1234-7abc-9def-0123456789ab", |
| 25 | + href: "https://api.hyperfleet.com/v1/channels/019466a2-1234-7abc-9def-0123456789ab", |
| 26 | + name: "stable", |
| 27 | + labels: #{ tier: "production" }, |
| 28 | + spec: #{ |
| 29 | + is_default: true, |
| 30 | + enabled_regex: "^4\\.\\d+\\.\\d+$", |
| 31 | + }, |
| 32 | + generation: 2, |
| 33 | + created_time: "2021-01-01T00:00:00Z", |
| 34 | + updated_time: "2021-01-01T10:02:00Z", |
| 35 | + deleted_time: "2021-01-01T10:05:00Z", |
| 36 | + created_by: "user-123@example.com", |
| 37 | + updated_by: "user-123@example.com", |
| 38 | + deleted_by: "user-123@example.com", |
| 39 | +}; |
0 commit comments