Skip to content

Commit

Permalink
Merge branch 'image-struct-change' into 'dev'
Browse files Browse the repository at this point in the history
Image struct change

See merge request cycle/node-api-client!158
  • Loading branch information
Grady-Saccullo committed Dec 16, 2021
2 parents c64f0c9 + 05fe761 commit 3f4ba3c
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## [1.11.2-19](https://github.com/cycleplatform/api-client-nodejs/compare/v1.11.2-18...v1.11.2-19) (2021-12-09)


### Features

* **image struct:** gpu support inside new requires image field ([a388276](https://github.com/cycleplatform/api-client-nodejs/commit/a388276dff5ad3f1caddb395576f91ef27546617))



## [1.11.2-18](https://github.com/cycleplatform/api-client-nodejs/compare/v1.11.2-17...v1.11.2-18) (2021-10-18)


Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cycleplatform/cycle-api",
"version": "1.11.2-18",
"version": "1.11.2-19",
"description": "Cycle API Client",
"author": "Petrichor, Inc.",
"license": "Apache-2.0",
Expand Down
7 changes: 7 additions & 0 deletions src/resources/images/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export interface Image extends Resource<Metas> {
size: Bytes;
about?: About;
backend: Backend;
requires: Requires;
tags: string[];
config: Config;
source: Source;
Expand All @@ -49,12 +50,18 @@ export type States =
| "deleted";

export type State = StateBase<States>;

export interface Backend {
provider: string;
file_name: string;
file_id: string;
size: Bytes;
}

export interface Requires {
nvidia_gpu: boolean | null;
}

export interface Source {
type: SourceType;
details: SourceDetails;
Expand Down

0 comments on commit 3f4ba3c

Please sign in to comment.