Class: Google::Apis::CloudassetV1::Item
- Inherits:
-
Object
- Object
- Google::Apis::CloudassetV1::Item
- 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
-
#available_package ⇒ Google::Apis::CloudassetV1::SoftwarePackage
Software package information of the operating system.
-
#create_time ⇒ String
When this inventory item was first detected.
-
#id ⇒ String
Identifier for this item, unique across items for this VM.
-
#installed_package ⇒ Google::Apis::CloudassetV1::SoftwarePackage
Software package information of the operating system.
-
#origin_type ⇒ String
The origin of this inventory item.
-
#type ⇒ String
The specific type of inventory, correlating to its specific details.
-
#update_time ⇒ String
When this inventory item was last modified.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Item
constructor
A new instance of Item.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Item
Returns a new instance of Item.
4273 4274 4275 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4273 def initialize(**args) update!(**args) end |
Instance Attribute Details
#available_package ⇒ Google::Apis::CloudassetV1::SoftwarePackage
Software package information of the operating system.
Corresponds to the JSON property availablePackage
4241 4242 4243 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4241 def available_package @available_package end |
#create_time ⇒ String
When this inventory item was first detected.
Corresponds to the JSON property createTime
4246 4247 4248 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4246 def create_time @create_time end |
#id ⇒ String
Identifier for this item, unique across items for this VM.
Corresponds to the JSON property id
4251 4252 4253 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4251 def id @id end |
#installed_package ⇒ Google::Apis::CloudassetV1::SoftwarePackage
Software package information of the operating system.
Corresponds to the JSON property installedPackage
4256 4257 4258 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4256 def installed_package @installed_package end |
#origin_type ⇒ String
The origin of this inventory item.
Corresponds to the JSON property originType
4261 4262 4263 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4261 def origin_type @origin_type end |
#type ⇒ String
The specific type of inventory, correlating to its specific details.
Corresponds to the JSON property type
4266 4267 4268 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4266 def type @type end |
#update_time ⇒ String
When this inventory item was last modified.
Corresponds to the JSON property updateTime
4271 4272 4273 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4271 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4278 4279 4280 4281 4282 4283 4284 4285 4286 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4278 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 |