Class: Google::Apis::AndroidmanagementV1::WipeAction

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

An action to reset a fully managed device or delete a work profile. Note: blockAction must also be specified.

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

Returns a new instance of WipeAction



3272
3273
3274
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 3272

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

Instance Attribute Details

#preserve_frpBoolean Also known as: preserve_frp?

Whether the factory-reset protection data is preserved on the device. This setting doesn’t apply to work profiles. Corresponds to the JSON property preserveFrp

Returns:

  • (Boolean)


3263
3264
3265
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 3263

def preserve_frp
  @preserve_frp
end

#wipe_after_daysFixnum

Number of days the policy is non-compliant before the device or work profile is wiped. wipeAfterDays must be greater than blockAfterDays. Corresponds to the JSON property wipeAfterDays

Returns:

  • (Fixnum)


3270
3271
3272
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 3270

def wipe_after_days
  @wipe_after_days
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3277
3278
3279
3280
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 3277

def update!(**args)
  @preserve_frp = args[:preserve_frp] if args.key?(:preserve_frp)
  @wipe_after_days = args[:wipe_after_days] if args.key?(:wipe_after_days)
end