Class: OneviewSDK::API200::ManagedSAN
- Defined in:
- lib/oneview-sdk/resource/api200/managed_san.rb
Overview
Managed SAN resource implementation
Direct Known Subclasses
Constant Summary collapse
- BASE_URI =
'/rest/fc-sans/managed-sans'.freeze
Constants inherited from Resource
Resource::DEFAULT_REQUEST_HEADER, Resource::UNIQUE_IDENTIFIERS
Instance Attribute Summary
Attributes inherited from Resource
#api_version, #client, #data, #logger
Instance Method Summary collapse
-
#create ⇒ Object
Method is not available.
-
#delete ⇒ Object
Method is not available.
-
#get_endpoints ⇒ Array
Retrieves a list of endpoints.
-
#get_zoning_report ⇒ Object
Creates unexpected zoning report for a SAN.
-
#set_public_attributes(attributes) ⇒ Object
Set public attributes.
-
#set_refresh_state(state) ⇒ Object
Set refresh state for managed SAN.
-
#set_san_policy(policy) ⇒ Object
Set public attributes.
-
#update ⇒ Object
Method is not available.
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
Instance Method Details
#create ⇒ Object
Method is not available
22 23 24 |
# File 'lib/oneview-sdk/resource/api200/managed_san.rb', line 22 def create(*) unavailable_method end |
#delete ⇒ Object
Method is not available
28 29 30 |
# File 'lib/oneview-sdk/resource/api200/managed_san.rb', line 28 def delete(*) unavailable_method end |
#get_endpoints ⇒ Array
Retrieves a list of endpoints
40 41 42 43 |
# File 'lib/oneview-sdk/resource/api200/managed_san.rb', line 40 def get_endpoints response = @client.rest_get(@data['uri'] + '/endpoints') @client.response_handler(response)['members'] end |
#get_zoning_report ⇒ Object
Creates unexpected zoning report for a SAN
77 78 79 80 |
# File 'lib/oneview-sdk/resource/api200/managed_san.rb', line 77 def get_zoning_report response = @client.rest_post(@data['uri'] + '/issues', 'body' => {}) @client.response_handler(response) end |
#set_public_attributes(attributes) ⇒ Object
Set public attributes
58 59 60 61 |
# File 'lib/oneview-sdk/resource/api200/managed_san.rb', line 58 def set_public_attributes(attributes) response = @client.rest_put(@data['uri'], 'body' => { publicAttributes: attributes }) @client.response_handler(response) end |
#set_refresh_state(state) ⇒ Object
Set refresh state for managed SAN
47 48 49 50 |
# File 'lib/oneview-sdk/resource/api200/managed_san.rb', line 47 def set_refresh_state(state) response = @client.rest_put(@data['uri'], 'body' => { refreshState: state }) @client.response_handler(response) end |
#set_san_policy(policy) ⇒ Object
Set public attributes
71 72 73 74 |
# File 'lib/oneview-sdk/resource/api200/managed_san.rb', line 71 def set_san_policy(policy) response = @client.rest_put(@data['uri'], 'body' => { sanPolicy: policy }) @client.response_handler(response) end |
#update ⇒ Object
Method is not available
34 35 36 |
# File 'lib/oneview-sdk/resource/api200/managed_san.rb', line 34 def update(*) unavailable_method end |