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 pipeline coupling.
-
#initialize(client) ⇒ PipelineCoupling
constructor
A new instance of PipelineCoupling.
-
#list ⇒ Object
List pipeline couplings.
-
#list_by_current_user ⇒ Object
List pipeline couplings for the current user.
-
#list_by_pipeline(pipeline_id) ⇒ Object
List couplings for a pipeline.
-
#list_by_team(team_name_or_team_id) ⇒ Object
List pipeline couplings for a team.
-
#update(pipeline_coupling_id, body = {}) ⇒ Object
Update an existing pipeline coupling.
Constructor Details
#initialize(client) ⇒ PipelineCoupling
Returns a new instance of PipelineCoupling.
2437 2438 2439 |
# File 'lib/platform-api/client.rb', line 2437 def initialize(client) @client = client end |
Instance Method Details
#create(body = {}) ⇒ Object
Create a new pipeline coupling.
2468 2469 2470 |
# File 'lib/platform-api/client.rb', line 2468 def create(body = {}) @client.pipeline_coupling.create(body) end |
#delete(pipeline_coupling_id) ⇒ Object
Delete an existing pipeline coupling.
2482 2483 2484 |
# File 'lib/platform-api/client.rb', line 2482 def delete(pipeline_coupling_id) @client.pipeline_coupling.delete(pipeline_coupling_id) end |
#info(pipeline_coupling_id) ⇒ Object
Info for an existing pipeline coupling.
2475 2476 2477 |
# File 'lib/platform-api/client.rb', line 2475 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 pipeline coupling.
2497 2498 2499 |
# File 'lib/platform-api/client.rb', line 2497 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.
2454 2455 2456 |
# File 'lib/platform-api/client.rb', line 2454 def list() @client.pipeline_coupling.list() end |
#list_by_current_user ⇒ Object
List pipeline couplings for the current user.
2449 2450 2451 |
# File 'lib/platform-api/client.rb', line 2449 def list_by_current_user() @client.pipeline_coupling.list_by_current_user() end |
#list_by_pipeline(pipeline_id) ⇒ Object
List couplings for a pipeline
2444 2445 2446 |
# File 'lib/platform-api/client.rb', line 2444 def list_by_pipeline(pipeline_id) @client.pipeline_coupling.list_by_pipeline(pipeline_id) end |
#list_by_team(team_name_or_team_id) ⇒ Object
List pipeline couplings for a team.
2461 2462 2463 |
# File 'lib/platform-api/client.rb', line 2461 def list_by_team(team_name_or_team_id) @client.pipeline_coupling.list_by_team(team_name_or_team_id) end |
#update(pipeline_coupling_id, body = {}) ⇒ Object
Update an existing pipeline coupling.
2490 2491 2492 |
# File 'lib/platform-api/client.rb', line 2490 def update(pipeline_coupling_id, body = {}) @client.pipeline_coupling.update(pipeline_coupling_id, body) end |