Class InstanceSpec
InstanceSpec is a description of an instance.
Inheritance
Implements
Inherited Members
Namespace: Google.Apis.CloudRun.v1alpha1.Data
Assembly: Google.Apis.CloudRun.v1alpha1.dll
Syntax
public class InstanceSpec : IDirectResponseSchema
Properties
ActiveDeadlineSeconds
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
Declaration
[JsonProperty("activeDeadlineSeconds")]
public virtual long? ActiveDeadlineSeconds { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
Containers
Optional. List of containers belonging to the instance. We disallow a number of fields on this Container. Only a single container may be provided.
Declaration
[JsonProperty("containers")]
public virtual IList<Container> Containers { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<Container> |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RestartPolicy
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
Declaration
[JsonProperty("restartPolicy")]
public virtual string RestartPolicy { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ServiceAccountName
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
Declaration
[JsonProperty("serviceAccountName")]
public virtual string ServiceAccountName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TerminationGracePeriodSeconds
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
Declaration
[JsonProperty("terminationGracePeriodSeconds")]
public virtual long? TerminationGracePeriodSeconds { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
Volumes
Optional. List of volumes that can be mounted by containers belonging to the instance. More info: https://kubernetes.io/docs/concepts/storage/volumes +optional
Declaration
[JsonProperty("volumes")]
public virtual IList<Volume> Volumes { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<Volume> |