Class: Google::Apis::SecuritycenterV1beta2::ComplianceSnapshot

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

Overview

Result containing the properties and count of a ComplianceSnapshot request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ComplianceSnapshot

Returns a new instance of ComplianceSnapshot.



564
565
566
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 564

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

Instance Attribute Details

#category ⇒ String

The category of Findings matching. Corresponds to the JSON property category

Returns:

  • (String)


526
527
528
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 526

def category
  @category
end

#compliance_standard ⇒ String

The compliance standard (ie CIS). Corresponds to the JSON property complianceStandard

Returns:

  • (String)


531
532
533
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 531

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

Returns:

  • (String)


536
537
538
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 536

def compliance_version
  @compliance_version
end

#count ⇒ Fixnum

Total count of findings for the given properties. Corresponds to the JSON property count

Returns:

  • (Fixnum)


541
542
543
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 541

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

Returns:

  • (String)


546
547
548
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 546

def leaf_container_resource
  @leaf_container_resource
end

#name ⇒ String

The compliance snapshot name. Format: //sources//complianceSnapshots/ Corresponds to the JSON property name

Returns:

  • (String)


551
552
553
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 551

def name
  @name
end

#project_display_name ⇒ String

The CRM resource display name that is closest to the snapshot the Findings belong to. Corresponds to the JSON property projectDisplayName

Returns:

  • (String)


557
558
559
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 557

def project_display_name
  @project_display_name
end

#snapshot_time ⇒ String

The snapshot time of the snapshot. Corresponds to the JSON property snapshotTime

Returns:

  • (String)


562
563
564
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 562

def snapshot_time
  @snapshot_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



569
570
571
572
573
574
575
576
577
578
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 569

def update!(**args)
  @category = args[:category] if args.key?(:category)
  @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)
  @project_display_name = args[:project_display_name] if args.key?(:project_display_name)
  @snapshot_time = args[:snapshot_time] if args.key?(:snapshot_time)
end