Class: Saklient::Cloud::Resources::DiskPlan
- Defined in:
- lib/saklient/cloud/resources/disk_plan.rb
Overview
ディスクプラン情報の1レコードに対応するクラス.
Instance Attribute Summary collapse
-
#id ⇒ String
readonly
ID.
-
#name ⇒ String
readonly
名前.
-
#storage_class ⇒ String
readonly
ストレージクラス Enums::EStorageClass.
Attributes inherited from Resource
Instance Method Summary collapse
- #_class_name ⇒ String
- #_id ⇒ String
-
#initialize(client, obj, wrapped = false) ⇒ DiskPlan
constructor
A new instance of DiskPlan.
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.
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
#id ⇒ String (readonly)
ID
94 95 96 |
# File 'lib/saklient/cloud/resources/disk_plan.rb', line 94 def id @id end |
#name ⇒ String (readonly)
名前
118 119 120 |
# File 'lib/saklient/cloud/resources/disk_plan.rb', line 118 def name @name end |
#storage_class ⇒ String (readonly)
ストレージクラス Enums::EStorageClass
142 143 144 |
# File 'lib/saklient/cloud/resources/disk_plan.rb', line 142 def storage_class @storage_class end |
Instance Method Details
#_class_name ⇒ String
55 56 57 |
# File 'lib/saklient/cloud/resources/disk_plan.rb', line 55 def _class_name return 'DiskPlan' end |
#_id ⇒ String
61 62 63 |
# File 'lib/saklient/cloud/resources/disk_plan.rb', line 61 def _id return get_id end |