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.



4083
4084
4085
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4083

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



4051
4052
4053
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4051

def available_package
  @available_package
end

#create_timeString

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

Returns:

  • (String)


4056
4057
4058
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4056

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)


4061
4062
4063
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4061

def id
  @id
end

#installed_packageGoogle::Apis::CloudassetV1::SoftwarePackage

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



4066
4067
4068
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4066

def installed_package
  @installed_package
end

#origin_typeString

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

Returns:

  • (String)


4071
4072
4073
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4071

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)


4076
4077
4078
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4076

def type
  @type
end

#update_timeString

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

Returns:

  • (String)


4081
4082
4083
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4081

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4088
4089
4090
4091
4092
4093
4094
4095
4096
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4088

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