Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 6 additions & 0 deletions openstack/ims/v2/cloudimages/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ type CreateByServerOpts struct {
MaxRam int `json:"max_ram,omitempty"`
// the minimum memory of the image in the unit of MB
MinRam int `json:"min_ram,omitempty"`
// Enterprise project ID
EnterpriseProjectID string `json:"enterprise_project_id,omitempty"`
}

// CreateOpts represents options used to create an image.
Expand Down Expand Up @@ -169,6 +171,8 @@ type CreateByOBSOpts struct {
MaxRam int `json:"max_ram,omitempty"`
// the minimum memory of the image in the unit of MB
MinRam int `json:"min_ram,omitempty"`
// Enterprise project ID
EnterpriseProjectID string `json:"enterprise_project_id,omitempty"`
}

// CreateOpts represents options used to create an image.
Expand All @@ -191,6 +195,8 @@ type CreateDataImageByOBSOpts struct {
MinDisk int `json:"min_disk" required:"true"`
// the master key used for encrypting an image
CmkId string `json:"cmk_id,omitempty"`
// Enterprise project ID
EnterpriseProjectID string `json:"enterprise_project_id,omitempty"`
}

type DataImage struct {
Expand Down
2 changes: 2 additions & 0 deletions openstack/ims/v2/cloudimages/results.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ type Image struct {
MinDisk int `json:"min_disk"`
// the environment where the image is used
VirtualEnvType string `json:"virtual_env_type"`
// Enterprise project ID
EnterpriseProjectID string `json:"enterprise_project_id"`
// *size, virtual_size and checksum parameter are unavailable currently*
Size int64 `json:"size"`
VirtualSize int `json:"virtual_size"`
Expand Down