Class: Google::Apis::AndroidmanagementV1::NonComplianceDetailCondition
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::AndroidmanagementV1::NonComplianceDetailCondition
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - lib/google/apis/androidmanagement_v1/classes.rb,
lib/google/apis/androidmanagement_v1/representations.rb,
lib/google/apis/androidmanagement_v1/representations.rb 
Overview
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.
Instance Attribute Summary collapse
- 
  
    
      #non_compliance_reason  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The reason the device is not in compliance with the setting.
 - 
  
    
      #package_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The package name of the app that's out of compliance.
 - 
  
    
      #setting_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The name of the policy setting.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ NonComplianceDetailCondition 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of NonComplianceDetailCondition.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ NonComplianceDetailCondition
Returns a new instance of NonComplianceDetailCondition.
      3779 3780 3781  | 
    
      # File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3779 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#non_compliance_reason ⇒ String
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
      3765 3766 3767  | 
    
      # File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3765 def non_compliance_reason @non_compliance_reason end  | 
  
#package_name ⇒ String
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
      3771 3772 3773  | 
    
      # File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3771 def package_name @package_name end  | 
  
#setting_name ⇒ String
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
      3777 3778 3779  | 
    
      # File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3777 def setting_name @setting_name end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      3784 3785 3786 3787 3788  | 
    
      # File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3784 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  |