Google Cloud OsConfig V1 Client - Class FixedOrPercent (1.0.5)

Reference documentation and code samples for the Google Cloud OsConfig V1 Client class FixedOrPercent.

Message encapsulating a value that can be either absolute ("fixed") or relative ("percent") to a value.

Generated from protobuf message google.cloud.osconfig.v1.FixedOrPercent

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ fixed int

Specifies a fixed value.

↳ percent int

Specifies the relative value defined as a percentage, which will be multiplied by a reference value.

getFixed

Specifies a fixed value.

Returns
TypeDescription
int

hasFixed

setFixed

Specifies a fixed value.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPercent

Specifies the relative value defined as a percentage, which will be multiplied by a reference value.

Returns
TypeDescription
int

hasPercent

setPercent

Specifies the relative value defined as a percentage, which will be multiplied by a reference value.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getMode

Returns
TypeDescription
string