class Saklient::Cloud::Models::Model_Iface
インタフェースを検索・作成するための機能を備えたクラス.
Public Class Methods
@private @param [Saklient::Cloud::Client] client
Saklient::Cloud::Models::Model::new
# File lib/saklient/cloud/models/model_iface.rb, line 117 def initialize(client) super(client) Saklient::Util::validate_type(client, 'Saklient::Cloud::Client') end
Public Instance Methods
新規リソース作成用のオブジェクトを用意します.
返り値のオブジェクトにパラメータを設定し, save() を呼ぶことで実際のリソースが作成されます.
@return [Saklient::Cloud::Resources::Iface] リソースオブジェクト
# File lib/saklient/cloud/models/model_iface.rb, line 95 def create return _create end
Web APIのフィルタリング設定を直接指定します.
@param [String] key キー @param [any] value 値 @param [bool] multiple valueに配列を与え, OR条件で完全一致検索する場合にtrueを指定します. 通常, valueはスカラ値であいまい検索されます. @return [Model_Iface]
# File lib/saklient/cloud/models/model_iface.rb, line 77 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
リソースの検索リクエストを実行し, 結果をリストで取得します.
@return [Array<Saklient::Cloud::Resources::Iface>] リソースオブジェクトの配列
# File lib/saklient/cloud/models/model_iface.rb, line 111 def find return _find end
指定したIDを持つ唯一のリソースを取得します.
@param [String] id @return [Saklient::Cloud::Resources::Iface] リソースオブジェクト
# File lib/saklient/cloud/models/model_iface.rb, line 103 def get_by_id(id) Saklient::Util::validate_type(id, 'String') return _get_by_id(id) end
次に取得するリストの上限レコード数を指定します.
@param [Fixnum] count 上限レコード数 @return [Model_Iface] this
# File lib/saklient/cloud/models/model_iface.rb, line 66 def limit(count) Saklient::Util::validate_type(count, 'Fixnum') return _limit(count) end
次に取得するリストの開始オフセットを指定します.
@param [Fixnum] offset オフセット @return [Model_Iface] this
# File lib/saklient/cloud/models/model_iface.rb, line 57 def offset(offset) Saklient::Util::validate_type(offset, 'Fixnum') return _offset(offset) end
次のリクエストのために設定されているステートをすべて破棄します.
@return [Model_Iface] this
# File lib/saklient/cloud/models/model_iface.rb, line 86 def reset return _reset end
Protected Instance Methods
@private @return [String]
# File lib/saklient/cloud/models/model_iface.rb, line 20 def _api_path return '/interface' end
@private @return [String]
# File lib/saklient/cloud/models/model_iface.rb, line 38 def _class_name return 'Iface' end
@private @param [any] obj @param [bool] wrapped @return [Saklient::Cloud::Resources::Resource]
# File lib/saklient/cloud/models/model_iface.rb, line 46 def _create_resource_impl(obj, wrapped = false) Saklient::Util::validate_type(wrapped, 'bool') return Saklient::Cloud::Resources::Iface.new(@_client, obj, wrapped) end
@private @return [String]
# File lib/saklient/cloud/models/model_iface.rb, line 26 def _root_key return 'Interface' end
@private @return [String]
# File lib/saklient/cloud/models/model_iface.rb, line 32 def _root_key_m return 'Interfaces' end