Nuon.Api.Vcs (nuon v0.19.90)

API calls for all endpoints tagged Vcs.

Summary

Functions

Link to this function

create_vcs_connection(connection, service_create_connection_request, opts \\ [])

create a vcs connection for Github

Parameters

  • connection (Nuon.Connection): Connection to server
  • service_create_connection_request (ServiceCreateConnectionRequest): Input
  • opts (keyword): Optional parameters

Returns

  • {:ok, Nuon.Model.AppVcsConnection.t} on success
  • {:error, Tesla.Env.t} on failure
Link to this function

create_vcs_connection_callback(connection, service_create_connection_callback_request, opts \\ [])

public connection to create a vcs connection via a callback

Parameters

  • connection (Nuon.Connection): Connection to server
  • service_create_connection_callback_request (ServiceCreateConnectionCallbackRequest): Input
  • opts (keyword): Optional parameters

Returns

  • {:ok, Nuon.Model.AppVcsConnection.t} on success
  • {:error, Tesla.Env.t} on failure
Link to this function

get_all_vcs_connected_repos(connection, opts \\ [])

@spec get_all_vcs_connected_repos(
  Tesla.Env.client(),
  keyword()
) ::
  {:ok, Nuon.Model.StderrErrResponse.t()}
  | {:ok, [Nuon.Model.ServiceRepository.t()]}
  | {:error, Tesla.Env.t()}

get all vcs connected repos for an org

Parameters

  • connection (Nuon.Connection): Connection to server
  • opts (keyword): Optional parameters

Returns

  • {:ok, [%ServiceRepository{}, ...]} on success
  • {:error, Tesla.Env.t} on failure
Link to this function

get_org_vcs_connections(connection, opts \\ [])

@spec get_org_vcs_connections(
  Tesla.Env.client(),
  keyword()
) ::
  {:ok, [Nuon.Model.AppVcsConnection.t()]}
  | {:ok, Nuon.Model.StderrErrResponse.t()}
  | {:error, Tesla.Env.t()}

get vcs connection for an org

Parameters

  • connection (Nuon.Connection): Connection to server
  • opts (keyword): Optional parameters

Returns

  • {:ok, [%AppVcsConnection{}, ...]} on success
  • {:error, Tesla.Env.t} on failure
Link to this function

get_vcs_connection(connection, connection_id, opts \\ [])

@spec get_vcs_connection(Tesla.Env.client(), String.t(), keyword()) ::
  {:ok, Nuon.Model.AppVcsConnection.t()}
  | {:ok, Nuon.Model.StderrErrResponse.t()}
  | {:error, Tesla.Env.t()}

returns a vcs connection for an org

Parameters

  • connection (Nuon.Connection): Connection to server
  • connection_id (String.t): connection ID
  • opts (keyword): Optional parameters

Returns

  • {:ok, Nuon.Model.AppVcsConnection.t} on success
  • {:error, Tesla.Env.t} on failure