Class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadComplianceStatus

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

Overview

Represents the Compliance Status of this workload

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1WorkloadComplianceStatus

Returns a new instance of GoogleCloudAssuredworkloadsV1WorkloadComplianceStatus.



899
900
901
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 899

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

Instance Attribute Details

#acknowledged_resource_violation_countFixnum

Number of current resource violations which are not acknowledged. Corresponds to the JSON property acknowledgedResourceViolationCount

Returns:

  • (Fixnum)


882
883
884
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 882

def acknowledged_resource_violation_count
  @acknowledged_resource_violation_count
end

#acknowledged_violation_countFixnum

Number of current orgPolicy violations which are acknowledged. Corresponds to the JSON property acknowledgedViolationCount

Returns:

  • (Fixnum)


887
888
889
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 887

def acknowledged_violation_count
  @acknowledged_violation_count
end

#active_resource_violation_countFixnum

Number of current resource violations which are acknowledged. Corresponds to the JSON property activeResourceViolationCount

Returns:

  • (Fixnum)


892
893
894
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 892

def active_resource_violation_count
  @active_resource_violation_count
end

#active_violation_countFixnum

Number of current orgPolicy violations which are not acknowledged. Corresponds to the JSON property activeViolationCount

Returns:

  • (Fixnum)


897
898
899
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 897

def active_violation_count
  @active_violation_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



904
905
906
907
908
909
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 904

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