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]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ NetBootServer

See JSS::APIObject#initialize



125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
# File 'lib/jss/api_object/netboot_server.rb', line 125

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)

Returns the nvram/bless args.

Returns:

  • (String)

    the nvram/bless args



81
82
83
# File 'lib/jss/api_object/netboot_server.rb', line 81

def boot_args
  @boot_args
end

#boot_deviceString (readonly)

Returns the nvram/bless args.

Returns:

  • (String)

    the nvram/bless args



84
85
86
# File 'lib/jss/api_object/netboot_server.rb', line 84

def boot_device
  @boot_device
end

#boot_fileString (readonly)

Returns the nvram/bless args.

Returns:

  • (String)

    the nvram/bless args



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

def boot_file
  @boot_file
end

#configure_manuallyBoolean (readonly)

Returns:

  • (Boolean)


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

def configure_manually
  @configure_manually
end

#default_imageboolean (readonly)

Returns is this one default?.

Returns:

  • (boolean)

    is this one default?



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

def default_image
  @default_image
end

#imageString (readonly)

Returns the actual dmg name , eg “NetBoot.dmg”.

Returns:

  • (String)

    the actual dmg name , eg “NetBoot.dmg”



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

def image
  @image
end

#ip_addressString (readonly)

Returns the server’s IP address.

Returns:

  • (String)

    the server’s IP address



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

def ip_address
  @ip_address
end

#protocolString (readonly)

Returns “nfs” or “http”.

Returns:

  • (String)

    “nfs” or “http”



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

def protocol
  @protocol
end

#setString (readonly)

Returns the nbi folder “MetroNB-test-10.9.3-1063.nbi”.

Returns:

  • (String)

    the nbi folder “MetroNB-test-10.9.3-1063.nbi”



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

def set
  @set
end

#share_pointString (readonly)

Returns the tftp/protocol sharepoint name, usually “NetBootSP0”.

Returns:

  • (String)

    the tftp/protocol sharepoint name, usually “NetBootSP0”



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

def share_point
  @share_point
end

#specific_imageBoolean (readonly)

Returns:

  • (Boolean)


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

def specific_image
  @specific_image
end

#target_platformString (readonly)

Returns e.g.“Intel/x86”.

Returns:

  • (String)

    e.g.“Intel/x86”



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

def target_platform
  @target_platform
end