PHP Class Scalr\Api\Service\User\V1beta0\Adapter\FarmRoleAdapter

Author: N.V.
Inheritance: extends Scalr\Api\DataType\ApiEntityAdapter
Mostra file Open project: scalr/scalr Class Usage Examples

Public Properties

Property Type Description
$disableScalingBehaviors List of behaviors disabled for scaling

Protected Properties

Property Type Description
$controller Scalr\Api\Service\User\V1beta0\Controller\FarmRoles
$entityClass
$farmRoleSupportedBehaviors array List of farm role supported behaviors
$rules array Converter rules
$uniqueFarmBehaviors array List of unique behaviors Farm can include only one farm-role with following behaviors

Public Methods

Method Description
_farm ( $from, $to, $action )
_instance ( $from, $to, $action )
_placement ( $from, $to, $action )
_role ( $from, $to, $action )
_scaling ( $from, $to, $action )
getInstanceConfiguration ( FarmRole $role ) : array Gets instance configuration data
getPlacementConfiguration ( FarmRole $role ) : array Gets placement configuration data
getScalingConfiguration ( FarmRole $role ) : array Gets scaling configuration data
setupInstanceConfiguration ( FarmRole $role, object $instance ) Setups given instance configuration to specified farm role
setupPlacementConfiguration ( FarmRole $role, object $placement ) Setups given placement configuration to specified farm role
setupScalingConfiguration ( FarmRole $farmRole, object $scaling ) Setups given scaling configuration to specified farm role
validateEntity ( $entity )

Method Details

_farm() public method

public _farm ( $from, $to, $action )

_instance() public method

public _instance ( $from, $to, $action )

_placement() public method

public _placement ( $from, $to, $action )

_role() public method

public _role ( $from, $to, $action )

_scaling() public method

public _scaling ( $from, $to, $action )

getInstanceConfiguration() public static method

Gets instance configuration data
public static getInstanceConfiguration ( FarmRole $role ) : array
$role Scalr\Model\Entity\FarmRole FarmRole entity
return array InstanceConfiguration representation

getPlacementConfiguration() public static method

Gets placement configuration data
public static getPlacementConfiguration ( FarmRole $role ) : array
$role Scalr\Model\Entity\FarmRole FarmRole entity
return array PlacementConfiguration representation

getScalingConfiguration() public static method

Gets scaling configuration data
public static getScalingConfiguration ( FarmRole $role ) : array
$role Scalr\Model\Entity\FarmRole FarmRole entity
return array ScalingConfiguration representation

setupInstanceConfiguration() public static method

Setups given instance configuration to specified farm role
public static setupInstanceConfiguration ( FarmRole $role, object $instance )
$role Scalr\Model\Entity\FarmRole Configurable farm role
$instance object Instance configuration

setupPlacementConfiguration() public static method

Setups given placement configuration to specified farm role
public static setupPlacementConfiguration ( FarmRole $role, object $placement )
$role Scalr\Model\Entity\FarmRole Configurable farm role
$placement object Placement configuration

setupScalingConfiguration() public static method

Setups given scaling configuration to specified farm role
public static setupScalingConfiguration ( FarmRole $farmRole, object $scaling )
$farmRole Scalr\Model\Entity\FarmRole Configurable farm role
$scaling object Scaling configuration

validateEntity() public method

See also: ApiEntityAdapter::validateEntity()
public validateEntity ( $entity )

Property Details

$controller protected_oe property

protected FarmRoles,Scalr\Api\Service\User\V1beta0\Controller $controller
return Scalr\Api\Service\User\V1beta0\Controller\FarmRoles

$disableScalingBehaviors public_oe static_oe property

List of behaviors disabled for scaling
public static $disableScalingBehaviors

$entityClass protected_oe property

protected $entityClass

$farmRoleSupportedBehaviors protected_oe static_oe property

List of farm role supported behaviors
protected static array $farmRoleSupportedBehaviors
return array

$rules protected_oe property

Converter rules
protected array $rules
return array

$uniqueFarmBehaviors protected_oe static_oe property

List of unique behaviors Farm can include only one farm-role with following behaviors
protected static array $uniqueFarmBehaviors
return array