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.



668
669
670
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 668

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)


661
662
663
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 661

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)


666
667
668
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 666

def active_violation_count
  @active_violation_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



673
674
675
676
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 673

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