Class: Google::Apis::ConfigV1::TerraformVersion

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/config_v1/classes.rb,
lib/google/apis/config_v1/representations.rb,
lib/google/apis/config_v1/representations.rb

Overview

A TerraformVersion represents the support state the corresponding Terraform version.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TerraformVersion

Returns a new instance of TerraformVersion.



2888
2889
2890
# File 'lib/google/apis/config_v1/classes.rb', line 2888

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

Instance Attribute Details

#deprecate_timeString

Output only. When the version is deprecated. Corresponds to the JSON property deprecateTime

Returns:

  • (String)


2865
2866
2867
# File 'lib/google/apis/config_v1/classes.rb', line 2865

def deprecate_time
  @deprecate_time
end

#nameString

Identifier. The version name is in the format: 'projects/project_id/ locations/location/terraformVersions/terraform_version'. Corresponds to the JSON property name

Returns:

  • (String)


2871
2872
2873
# File 'lib/google/apis/config_v1/classes.rb', line 2871

def name
  @name
end

#obsolete_timeString

Output only. When the version is obsolete. Corresponds to the JSON property obsoleteTime

Returns:

  • (String)


2876
2877
2878
# File 'lib/google/apis/config_v1/classes.rb', line 2876

def obsolete_time
  @obsolete_time
end

#stateString

Output only. The state of the version, ACTIVE, DEPRECATED or OBSOLETE. Corresponds to the JSON property state

Returns:

  • (String)


2881
2882
2883
# File 'lib/google/apis/config_v1/classes.rb', line 2881

def state
  @state
end

#support_timeString

Output only. When the version is supported. Corresponds to the JSON property supportTime

Returns:

  • (String)


2886
2887
2888
# File 'lib/google/apis/config_v1/classes.rb', line 2886

def support_time
  @support_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2893
2894
2895
2896
2897
2898
2899
# File 'lib/google/apis/config_v1/classes.rb', line 2893

def update!(**args)
  @deprecate_time = args[:deprecate_time] if args.key?(:deprecate_time)
  @name = args[:name] if args.key?(:name)
  @obsolete_time = args[:obsolete_time] if args.key?(:obsolete_time)
  @state = args[:state] if args.key?(:state)
  @support_time = args[:support_time] if args.key?(:support_time)
end