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

InstanceSpec is a description of an instance.

Attributes

  • activeDeadlineSeconds (type: String.t, default: nil) - Optional. Optional duration in seconds the instance may be active relative to StartTime before the system will actively try to mark it failed and kill associated containers. If set to zero, the system will never attempt to kill an instance based on time. Otherwise, value must be a positive integer. +optional
  • containers (type: list(GoogleApi.CloudRun.V1alpha1.Model.Container.t), default: nil) - Optional. List of containers belonging to the instance. We disallow a number of fields on this Container. Only a single container may be provided.
  • restartPolicy (type: String.t, default: nil) - Optional. Restart policy for all containers within the instance. Allowed values are: - OnFailure: Instances will always be restarted on failure if the backoffLimit has not been reached. - Never: Instances are never restarted and all failures are permanent. Cannot be used if backoffLimit is set. +optional
  • serviceAccountName (type: String.t, default: nil) - Optional. Email address of the IAM service account associated with the instance of a Job. The service account represents the identity of the running instance, and determines what permissions the instance has. If not provided, the instance will use the project's default service account. +optional
  • terminationGracePeriodSeconds (type: String.t, default: nil) - Optional. Optional duration in seconds the instance needs to terminate gracefully. Value must be non-negative integer. The value zero indicates delete immediately. The grace period is the duration in seconds after the processes running in the instance are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. +optional
  • volumes (type: list(GoogleApi.CloudRun.V1alpha1.Model.Volume.t), default: nil) - Optional. List of volumes that can be mounted by containers belonging to the instance. More info: https://kubernetes.io/docs/concepts/storage/volumes +optional

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.InstanceSpec{
  activeDeadlineSeconds: String.t(),
  containers: [GoogleApi.CloudRun.V1alpha1.Model.Container.t()],
  restartPolicy: String.t(),
  serviceAccountName: String.t(),
  terminationGracePeriodSeconds: String.t(),
  volumes: [GoogleApi.CloudRun.V1alpha1.Model.Volume.t()]
}

Link to this section Functions

Specs

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

Unwrap a decoded JSON object into its complex fields.