Class: PlatformAPI::ReviewAppConfig

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

Overview

Review apps can be configured for pipelines.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ ReviewAppConfig

Returns a new instance of ReviewAppConfig.



2774
2775
2776
# File 'lib/platform-api/client.rb', line 2774

def initialize(client)
  @client = client
end

Instance Method Details

#delete(pipeline_id) ⇒ Object

Disable review apps for a pipeline

Parameters:

  • pipeline_id:

    unique identifier of pipeline



2804
2805
2806
# File 'lib/platform-api/client.rb', line 2804

def delete(pipeline_id)
  @client.review_app_config.delete(pipeline_id)
end

#enable(pipeline_id, body = {}) ⇒ Object

Enable review apps for a pipeline

Parameters:

  • pipeline_id:

    unique identifier of pipeline

  • body:

    the object to pass as the request payload



2782
2783
2784
# File 'lib/platform-api/client.rb', line 2782

def enable(pipeline_id, body = {})
  @client.review_app_config.enable(pipeline_id, body)
end

#info(pipeline_id) ⇒ Object

Get review apps configuration for a pipeline

Parameters:

  • pipeline_id:

    unique identifier of pipeline



2789
2790
2791
# File 'lib/platform-api/client.rb', line 2789

def info(pipeline_id)
  @client.review_app_config.info(pipeline_id)
end

#update(pipeline_id, body = {}) ⇒ Object

Update review app configuration for a pipeline

Parameters:

  • pipeline_id:

    unique identifier of pipeline

  • body:

    the object to pass as the request payload



2797
2798
2799
# File 'lib/platform-api/client.rb', line 2797

def update(pipeline_id, body = {})
  @client.review_app_config.update(pipeline_id, body)
end