Class: JSS::NetBootServer

Inherits:
APIObject show all
Defined in:
lib/jss/api_object/netboot_server.rb,
lib/jss.rb

Overview

A NetBoot Server in the JSS

Only minimally implemented, mostly for access to the APIObject list methods

See Also:

Constant Summary collapse

RSRC_BASE =

The base for REST resources of this class

"netbootservers"
RSRC_LIST_KEY =

the hash key used for the JSON list output of all objects in the JSS

:netboot_servers
RSRC_OBJECT_KEY =

The hash key used for the JSON object output. It's also used in various error messages

:netboot_server
VALID_DATA_KEYS =

these keys, as well as :id and :name, are present in valid API JSON data for this class

[:protocol, :boot_args]
OBJECT_HISTORY_OBJECT_TYPE =

the object type for this object in the object history table. See APIObject#add_object_history_entry

81

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ NetBootServer

See JSS::APIObject#initialize



130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# File 'lib/jss/api_object/netboot_server.rb', line 130

def initialize (args = {})
  super
  @boot_args = @init_data[:boot_args]
  @boot_device = @init_data[:boot_device]
  @boot_file = @init_data[:boot_file]
  @configure_manually = @init_data[:configure_manually]
  @default_image = @init_data[:default_image]
  @image = @init_data[:image]
  @ip_address = @init_data[:ip_address]
  @protocol = @init_data[:protocol]
  @set = @init_data[:set]
  @share_point = @init_data[:share_point]
  @specific_image = @init_data[:specific_image]
  @target_platform = @init_data[:target_platform]

end

Instance Attribute Details

#boot_argsString (readonly)



86
87
88
# File 'lib/jss/api_object/netboot_server.rb', line 86

def boot_args
  @boot_args
end

#boot_deviceString (readonly)



89
90
91
# File 'lib/jss/api_object/netboot_server.rb', line 89

def boot_device
  @boot_device
end

#boot_fileString (readonly)



92
93
94
# File 'lib/jss/api_object/netboot_server.rb', line 92

def boot_file
  @boot_file
end

#configure_manuallyBoolean (readonly)



95
96
97
# File 'lib/jss/api_object/netboot_server.rb', line 95

def configure_manually
  @configure_manually
end

#default_imageboolean (readonly)



98
99
100
# File 'lib/jss/api_object/netboot_server.rb', line 98

def default_image
  @default_image
end

#imageString (readonly)



101
102
103
# File 'lib/jss/api_object/netboot_server.rb', line 101

def image
  @image
end

#ip_addressString (readonly)



104
105
106
# File 'lib/jss/api_object/netboot_server.rb', line 104

def ip_address
  @ip_address
end

#protocolString (readonly)



107
108
109
# File 'lib/jss/api_object/netboot_server.rb', line 107

def protocol
  @protocol
end

#setString (readonly)



110
111
112
# File 'lib/jss/api_object/netboot_server.rb', line 110

def set
  @set
end

#share_pointString (readonly)



113
114
115
# File 'lib/jss/api_object/netboot_server.rb', line 113

def share_point
  @share_point
end

#specific_imageBoolean (readonly)



116
117
118
# File 'lib/jss/api_object/netboot_server.rb', line 116

def specific_image
  @specific_image
end

#target_platformString (readonly)



119
120
121
# File 'lib/jss/api_object/netboot_server.rb', line 119

def target_platform
  @target_platform
end