Class: OneviewSDK::ImageStreamer::API600::DeploymentPlan

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

Overview

Deployment Plan resource implementation for Image Streamer

Constant Summary

Constants inherited from OneviewSDK::ImageStreamer::API300::DeploymentPlan

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

#get_used_by, #initialize

Methods inherited from OneviewSDK::ImageStreamer::API300::DeploymentPlan

#initialize

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::API500::DeploymentPlan

Instance Method Details

#get_osdpHash

Retrieves the Deployment Plan details as per the selected attributes.

Returns:

  • (Hash)

    The OS Deployment Plan.



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

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