Class: Saklient::Cloud::Resources::Script
- Defined in:
- lib/saklient/cloud/resources/script.rb
Overview
スクリプトの実体1つに対応し, 属性の取得や操作を行うためのクラス.
Instance Attribute Summary collapse
-
#annotation ⇒ any
readonly
注釈.
-
#clazz ⇒ String
クラス Enums::EScriptClass.
-
#content ⇒ String
内容.
-
#description ⇒ String
説明.
-
#icon ⇒ Icon
アイコン.
-
#id ⇒ String
readonly
ID.
-
#name ⇒ String
readonly
名前.
-
#scope ⇒ String
readonly
スコープ Enums::EScope.
-
#tags ⇒ Array<String>
タグ文字列の配列.
Attributes inherited from Resource
Instance Method Summary collapse
- #_class_name ⇒ String
- #_id ⇒ String
-
#initialize(client, obj, wrapped = false) ⇒ Script
constructor
A new instance of Script.
-
#reload ⇒ Script
最新のリソース情報を再取得します.
-
#save ⇒ Script
このローカルオブジェクトに現在設定されているリソース情報をAPIに送信し, 新規作成または上書き保存します.
Methods inherited from Resource
#api_deserialize, #api_serialize, create_with, #destroy, #dump, #exists, #request_retry, #set_param
Constructor Details
#initialize(client, obj, wrapped = false) ⇒ Script
Returns a new instance of Script.
116 117 118 119 120 121 |
# File 'lib/saklient/cloud/resources/script.rb', line 116 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
#annotation ⇒ any (readonly)
注釈
414 415 416 |
# File 'lib/saklient/cloud/resources/script.rb', line 414 def annotation @annotation end |
#clazz ⇒ String
201 202 203 |
# File 'lib/saklient/cloud/resources/script.rb', line 201 def clazz @clazz end |
#content ⇒ String
内容
386 387 388 |
# File 'lib/saklient/cloud/resources/script.rb', line 386 def content @content end |
#description ⇒ String
説明
265 266 267 |
# File 'lib/saklient/cloud/resources/script.rb', line 265 def description @description end |
#icon ⇒ Icon
アイコン
346 347 348 |
# File 'lib/saklient/cloud/resources/script.rb', line 346 def icon @icon end |
#id ⇒ String (readonly)
ID
141 142 143 |
# File 'lib/saklient/cloud/resources/script.rb', line 141 def id @id end |
#name ⇒ String (readonly)
名前
229 230 231 |
# File 'lib/saklient/cloud/resources/script.rb', line 229 def name @name end |
#scope ⇒ String (readonly)
スコープ Enums::EScope
165 166 167 |
# File 'lib/saklient/cloud/resources/script.rb', line 165 def scope @scope end |
#tags ⇒ Array<String>
タグ文字列の配列
306 307 308 |
# File 'lib/saklient/cloud/resources/script.rb', line 306 def @tags end |
Instance Method Details
#_class_name ⇒ String
88 89 90 |
# File 'lib/saklient/cloud/resources/script.rb', line 88 def _class_name return 'Script' end |
#_id ⇒ String
94 95 96 |
# File 'lib/saklient/cloud/resources/script.rb', line 94 def _id return get_id end |
#reload ⇒ Script
最新のリソース情報を再取得します.
108 109 110 |
# File 'lib/saklient/cloud/resources/script.rb', line 108 def reload return _reload end |
#save ⇒ Script
このローカルオブジェクトに現在設定されているリソース情報をAPIに送信し, 新規作成または上書き保存します.
101 102 103 |
# File 'lib/saklient/cloud/resources/script.rb', line 101 def save return _save end |