Class: Google::Apis::AndroiddeviceprovisioningV1::UnclaimDeviceRequest

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

Overview

Request message to unclaim 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) ⇒ UnclaimDeviceRequest

Returns a new instance of UnclaimDeviceRequest.



1328
1329
1330
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 1328

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

Instance Attribute Details

#device_idFixnum

The device ID returned by ClaimDevice. Corresponds to the JSON property deviceId

Returns:

  • (Fixnum)


1303
1304
1305
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 1303

def device_id
  @device_id
end

#device_identifierGoogle::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier

Encapsulates hardware and product IDs to identify a manufactured device. To understand requirements on identifier sets, read Identifiers. Corresponds to the JSON property deviceIdentifier



1310
1311
1312
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 1310

def device_identifier
  @device_identifier
end

#section_typeString

Required. The section type of the device's provisioning record. Corresponds to the JSON property sectionType

Returns:

  • (String)


1315
1316
1317
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 1315

def section_type
  @section_type
end

#vacation_mode_daysFixnum

The duration of the vacation unlock starting from when the request is processed. (1 day is treated as 24 hours) Corresponds to the JSON property vacationModeDays

Returns:

  • (Fixnum)


1321
1322
1323
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 1321

def vacation_mode_days
  @vacation_mode_days
end

#vacation_mode_expire_timeString

The expiration time of the vacation unlock. Corresponds to the JSON property vacationModeExpireTime

Returns:

  • (String)


1326
1327
1328
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 1326

def vacation_mode_expire_time
  @vacation_mode_expire_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1333
1334
1335
1336
1337
1338
1339
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 1333

def update!(**args)
  @device_id = args[:device_id] if args.key?(:device_id)
  @device_identifier = args[:device_identifier] if args.key?(:device_identifier)
  @section_type = args[:section_type] if args.key?(:section_type)
  @vacation_mode_days = args[:vacation_mode_days] if args.key?(:vacation_mode_days)
  @vacation_mode_expire_time = args[:vacation_mode_expire_time] if args.key?(:vacation_mode_expire_time)
end