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.



2059
2060
2061
# File 'lib/platform-api/client.rb', line 2059

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



2071
2072
2073
# File 'lib/platform-api/client.rb', line 2071

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



2085
2086
2087
# File 'lib/platform-api/client.rb', line 2085

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

#info(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



2078
2079
2080
# File 'lib/platform-api/client.rb', line 2078

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

#listObject

List pipeline couplings.



2064
2065
2066
# File 'lib/platform-api/client.rb', line 2064

def list()
  @client.pipeline_coupling.list()
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



2093
2094
2095
# File 'lib/platform-api/client.rb', line 2093

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