Class: Saklient::Cloud::Resources::Ipv6Net
- Defined in:
- lib/saklient/cloud/resources/ipv6_net.rb
Overview
IPv6ネットワークの実体1つに対応し, 属性の取得や操作を行うためのクラス.
Instance Attribute Summary collapse
-
#id ⇒ String
readonly
ID.
-
#prefix ⇒ String
readonly
ネットワークプレフィックス.
-
#prefix_len ⇒ Fixnum
readonly
ネットワークプレフィックス長.
-
#prefix_tail ⇒ String
readonly
このネットワーク範囲における最後のIPv6アドレス.
Attributes inherited from Resource
Instance Method Summary collapse
- #_class_name ⇒ String
- #_id ⇒ String
-
#initialize(client, obj, wrapped = false) ⇒ Ipv6Net
constructor
A new instance of Ipv6Net.
-
#reload ⇒ Swytch
最新のリソース情報を再取得します.
Methods inherited from Resource
#api_deserialize, #api_serialize, create_with, #destroy, #dump, #exists, #request_retry, #set_param
Constructor Details
#initialize(client, obj, wrapped = false) ⇒ Ipv6Net
Returns a new instance of Ipv6Net.
81 82 83 84 85 86 |
# File 'lib/saklient/cloud/resources/ipv6_net.rb', line 81 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
106 107 108 |
# File 'lib/saklient/cloud/resources/ipv6_net.rb', line 106 def id @id end |
#prefix ⇒ String (readonly)
ネットワークプレフィックス
130 131 132 |
# File 'lib/saklient/cloud/resources/ipv6_net.rb', line 130 def prefix @prefix end |
#prefix_len ⇒ Fixnum (readonly)
ネットワークプレフィックス長
154 155 156 |
# File 'lib/saklient/cloud/resources/ipv6_net.rb', line 154 def prefix_len @prefix_len end |
#prefix_tail ⇒ String (readonly)
このネットワーク範囲における最後のIPv6アドレス
178 179 180 |
# File 'lib/saklient/cloud/resources/ipv6_net.rb', line 178 def prefix_tail @prefix_tail end |
Instance Method Details
#_class_name ⇒ String
60 61 62 |
# File 'lib/saklient/cloud/resources/ipv6_net.rb', line 60 def _class_name return 'Ipv6Net' end |
#_id ⇒ String
66 67 68 |
# File 'lib/saklient/cloud/resources/ipv6_net.rb', line 66 def _id return get_id end |
#reload ⇒ Swytch
最新のリソース情報を再取得します.
73 74 75 |
# File 'lib/saklient/cloud/resources/ipv6_net.rb', line 73 def reload return _reload end |