@@ -146,7 +146,7 @@ var _ = Describe("Application", func() {
146146 Command : types.FilteredString {IsSet : true , Value : "some-command" },
147147 DetectedBuildpack : types.FilteredString {},
148148 DetectedStartCommand : types.FilteredString {IsSet : true , Value : "echo 'I am a banana'" },
149- DiskQuota : 586 ,
149+ DiskQuota : types. NullByteSizeInMb { IsSet : true , Value : 586 } ,
150150 DockerCredentials : DockerCredentials {
151151 Username : "docker-username" ,
152152 Password : "docker-password" ,
@@ -163,7 +163,7 @@ var _ = Describe("Application", func() {
163163 HealthCheckType : "port" ,
164164 HealthCheckHTTPEndpoint : "/" ,
165165 Instances : types.NullInt {Value : 13 , IsSet : true },
166- Memory : 1024 ,
166+ Memory : types. NullByteSizeInMb { IsSet : true , Value : 1024 } ,
167167 Name : "app-name-1" ,
168168 PackageState : ApplicationPackageFailed ,
169169 PackageUpdatedAt : updatedAt ,
@@ -271,12 +271,12 @@ var _ = Describe("Application", func() {
271271 Buildpack : types.FilteredString {IsSet : true , Value : "ruby 1.6.29" },
272272 DetectedBuildpack : types.FilteredString {},
273273 DetectedStartCommand : types.FilteredString {IsSet : true , Value : "echo 'I am a banana'" },
274- DiskQuota : 586 ,
274+ DiskQuota : types. NullByteSizeInMb { IsSet : true , Value : 586 } ,
275275 GUID : "app-guid-1" ,
276276 HealthCheckType : "port" ,
277277 HealthCheckHTTPEndpoint : "/" ,
278278 Instances : types.NullInt {Value : 13 , IsSet : true },
279- Memory : 1024 ,
279+ Memory : types. NullByteSizeInMb { IsSet : true , Value : 1024 } ,
280280 Name : "app-name-1" ,
281281 PackageState : ApplicationPackageFailed ,
282282 PackageUpdatedAt : updatedAt ,
@@ -335,7 +335,7 @@ var _ = Describe("Application", func() {
335335 expectedBody := map [string ]interface {}{
336336 "buildpack" : "" ,
337337 "command" : "" ,
338- "disk_quota" : 586 ,
338+ "disk_quota" : 0 ,
339339 "docker_credentials" : map [string ]string {
340340 "username" : "docker-username" ,
341341 "password" : "docker-password" ,
@@ -350,7 +350,7 @@ var _ = Describe("Application", func() {
350350 "health_check_http_endpoint" : "/anything" ,
351351 "health_check_type" : "some-health-check-type" ,
352352 "instances" : 0 ,
353- "memory" : 1024 ,
353+ "memory" : 0 ,
354354 "stack_guid" : "some-stack-guid" ,
355355 "state" : "STARTED" ,
356356 }
@@ -368,7 +368,7 @@ var _ = Describe("Application", func() {
368368 app , warnings , err := client .UpdateApplication (Application {
369369 Buildpack : types.FilteredString {IsSet : true , Value : "" },
370370 Command : types.FilteredString {IsSet : true , Value : "" },
371- DiskQuota : 586 ,
371+ DiskQuota : types. NullByteSizeInMb { IsSet : true } ,
372372 DockerCredentials : DockerCredentials {
373373 Username : "docker-username" ,
374374 Password : "docker-password" ,
@@ -384,7 +384,7 @@ var _ = Describe("Application", func() {
384384 HealthCheckHTTPEndpoint : "/anything" ,
385385 HealthCheckType : "some-health-check-type" ,
386386 Instances : types.NullInt {Value : 0 , IsSet : true },
387- Memory : 1024 ,
387+ Memory : types. NullByteSizeInMb { IsSet : true } ,
388388 StackGUID : "some-stack-guid" ,
389389 State : ApplicationStarted ,
390390 })
@@ -396,7 +396,7 @@ var _ = Describe("Application", func() {
396396 Expect (app ).To (Equal (Application {
397397 DetectedBuildpack : types.FilteredString {},
398398 DetectedStartCommand : types.FilteredString {IsSet : true , Value : "echo 'I am a banana'" },
399- DiskQuota : 586 ,
399+ DiskQuota : types. NullByteSizeInMb { IsSet : true , Value : 586 } ,
400400 DockerCredentials : DockerCredentials {
401401 Username : "docker-username" ,
402402 Password : "docker-password" ,
@@ -413,7 +413,7 @@ var _ = Describe("Application", func() {
413413 HealthCheckTimeout : 120 ,
414414 HealthCheckType : "some-health-check-type" ,
415415 Instances : types.NullInt {Value : 0 , IsSet : true },
416- Memory : 1024 ,
416+ Memory : types. NullByteSizeInMb { IsSet : true , Value : 1024 } ,
417417 Name : "app-name-1" ,
418418 PackageUpdatedAt : updatedAt ,
419419 StackGUID : "some-stack-guid" ,
@@ -468,12 +468,12 @@ var _ = Describe("Application", func() {
468468 Buildpack : types.FilteredString {IsSet : true , Value : "ruby 1.6.29" },
469469 DetectedBuildpack : types.FilteredString {},
470470 DetectedStartCommand : types.FilteredString {IsSet : true , Value : "echo 'I am a banana'" },
471- DiskQuota : 586 ,
471+ DiskQuota : types. NullByteSizeInMb { IsSet : true , Value : 586 } ,
472472 GUID : "some-app-guid" ,
473473 HealthCheckType : "some-health-check-type" ,
474474 HealthCheckHTTPEndpoint : "/" ,
475475 Instances : types.NullInt {Value : 7 , IsSet : true },
476- Memory : 1024 ,
476+ Memory : types. NullByteSizeInMb { IsSet : true , Value : 1024 } ,
477477 Name : "app-name-1" ,
478478 PackageUpdatedAt : updatedAt ,
479479 StackGUID : "some-stack-guid" ,
@@ -563,13 +563,13 @@ var _ = Describe("Application", func() {
563563 Buildpack : types.FilteredString {IsSet : true , Value : "ruby 1.6.29" },
564564 DetectedBuildpack : types.FilteredString {},
565565 DetectedStartCommand : types.FilteredString {IsSet : true , Value : "echo 'I am a banana'" },
566- DiskQuota : 586 ,
566+ DiskQuota : types. NullByteSizeInMb { IsSet : true , Value : 586 } ,
567567 DockerImage : "some-docker-path" ,
568568 GUID : "some-app-guid" ,
569569 HealthCheckType : "some-health-check-type" ,
570570 HealthCheckHTTPEndpoint : "/anything" ,
571571 Instances : types.NullInt {Value : 13 , IsSet : true },
572- Memory : 1024 ,
572+ Memory : types. NullByteSizeInMb { IsSet : true , Value : 1024 } ,
573573 Name : "app-name-1" ,
574574 PackageUpdatedAt : updatedAt ,
575575 StackGUID : "some-stack-guid" ,
0 commit comments