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.



1992
1993
1994
# File 'lib/google/apis/config_v1/classes.rb', line 1992

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)


1969
1970
1971
# File 'lib/google/apis/config_v1/classes.rb', line 1969

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)


1975
1976
1977
# File 'lib/google/apis/config_v1/classes.rb', line 1975

def name
  @name
end

#obsolete_timeString

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

Returns:

  • (String)


1980
1981
1982
# File 'lib/google/apis/config_v1/classes.rb', line 1980

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)


1985
1986
1987
# File 'lib/google/apis/config_v1/classes.rb', line 1985

def state
  @state
end

#support_timeString

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

Returns:

  • (String)


1990
1991
1992
# File 'lib/google/apis/config_v1/classes.rb', line 1990

def support_time
  @support_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1997
1998
1999
2000
2001
2002
2003
# File 'lib/google/apis/config_v1/classes.rb', line 1997

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