src/ServiceManagement/ServiceManagementRestProxy.php
private function _sendRoleInstanceOrder($name, $roleName, GetDeploymentOptions $options, $order)
    {
        Validate::isString($name, 'name');
        Validate::notNullOrEmpty($name, 'name');
        Validate::isString($roleName, 'roleName');
        Validate::notNullOrEmpty($roleName, 'roleName');
        Validate::notNullOrEmpty($options, 'options');

        $context = new HttpCallContext();
        $context->setMethod(Resources::HTTP_POST);
        $context->setPath($this->_getRoleInstancePath($name, $options, $roleName));
        $context->addStatusCode(Resources::STATUS_ACCEPTED);
        $context->addQueryParameter(Resources::QP_COMP, $order);
        $context->addHeader(Resources::CONTENT_TYPE, Resources::XML_CONTENT_TYPE);
        $context->addHeader(Resources::CONTENT_LENGTH_NO_SPACE, 0);

        $response = $this->sendHttpContext($context);

        return AsynchronousOperationResult::create(HttpClient::getResponseHeaders($response));
    }
private function _sendRoleInstanceOrder($name, $roleName, GetDeploymentOptions $options, $order)
    {
        Validate::isString($name, 'name');
        Validate::notNullOrEmpty($name, 'name');
        Validate::isString($roleName, 'roleName');
        Validate::notNullOrEmpty($roleName, 'roleName');
        Validate::notNullOrEmpty($options, 'options');

        $context = new HttpCallContext();
        $context->setMethod(Resources::HTTP_POST);
        $context->setPath($this->_getRoleInstancePath($name, $options, $roleName));
        $context->addStatusCode(Resources::STATUS_ACCEPTED);
        $context->addQueryParameter(Resources::QP_COMP, $order);
        $context->addHeader(Resources::CONTENT_TYPE, Resources::XML_CONTENT_TYPE);
        $context->addHeader(Resources::CONTENT_LENGTH_NO_SPACE, 0);

        $response = $this->sendHttpContext($context);

        return AsynchronousOperationResult::create(HttpClient::getResponseHeaders($response));
    }
private function _sendRoleInstanceOrder ( $ name , $ roleName , GetDeploymentOptions $ options , $ order ) { Validate :: isString ( $ name , 'name' ) ; Validate :: notNullOrEmpty ( $ name , 'name' ) ; Validate :: isString ( $ roleName , 'roleName' ) ; Validate :: notNullOrEmpty ( $ roleName , 'roleName' ) ; Validate :: notNullOrEmpty ( $ options , 'options' ) ; $ context = new HttpCallContext ( ) ; $ context -> setMethod ( Resources :: HTTP_POST ) ; $ context -> setPath ( $ this -> _getRoleInstancePath ( $ name , $ options , $ roleName ) ) ; $ context -> addStatusCode ( Resources :: STATUS_ACCEPTED ) ; $ context -> addQueryParameter ( Resources :: QP_COMP , $ order ) ; $ context -> addHeader ( Resources :: CONTENT_TYPE , Resources :: XML_CONTENT_TYPE ) ; $ context -> addHeader ( Resources :: CONTENT_LENGTH_NO_SPACE , 0 ) ; $ response = $ this -> sendHttpContext ( $ context ) ; return AsynchronousOperationResult :: create ( HttpClient :: getResponseHeaders ( $ response ) ) ; }
Sends an order request for the specified role instance.

@param string               $name     The hosted service name
@param string               $roleName The role instance name
@param GetDeploymentOptions $options  The optional parameters
@param string               $order    The order name which is used as value
for query parameter 'comp'

@return AsynchronousOperationResult
Sends an order request for the specified role instance .