Skip to content

Commit d832801

Browse files
authored
fix(instance): change two types as nullable (#1497)
1 parent 14cf8da commit d832801

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/instance/v1/instance_sdk.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2720,7 +2720,7 @@ type CreateImageRequest struct {
27202720
// Default value: x86_64
27212721
Arch Arch `json:"arch"`
27222722
// DefaultBootscript: default bootscript of the image
2723-
DefaultBootscript string `json:"default_bootscript,omitempty"`
2723+
DefaultBootscript *string `json:"default_bootscript,omitempty"`
27242724
// ExtraVolumes: additional volumes of the image
27252725
ExtraVolumes map[string]*VolumeTemplate `json:"extra_volumes,omitempty"`
27262726
// Deprecated: Organization: organization ID of the image
@@ -2732,7 +2732,7 @@ type CreateImageRequest struct {
27322732
// Tags: the tags of the image
27332733
Tags []string `json:"tags,omitempty"`
27342734
// Public: true to create a public image
2735-
Public bool `json:"public,omitempty"`
2735+
Public *bool `json:"public,omitempty"`
27362736
}
27372737

27382738
// CreateImage: create an instance image

0 commit comments

Comments
 (0)