Skip to content

Commit

Permalink
Merge pull request #83 from HewlettPackard/update-instance-datatype
Browse files Browse the repository at this point in the history
Update MaxStorage datatype to int64
  • Loading branch information
reubenur-rahman authored Nov 7, 2024
2 parents 5e287d9 + c40ff83 commit a6b16f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions pkg/models/instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -585,8 +585,8 @@ type GetInstanceContainer struct {
ContainerType NameModel `json:"containerType" tf:"container_type,sub"`
Server GetInstanceContainersServer `json:"server" tf:"server,sub"`
Hostname string `json:"hostname" tf:"hostname"`
MaxStorage int `json:"maxStorage" tf:"max_storage"`
MaxMemory int `json:"maxMemory" tf:"max_memory"`
MaxStorage int64 `json:"maxStorage" tf:"max_storage"`
MaxMemory int64 `json:"maxMemory" tf:"max_memory"`
MaxCores int `json:"maxCores" tf:"max_cores"`
}

Expand Down Expand Up @@ -616,8 +616,8 @@ type InstancePlanResponse struct {
Name string `json:"name"`
Value int `json:"value"`
Code string `json:"code"`
MaxStorage int `json:"maxStorage"`
MaxMemory int `json:"maxMemory"`
MaxStorage int64 `json:"maxStorage"`
MaxMemory int64 `json:"maxMemory"`
MaxCPU interface{} `json:"maxCpu"`
MaxCores int `json:"maxCores"`
CustomCPU bool `json:"customCpu"`
Expand Down
4 changes: 2 additions & 2 deletions pkg/models/plans.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// (C) Copyright 2021 Hewlett Packard Enterprise Development LP
// (C) Copyright 2021-2024 Hewlett Packard Enterprise Development LP

package models

Expand All @@ -17,7 +17,7 @@ type ServicePlanResponse struct {
Active bool `json:"active"`
SortOrder int `json:"sortOrder"`
Description interface{} `json:"description"`
MaxStorage int `json:"maxStorage"`
MaxStorage int64 `json:"maxStorage"`
MaxMemory int64 `json:"maxMemory"`
MaxCPU interface{} `json:"maxCpu"`
MaxCores int `json:"maxCores"`
Expand Down

0 comments on commit a6b16f1

Please sign in to comment.