Class: Saklient::Cloud::Models::Model_IsoImage
- Inherits:
-
Model
- Object
- Model
- Saklient::Cloud::Models::Model_IsoImage
- Defined in:
- lib/saklient/cloud/models/model_iso_image.rb
Overview
ISOイメージを検索・作成するための機能を備えたクラス.
Instance Method Summary (collapse)
-
- (Saklient::Cloud::Resources::IsoImage) create
新規リソース作成用のオブジェクトを用意します.
-
- (Model_IsoImage) filter_by(key, value, multiple = false)
Web APIのフィルタリング設定を直接指定します.
-
- (Array<Saklient::Cloud::Resources::IsoImage>) find
リソースの検索リクエストを実行し, 結果をリストで取得します.
-
- (Saklient::Cloud::Resources::IsoImage) get_by_id(id)
指定したIDを持つ唯一のリソースを取得します.
-
- (Model_IsoImage) limit(count)
次に取得するリストの上限レコード数を指定します.
-
- (Model_IsoImage) offset(offset)
次に取得するリストの開始オフセットを指定します.
-
- (Model_IsoImage) reset
次のリクエストのために設定されているステートをすべて破棄します.
-
- (Model_IsoImage) sort_by_name(reverse = false)
名前でソートします.
-
- (Model_IsoImage) sort_by_size(reverse = false)
サイズでソートします.
-
- (Model_IsoImage) with_name_like(name)
指定した文字列を名前に含むリソースに絞り込みます.
-
- (Model_IsoImage) with_shared_scope
パブリックISOイメージに絞り込みます.
-
- (Model_IsoImage) with_size_gib(sizeGib)
指定したサイズのISOイメージに絞り込みます.
-
- (Model_IsoImage) with_tag(tag)
指定したタグを持つリソースに絞り込みます.
-
- (Model_IsoImage) with_tag_dnf(dnf)
指定したDNFに合致するタグを持つリソースに絞り込みます.
-
- (Model_IsoImage) with_tags(tags)
指定したすべてのタグを持つリソースに絞り込みます.
-
- (Model_IsoImage) with_user_scope
プライベートISOイメージに絞り込みます.
Instance Method Details
- (Saklient::Cloud::Resources::IsoImage) create
新規リソース作成用のオブジェクトを用意します.
返り値のオブジェクトにパラメータを設定し, save() を呼ぶことで実際のリソースが作成されます.
97 98 99 |
# File 'lib/saklient/cloud/models/model_iso_image.rb', line 97 def create return _create end |
- (Model_IsoImage) filter_by(key, value, multiple = false)
Web APIのフィルタリング設定を直接指定します.
79 80 81 82 83 |
# File 'lib/saklient/cloud/models/model_iso_image.rb', line 79 def filter_by(key, value, multiple = false) Saklient::Util::validate_type(key, 'String') Saklient::Util::validate_type(multiple, 'bool') return _filter_by(key, value, multiple) end |
- (Array<Saklient::Cloud::Resources::IsoImage>) find
リソースの検索リクエストを実行し, 結果をリストで取得します.
113 114 115 |
# File 'lib/saklient/cloud/models/model_iso_image.rb', line 113 def find return _find end |
- (Saklient::Cloud::Resources::IsoImage) get_by_id(id)
指定したIDを持つ唯一のリソースを取得します.
105 106 107 108 |
# File 'lib/saklient/cloud/models/model_iso_image.rb', line 105 def get_by_id(id) Saklient::Util::validate_type(id, 'String') return _get_by_id(id) end |
- (Model_IsoImage) limit(count)
次に取得するリストの上限レコード数を指定します.
68 69 70 71 |
# File 'lib/saklient/cloud/models/model_iso_image.rb', line 68 def limit(count) Saklient::Util::validate_type(count, 'Fixnum') return _limit(count) end |
- (Model_IsoImage) offset(offset)
次に取得するリストの開始オフセットを指定します.
59 60 61 62 |
# File 'lib/saklient/cloud/models/model_iso_image.rb', line 59 def offset(offset) Saklient::Util::validate_type(offset, 'Fixnum') return _offset(offset) end |
- (Model_IsoImage) reset
次のリクエストのために設定されているステートをすべて破棄します.
88 89 90 |
# File 'lib/saklient/cloud/models/model_iso_image.rb', line 88 def reset return _reset end |
- (Model_IsoImage) sort_by_name(reverse = false)
Implement test case
名前でソートします.
167 168 169 170 |
# File 'lib/saklient/cloud/models/model_iso_image.rb', line 167 def sort_by_name(reverse = false) Saklient::Util::validate_type(reverse, 'bool') return _sort_by_name(reverse) end |
- (Model_IsoImage) sort_by_size(reverse = false)
サイズでソートします.
209 210 211 212 213 |
# File 'lib/saklient/cloud/models/model_iso_image.rb', line 209 def sort_by_size(reverse = false) Saklient::Util::validate_type(reverse, 'bool') _sort('SizeMB', reverse) return self end |
- (Model_IsoImage) with_name_like(name)
Implement test case
指定した文字列を名前に含むリソースに絞り込みます.
大文字・小文字は区別されません. 半角スペースで区切られた複数の文字列は, それらをすべて含むことが条件とみなされます.
125 126 127 128 |
# File 'lib/saklient/cloud/models/model_iso_image.rb', line 125 def with_name_like(name) Saklient::Util::validate_type(name, 'String') return _with_name_like(name) end |
- (Model_IsoImage) with_shared_scope
パブリックISOイメージに絞り込みます.
192 193 194 195 |
# File 'lib/saklient/cloud/models/model_iso_image.rb', line 192 def with_shared_scope _filter_by('Scope', [Saklient::Cloud::Enums::EScope::shared]) return self end |
- (Model_IsoImage) with_size_gib(sizeGib)
指定したサイズのISOイメージに絞り込みます.
183 184 185 186 187 |
# File 'lib/saklient/cloud/models/model_iso_image.rb', line 183 def with_size_gib(sizeGib) Saklient::Util::validate_type(sizeGib, 'Fixnum') _filter_by('SizeMB', [sizeGib * 1024]) return self end |
- (Model_IsoImage) with_tag(tag)
Implement test case
指定したタグを持つリソースに絞り込みます.
複数のタグを指定する場合は withTags() を利用してください.
137 138 139 140 |
# File 'lib/saklient/cloud/models/model_iso_image.rb', line 137 def with_tag(tag) Saklient::Util::validate_type(tag, 'String') return _with_tag(tag) end |
- (Model_IsoImage) with_tag_dnf(dnf)
Implement test case
指定したDNFに合致するタグを持つリソースに絞り込みます.
157 158 159 160 |
# File 'lib/saklient/cloud/models/model_iso_image.rb', line 157 def with_tag_dnf(dnf) Saklient::Util::validate_type(dnf, 'Array') return _with_tag_dnf(dnf) end |
- (Model_IsoImage) with_tags(tags)
Implement test case
指定したすべてのタグを持つリソースに絞り込みます.
147 148 149 150 |
# File 'lib/saklient/cloud/models/model_iso_image.rb', line 147 def () Saklient::Util::validate_type(, 'Array') return () end |
- (Model_IsoImage) with_user_scope
プライベートISOイメージに絞り込みます.
200 201 202 203 |
# File 'lib/saklient/cloud/models/model_iso_image.rb', line 200 def with_user_scope _filter_by('Scope', [Saklient::Cloud::Enums::EScope::user]) return self end |