class Google::Apis::RunV1::Configuration

Configuration represents the “floating HEAD” of a linear history of Revisions, and optionally how the containers those revisions reference are built. Users create new Revisions by updating the Configuration's spec. The “latest created” revision's name is available under status, as is the “latest ready” revision' s name. See also: github.com/knative/serving/blob/main/docs/spec/ overview.md#configuration

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 always “Configuration”. 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]

ConfigurationSpec holds the desired state of the Configuration (from the client). Corresponds to the JSON property `spec` @return [Google::Apis::RunV1::ConfigurationSpec]

status[RW]

ConfigurationStatus communicates the observed state of the Configuration (from the controller). Corresponds to the JSON property `status` @return [Google::Apis::RunV1::ConfigurationStatus]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/run_v1/classes.rb, line 374
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 379
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