Class: OneviewSDK::API300::C7000::InternalLinkSet

Inherits:
Resource show all
Defined in:
lib/oneview-sdk/resource/api300/c7000/internal_link_set.rb

Overview

Internal Link Set resource implementation for API300 C7000

Constant Summary collapse

BASE_URI =
'/rest/internal-link-sets'.freeze

Constants inherited from Resource

Resource::DEFAULT_REQUEST_HEADER, 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!, #deep_merge!, #each, #eql?, #exists?, find_by, find_with_pagination, from_file, get_all, get_all_with_query, #initialize, #like?, #refresh, #retrieve!, schema, #schema, #set, #set_all, #to_file

Constructor Details

This class inherits a constructor from OneviewSDK::Resource

Class Method Details

Retrieves the internal link set with name

Parameters:

  • client (OneviewSDK::Client)

    The client object for the OneView appliance

  • name (String)

    The internal link set name

Returns:

  • (Array)

    Internal Link Set Array



51
52
53
54
# File 'lib/oneview-sdk/resource/api300/c7000/internal_link_set.rb', line 51

def self.get_internal_link_set(client, name)
  results = get_internal_link_sets(client)
  results.find { |internal_link_set| internal_link_set['name'] == name }
end

Retrieves all internal link sets

Parameters:



41
42
43
44
45
# File 'lib/oneview-sdk/resource/api300/c7000/internal_link_set.rb', line 41

def self.get_internal_link_sets(client)
  response = client.rest_get(BASE_URI)
  response = client.response_handler(response)
  response['members']
end

Instance Method Details

#createObject

Method is unavailable

Raises:



23
24
25
# File 'lib/oneview-sdk/resource/api300/c7000/internal_link_set.rb', line 23

def create(*)
  unavailable_method
end

#deleteObject

Method is unavailable

Raises:



29
30
31
# File 'lib/oneview-sdk/resource/api300/c7000/internal_link_set.rb', line 29

def delete(*)
  unavailable_method
end

#updateObject

Method is unavailable

Raises:



35
36
37
# File 'lib/oneview-sdk/resource/api300/c7000/internal_link_set.rb', line 35

def update(*)
  unavailable_method
end