Class: Google::Compute::Data::MachineTypeDeprecaApi

Inherits:
MachineTypeDepreca show all
Defined in:
lib/google/compute/property/machinetype_deprecated.rb

Overview

Manages a MachineTypeDepreca nested object Data is coming from the GCP API

Instance Attribute Summary

Attributes inherited from MachineTypeDepreca

#deleted, #deprecated, #obsolete, #replacement, #state

Instance Method Summary collapse

Methods inherited from MachineTypeDepreca

#<=>, #==, #to_json, #to_s

Constructor Details

#initialize(args) ⇒ MachineTypeDeprecaApi

Returns a new instance of MachineTypeDeprecaApi.



98
99
100
101
102
103
104
105
106
107
# File 'lib/google/compute/property/machinetype_deprecated.rb', line 98

def initialize(args)
  @deleted = Google::Compute::Property::Time.api_munge(args['deleted'])
  @deprecated =
    Google::Compute::Property::Time.api_munge(args['deprecated'])
  @obsolete =
    Google::Compute::Property::Time.api_munge(args['obsolete'])
  @replacement =
    Google::Compute::Property::String.api_munge(args['replacement'])
  @state = Google::Compute::Property::Enum.api_munge(args['state'])
end