Class: Google::Apis::AndroidmanagementV1::NonComplianceDetail

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

Provides detail about non-compliance with a policy setting.

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) ⇒ NonComplianceDetail

Returns a new instance of NonComplianceDetail



1295
1296
1297
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1295

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

Instance Attribute Details

#current_valueObject

If the policy setting could not be applied, the current value of the setting on the device. Corresponds to the JSON property currentValue

Returns:

  • (Object)


1259
1260
1261
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1259

def current_value
  @current_value
end

#field_pathString

For settings with nested fields, if a particular nested field is out of compliance, this specifies the full path to the offending field. The path is formatted in the same way the policy JSON field would be referenced in JavaScript, that is: 1) For object-typed fields, the field name is followed by a dot then by a subfield name. 2) For array-typed fields, the field name is followed by the array index enclosed in brackets. For example, to indicate a problem with the url field in the externalData field in the 3rd application, the path would be applications[2].externalData.url Corresponds to the JSON property fieldPath

Returns:

  • (String)


1271
1272
1273
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1271

def field_path
  @field_path
end

#installation_failure_reasonString

If package_name is set and the non-compliance reason is APP_NOT_INSTALLED or APP_NOT_UPDATED, the detailed reason the app can't be installed or updated. Corresponds to the JSON property installationFailureReason

Returns:

  • (String)


1277
1278
1279
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1277

def installation_failure_reason
  @installation_failure_reason
end

#non_compliance_reasonString

The reason the device is not in compliance with the setting. Corresponds to the JSON property nonComplianceReason

Returns:

  • (String)


1282
1283
1284
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1282

def non_compliance_reason
  @non_compliance_reason
end

#package_nameString

The package name indicating which app is out of compliance, if applicable. Corresponds to the JSON property packageName

Returns:

  • (String)


1287
1288
1289
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1287

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. Corresponds to the JSON property settingName

Returns:

  • (String)


1293
1294
1295
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1293

def setting_name
  @setting_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1300
1301
1302
1303
1304
1305
1306
1307
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1300

def update!(**args)
  @current_value = args[:current_value] if args.key?(:current_value)
  @field_path = args[:field_path] if args.key?(:field_path)
  @installation_failure_reason = args[:installation_failure_reason] if args.key?(:installation_failure_reason)
  @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