Show / Hide Table of Contents

Class ServiceSpec

ServiceSpec holds the desired state of the Route (from the client), which is used to manipulate the underlying Route and Configuration(s).

Inheritance
System.Object
ServiceSpec
Implements
IDirectResponseSchema
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.CloudRun.v1alpha1.Data
Assembly: Google.Apis.CloudRun.v1alpha1.dll
Syntax
public class ServiceSpec : IDirectResponseSchema

Properties

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
System.String

Generation

Deprecated and not currently populated by Cloud Run. See metadata.generation instead, which is the sequence number containing the latest generation of the desired state. Read-only.

Declaration
[JsonProperty("generation")]
public virtual int? Generation { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>

Manual

Manual contains the options for configuring a manual service. See ServiceSpec for more details. Not currently supported by Cloud Run.

Declaration
[JsonProperty("manual")]
public virtual ServiceSpecManualType Manual { get; set; }
Property Value
Type Description
ServiceSpecManualType

Pinned

Pins this service to a specific revision name. The revision must be owned by the configuration provided. Deprecated and not supported by Cloud Run. +optional

Declaration
[JsonProperty("pinned")]
public virtual ServiceSpecPinnedType Pinned { get; set; }
Property Value
Type Description
ServiceSpecPinnedType

Release

Release enables gradual promotion of new revisions by allowing traffic to be split between two revisions. This type replaces the deprecated Pinned type. Not currently supported by Cloud Run.

Declaration
[JsonProperty("release")]
public virtual ServiceSpecReleaseType Release { get; set; }
Property Value
Type Description
ServiceSpecReleaseType

RunLatest

RunLatest defines a simple Service. It will automatically configure a route that keeps the latest ready revision from the supplied configuration running. +optional

Declaration
[JsonProperty("runLatest")]
public virtual ServiceSpecRunLatest RunLatest { get; set; }
Property Value
Type Description
ServiceSpecRunLatest

Template

Template holds the latest specification for the Revision to be stamped out.

Declaration
[JsonProperty("template")]
public virtual RevisionTemplate Template { get; set; }
Property Value
Type Description
RevisionTemplate

Traffic

Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations.

Declaration
[JsonProperty("traffic")]
public virtual IList<TrafficTarget> Traffic { get; set; }
Property Value
Type Description
System.Collections.Generic.IList<TrafficTarget>

Implements

IDirectResponseSchema
Back to top