Class: Google::Apis::AndroiddeviceprovisioningV1::DeviceClaim

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

Overview

A record of a device claimed by a reseller for a customer. Devices claimed for zero-touch enrollment have a claim with the type SECTION_TYPE_ZERO_TOUCH. To learn more, read Claim devices for customers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DeviceClaim

Returns a new instance of DeviceClaim.



578
579
580
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 578

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

Instance Attribute Details

#additional_serviceString

The Additional service registered for the device. Corresponds to the JSON property additionalService

Returns:

  • (String)


549
550
551
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 549

def additional_service
  @additional_service
end

#owner_company_idFixnum

The ID of the Customer that purchased the device. Corresponds to the JSON property ownerCompanyId

Returns:

  • (Fixnum)


554
555
556
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 554

def owner_company_id
  @owner_company_id
end

#reseller_idFixnum

The ID of the reseller that claimed the device. Corresponds to the JSON property resellerId

Returns:

  • (Fixnum)


559
560
561
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 559

def reseller_id
  @reseller_id
end

#section_typeString

Output only. The type of claim made on the device. Corresponds to the JSON property sectionType

Returns:

  • (String)


564
565
566
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 564

def section_type
  @section_type
end

#vacation_mode_expire_timeString

The timestamp when the device will exit ‘vacation mode’. This value is present iff the device is in 'vacation mode'. Corresponds to the JSON property vacationModeExpireTime

Returns:

  • (String)


570
571
572
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 570

def vacation_mode_expire_time
  @vacation_mode_expire_time
end

#vacation_mode_start_timeString

The timestamp when the device was put into ‘vacation mode’. This value is present iff the device is in 'vacation mode'. Corresponds to the JSON property vacationModeStartTime

Returns:

  • (String)


576
577
578
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 576

def vacation_mode_start_time
  @vacation_mode_start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



583
584
585
586
587
588
589
590
# File 'lib/google/apis/androiddeviceprovisioning_v1/classes.rb', line 583

def update!(**args)
  @additional_service = args[:additional_service] if args.key?(:additional_service)
  @owner_company_id = args[:owner_company_id] if args.key?(:owner_company_id)
  @reseller_id = args[:reseller_id] if args.key?(:reseller_id)
  @section_type = args[:section_type] if args.key?(:section_type)
  @vacation_mode_expire_time = args[:vacation_mode_expire_time] if args.key?(:vacation_mode_expire_time)
  @vacation_mode_start_time = args[:vacation_mode_start_time] if args.key?(:vacation_mode_start_time)
end