Skip to content

Commit eb93c6d

Browse files
feat(api): api update
1 parent 0ae17e1 commit eb93c6d

3 files changed

Lines changed: 17 additions & 17 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

node.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,14 @@ type CreateNodesRequestParam struct {
135135
// End time as Unix timestamp in seconds If provided, end time must be aligned to
136136
// the hour If not provided, the node will be created as an autoreserved node
137137
EndAt param.Opt[int64] `json:"end_at,omitzero"`
138+
// **Experimental — subject to change or removal without notice.** Enables
139+
// InfiniBand. Requires hardware in the chosen zone that supports InfiniBand.
140+
PreviewEnableInfiniband param.Opt[bool] `json:"_preview_enable_infiniband,omitzero"`
138141
// Allow auto reserved nodes to be created in any zone that meets the requirements
139142
AnyZone param.Opt[bool] `json:"any_zone,omitzero"`
140143
// User script to be executed during the VM's boot process Data should be base64
141144
// encoded
142145
CloudInitUserData param.Opt[string] `json:"cloud_init_user_data,omitzero" format:"byte"`
143-
// **Experimental — subject to change or removal without notice.** Enables
144-
// InfiniBand. Requires hardware in the chosen zone that supports InfiniBand.
145-
EnableInfiniband param.Opt[bool] `json:"enable_infiniband,omitzero"`
146146
// (Optional) If set, enables forwarding to the VM on port 443.
147147
Forward443 param.Opt[bool] `json:"forward_443,omitzero"`
148148
// Custom image ID to use for the VM instances

node_test.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,18 @@ func TestNodeNewWithOptionalParams(t *testing.T) {
2828
)
2929
_, err := client.Nodes.New(context.TODO(), sfcnodes.NodeNewParams{
3030
CreateNodesRequest: sfcnodes.CreateNodesRequestParam{
31-
DesiredCount: 1,
32-
MaxPricePerNodeHour: 1600,
33-
AnyZone: sfcnodes.Bool(false),
34-
CloudInitUserData: sfcnodes.String("aGVsbG8gd29ybGQ="),
35-
EnableInfiniband: sfcnodes.Bool(false),
36-
EndAt: sfcnodes.Int(0),
37-
Forward443: sfcnodes.Bool(false),
38-
ImageID: sfcnodes.String("image_1234567890abcdef"),
39-
Names: []string{"cuda-crunch"},
40-
NodeType: sfcnodes.NodeTypeAutoreserved,
41-
StartAt: sfcnodes.Int(1640995200),
42-
Zone: sfcnodes.String("hayesvalley"),
31+
DesiredCount: 1,
32+
MaxPricePerNodeHour: 1600,
33+
PreviewEnableInfiniband: sfcnodes.Bool(false),
34+
AnyZone: sfcnodes.Bool(false),
35+
CloudInitUserData: sfcnodes.String("aGVsbG8gd29ybGQ="),
36+
EndAt: sfcnodes.Int(0),
37+
Forward443: sfcnodes.Bool(false),
38+
ImageID: sfcnodes.String("image_1234567890abcdef"),
39+
Names: []string{"cuda-crunch"},
40+
NodeType: sfcnodes.NodeTypeAutoreserved,
41+
StartAt: sfcnodes.Int(1640995200),
42+
Zone: sfcnodes.String("hayesvalley"),
4343
},
4444
})
4545
if err != nil {

0 commit comments

Comments
 (0)