Class: Jamf::NetBootServer
- Defined in:
- lib/jamf/api/classic/api_objects/netboot_server.rb
Overview
A NetBoot Server in the JSS
Only minimally implemented, mostly for access to the APIObject list methods
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- 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
-
#boot_args ⇒ String
readonly
The nvram/bless args.
-
#boot_device ⇒ String
readonly
The nvram/bless args.
-
#boot_file ⇒ String
readonly
The nvram/bless args.
- #configure_manually ⇒ Boolean readonly
-
#default_image ⇒ boolean
readonly
Is this one default?.
-
#image ⇒ String
readonly
The actual dmg name , eg “NetBoot.dmg”.
-
#ip_address ⇒ String
readonly
The server’s IP address.
-
#protocol ⇒ String
readonly
“nfs” or “http”.
-
#set ⇒ String
readonly
The nbi folder “MetroNB-test-10.9.3-1063.nbi”.
-
#share_point ⇒ String
readonly
The tftp/protocol sharepoint name, usually “NetBootSP0”.
- #specific_image ⇒ Boolean readonly
-
#target_platform ⇒ String
readonly
E.g.“Intel/x86”.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NetBootServer
constructor
See Jamf::APIObject#initialize.
Constructor Details
#initialize(**args) ⇒ NetBootServer
See Jamf::APIObject#initialize
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
# File 'lib/jamf/api/classic/api_objects/netboot_server.rb', line 108 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_args ⇒ String (readonly)
Returns the nvram/bless args.
65 66 67 |
# File 'lib/jamf/api/classic/api_objects/netboot_server.rb', line 65 def boot_args @boot_args end |
#boot_device ⇒ String (readonly)
Returns the nvram/bless args.
68 69 70 |
# File 'lib/jamf/api/classic/api_objects/netboot_server.rb', line 68 def boot_device @boot_device end |
#boot_file ⇒ String (readonly)
Returns the nvram/bless args.
71 72 73 |
# File 'lib/jamf/api/classic/api_objects/netboot_server.rb', line 71 def boot_file @boot_file end |
#configure_manually ⇒ Boolean (readonly)
74 75 76 |
# File 'lib/jamf/api/classic/api_objects/netboot_server.rb', line 74 def configure_manually @configure_manually end |
#default_image ⇒ boolean (readonly)
Returns is this one default?.
77 78 79 |
# File 'lib/jamf/api/classic/api_objects/netboot_server.rb', line 77 def default_image @default_image end |
#image ⇒ String (readonly)
Returns the actual dmg name , eg “NetBoot.dmg”.
80 81 82 |
# File 'lib/jamf/api/classic/api_objects/netboot_server.rb', line 80 def image @image end |
#ip_address ⇒ String (readonly)
Returns the server’s IP address.
83 84 85 |
# File 'lib/jamf/api/classic/api_objects/netboot_server.rb', line 83 def ip_address @ip_address end |
#protocol ⇒ String (readonly)
Returns “nfs” or “http”.
86 87 88 |
# File 'lib/jamf/api/classic/api_objects/netboot_server.rb', line 86 def protocol @protocol end |
#set ⇒ String (readonly)
Returns the nbi folder “MetroNB-test-10.9.3-1063.nbi”.
89 90 91 |
# File 'lib/jamf/api/classic/api_objects/netboot_server.rb', line 89 def set @set end |
#share_point ⇒ String (readonly)
Returns the tftp/protocol sharepoint name, usually “NetBootSP0”.
92 93 94 |
# File 'lib/jamf/api/classic/api_objects/netboot_server.rb', line 92 def share_point @share_point end |
#specific_image ⇒ Boolean (readonly)
95 96 97 |
# File 'lib/jamf/api/classic/api_objects/netboot_server.rb', line 95 def specific_image @specific_image end |
#target_platform ⇒ String (readonly)
Returns e.g.“Intel/x86”.
98 99 100 |
# File 'lib/jamf/api/classic/api_objects/netboot_server.rb', line 98 def target_platform @target_platform end |