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

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

Information about a device claimed for a partner.

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

Returns a new instance of DeviceClaim



232
233
234
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 232

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

Instance Attribute Details

#owner_company_idFixnum

Owner ID. Corresponds to the JSON property ownerCompanyId

Returns:

  • (Fixnum)


225
226
227
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 225

def owner_company_id
  @owner_company_id
end

#section_typeString

Section type of the device claim. Corresponds to the JSON property sectionType

Returns:

  • (String)


230
231
232
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 230

def section_type
  @section_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



237
238
239
240
# File 'generated/google/apis/androiddeviceprovisioning_v1/classes.rb', line 237

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