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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ConfigurationSpec

Returns a new instance of ConfigurationSpec.



967
968
969
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 967

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)


951
952
953
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 951

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



958
959
960
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 958

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



965
966
967
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 965

def template
  @template
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



972
973
974
975
976
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 972

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