Class: JSS::SoftwareUpdateServer

Inherits:
APIObject show all
Defined in:
lib/jss-api/api_object/software_update_server.rb,
lib/jss-api.rb

Overview

A Software Update Server in the JSS

Only minimally implemented, for access to the APIObject list methods

See Also:

Constant Summary collapse

RSRC_BASE =

The base for REST resources of this class

"softwareupdateservers"
RSRC_LIST_KEY =

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

:software_update_servers
RSRC_OBJECT_KEY =

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

:software_update_server
VALID_DATA_KEYS =

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

[:set_system_wide, :port]

Constants inherited from APIObject

APIObject::DEFAULT_LOOKUP_KEYS, APIObject::REQUIRED_DATA_KEYS

Instance Attribute Summary collapse

Attributes inherited from APIObject

#id, #in_jss, #name, #rest_rsrc

Instance Method Summary collapse

Methods inherited from APIObject

all, all_ids, all_names, #delete, get_name, map_all_ids_to, #save, xml_list

Constructor Details

#initialize(args = {}) ⇒ SoftwareUpdateServer

Returns a new instance of SoftwareUpdateServer.

See Also:

  • SS::APIObject#initialize


95
96
97
98
99
100
# File 'lib/jss-api/api_object/software_update_server.rb', line 95

def initialize (args = {})
  super
  @ip_address = @init_data[:ip_address]
  @port = @init_data[:port]
  @set_system_wide = @init_data[:set_system_wide]
end

Instance Attribute Details

#ip_addressString (readonly)

Returns:



79
80
81
# File 'lib/jss-api/api_object/software_update_server.rb', line 79

def ip_address
  @ip_address
end

#portInteger (readonly)

Returns:

  • (Integer)


82
83
84
# File 'lib/jss-api/api_object/software_update_server.rb', line 82

def port
  @port
end

#set_system_wideBoolean (readonly)

Returns:

  • (Boolean)


85
86
87
# File 'lib/jss-api/api_object/software_update_server.rb', line 85

def set_system_wide
  @set_system_wide
end