From c40ff83bed1e392c81229bf8b88cc38502d2a8ce Mon Sep 17 00:00:00 2001
From: Mahesh N <mahesh2@hpe.com>
Date: Thu, 7 Nov 2024 16:47:25 +0530
Subject: [PATCH] Update MaxStorage datatype to int64

---
 pkg/models/instances.go | 8 ++++----
 pkg/models/plans.go     | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/pkg/models/instances.go b/pkg/models/instances.go
index 7396e0a..9833a86 100644
--- a/pkg/models/instances.go
+++ b/pkg/models/instances.go
@@ -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"`
 }
 
@@ -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"`
diff --git a/pkg/models/plans.go b/pkg/models/plans.go
index 46152cc..455a3a1 100644
--- a/pkg/models/plans.go
+++ b/pkg/models/plans.go
@@ -1,4 +1,4 @@
-// (C) Copyright 2021 Hewlett Packard Enterprise Development LP
+// (C) Copyright 2021-2024 Hewlett Packard Enterprise Development LP
 
 package models
 
@@ -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"`