Class: Saklient::Cloud::Resources::Script
- Inherits:
-
Resource
- Object
- Resource
- Saklient::Cloud::Resources::Script
- Defined in:
- lib/saklient/cloud/resources/script.rb
Overview
スクリプトの実体1つに対応し, 属性の取得や操作を行うためのクラス.
Instance Attribute Summary (collapse)
-
- (any) annotation
readonly
注釈.
-
- (String) clazz
クラス Enums::EScriptClass.
-
- (String) content
内容.
-
- (String) description
説明.
-
- (Icon) icon
アイコン.
-
- (String) id
readonly
ID.
-
- (String) name
readonly
名前.
-
- (String) scope
readonly
スコープ Enums::EScope.
-
- (Array<String>) tags
タグ文字列の配列.
Instance Method Summary (collapse)
-
- (Script) reload
最新のリソース情報を再取得します.
-
- (Script) save
このローカルオブジェクトに現在設定されているリソース情報をAPIに送信し, 新規作成または上書き保存します.
Instance Attribute Details
- (any) annotation (readonly)
注釈
414 415 416 |
# File 'lib/saklient/cloud/resources/script.rb', line 414 def annotation @annotation end |
- (String) clazz
201 202 203 |
# File 'lib/saklient/cloud/resources/script.rb', line 201 def clazz @clazz end |
- (String) content
内容
386 387 388 |
# File 'lib/saklient/cloud/resources/script.rb', line 386 def content @content end |
- (String) description
説明
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 |
- (String) id (readonly)
ID
141 142 143 |
# File 'lib/saklient/cloud/resources/script.rb', line 141 def id @id end |
- (String) name (readonly)
名前
229 230 231 |
# File 'lib/saklient/cloud/resources/script.rb', line 229 def name @name end |
- (String) scope (readonly)
スコープ Enums::EScope
165 166 167 |
# File 'lib/saklient/cloud/resources/script.rb', line 165 def scope @scope end |
- (Array<String>) tags
タグ文字列の配列
306 307 308 |
# File 'lib/saklient/cloud/resources/script.rb', line 306 def @tags end |
Instance Method Details
- (Script) reload
最新のリソース情報を再取得します.
108 109 110 |
# File 'lib/saklient/cloud/resources/script.rb', line 108 def reload return _reload end |
- (Script) save
このローカルオブジェクトに現在設定されているリソース情報をAPIに送信し, 新規作成または上書き保存します.
101 102 103 |
# File 'lib/saklient/cloud/resources/script.rb', line 101 def save return _save end |