Class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceStatus

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

Overview

Represents the Compliance Status of this workload

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceStatus

Returns a new instance of GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceStatus.



598
599
600
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 598

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

Instance Attribute Details

#acknowledged_violation_countFixnum

Count of active Violations which are acknowledged in the Workload. Corresponds to the JSON property acknowledgedViolationCount

Returns:

  • (Fixnum)


591
592
593
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 591

def acknowledged_violation_count
  @acknowledged_violation_count
end

#active_violation_countFixnum

Count of active Violations which haven't been acknowledged. Corresponds to the JSON property activeViolationCount

Returns:

  • (Fixnum)


596
597
598
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 596

def active_violation_count
  @active_violation_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



603
604
605
606
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 603

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