GoogleApi.CloudRun.V1alpha1.Model.ResourceRequirements (google_api_cloud_run v0.42.0) View Source

ResourceRequirements describes the compute resource requirements.

Attributes

  • limits (type: map(), default: nil) - Limits describes the maximum amount of compute resources allowed. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
  • limitsInMap (type: %{optional(String.t) => GoogleApi.CloudRun.V1alpha1.Model.Quantity.t}, default: nil) - Limits describes the maximum amount of compute resources allowed. This is a temporary field created to migrate away from the map limits field. This is done to become compliant with k8s style API. This field is deprecated in favor of limits field.
  • requests (type: map(), default: nil) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
  • requestsInMap (type: %{optional(String.t) => GoogleApi.CloudRun.V1alpha1.Model.Quantity.t}, default: nil) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. This is a temporary field created to migrate away from the map requests field. This is done to become compliant with k8s style API. This field is deprecated in favor of requests field.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.CloudRun.V1alpha1.Model.ResourceRequirements{
  limits: map(),
  limitsInMap: %{
    optional(String.t()) => GoogleApi.CloudRun.V1alpha1.Model.Quantity.t()
  },
  requests: map(),
  requestsInMap: %{
    optional(String.t()) => GoogleApi.CloudRun.V1alpha1.Model.Quantity.t()
  }
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.