class OneviewSDK::ImageStreamer::API300::PlanScript

Plan Script resource implementation for Image Streamer

Constants

BASE_URI

Public Class Methods

new(client, params = {}, api_ver = nil) click to toggle source

Create a resource object, associate it with a client, and set its properties. @param [OneviewSDK::ImageStreamer::Client] client The client object for the Image Streamer appliance @param [Hash] params The options for this resource (key-value pairs) @param [Integer] api_ver The api version to use when interracting with this resource.

Calls superclass method
# File lib/oneview-sdk/image-streamer/resource/api300/plan_script.rb, line 25
def initialize(client, params = {}, api_ver = nil)
  super
  # Default values:
  @data['type'] ||= 'PlanScript'
end

Public Instance Methods

retrieve_differences() click to toggle source

Retrieves the modified contents of the selected Plan Script as per the selected attributes. @return [Hash] The script differences of the selected Plan Script.

# File lib/oneview-sdk/image-streamer/resource/api300/plan_script.rb, line 33
def retrieve_differences
  ensure_client && ensure_uri
  path = "#{BASE_URI}/differences/#{@data['uri'].split('/').last}"
  response = @client.rest_post(path, { 'Content-Type' => 'none' }, @api_version)
  @client.response_handler(response)
end