Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

chore: provide resource pool id and namespace in env create #258

Merged
merged 3 commits into from
Mar 5, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! chore: provide resource pool id and namespace in env create
  • Loading branch information
cmoog committed Mar 5, 2021
commit 05d1932faa4898768c3edc52f194ac4e1d7f6823
13 changes: 6 additions & 7 deletions coder-sdk/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,12 @@ func (c *DefaultClient) StopEnvironment(ctx context.Context, envID string) error
// UpdateEnvironmentReq defines the update operation, only setting
// nil-fields.
type UpdateEnvironmentReq struct {
ImageID *string `json:"image_id"`
ImageTag *string `json:"image_tag"`
CPUCores *float32 `json:"cpu_cores"`
MemoryGB *float32 `json:"memory_gb"`
DiskGB *int `json:"disk_gb"`
GPUs *int `json:"gpus"`
CodeServerReleaseURL *string `json:"code_server_release_url"`
ImageID *string `json:"image_id"`
ImageTag *string `json:"image_tag"`
CPUCores *float32 `json:"cpu_cores"`
MemoryGB *float32 `json:"memory_gb"`
DiskGB *int `json:"disk_gb"`
GPUs *int `json:"gpus"`
}

// RebuildEnvironment requests that the given envID is rebuilt with no changes to its specification.
Expand Down