class Google::Apis::CloudassetV1::Item

A single piece of inventory on a VM.

Attributes

available_package[RW]

Software package information of the operating system. Corresponds to the JSON property `availablePackage` @return [Google::Apis::CloudassetV1::SoftwarePackage]

create_time[RW]

When this inventory item was first detected. Corresponds to the JSON property `createTime` @return [String]

id[RW]

Identifier for this item, unique across items for this VM. Corresponds to the JSON property `id` @return [String]

installed_package[RW]

Software package information of the operating system. Corresponds to the JSON property `installedPackage` @return [Google::Apis::CloudassetV1::SoftwarePackage]

origin_type[RW]

The origin of this inventory item. Corresponds to the JSON property `originType` @return [String]

type[RW]

The specific type of inventory, correlating to its specific details. Corresponds to the JSON property `type` @return [String]

update_time[RW]

When this inventory item was last modified. Corresponds to the JSON property `updateTime` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudasset_v1/classes.rb, line 3121
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudasset_v1/classes.rb, line 3126
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