Class: Google::Apis::SecuritycenterV1::ComplianceSnapshot
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1::ComplianceSnapshot
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/securitycenter_v1/classes.rb,
lib/google/apis/securitycenter_v1/representations.rb,
lib/google/apis/securitycenter_v1/representations.rb
Overview
Result containing the properties and count of a ComplianceSnapshot request.
Instance Attribute Summary collapse
-
#category ⇒ String
The category of Findings matching.
-
#cloud_provider ⇒ String
The cloud provider for the compliance snapshot.
-
#compliance_standard ⇒ String
The compliance standard (ie CIS).
-
#compliance_version ⇒ String
The compliance version (ie 1.3) in CIS 1.3.
-
#count ⇒ Fixnum
Total count of findings for the given properties.
-
#leaf_container_resource ⇒ String
The leaf container resource name that is closest to the snapshot.
-
#name ⇒ String
The compliance snapshot name.
-
#snapshot_time ⇒ String
The snapshot time of the snapshot.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ComplianceSnapshot
constructor
A new instance of ComplianceSnapshot.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ComplianceSnapshot
Returns a new instance of ComplianceSnapshot.
1480 1481 1482 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1480 def initialize(**args) update!(**args) end |
Instance Attribute Details
#category ⇒ String
The category of Findings matching.
Corresponds to the JSON property category
1443 1444 1445 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1443 def category @category end |
#cloud_provider ⇒ String
The cloud provider for the compliance snapshot.
Corresponds to the JSON property cloudProvider
1448 1449 1450 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1448 def cloud_provider @cloud_provider end |
#compliance_standard ⇒ String
The compliance standard (ie CIS).
Corresponds to the JSON property complianceStandard
1453 1454 1455 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1453 def compliance_standard @compliance_standard end |
#compliance_version ⇒ String
The compliance version (ie 1.3) in CIS 1.3.
Corresponds to the JSON property complianceVersion
1458 1459 1460 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1458 def compliance_version @compliance_version end |
#count ⇒ Fixnum
Total count of findings for the given properties.
Corresponds to the JSON property count
1463 1464 1465 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1463 def count @count end |
#leaf_container_resource ⇒ String
The leaf container resource name that is closest to the snapshot.
Corresponds to the JSON property leafContainerResource
1468 1469 1470 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1468 def leaf_container_resource @leaf_container_resource end |
#name ⇒ String
The compliance snapshot name. Format: //sources//complianceSnapshots/
Corresponds to the JSON property name
1473 1474 1475 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1473 def name @name end |
#snapshot_time ⇒ String
The snapshot time of the snapshot.
Corresponds to the JSON property snapshotTime
1478 1479 1480 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1478 def snapshot_time @snapshot_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1485 def update!(**args) @category = args[:category] if args.key?(:category) @cloud_provider = args[:cloud_provider] if args.key?(:cloud_provider) @compliance_standard = args[:compliance_standard] if args.key?(:compliance_standard) @compliance_version = args[:compliance_version] if args.key?(:compliance_version) @count = args[:count] if args.key?(:count) @leaf_container_resource = args[:leaf_container_resource] if args.key?(:leaf_container_resource) @name = args[:name] if args.key?(:name) @snapshot_time = args[:snapshot_time] if args.key?(:snapshot_time) end |