Class: Google::Apis::AndroidmanagementV1::DeviceRadioState

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

Controls for device radio settings.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DeviceRadioState

Returns a new instance of DeviceRadioState.



1794
1795
1796
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1794

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

Instance Attribute Details

#airplane_mode_stateString

Controls whether airplane mode can be toggled by the user or not. Corresponds to the JSON property airplaneModeState

Returns:

  • (String)


1776
1777
1778
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1776

def airplane_mode_state
  @airplane_mode_state
end

#cellular_two_g_stateString

Controls whether cellular 2G setting can be toggled by the user or not. Corresponds to the JSON property cellularTwoGState

Returns:

  • (String)


1781
1782
1783
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1781

def cellular_two_g_state
  @cellular_two_g_state
end

#ultra_wideband_stateString

Controls the state of the ultra wideband setting and whether the user can toggle it on or off. Corresponds to the JSON property ultraWidebandState

Returns:

  • (String)


1787
1788
1789
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1787

def ultra_wideband_state
  @ultra_wideband_state
end

#wifi_stateString

Controls current state of Wi-Fi and if user can change its state. Corresponds to the JSON property wifiState

Returns:

  • (String)


1792
1793
1794
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1792

def wifi_state
  @wifi_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1799
1800
1801
1802
1803
1804
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1799

def update!(**args)
  @airplane_mode_state = args[:airplane_mode_state] if args.key?(:airplane_mode_state)
  @cellular_two_g_state = args[:cellular_two_g_state] if args.key?(:cellular_two_g_state)
  @ultra_wideband_state = args[:ultra_wideband_state] if args.key?(:ultra_wideband_state)
  @wifi_state = args[:wifi_state] if args.key?(:wifi_state)
end