Class: Google::Apis::RunV1alpha1::ConfigurationSpec

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

ConfigurationSpec holds the desired state of the Configuration (from the client).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConfigurationSpec

Returns a new instance of ConfigurationSpec.



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

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

Instance Attribute Details

#generationFixnum

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. Corresponds to the JSON property generation

Returns:

  • (Fixnum)


1166
1167
1168
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1166

def generation
  @generation
end

#revision_templateGoogle::Apis::RunV1alpha1::RevisionTemplate

RevisionTemplateSpec describes the data a revision should have when created from a template. Based on: https://github.com/kubernetes/api/blob/e771f807/ core/v1/types.go#L3179-L3190 Corresponds to the JSON property revisionTemplate



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

def revision_template
  @revision_template
end

#templateGoogle::Apis::RunV1alpha1::RevisionTemplate

RevisionTemplateSpec describes the data a revision should have when created from a template. Based on: https://github.com/kubernetes/api/blob/e771f807/ core/v1/types.go#L3179-L3190 Corresponds to the JSON property template



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

def template
  @template
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

def update!(**args)
  @generation = args[:generation] if args.key?(:generation)
  @revision_template = args[:revision_template] if args.key?(:revision_template)
  @template = args[:template] if args.key?(:template)
end