Class: Google::Apis::AndroidmanagementV1::DpcMigrationInfo

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

Overview

Information related to whether this device was migrated from being managed by another Device Policy Controller (DPC).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DpcMigrationInfo

Returns a new instance of DpcMigrationInfo.



2067
2068
2069
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2067

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

Instance Attribute Details

#additional_dataString

Output only. If this device was migrated from another DPC, the additionalData field of the migration token is populated here. Corresponds to the JSON property additionalData

Returns:

  • (String)


2059
2060
2061
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2059

def additional_data
  @additional_data
end

#previous_dpcString

Output only. If this device was migrated from another DPC, this is its package name. Not populated otherwise. Corresponds to the JSON property previousDpc

Returns:

  • (String)


2065
2066
2067
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2065

def previous_dpc
  @previous_dpc
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2072
2073
2074
2075
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2072

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