Class: OneviewSDK::API200::LogicalDownlink

Inherits:
Resource show all
Defined in:
lib/oneview-sdk/resource/api200/logical_downlink.rb

Overview

Logical downlink resource implementation

Constant Summary collapse

BASE_URI =
'/rest/logical-downlinks'.freeze

Constants inherited from Resource

Resource::UNIQUE_IDENTIFIERS

Instance Attribute Summary

Attributes inherited from Resource

#api_version, #client, #data, #logger

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Resource

#==, #[], #[]=, build_query, #create!, #each, #eql?, #exists?, find_by, from_file, get_all, #initialize, #like?, #refresh, #retrieve!, schema, #schema, #set, #set_all, #to_file

Constructor Details

This class inherits a constructor from OneviewSDK::Resource

Class Method Details

.get_without_ethernet(client) ⇒ Array<OneviewSDK::LogicalDownlink] Logical downlink array

Gets a list of logical downlinks, excluding any existing ethernet network

Parameters:

Returns:

  • (Array<OneviewSDK::LogicalDownlink] Logical downlink array)

    Array<OneviewSDK::LogicalDownlink] Logical downlink array


41
42
43
44
45
46
47
# File 'lib/oneview-sdk/resource/api200/logical_downlink.rb', line 41

def self.get_without_ethernet(client)
  result = []
  response = client.rest_get(BASE_URI + '/withoutEthernet')
  members = client.response_handler(response)['members']
  members.each { |member| result << new(client, member) }
  result
end

Instance Method Details

#createObject

Method is not available

Raises:


22
23
24
# File 'lib/oneview-sdk/resource/api200/logical_downlink.rb', line 22

def create(*)
  unavailable_method
end

#deleteObject

Method is not available

Raises:


34
35
36
# File 'lib/oneview-sdk/resource/api200/logical_downlink.rb', line 34

def delete(*)
  unavailable_method
end

#get_without_ethernetOneviewSDK::LogicalDownlink

Gets a logical downlink, excluding any existing ethernet network

Returns:

  • (OneviewSDK::LogicalDownlink)

    Logical downlink array


51
52
53
54
# File 'lib/oneview-sdk/resource/api200/logical_downlink.rb', line 51

def get_without_ethernet
  response = @client.rest_get(@data['uri'] + '/withoutEthernet')
  OneviewSDK::LogicalDownlink.new(@client, @client.response_handler(response))
end

#updateObject

Method is not available

Raises:


28
29
30
# File 'lib/oneview-sdk/resource/api200/logical_downlink.rb', line 28

def update(*)
  unavailable_method
end