All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.cloudfoundry.client.v2.spacequotadefinitions._CreateSpaceQuotaDefinitionRequest Maven / Gradle / Ivy

There is a newer version: 5.12.2.RELEASE
Show newest version
/*
 * Copyright 2013-2021 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.v2.spacequotadefinitions;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.cloudfoundry.Nullable;
import org.immutables.value.Value;

/**
 * The request payload for the Create a Space Quota Definition operation
 */
@JsonSerialize
@Value.Immutable
abstract class _CreateSpaceQuotaDefinitionRequest {

    /**
     * How many app instances a space can create. (-1 represents an unlimited amount)
     */
    @Nullable
    @JsonProperty("app_instance_limit")
    abstract Integer getApplicationInstanceLimit();

    /**
     * The number of tasks that can be run per app. (-1 represents an unlimited amount)
     */
    @Nullable
    @JsonProperty("app_task_limit")
    abstract Integer getApplicationTaskLimit();

    /**
     * The maximum amount of memory in megabytes an application instance can have. (-1 represents an unlimited amount)
     */
    @Nullable
    @JsonProperty("instance_memory_limit")
    abstract Integer getInstanceMemoryLimit();

    /**
     * How much memory in megabytes a space can have
     */
    @JsonProperty("memory_limit")
    abstract Integer getMemoryLimit();

    /**
     * The name
     */
    @JsonProperty("name")
    abstract String getName();

    /**
     * If a space can have non basic services
     */
    @JsonProperty("non_basic_services_allowed")
    abstract Boolean getNonBasicServicesAllowed();

    /**
     * The owning organization of the space quota
     */
    @JsonProperty("organization_guid")
    abstract String getOrganizationId();

    /**
     * How many routes a space can have that use a reserved port. These routes count toward total_routes. (-1 represents an unlimited amount; subject to org quota)
     */
    @Nullable
    @JsonProperty("total_reserved_route_ports")
    abstract Integer getTotalReservedRoutePorts();

    /**
     * How many routes a space can have. (-1 represents an unlimited amount)
     */
    @JsonProperty("total_routes")
    abstract Integer getTotalRoutes();

    /**
     * How many service keys an organization can have. (-1 represents an unlimited amount)
     */
    @Nullable
    @JsonProperty("total_service_keys")
    abstract Integer getTotalServiceKeys();

    /**
     * How many services a space can have. (-1 represents an unlimited amount)
     */
    @JsonProperty("total_services")
    abstract Integer getTotalServices();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy