Class: Saklient::Cloud::Resources::DiskPlan

Inherits:
Resource
  • Object
show all
Defined in:
lib/saklient/cloud/resources/disk_plan.rb

Overview

ディスクプラン情報の1レコードに対応するクラス.

Instance Attribute Summary collapse

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#api_deserialize, #api_serialize, create_with, #destroy, #dump, #exists, #request_retry, #set_param

Constructor Details

#initialize(client, obj, wrapped = false) ⇒ DiskPlan

Returns a new instance of DiskPlan.

Parameters:



69
70
71
72
73
74
# File 'lib/saklient/cloud/resources/disk_plan.rb', line 69

def initialize(client, obj, wrapped = false)
  super(client)
  Saklient::Util::validate_type(client, 'Saklient::Cloud::Client')
  Saklient::Util::validate_type(wrapped, 'bool')
  api_deserialize(obj, wrapped)
end

Instance Attribute Details

#idString (readonly)

ID

Returns:

  • (String)


94
95
96
# File 'lib/saklient/cloud/resources/disk_plan.rb', line 94

def id
  @id
end

#nameString (readonly)

名前

Returns:

  • (String)


118
119
120
# File 'lib/saklient/cloud/resources/disk_plan.rb', line 118

def name
  @name
end

#storage_classString (readonly)

ストレージクラス Enums::EStorageClass

Returns:

  • (String)


142
143
144
# File 'lib/saklient/cloud/resources/disk_plan.rb', line 142

def storage_class
  @storage_class
end

Instance Method Details

#_class_nameString

Returns:

  • (String)


55
56
57
# File 'lib/saklient/cloud/resources/disk_plan.rb', line 55

def _class_name
  return 'DiskPlan'
end

#_idString

Returns:

  • (String)


61
62
63
# File 'lib/saklient/cloud/resources/disk_plan.rb', line 61

def _id
  return get_id
end