Class: PlatformAPI::PipelineCoupling

Inherits:
Object
  • Object
show all
Defined in:
lib/platform-api/client.rb

Overview

Information about an app's coupling to a pipeline

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ PipelineCoupling

Returns a new instance of PipelineCoupling.



2381
2382
2383
# File 'lib/platform-api/client.rb', line 2381

def initialize(client)
  @client = client
end

Instance Method Details

#create(body = {}) ⇒ Object

Create a new pipeline coupling.

Parameters:

  • body:

    the object to pass as the request payload



2412
2413
2414
# File 'lib/platform-api/client.rb', line 2412

def create(body = {})
  @client.pipeline_coupling.create(body)
end

#delete(pipeline_coupling_id) ⇒ Object

Delete an existing pipeline coupling.

Parameters:

  • pipeline_coupling_id:

    unique identifier of pipeline coupling



2426
2427
2428
# File 'lib/platform-api/client.rb', line 2426

def delete(pipeline_coupling_id)
  @client.pipeline_coupling.delete(pipeline_coupling_id)
end

#info(pipeline_coupling_id) ⇒ Object

Info for an existing pipeline coupling.

Parameters:

  • pipeline_coupling_id:

    unique identifier of pipeline coupling



2419
2420
2421
# File 'lib/platform-api/client.rb', line 2419

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.

Parameters:

  • app_id_or_app_name:

    unique identifier of app or unique name of app



2441
2442
2443
# File 'lib/platform-api/client.rb', line 2441

def info_by_app(app_id_or_app_name)
  @client.pipeline_coupling.info_by_app(app_id_or_app_name)
end

#listObject

List pipeline couplings.



2398
2399
2400
# File 'lib/platform-api/client.rb', line 2398

def list()
  @client.pipeline_coupling.list()
end

#list_by_current_userObject

List pipeline couplings for the current user.



2393
2394
2395
# File 'lib/platform-api/client.rb', line 2393

def list_by_current_user()
  @client.pipeline_coupling.list_by_current_user()
end

#list_by_pipeline(pipeline_id) ⇒ Object

List couplings for a pipeline

Parameters:

  • pipeline_id:

    unique identifier of pipeline



2388
2389
2390
# File 'lib/platform-api/client.rb', line 2388

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.

Parameters:

  • team_name_or_team_id:

    unique name of team or unique identifier of team



2405
2406
2407
# File 'lib/platform-api/client.rb', line 2405

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.

Parameters:

  • pipeline_coupling_id:

    unique identifier of pipeline coupling

  • body:

    the object to pass as the request payload



2434
2435
2436
# File 'lib/platform-api/client.rb', line 2434

def update(pipeline_coupling_id, body = {})
  @client.pipeline_coupling.update(pipeline_coupling_id, body)
end