Class: Google::Compute::Data::ImageDeprecatedApi

Inherits:
ImageDeprecated show all
Defined in:
lib/google/compute/property/image_deprecated.rb

Overview

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

Instance Attribute Summary

Attributes inherited from ImageDeprecated

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

Instance Method Summary collapse

Methods inherited from ImageDeprecated

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

Constructor Details

#initialize(args) ⇒ ImageDeprecatedApi

Returns a new instance of ImageDeprecatedApi.



98
99
100
101
102
103
104
105
106
107
# File 'lib/google/compute/property/image_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