Class: Google::Apis::SecuritypostureV1::AssetDetails
- Inherits:
-
Object
- Object
- Google::Apis::SecuritypostureV1::AssetDetails
- 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
-
#asset ⇒ String
Information about the Cloud Asset Inventory asset that violated a policy.
-
#asset_type ⇒ String
The type of Cloud Asset Inventory asset.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AssetDetails
constructor
A new instance of AssetDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#asset ⇒ String
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
34 35 36 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 34 def asset @asset end |
#asset_type ⇒ String
The type of Cloud Asset Inventory asset. For a list of asset types, see
Supported asset types.
Corresponds to the JSON property assetType
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 |