Class: Google::Apis::OsconfigV1beta::InventoryItem

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/osconfig_v1beta/classes.rb,
generated/google/apis/osconfig_v1beta/representations.rb,
generated/google/apis/osconfig_v1beta/representations.rb

Overview

A single piece of inventory on a VM.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InventoryItem

Returns a new instance of InventoryItem.



747
748
749
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 747

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

Instance Attribute Details

#available_packageGoogle::Apis::OsconfigV1beta::InventorySoftwarePackage

Software package information of the operating system. Corresponds to the JSON property availablePackage



715
716
717
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 715

def available_package
  @available_package
end

#create_timeString

When this inventory item was first detected. Corresponds to the JSON property createTime

Returns:

  • (String)


720
721
722
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 720

def create_time
  @create_time
end

#idString

Identifier for this item, unique across items for this VM. Corresponds to the JSON property id

Returns:

  • (String)


725
726
727
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 725

def id
  @id
end

#installed_packageGoogle::Apis::OsconfigV1beta::InventorySoftwarePackage

Software package information of the operating system. Corresponds to the JSON property installedPackage



730
731
732
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 730

def installed_package
  @installed_package
end

#origin_typeString

The origin of this inventory item. Corresponds to the JSON property originType

Returns:

  • (String)


735
736
737
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 735

def origin_type
  @origin_type
end

#typeString

The specific type of inventory, correlating to its specific details. Corresponds to the JSON property type

Returns:

  • (String)


740
741
742
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 740

def type
  @type
end

#update_timeString

When this inventory item was last modified. Corresponds to the JSON property updateTime

Returns:

  • (String)


745
746
747
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 745

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



752
753
754
755
756
757
758
759
760
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 752

def update!(**args)
  @available_package = args[:available_package] if args.key?(:available_package)
  @create_time = args[:create_time] if args.key?(:create_time)
  @id = args[:id] if args.key?(:id)
  @installed_package = args[:installed_package] if args.key?(:installed_package)
  @origin_type = args[:origin_type] if args.key?(:origin_type)
  @type = args[:type] if args.key?(:type)
  @update_time = args[:update_time] if args.key?(:update_time)
end