class Google::Apis::RunV1::Service

Service acts as a top-level container that manages a set of Routes and Configurations which implement a network service. Service exists to provide a singular abstraction which can be access controlled, reasoned about, and which encapsulates software lifecycle decisions such as rollout policy and team resource ownership. Service acts only as an orchestrator of the underlying Routes and Configurations (much as a kubernetes Deployment orchestrates ReplicaSets). The Service's controller will track the statuses of its owned Configuration and Route, reflecting their statuses and conditions as its own. See also: github.com/knative/serving/blob/main/docs/spec/overview.md# service

Attributes

api_version[RW]

The API version for this call such as “serving.knative.dev/v1”. Corresponds to the JSON property `apiVersion` @return [String]

kind[RW]

The kind of resource, in this case “Service”. Corresponds to the JSON property `kind` @return [String]

metadata[RW]

k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Corresponds to the JSON property `metadata` @return [Google::Apis::RunV1::ObjectMeta]

spec[RW]

ServiceSpec holds the desired state of the Route (from the client), which is used to manipulate the underlying Route and Configuration(s). Corresponds to the JSON property `spec` @return [Google::Apis::RunV1::ServiceSpec]

status[RW]

The current state of the Service. Output only. Corresponds to the JSON property `status` @return [Google::Apis::RunV1::ServiceStatus]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/run_v1/classes.rb, line 2489
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/run_v1/classes.rb, line 2494
def update!(**args)
  @api_version = args[:api_version] if args.key?(:api_version)
  @kind = args[:kind] if args.key?(:kind)
  @metadata = args[:metadata] if args.key?(:metadata)
  @spec = args[:spec] if args.key?(:spec)
  @status = args[:status] if args.key?(:status)
end