Class: Google::Apis::RunV1alpha1::Configuration

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/run_v1alpha1/classes.rb,
generated/google/apis/run_v1alpha1/representations.rb,
generated/google/apis/run_v1alpha1/representations.rb

Overview

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: https://github.com/knative/serving/blob/master/docs/spec/overview.md# configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Configuration

Returns a new instance of Configuration.



1182
1183
1184
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1182

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#api_versionString

The API version for this call such as "serving.knative.dev/v1alpha1". Corresponds to the JSON property apiVersion

Returns:

  • (String)


1157
1158
1159
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1157

def api_version
  @api_version
end

#kindString

The kind of resource, in this case always "Configuration". Corresponds to the JSON property kind

Returns:

  • (String)


1162
1163
1164
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1162

def kind
  @kind
end

#metadataGoogle::Apis::RunV1alpha1::ObjectMeta

ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Corresponds to the JSON property metadata



1168
1169
1170
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1168

def 
  @metadata
end

#specGoogle::Apis::RunV1alpha1::ConfigurationSpec

ConfigurationSpec holds the desired state of the Configuration (from the client). Corresponds to the JSON property spec



1174
1175
1176
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1174

def spec
  @spec
end

#statusGoogle::Apis::RunV1alpha1::ConfigurationStatus

ConfigurationStatus communicates the observed state of the Configuration (from the controller). Corresponds to the JSON property status



1180
1181
1182
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1180

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1187
1188
1189
1190
1191
1192
1193
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1187

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