Class: Saklient::Cloud::Resources::Region
- Defined in:
- lib/saklient/cloud/resources/region.rb
Overview
リージョン情報.
Instance Attribute Summary collapse
-
#description ⇒ String
説明.
-
#id ⇒ String
readonly
ID.
-
#name ⇒ String
名前.
Attributes inherited from Resource
Instance Method Summary collapse
- #_class_name ⇒ String
- #_id ⇒ String
-
#initialize(client, obj, wrapped = false) ⇒ Region
constructor
A new instance of Region.
Methods inherited from Resource
#api_deserialize, #api_serialize, create_with, #destroy, #dump, #exists, #request_retry, #set_param
Constructor Details
#initialize(client, obj, wrapped = false) ⇒ Region
Returns a new instance of Region.
70 71 72 73 74 75 |
# File 'lib/saklient/cloud/resources/region.rb', line 70 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
#description ⇒ String
説明
171 172 173 |
# File 'lib/saklient/cloud/resources/region.rb', line 171 def description @description end |
#id ⇒ String (readonly)
ID
95 96 97 |
# File 'lib/saklient/cloud/resources/region.rb', line 95 def id @id end |
#name ⇒ String
名前
131 132 133 |
# File 'lib/saklient/cloud/resources/region.rb', line 131 def name @name end |
Instance Method Details
#_class_name ⇒ String
56 57 58 |
# File 'lib/saklient/cloud/resources/region.rb', line 56 def _class_name return 'Region' end |
#_id ⇒ String
62 63 64 |
# File 'lib/saklient/cloud/resources/region.rb', line 62 def _id return get_id end |