Class: OneviewSDK::ImageStreamer::API600::PlanScript

Inherits:
OneviewSDK::ImageStreamer::API500::PlanScript show all
Defined in:
lib/oneview-sdk/image-streamer/resource/api600/plan_script.rb

Overview

Plan Script resource implementation for Image Streamer

Constant Summary

Constants inherited from OneviewSDK::ImageStreamer::API300::PlanScript

OneviewSDK::ImageStreamer::API300::PlanScript::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

Methods inherited from OneviewSDK::ImageStreamer::API300::PlanScript

#initialize, #retrieve_differences

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::ImageStreamer::API300::PlanScript

Instance Method Details

#retrieve_read_onlyHash

Retrieves the read only artifacts of the selected Plan Script as per the selected attributes.

Returns:

  • (Hash)

    The readonly artifacts of the selected Plan Script.



22
23
24
25
26
27
# File 'lib/oneview-sdk/image-streamer/resource/api600/plan_script.rb', line 22

def retrieve_read_only
  ensure_client && ensure_uri
  path = "#{BASE_URI}/#{@data['uri'].split('/').last}/usedby/readonly"
  response = @client.rest_get(path, { 'Content-Type' => 'none' }, @api_version)
  @client.response_handler(response)
end