class OneviewSDK::ImageStreamer::API500::DeploymentPlan

Deployment Plan resource implementation for Image Streamer

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 OneView 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.

# File lib/oneview-sdk/image-streamer/resource/api500/deployment_plan.rb, line 24
def initialize(client, params = {}, api_ver = nil)
  @data ||= {}
  # Default values:
  @data['type'] ||= 'OEDeploymentPlanV5'
  super
end

Public Instance Methods

get_used_by() click to toggle source

Retrieves the Deployment Plan details as per the selected attributes. @return [Hash] The OS Deployment Plan.

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