/*
 * Copyright 2013-2016 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.cloudfoundry.client.v3.packages;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.cloudfoundry.Nullable;
import org.cloudfoundry.client.v3.Lifecycle;
import org.immutables.value.Value;

import java.util.Map;

/**
 * The request payload for the Stage Package operation
 */
@Value.Immutable
abstract class _StagePackageRequest {

    /**
     * The disk limit
     */
    @JsonProperty("disk_limit")
    @Nullable
    abstract Integer getDiskLimit();

    /**
     * The environment variables
     */
    @JsonProperty("environment_variables")
    @Nullable
    abstract Map<String, Object> getEnvironmentVariables();

    /**
     * The lifecycle
     */
    @JsonProperty("lifecycle")
    @Nullable
    abstract Lifecycle getLifecycle();

    /**
     * The memory limit
     */
    @JsonProperty("memory_limit")
    @Nullable
    abstract Integer getMemoryLimit();

    /**
     * The package id
     */
    @JsonIgnore
    abstract String getPackageId();

}

@@ -1028,130 +1028,8 @@
  %7B%0A%0A
-    /**%0A     * The disk limit%0A     */%0A    @JsonProperty(%22disk_limit%22)%0A    @Nullable%0A    abstract Integer getDiskLimit();%0A%0A
     
@@ -1336,20 +1336,117 @@
 The 
-memory limit
+package id%0A     */%0A    @JsonIgnore%0A    abstract String getPackageId();%0A%0A    /**%0A     * The staging disk in MB
 %0A   
@@ -1473,20 +1473,26 @@
 ty(%22
-memory_limit
+staging_disk_in_mb
 %22)%0A 
@@ -1532,19 +1532,23 @@
  get
-MemoryLimit
+StagingDiskInMb
 ();%0A
@@ -1571,75 +1571,134 @@
 The 
-package id%0A     */%0A    @JsonIgnore%0A    abstract String getPackageId
+staging memory in MB%0A     */%0A    @JsonProperty(%22staging_memory_in_mb%22)%0A    @Nullable%0A    abstract Integer getStagingMemoryInMb
 ();%0A

Update Stage Package Request