Class: Google::Apis::AndroidmanagementV1::NonComplianceDetailCondition

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/androidmanagement_v1/classes.rb,
generated/google/apis/androidmanagement_v1/representations.rb,
generated/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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ NonComplianceDetailCondition

Returns a new instance of NonComplianceDetailCondition.


1962
1963
1964
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1962

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

Instance Attribute Details

#non_compliance_reasonString

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

Returns:

  • (String)

1948
1949
1950
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1948

def non_compliance_reason
  @non_compliance_reason
end

#package_nameString

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

Returns:

  • (String)

1954
1955
1956
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1954

def package_name
  @package_name
end

#setting_nameString

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

Returns:

  • (String)

1960
1961
1962
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1960

def setting_name
  @setting_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1967
1968
1969
1970
1971
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1967

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