Class: PlatformAPI::PipelineCoupling
- Inherits:
-
Object
- Object
- PlatformAPI::PipelineCoupling
- Defined in:
- lib/platform-api/client.rb
Overview
Information about an app's coupling to a pipeline
Instance Method Summary collapse
-
#create(body = {}) ⇒ Object
Create a new pipeline coupling.
-
#delete(pipeline_coupling_id) ⇒ Object
Delete an existing pipeline coupling.
-
#info(pipeline_coupling_id) ⇒ Object
Info for an existing pipeline coupling.
-
#info_by_app(app_id_or_app_name) ⇒ Object
Info for an existing app pipeline coupling.
-
#initialize(client) ⇒ PipelineCoupling
constructor
A new instance of PipelineCoupling.
-
#list ⇒ Object
List pipeline couplings.
-
#list_by_pipeline(pipeline_id) ⇒ Object
List couplings for a pipeline.
-
#update(pipeline_coupling_id, body = {}) ⇒ Object
Update an existing pipeline coupling.
Constructor Details
#initialize(client) ⇒ PipelineCoupling
Returns a new instance of PipelineCoupling.
2514 2515 2516 |
# File 'lib/platform-api/client.rb', line 2514 def initialize(client) @client = client end |
Instance Method Details
#create(body = {}) ⇒ Object
Create a new pipeline coupling.
2533 2534 2535 |
# File 'lib/platform-api/client.rb', line 2533 def create(body = {}) @client.pipeline_coupling.create(body) end |
#delete(pipeline_coupling_id) ⇒ Object
Delete an existing pipeline coupling.
2547 2548 2549 |
# File 'lib/platform-api/client.rb', line 2547 def delete(pipeline_coupling_id) @client.pipeline_coupling.delete(pipeline_coupling_id) end |
#info(pipeline_coupling_id) ⇒ Object
Info for an existing pipeline coupling.
2540 2541 2542 |
# File 'lib/platform-api/client.rb', line 2540 def info(pipeline_coupling_id) @client.pipeline_coupling.info(pipeline_coupling_id) end |
#info_by_app(app_id_or_app_name) ⇒ Object
Info for an existing app pipeline coupling.
2562 2563 2564 |
# File 'lib/platform-api/client.rb', line 2562 def info_by_app(app_id_or_app_name) @client.pipeline_coupling.info_by_app(app_id_or_app_name) end |
#list ⇒ Object
List pipeline couplings.
2526 2527 2528 |
# File 'lib/platform-api/client.rb', line 2526 def list() @client.pipeline_coupling.list() end |
#list_by_pipeline(pipeline_id) ⇒ Object
List couplings for a pipeline
2521 2522 2523 |
# File 'lib/platform-api/client.rb', line 2521 def list_by_pipeline(pipeline_id) @client.pipeline_coupling.list_by_pipeline(pipeline_id) end |
#update(pipeline_coupling_id, body = {}) ⇒ Object
Update an existing pipeline coupling.
2555 2556 2557 |
# File 'lib/platform-api/client.rb', line 2555 def update(pipeline_coupling_id, body = {}) @client.pipeline_coupling.update(pipeline_coupling_id, body) end |