Class: Google::Apis::SecuritypostureV1::AssetDetails

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

Overview

Details of a Cloud Asset Inventory asset that caused a violation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AssetDetails

Returns a new instance of AssetDetails.



43
44
45
# File 'lib/google/apis/securityposture_v1/classes.rb', line 43

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

Instance Attribute Details

#assetString

Information about the Cloud Asset Inventory asset that violated a policy. The format of this information can change at any time without prior notice. Your application must not depend on this information in any way. Corresponds to the JSON property asset

Returns:

  • (String)


34
35
36
# File 'lib/google/apis/securityposture_v1/classes.rb', line 34

def asset
  @asset
end

#asset_typeString

The type of Cloud Asset Inventory asset. For a list of asset types, see Supported asset types. Corresponds to the JSON property assetType

Returns:

  • (String)


41
42
43
# File 'lib/google/apis/securityposture_v1/classes.rb', line 41

def asset_type
  @asset_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



48
49
50
51
# File 'lib/google/apis/securityposture_v1/classes.rb', line 48

def update!(**args)
  @asset = args[:asset] if args.key?(:asset)
  @asset_type = args[:asset_type] if args.key?(:asset_type)
end