Skip to content

Commit 73e25e6

Browse files
feat(api): api update
1 parent 91cda6d commit 73e25e6

3 files changed

Lines changed: 15 additions & 15 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 13
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/the-san-francisco-compute-company/sfc-nodes-d77bec75d31462e0bc321888fb26cfc72dfdaad79951224c5409c9941b4b9dea.yml
3-
openapi_spec_hash: 63fda7c20845400a48f45dc944a6e57b
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/the-san-francisco-compute-company/sfc-nodes-8cf6773644c62ac11c64a98531370e4e0b06e7e7a281c89792038a840bfb3a97.yml
3+
openapi_spec_hash: 7bdbc104d46766f5a610eec054a52ca9
44
config_hash: a187153315a646ecf95709ee4a223df5

src/resources/nodes.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ export interface CreateNodesRequest {
120120
*/
121121
max_price_per_node_hour: number;
122122

123+
/**
124+
* **Experimental — subject to change or removal without notice.** Enables
125+
* InfiniBand. Requires hardware in the chosen zone that supports InfiniBand.
126+
*/
127+
_preview_enable_infiniband?: boolean;
128+
123129
/**
124130
* Allow auto reserved nodes to be created in any zone that meets the requirements
125131
*/
@@ -131,12 +137,6 @@ export interface CreateNodesRequest {
131137
*/
132138
cloud_init_user_data?: string;
133139

134-
/**
135-
* **Experimental — subject to change or removal without notice.** Enables
136-
* InfiniBand. Requires hardware in the chosen zone that supports InfiniBand.
137-
*/
138-
enable_infiniband?: boolean;
139-
140140
/**
141141
* End time as Unix timestamp in seconds If provided, end time must be aligned to
142142
* the hour If not provided, the node will be created as an autoreserved node
@@ -474,6 +474,12 @@ export interface NodeCreateParams {
474474
*/
475475
max_price_per_node_hour: number;
476476

477+
/**
478+
* **Experimental — subject to change or removal without notice.** Enables
479+
* InfiniBand. Requires hardware in the chosen zone that supports InfiniBand.
480+
*/
481+
_preview_enable_infiniband?: boolean;
482+
477483
/**
478484
* Allow auto reserved nodes to be created in any zone that meets the requirements
479485
*/
@@ -485,12 +491,6 @@ export interface NodeCreateParams {
485491
*/
486492
cloud_init_user_data?: string;
487493

488-
/**
489-
* **Experimental — subject to change or removal without notice.** Enables
490-
* InfiniBand. Requires hardware in the chosen zone that supports InfiniBand.
491-
*/
492-
enable_infiniband?: boolean;
493-
494494
/**
495495
* End time as Unix timestamp in seconds If provided, end time must be aligned to
496496
* the hour If not provided, the node will be created as an autoreserved node

tests/api-resources/nodes.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ describe('resource nodes', () => {
2525
const response = await client.nodes.create({
2626
desired_count: 1,
2727
max_price_per_node_hour: 1600,
28+
_preview_enable_infiniband: false,
2829
any_zone: false,
2930
cloud_init_user_data: 'aGVsbG8gd29ybGQ=',
30-
enable_infiniband: false,
3131
end_at: 0,
3232
forward_443: false,
3333
image_id: 'image_1234567890abcdef',

0 commit comments

Comments
 (0)