Class: Google::Apis::AndroidenterpriseV1::InstallFailureEvent

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

Overview

An event generated when an app installation failed on a device

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

Returns a new instance of InstallFailureEvent.



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

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

Instance Attribute Details

#device_idString

The Android ID of the device. This field will always be present. Corresponds to the JSON property deviceId

Returns:

  • (String)


1254
1255
1256
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1254

def device_id
  @device_id
end

#failure_detailsString

Additional details on the failure if applicable. Corresponds to the JSON property failureDetails

Returns:

  • (String)


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

def failure_details
  @failure_details
end

#failure_reasonString

The reason for the installation failure. This field will always be present. Corresponds to the JSON property failureReason

Returns:

  • (String)


1264
1265
1266
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1264

def failure_reason
  @failure_reason
end

#product_idString

The id of the product (e.g. "app:com.google.android.gm") for which the install failure event occured. This field will always be present. Corresponds to the JSON property productId

Returns:

  • (String)


1270
1271
1272
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1270

def product_id
  @product_id
end

#user_idString

The ID of the user. This field will always be present. Corresponds to the JSON property userId

Returns:

  • (String)


1275
1276
1277
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1275

def user_id
  @user_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1282
1283
1284
1285
1286
1287
1288
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1282

def update!(**args)
  @device_id = args[:device_id] if args.key?(:device_id)
  @failure_details = args[:failure_details] if args.key?(:failure_details)
  @failure_reason = args[:failure_reason] if args.key?(:failure_reason)
  @product_id = args[:product_id] if args.key?(:product_id)
  @user_id = args[:user_id] if args.key?(:user_id)
end