Class: Mushikago::Mitsubachi::Client
- Inherits:
-
Http::Client
- Object
- Http::Client
- Mushikago::Mitsubachi::Client
- Defined in:
- lib/mushikago/mitsubachi/client.rb
Overview
mitsubachiサービスを利用する
Instance Attribute Summary
Attributes inherited from Http::Client
Instance Method Summary (collapse)
-
- (Mushikago::Http::Response) http_fetch(project_name, url, script_name, options = {})
http/fetchを発行します.
-
- (Mushikago::Http::Response) http_push(project_name, url, script_name, file_name, file_input_key, options = {})
http/pushを発行します.
-
- (Mushikago::Http::Response) project_create(project_name, options = {})
project/createを発行します.
-
- (Mushikago::Http::Response) project_delete(project_name, options = {})
project/deleteを発行します.
-
- (Mushikago::Http::Response) project_discontinue(project_name, options = {})
project/discontinueを発行します.
-
- (Mushikago::Http::Response) project_info(project_name, options = {})
project/infoを発行します.
-
- (Mushikago::Http::Response) project_list(options = {})
project/listを発行します.
-
- (Mushikago::Http::Response) project_queues(project_name, options = {})
project/queuesを発行します.
-
- (Mushikago::Http::Response) project_update(project_name, options = {})
project/updateを発行します.
-
- (Mushikago::Http::Response) resource_delete(project_name, file_name, options = {})
resource/deleteを発行します.
-
- (Mushikago::Http::Response) resource_get(project_name, file_name, options = {})
resource/getを発行します.
-
- (Mushikago::Http::Response) resource_list(project_name, options = {})
resource/listを発行します.
-
- (Mushikago::Http::Response) resource_store(project_name, file_or_file_name, options = {})
resource/storeを発行します.
-
- (Mushikago::Http::Response) script_delete(project_name, script_name, options = {})
script/deleteを発行します.
-
- (Mushikago::Http::Response) script_deploy(project_name, file_or_file_name, options = {})
script/deployを発行します.
-
- (Mushikago::Http::Response) script_get(project_name, script_name, options = {})
script/getを発行します.
-
- (Mushikago::Http::Response) script_list(project_name, options = {})
script/listを発行します.
Methods inherited from Http::Client
Constructor Details
This class inherits a constructor from Mushikago::Http::Client
Instance Method Details
- (Mushikago::Http::Response) http_fetch(project_name, url, script_name, options = {})
http/fetchを発行します
143 144 145 146 |
# File 'lib/mushikago/mitsubachi/client.rb', line 143 def http_fetch project_name, url, script_name, ={} request = HttpFetchRequest.new(project_name, url, script_name, ) send_request(request) end |
- (Mushikago::Http::Response) http_push(project_name, url, script_name, file_name, file_input_key, options = {})
http/pushを発行します
163 164 165 166 |
# File 'lib/mushikago/mitsubachi/client.rb', line 163 def http_push project_name, url, script_name, file_name, file_input_key, ={} request = HttpPushRequest.new(project_name, url, script_name, file_name, file_input_key, ) send_request(request) end |
- (Mushikago::Http::Response) project_create(project_name, options = {})
project/createを発行します
31 32 33 34 |
# File 'lib/mushikago/mitsubachi/client.rb', line 31 def project_create project_name, ={} request = ProjectCreateRequest.new(project_name, ) send_request(request) end |
- (Mushikago::Http::Response) project_delete(project_name, options = {})
project/deleteを発行します
95 96 97 98 |
# File 'lib/mushikago/mitsubachi/client.rb', line 95 def project_delete project_name, ={} request = ProjectDeleteRequest.new(project_name, ) send_request(request) end |
- (Mushikago::Http::Response) project_discontinue(project_name, options = {})
project/discontinueを発行します
124 125 126 127 |
# File 'lib/mushikago/mitsubachi/client.rb', line 124 def project_discontinue project_name, ={} request = ProjectDiscontinueRequest.new(project_name, ) send_request(request) end |
- (Mushikago::Http::Response) project_info(project_name, options = {})
project/infoを発行します
69 70 71 72 |
# File 'lib/mushikago/mitsubachi/client.rb', line 69 def project_info project_name, ={} request = ProjectInfoRequest.new(project_name, ) send_request(request) end |
- (Mushikago::Http::Response) project_list(options = {})
project/listを発行します
48 49 50 51 |
# File 'lib/mushikago/mitsubachi/client.rb', line 48 def project_list ={} request = ProjectListRequest.new() send_request(request) end |
- (Mushikago::Http::Response) project_queues(project_name, options = {})
project/queuesを発行します
82 83 84 85 |
# File 'lib/mushikago/mitsubachi/client.rb', line 82 def project_queues project_name, ={} request = ProjectQueuesRequest.new(project_name, ) send_request(request) end |
- (Mushikago::Http::Response) project_update(project_name, options = {})
project/updateを発行します
112 113 114 115 |
# File 'lib/mushikago/mitsubachi/client.rb', line 112 def project_update project_name, ={} request = ProjectUpdateRequest.new(project_name, ) send_request(request) end |
- (Mushikago::Http::Response) resource_delete(project_name, file_name, options = {})
resource/deleteを発行します
301 302 303 304 |
# File 'lib/mushikago/mitsubachi/client.rb', line 301 def resource_delete project_name, file_name, ={} request = ResourceDeleteRequest.new(project_name, file_name, ) send_request(request) end |
- (Mushikago::Http::Response) resource_get(project_name, file_name, options = {})
resource/getを発行します
288 289 290 291 |
# File 'lib/mushikago/mitsubachi/client.rb', line 288 def resource_get project_name, file_name, ={} request = ResourceGetRequest.new(project_name, file_name, ) send_request(request) end |
- (Mushikago::Http::Response) resource_list(project_name, options = {})
resource/listを発行します
274 275 276 277 |
# File 'lib/mushikago/mitsubachi/client.rb', line 274 def resource_list project_name, ={} request = ResourceListRequest.new(project_name, ) send_request(request) end |
- (Mushikago::Http::Response) resource_store(project_name, file_or_file_name, options = {})
resource/storeを発行します
247 248 249 250 |
# File 'lib/mushikago/mitsubachi/client.rb', line 247 def resource_store project_name, file_or_file_name, ={} request = ResourceStoreRequest.new(project_name, file_or_file_name, ) send_request(request) end |
- (Mushikago::Http::Response) script_delete(project_name, script_name, options = {})
script/deleteを発行します
231 232 233 234 |
# File 'lib/mushikago/mitsubachi/client.rb', line 231 def script_delete project_name, script_name, ={} request = ScriptDeleteRequest.new(project_name, script_name, ) send_request(request) end |
- (Mushikago::Http::Response) script_deploy(project_name, file_or_file_name, options = {})
script/deployを発行します
177 178 179 180 |
# File 'lib/mushikago/mitsubachi/client.rb', line 177 def script_deploy project_name, file_or_file_name, ={} request = ScriptDeployRequest.new(project_name, file_or_file_name, ) send_request(request) end |
- (Mushikago::Http::Response) script_get(project_name, script_name, options = {})
script/getを発行します
218 219 220 221 |
# File 'lib/mushikago/mitsubachi/client.rb', line 218 def script_get project_name, script_name, ={} request = ScriptGetRequest.new(project_name, script_name, ) send_request(request) end |
- (Mushikago::Http::Response) script_list(project_name, options = {})
script/listを発行します
204 205 206 207 |
# File 'lib/mushikago/mitsubachi/client.rb', line 204 def script_list project_name, ={} request = ScriptListRequest.new(project_name, ) send_request(request) end |