Skip to content

Commit

Permalink
Merge branch 'cloud-barista:master' into issue_1396_metadata_vmspec
Browse files Browse the repository at this point in the history
  • Loading branch information
MZC-CSC authored Dec 23, 2024
2 parents 1d1cae4 + 42d3309 commit 079cf25
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions api/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -8461,7 +8461,7 @@ const docTemplate = `{
"IId",
"Name",
"OSArchitecture",
"OSDiskSize",
"OSDiskSizeInGB",
"OSDiskType",
"OSDistribution",
"OSPlatform",
Expand Down Expand Up @@ -8502,7 +8502,7 @@ const docTemplate = `{
],
"example": "x86_64"
},
"OSDiskSize": {
"OSDiskSizeInGB": {
"description": "35, etc., GB",
"type": "string",
"example": "35"
Expand Down
4 changes: 2 additions & 2 deletions api/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -8458,7 +8458,7 @@
"IId",
"Name",
"OSArchitecture",
"OSDiskSize",
"OSDiskSizeInGB",
"OSDiskType",
"OSDistribution",
"OSPlatform",
Expand Down Expand Up @@ -8499,7 +8499,7 @@
],
"example": "x86_64"
},
"OSDiskSize": {
"OSDiskSizeInGB": {
"description": "35, etc., GB",
"type": "string",
"example": "35"
Expand Down
4 changes: 2 additions & 2 deletions api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ definitions:
- $ref: '#/definitions/spider.OSArchitecture'
description: arm64, x86_64 etc.
example: x86_64
OSDiskSize:
OSDiskSizeInGB:
description: 35, etc., GB
example: "35"
type: string
Expand All @@ -372,7 +372,7 @@ definitions:
- IId
- Name
- OSArchitecture
- OSDiskSize
- OSDiskSizeInGB
- OSDiskType
- OSDistribution
- OSPlatform
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (imageHandler *AwsImageHandler) CreateImage(imageReqInfo irs.ImageReqInfo)
OSPlatform: "Linux/UNIX",
OSDistribution: "Ubuntu 18.04",
OSDiskType: "gp3",
OSDiskSize: "35",
OSDiskSizeInGB: "35",
Status: "Available",
KeyValueList: nil,
}, nil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (imageHandler *DockerImageHandler) CreateImage(imageReqInfo irs.ImageReqInf
OSPlatform: "Linux/UNIX",
OSDistribution: "Ubuntu 18.04",
OSDiskType: "gp3",
OSDiskSize: "35",
OSDiskSizeInGB: "35",
Status: "Available",
KeyValueList: nil,
}, nil
Expand Down Expand Up @@ -161,7 +161,7 @@ func (imageHandler *DockerImageHandler) ListImage() ([]*irs.ImageInfo, error) {
OSPlatform: "Linux/UNIX",
OSDistribution: "Ubuntu 18.04",
OSDiskType: "gp3",
OSDiskSize: "35",
OSDiskSizeInGB: "35",
Status: "Available",
KeyValueList: nil,
}
Expand All @@ -188,7 +188,7 @@ func (imageHandler *DockerImageHandler) GetImage(imageIID irs.IID) (irs.ImageInf
OSPlatform: "Linux/UNIX",
OSDistribution: "Ubuntu 18.04",
OSDiskType: "gp3",
OSDiskSize: "35",
OSDiskSizeInGB: "35",
Status: "Available",
KeyValueList: nil,
}, nil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func PrepareVMImage(mockName string) {
OSPlatform: "Linux/UNIX",
OSDistribution: "Ubuntu 18.04",
OSDiskType: "gp3",
OSDiskSize: "35",
OSDiskSizeInGB: "35",
Status: "Available",
KeyValueList: nil,
},
Expand All @@ -61,7 +61,7 @@ func PrepareVMImage(mockName string) {
OSPlatform: "Linux/UNIX",
OSDistribution: "CentOS 8",
OSDiskType: "gp3",
OSDiskSize: "40",
OSDiskSizeInGB: "40",
Status: "Available",
KeyValueList: nil,
},
Expand All @@ -73,7 +73,7 @@ func PrepareVMImage(mockName string) {
OSPlatform: "Windows",
OSDistribution: "Windows Server 2019",
OSDiskType: "gp3",
OSDiskSize: "50",
OSDiskSizeInGB: "50",
Status: "Available",
KeyValueList: nil,
},
Expand All @@ -85,7 +85,7 @@ func PrepareVMImage(mockName string) {
OSPlatform: "Linux/UNIX",
OSDistribution: "Ubuntu 22.04",
OSDiskType: "gp3",
OSDiskSize: "35",
OSDiskSizeInGB: "35",
Status: "Available",
KeyValueList: nil,
},
Expand All @@ -97,7 +97,7 @@ func PrepareVMImage(mockName string) {
OSPlatform: "Linux/UNIX",
OSDistribution: "Amazon Linux 2",
OSDiskType: "gp3",
OSDiskSize: "30",
OSDiskSizeInGB: "30",
Status: "Available",
KeyValueList: nil,
},
Expand All @@ -124,7 +124,7 @@ func (imageHandler *MockImageHandler) CreateImage(imageReqInfo irs.ImageReqInfo)
OSPlatform: "Linux/UNIX",
OSDistribution: "Ubuntu 18.04",
OSDiskType: "gp3",
OSDiskSize: "35",
OSDiskSizeInGB: "35",
Status: "Available",
KeyValueList: nil,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ type ImageInfo struct {
OSPlatform OSPlatform `json:"OSPlatform" validate:"required" example:"Linux/UNIX" description:"The platform of the operating system of the image."` // Linux/UNIX, Windows, NA
OSDistribution string `json:"OSDistribution" validate:"required" example:"Ubuntu 22.04~" description:"The distribution of the operating system of the image."` // Ubuntu 22.04~, CentOS 8 etc.
OSDiskType string `json:"OSDiskType" validate:"required" example:"gp3" description:"The type of the disk of the image."` // gp3, etc.
OSDiskSize string `json:"OSDiskSize" validate:"required" example:"35" description:"The size of the disk of the image."` // 35, etc., GB
OSDiskSizeInGB string `json:"OSDiskSizeInGB" validate:"required" example:"35" description:"The size of the disk of the image."` // 35, etc., GB
ImageStatus ImageStatus `json:"Status" validate:"required" example:"Available" description:"The status of the image, e.g., Available or Unavailable."` // Available, Unavailable

KeyValueList []KeyValue `json:"KeyValueList,omitempty" validate:"omitempty" description:"A list of key-value pairs associated with the image."`
Expand Down

0 comments on commit 079cf25

Please sign in to comment.