class Google::Apis::AndroidmanagementV1::NonComplianceDetailCondition

A compliance rule condition which is satisfied if there exists any matching NonComplianceDetail for the device. A NonComplianceDetail matches a NonComplianceDetailCondition if all the fields which are set within the NonComplianceDetailCondition match the corresponding NonComplianceDetail fields.

Attributes

non_compliance_reason[RW]

The reason the device is not in compliance with the setting. If not set, then this condition matches any reason. Corresponds to the JSON property `nonComplianceReason` @return [String]

package_name[RW]

The package name of the app that's out of compliance. If not set, then this condition matches any package name. Corresponds to the JSON property `packageName` @return [String]

setting_name[RW]

The name of the policy setting. This is the JSON field name of a top-level Policy field. If not set, then this condition matches any setting name. Corresponds to the JSON property `settingName` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/androidmanagement_v1/classes.rb, line 2246
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/androidmanagement_v1/classes.rb, line 2251
def update!(**args)
  @non_compliance_reason = args[:non_compliance_reason] if args.key?(:non_compliance_reason)
  @package_name = args[:package_name] if args.key?(:package_name)
  @setting_name = args[:setting_name] if args.key?(:setting_name)
end