Class: Google::Apis::AndroidmanagementV1::AlwaysOnVpnPackage

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

Configuration for an always-on VPN connection.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AlwaysOnVpnPackage

Returns a new instance of AlwaysOnVpnPackage.



178
179
180
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 178

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

Instance Attribute Details

#lockdown_enabledBoolean Also known as: lockdown_enabled?

Disallows networking when the VPN is not connected. Corresponds to the JSON property lockdownEnabled

Returns:

  • (Boolean)


170
171
172
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 170

def lockdown_enabled
  @lockdown_enabled
end

#package_nameString

The package name of the VPN app. Corresponds to the JSON property packageName

Returns:

  • (String)


176
177
178
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 176

def package_name
  @package_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



183
184
185
186
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 183

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