class BrocadeAPIClient::Switches

Switches REST API Methods

Public Class Methods

new(http_client) click to toggle source
# File lib/BrocadeAPIClient/switches.rb, line 14
def initialize(http_client)
  @http_client = http_client
  @base_url = '/resourcegroups/All'
end

Public Instance Methods

allswitches() click to toggle source
# File lib/BrocadeAPIClient/switches.rb, line 24
def allswitches
  api_url =  @base_url + '/fcswitches'
  _response, _body = @http_client.get(api_url)
end
fabricswitches(fabricid) click to toggle source
# File lib/BrocadeAPIClient/switches.rb, line 19
def fabricswitches(fabricid)
  api_url = @base_url + '/fcfabrics/' + fabricid.upcase + '/fcswitches'
  _response, _body = @http_client.get(api_url)
end