Class: OneviewSDK::API300::C7000::InternalLinkSet
- Defined in:
- lib/oneview-sdk/resource/api300/c7000/internal_link_set.rb
Overview
Internal Link Set resource implementation for API300 C7000
Direct Known Subclasses
Synergy::InternalLinkSet, OneviewSDK::API500::C7000::InternalLinkSet
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
-
.get_internal_link_set(client, name) ⇒ Array
Retrieves the internal link set with name.
-
.get_internal_link_sets(client) ⇒ Object
Retrieves all internal link sets.
Instance Method Summary collapse
-
#create ⇒ Object
Method is unavailable.
-
#delete ⇒ Object
Method is unavailable.
-
#update ⇒ Object
Method is unavailable.
Methods inherited from Resource
#==, #[], #[]=, build_query, #create!, #deep_merge!, #each, #eql?, #exists?, find_by, find_with_pagination, 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_internal_link_set(client, name) ⇒ Array
Retrieves the internal link set with name
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 |
.get_internal_link_sets(client) ⇒ Object
Retrieves all internal link sets
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
#create ⇒ Object
Method is unavailable
23 24 25 |
# File 'lib/oneview-sdk/resource/api300/c7000/internal_link_set.rb', line 23 def create(*) unavailable_method end |
#delete ⇒ Object
Method is unavailable
29 30 31 |
# File 'lib/oneview-sdk/resource/api300/c7000/internal_link_set.rb', line 29 def delete(*) unavailable_method end |
#update ⇒ Object
Method is unavailable
35 36 37 |
# File 'lib/oneview-sdk/resource/api300/c7000/internal_link_set.rb', line 35 def update(*) unavailable_method end |