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

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

Constructor Details

#initialize(**args) ⇒ InstallFailureEvent

Returns a new instance of InstallFailureEvent.



1186
1187
1188
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1186

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)


1163
1164
1165
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1163

def device_id
  @device_id
end

#failure_detailsString

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

Returns:

  • (String)


1168
1169
1170
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1168

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)


1173
1174
1175
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1173

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)


1179
1180
1181
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1179

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)


1184
1185
1186
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1184

def user_id
  @user_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1191
1192
1193
1194
1195
1196
1197
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1191

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