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.



606
607
608
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 606

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)


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

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)


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

def active_violation_count
  @active_violation_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



611
612
613
614
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 611

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