Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update MaxStorage datatype to int64 #83

Merged
merged 1 commit into from
Nov 7, 2024
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
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
Loading