Code
extends CloudApiBase
in
implements
CloudApiInterface
Class Code
Table of Contents
| $client | ClientInterface | |
|---|---|---|
| getAll() | Shows all code branches and tags in an application. | BranchesResponse |
| switch() | Deploys a code branch/tag to an environment. | OperationResponse |
| deploy() | Deploys code from one environment to another environment. | mixed |
| __construct() | Client constructor. | mixed |
Properties
$client
protected
ClientInterface
$client
Methods
getAll()
Shows all code branches and tags in an application.
public
getAll(
$applicationUuid :
string
)
: BranchesResponse
Parameters
- $applicationUuid : string
Return values
BranchesResponseswitch()
Deploys a code branch/tag to an environment.
public
switch(
$environmentUuid :
string
, $branch :
string
)
: OperationResponse
Parameters
- $environmentUuid : string
- $branch : string
Return values
OperationResponsedeploy()
Deploys code from one environment to another environment.
public
deploy(
$environmentFromUuid :
string
, $environmentToUuid :
string
[, $commitMessage :
string
= null ]
)
: mixed
Parameters
- $environmentFromUuid : string
- $environmentToUuid : string
- $commitMessage : string = null
Return values
mixed__construct()
Client constructor.
public
__construct(
$client :
ClientInterface
)
: mixed
Parameters
- $client : ClientInterface