Method: OneviewSDK::API200::VolumeSnapshot#initialize

Defined in:
lib/oneview-sdk/resource/api200/volume_snapshot.rb

#initialize(client, params = {}, api_ver = nil) ⇒ VolumeSnapshot

Create a resource object, associate it with a client, and set its properties.

Parameters:

  • client (OneviewSDK::Client)

    The client object for the OneView appliance

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

    The options for this resource (key-value pairs)

  • api_ver (Integer) (defaults to: nil)

    The api version to use when interracting with this resource.



24
25
26
27
28
# File 'lib/oneview-sdk/resource/api200/volume_snapshot.rb', line 24

def initialize(client, params = {}, api_ver = nil)
  super
  # Default values
  @data['type'] ||= 'Snapshot'
end