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.



3627
3628
3629
# File 'lib/platform-api/client.rb', line 3627

def initialize(client)
  @client = client
end

Instance Method Details

#create(body = {}) ⇒ Object



3677
3678
3679
# File 'lib/platform-api/client.rb', line 3677

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

#delete(pipeline_coupling_id) ⇒ Object



3701
3702
3703
# File 'lib/platform-api/client.rb', line 3701

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

#info(pipeline_coupling_id) ⇒ Object



3689
3690
3691
# File 'lib/platform-api/client.rb', line 3689

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

#info_by_app(app_id_or_app_name) ⇒ Object



3727
3728
3729
# File 'lib/platform-api/client.rb', line 3727

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.



3653
3654
3655
# File 'lib/platform-api/client.rb', line 3653

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

#list_by_current_userObject

List pipeline couplings for the current user.



3646
3647
3648
# File 'lib/platform-api/client.rb', line 3646

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

#list_by_pipeline(pipeline_id) ⇒ Object



3639
3640
3641
# File 'lib/platform-api/client.rb', line 3639

def list_by_pipeline(pipeline_id)
  @client.pipeline_coupling.list_by_pipeline(pipeline_id)
end

#list_by_team(team_name_or_team_id) ⇒ Object



3665
3666
3667
# File 'lib/platform-api/client.rb', line 3665

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



3715
3716
3717
# File 'lib/platform-api/client.rb', line 3715

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