Skip to content

Commit 0a4ce2d

Browse files
authored
feat(instance): fix volume template project oneof (#561)
1 parent 2b04a21 commit 0a4ce2d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

api/instance/v1/instance_sdk.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,9 +1316,11 @@ type VolumeTemplate struct {
13161316
// Default value: l_ssd
13171317
VolumeType VolumeVolumeType `json:"volume_type,omitempty"`
13181318
// Organization: organization ID of the volume
1319-
Organization string `json:"organization,omitempty"`
1319+
// Precisely one of Organization, Project must be set.
1320+
Organization *string `json:"organization,omitempty"`
13201321
// Project: project ID of the volume
1321-
Project string `json:"project,omitempty"`
1322+
// Precisely one of Organization, Project must be set.
1323+
Project *string `json:"project,omitempty"`
13221324
}
13231325

13241326
type VolumeType struct {

0 commit comments

Comments
 (0)