Class: Google::Apis::CloudassetV1::Item

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudasset_v1/classes.rb,
lib/google/apis/cloudasset_v1/representations.rb,
lib/google/apis/cloudasset_v1/representations.rb

Overview

A single piece of inventory on a VM.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Item

Returns a new instance of Item.



2920
2921
2922
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2920

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

Instance Attribute Details

#available_packageGoogle::Apis::CloudassetV1::SoftwarePackage

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



2888
2889
2890
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2888

def available_package
  @available_package
end

#create_timeString

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

Returns:

  • (String)


2893
2894
2895
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2893

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)


2898
2899
2900
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2898

def id
  @id
end

#installed_packageGoogle::Apis::CloudassetV1::SoftwarePackage

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



2903
2904
2905
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2903

def installed_package
  @installed_package
end

#origin_typeString

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

Returns:

  • (String)


2908
2909
2910
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2908

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)


2913
2914
2915
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2913

def type
  @type
end

#update_timeString

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

Returns:

  • (String)


2918
2919
2920
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2918

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2925
2926
2927
2928
2929
2930
2931
2932
2933
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 2925

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