The applicationUpdate Method

This method allows you to update an existing application.
The package you provide must contain the same application. Additionally,
any new parameters or new values for existing parameters must be provided.
This process is asynchronous, meaning the initial request will wait until
the package is uploaded and verified, and the initial response will show
information about the new version being deployed. However, the staging and
activation process will proceed after the response is returned. You must
continue checking the application status using the applicationGetStatus
method until the deployment process is complete.
license New BSD License
link for the canonical source repository
author Ingo Walz
category Zend
package Zend_Service
subpackage ZendServerAPI

 Methods

Base constructor for the method implementations

__construct() 
Inherited
inherited_from \ZendService\ZendServerAPI\Method\Method::__construct()

Returns the parameter array for index $index

buildParameterArray(string $index, array $values) : string
Inherited
inherited_from \ZendService\ZendServerAPI\Method\Method::buildParameterArray()

Parameters

$index

string

$values

array

Returns

string

Configures all needed information for the method implementation

configure() : void

Returns the default accept header

getAcceptHeader() : string
Inherited
inherited_from \ZendService\ZendServerAPI\Method\Method::getAcceptHeader()

Returns

string

Get the application's package name

getAppPackage() : \ZendService\ZendServerAPI\Method\$appPackage

Returns

\ZendService\ZendServerAPI\Method\$appPackage

Get the application ID

getApplicationId() : int

Returns

int

Get the content for the post request

getContent() : string

Returns

string

Returns the default content type

getContentType() : string

Returns

string

Get post parameter payload

getContentValues() : array

Returns

array

Getter for the path to server method

getFunctionPath() : string
Inherited
inherited_from \ZendService\ZendServerAPI\Method\Method::getFunctionPath()

Returns

string

Ignore failures

getIgnoreFailures() : \ZendService\ZendServerAPI\Method\$ignoreFailures

Returns

\ZendService\ZendServerAPI\Method\$ignoreFailures

Get method for the api call

getMethod() : string
Inherited
inherited_from \ZendService\ZendServerAPI\Method\Method::getMethod()

Returns

string

Get class for result mapping

getParser() : \ZendService\ZendServerAPI\Adapter\Adapter
Inherited
inherited_from \ZendService\ZendServerAPI\Method\Method::getParser()

Returns

Get the files to post

getPostFiles() : array

Returns

array

Get the user params

getUserParams() : \ZendService\ZendServerAPI\Method\$userParams

Returns

\ZendService\ZendServerAPI\Method\$userParams

Get result from parser

parseResponse(string $xml) : \ZendService\ZendServerAPI\Method\DataTypes\DataType
Inherited
inherited_from \ZendService\ZendServerAPI\Method\Method::parseResponse()

Parameters

$xml

string

Returns

\ZendService\ZendServerAPI\Method\DataTypes\DataType

Set the application package

setAppPackage(string $appPackage) 

Parameters

$appPackage

string

Set the application ID to update

setApplicationId(int $appId) 

Parameters

$appId

int

Set arguments for 'ApplicationUpdate'

setArgs(int $appId, string $appPackage, bool $ignoreFailure, array $userParams) 

Parameters

$appId

int

$appPackage

string

$ignoreFailure

bool

$userParams

array

Setter for the function path

setFunctionPath(string $functionPath) : void
Inherited
inherited_from \ZendService\ZendServerAPI\Method\Method::setFunctionPath()

Parameters

$functionPath

string

e.g. /ZendServerManager/Api/Foo

Ignore failures

setIgnoreFailures(boolean $ignoreFailures) 

Parameters

$ignoreFailures

boolean

Set method for the api call

setMethod(string $method) 
Inherited
inherited_from \ZendService\ZendServerAPI\Method\Method::setMethod()

Parameters

$method

string

GET|POST

Set the implementation for the result mapping

setParser(\ZendService\ZendServerAPI\Adapter\Adapter $parser) : void
Inherited
inherited_from \ZendService\ZendServerAPI\Method\Method::setParser()

Parameters

$parser

\ZendService\ZendServerAPI\Adapter\Adapter

for result mapping

Set the Zend HTTP Response

setResponse(\Zend\Http\Response $response) : void
Inherited
inherited_from \ZendService\ZendServerAPI\Method\Method::setResponse()

Parameters

$response

\Zend\Http\Response

Set the user params for the application

setUserParams(array $userParams) 

Parameters

$userParams

array

 Properties

 

$appId : int
 

$appPackage : string
 

$functionPath : string
Inherited
inherited_from \ZendService\ZendServerAPI\Method\Method::$$functionPath
 

$ignoreFailures : boolean
 

$method : string
Inherited
inherited_from \ZendService\ZendServerAPI\Method\Method::$$method
 

$parser : \ZendService\ZendServerAPI\Adapter\Adapter
Inherited
inherited_from \ZendService\ZendServerAPI\Method\Method::$$parser
 

$userParams : array