Module: JPSClient::API::CustomApplication
- Included in:
- Client
- Defined in:
- lib/jpsclient/api/custom_application.rb
Overview
CustomApplication 相关 API 自动生成的模块,处理 custom_application 相关接口
Instance Method Summary collapse
-
#create_check_website(params: {}) ⇒ Hash
Create Check Website.
-
#create_custom_application(params: {}) ⇒ Hash
Create Custom Application.
-
#create_icons(params: {}) ⇒ Hash
Create Icons.
-
#create_stories(params: {}) ⇒ Hash
Create Stories.
-
#create_websites(params: {}) ⇒ Hash
Create Websites.
-
#delete_custom_application(customApplicationId:, params: {}) ⇒ Hash
Delete Custom Application.
-
#get_custom_application(params: {}) ⇒ Hash
Get Custom Application.
-
#get_snapshots_list(params: {}) ⇒ Hash
Get Snapshots List.
-
#get_story_info(params: {}) ⇒ Hash
Get Story Info.
-
#update_custom_application(customApplicationId:, params: {}) ⇒ Hash
Update Custom Application.
Instance Method Details
#create_check_website(params: {}) ⇒ Hash
Create Check Website
117 118 119 120 121 122 123 124 |
# File 'lib/jpsclient/api/custom_application.rb', line 117 def create_check_website(params: {}) config = @request_config && @request_config["custom_application_check_website"] raise JPSClient::ExceptionError, "Missing config for custom_application_check_website" unless config && config["url"] path = config["url"] return request_with_auth(:post, path, body: params) end |
#create_custom_application(params: {}) ⇒ Hash
Create Custom Application
52 53 54 55 56 57 58 59 |
# File 'lib/jpsclient/api/custom_application.rb', line 52 def create_custom_application(params: {}) config = @request_config && @request_config["custom_application_custom_application"] raise JPSClient::ExceptionError, "Missing config for custom_application_custom_application" unless config && config["url"] path = config["url"] return request_with_auth(:post, path, body: params) end |
#create_icons(params: {}) ⇒ Hash
Create Icons
104 105 106 107 108 109 110 111 |
# File 'lib/jpsclient/api/custom_application.rb', line 104 def create_icons(params: {}) config = @request_config && @request_config["custom_application_icons"] raise JPSClient::ExceptionError, "Missing config for custom_application_icons" unless config && config["url"] path = config["url"] return request_with_auth(:post, path, body: params) end |
#create_stories(params: {}) ⇒ Hash
Create Stories
78 79 80 81 82 83 84 85 |
# File 'lib/jpsclient/api/custom_application.rb', line 78 def create_stories(params: {}) config = @request_config && @request_config["custom_application_stories"] raise JPSClient::ExceptionError, "Missing config for custom_application_stories" unless config && config["url"] path = config["url"] return request_with_auth(:post, path, body: params) end |
#create_websites(params: {}) ⇒ Hash
Create Websites
65 66 67 68 69 70 71 72 |
# File 'lib/jpsclient/api/custom_application.rb', line 65 def create_websites(params: {}) config = @request_config && @request_config["custom_application_websites"] raise JPSClient::ExceptionError, "Missing config for custom_application_websites" unless config && config["url"] path = config["url"] return request_with_auth(:post, path, body: params) end |
#delete_custom_application(customApplicationId:, params: {}) ⇒ Hash
Delete Custom Application
25 26 27 28 29 30 31 32 33 |
# File 'lib/jpsclient/api/custom_application.rb', line 25 def delete_custom_application(customApplicationId:, params: {}) config = @request_config && @request_config["custom_application_custom_application"] raise JPSClient::ExceptionError, "Missing config for custom_application_custom_application" unless config && config["url"] path = config["url"] path = path.gsub("{customApplicationId}", customApplicationId.to_s) return request_with_auth(:delete, path) end |
#get_custom_application(params: {}) ⇒ Hash
Get Custom Application
39 40 41 42 43 44 45 46 |
# File 'lib/jpsclient/api/custom_application.rb', line 39 def get_custom_application(params: {}) config = @request_config && @request_config["custom_application_custom_application"] raise JPSClient::ExceptionError, "Missing config for custom_application_custom_application" unless config && config["url"] path = config["url"] return request_with_auth(:get, path, params: params) end |
#get_snapshots_list(params: {}) ⇒ Hash
Get Snapshots List
91 92 93 94 95 96 97 98 |
# File 'lib/jpsclient/api/custom_application.rb', line 91 def get_snapshots_list(params: {}) config = @request_config && @request_config["custom_application_snapshots_list"] raise JPSClient::ExceptionError, "Missing config for custom_application_snapshots_list" unless config && config["url"] path = config["url"] return request_with_auth(:post, path, body: params) end |
#get_story_info(params: {}) ⇒ Hash
Get Story Info
130 131 132 133 134 135 136 137 |
# File 'lib/jpsclient/api/custom_application.rb', line 130 def get_story_info(params: {}) config = @request_config && @request_config["custom_application_story_info"] raise JPSClient::ExceptionError, "Missing config for custom_application_story_info" unless config && config["url"] path = config["url"] return request_with_auth(:get, path, params: params) end |
#update_custom_application(customApplicationId:, params: {}) ⇒ Hash
Update Custom Application
11 12 13 14 15 16 17 18 19 |
# File 'lib/jpsclient/api/custom_application.rb', line 11 def update_custom_application(customApplicationId:, params: {}) config = @request_config && @request_config["custom_application_custom_application"] raise JPSClient::ExceptionError, "Missing config for custom_application_custom_application" unless config && config["url"] path = config["url"] path = path.gsub("{customApplicationId}", customApplicationId.to_s) return request_with_auth(:put, path, body: params) end |