Class: OneviewSDK::API600::C7000::VolumeTemplate

Inherits:
OneviewSDK::API500::C7000::VolumeTemplate show all
Defined in:
lib/oneview-sdk/resource/api600/c7000/volume_template.rb

Overview

Volume Template resource implementation for API600 C7000

Constant Summary collapse

BASE_URI =
'/rest/storage-volume-templates'.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

Methods inherited from OneviewSDK::API500::C7000::VolumeTemplate

#delete, #get_compatible_systems, #get_default_value, #lock, #locked?, #set_default_value, #set_root_template, #unlock

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

Class Method Details

.get_reachable_volume_templates(client, attributes = {}, query = nil) ⇒ Array

Gets the storage templates that are connected to this set of expected network URIs or that are scoped to the set of scope URIs or which only allow private volumes

Parameters:

  • client (OneviewSDK::Client)

    The client object for the OneView appliance

  • attributes (Hash) (defaults to: {})

    Hash containing the attributes name and value to filter storage templates

  • query (Hash) (defaults to: nil)

    The query options for the request (key-value pairs)

Returns:

  • (Array)

    the collection of volume templates



27
28
29
30
# File 'lib/oneview-sdk/resource/api600/c7000/volume_template.rb', line 27

def self.get_reachable_volume_templates(client, attributes = {}, query = nil)
  query_uri = build_query(query) if query
  find_by(client, attributes, "#{BASE_URI}/reachable-volume-templates#{query_uri}")
end