Class: OneviewSDK::API300::Synergy::Fabric
- Inherits:
-
OneviewSDK::API200::Fabric
- Object
- Resource
- OneviewSDK::API200::Fabric
- OneviewSDK::API300::Synergy::Fabric
- Defined in:
- lib/oneview-sdk/resource/api300/synergy/fabric.rb
Overview
Fabric resource implementation for API300 Synergy
Direct Known Subclasses
OneviewSDK::API500::Synergy::Fabric, OneviewSDK::API600::Synergy::Fabric
Constant Summary
Constants inherited from OneviewSDK::API200::Fabric
OneviewSDK::API200::Fabric::BASE_URI
Constants inherited from Resource
Resource::BASE_URI, Resource::DEFAULT_REQUEST_HEADER, Resource::UNIQUE_IDENTIFIERS
Instance Attribute Summary
Attributes inherited from Resource
#api_version, #client, #data, #logger
Instance Method Summary collapse
-
#get_reserved_vlan_range ⇒ OneviewSDK::Fabric
Gets the reserved vlan ID range for the fabric.
-
#set_reserved_vlan_range(params) ⇒ OneviewSDK::Fabric
Updates the reserved vlan ID range for the fabric.
Methods inherited from OneviewSDK::API200::Fabric
#create, #delete, #refresh, #update
Methods inherited from Resource
#==, #[], #[]=, build_query, #create, #create!, #deep_merge!, #delete, #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, #update
Constructor Details
This class inherits a constructor from OneviewSDK::Resource
Instance Method Details
#get_reserved_vlan_range ⇒ OneviewSDK::Fabric
Gets the reserved vlan ID range for the fabric
25 26 27 28 29 |
# File 'lib/oneview-sdk/resource/api300/synergy/fabric.rb', line 25 def get_reserved_vlan_range ensure_client && ensure_uri response = @client.rest_get("#{@data['uri']}/reserved-vlan-range", {}, @api_version) @client.response_handler(response) end |
#set_reserved_vlan_range(params) ⇒ OneviewSDK::Fabric
Updates the reserved vlan ID range for the fabric.
37 38 39 40 41 42 |
# File 'lib/oneview-sdk/resource/api300/synergy/fabric.rb', line 37 def set_reserved_vlan_range(params) ensure_client && ensure_uri response = @client.rest_put("#{@data['uri']}/reserved-vlan-range", { 'body' => params }, @api_version) @client.response_handler(response) self end |