Class: PlatformAPI::ReviewAppConfig
- Inherits:
-
Object
- Object
- PlatformAPI::ReviewAppConfig
- Defined in:
- lib/platform-api/client.rb
Overview
Review apps can be configured for pipelines.
Instance Method Summary collapse
-
#delete(pipeline_id) ⇒ Object
Disable review apps for a pipeline.
-
#enable(pipeline_id, body = {}) ⇒ Object
Enable review apps for a pipeline.
-
#info(pipeline_id) ⇒ Object
Get review apps configuration for a pipeline.
-
#initialize(client) ⇒ ReviewAppConfig
constructor
A new instance of ReviewAppConfig.
-
#update(pipeline_id, body = {}) ⇒ Object
Update review app configuration for a pipeline.
Constructor Details
#initialize(client) ⇒ ReviewAppConfig
Returns a new instance of ReviewAppConfig.
2776 2777 2778 |
# File 'lib/platform-api/client.rb', line 2776 def initialize(client) @client = client end |
Instance Method Details
#delete(pipeline_id) ⇒ Object
Disable review apps for a pipeline
2806 2807 2808 |
# File 'lib/platform-api/client.rb', line 2806 def delete(pipeline_id) @client.review_app_config.delete(pipeline_id) end |
#enable(pipeline_id, body = {}) ⇒ Object
Enable review apps for a pipeline
2784 2785 2786 |
# File 'lib/platform-api/client.rb', line 2784 def enable(pipeline_id, body = {}) @client.review_app_config.enable(pipeline_id, body) end |
#info(pipeline_id) ⇒ Object
Get review apps configuration for a pipeline
2791 2792 2793 |
# File 'lib/platform-api/client.rb', line 2791 def info(pipeline_id) @client.review_app_config.info(pipeline_id) end |
#update(pipeline_id, body = {}) ⇒ Object
Update review app configuration for a pipeline
2799 2800 2801 |
# File 'lib/platform-api/client.rb', line 2799 def update(pipeline_id, body = {}) @client.review_app_config.update(pipeline_id, body) end |