Class: PlatformAPI::PipelineConfigVar
- Inherits:
-
Object
- Object
- PlatformAPI::PipelineConfigVar
- Defined in:
- lib/platform-api/client.rb
Overview
Pipeline Config Vars allow you to manage the configuration information provided to a pipeline.
Instance Method Summary collapse
-
#info_for_app(pipeline_id, pipeline_coupling_stage) ⇒ Object
Get config-vars for a pipeline stage.
-
#initialize(client) ⇒ PipelineConfigVar
constructor
A new instance of PipelineConfigVar.
-
#update(pipeline_id, pipeline_coupling_stage, body = {}) ⇒ Object
Update config-vars for a pipeline stage.
Constructor Details
#initialize(client) ⇒ PipelineConfigVar
Returns a new instance of PipelineConfigVar.
2413 2414 2415 |
# File 'lib/platform-api/client.rb', line 2413 def initialize(client) @client = client end |
Instance Method Details
#info_for_app(pipeline_id, pipeline_coupling_stage) ⇒ Object
Get config-vars for a pipeline stage.
2421 2422 2423 |
# File 'lib/platform-api/client.rb', line 2421 def info_for_app(pipeline_id, pipeline_coupling_stage) @client.pipeline_config_var.info_for_app(pipeline_id, pipeline_coupling_stage) end |
#update(pipeline_id, pipeline_coupling_stage, body = {}) ⇒ Object
Update config-vars for a pipeline stage. You can update existing config-vars by setting them again, and remove by setting it to null
.
2430 2431 2432 |
# File 'lib/platform-api/client.rb', line 2430 def update(pipeline_id, pipeline_coupling_stage, body = {}) @client.pipeline_config_var.update(pipeline_id, pipeline_coupling_stage, body) end |