Compute V1 Client - Class LicenseResourceCommitment (1.8.3)

Reference documentation and code samples for the Compute V1 Client class LicenseResourceCommitment.

Commitment for a particular license resource.

Generated from protobuf message google.cloud.compute.v1.LicenseResourceCommitment

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ amount int|string

The number of licenses purchased.

↳ cores_per_license string

Specifies the core range of the instance for which this license applies.

↳ license string

Any applicable license URI.

getAmount

The number of licenses purchased.

Returns
TypeDescription
int|string

hasAmount

clearAmount

setAmount

The number of licenses purchased.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getCoresPerLicense

Specifies the core range of the instance for which this license applies.

Returns
TypeDescription
string

hasCoresPerLicense

clearCoresPerLicense

setCoresPerLicense

Specifies the core range of the instance for which this license applies.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLicense

Any applicable license URI.

Returns
TypeDescription
string

hasLicense

clearLicense

setLicense

Any applicable license URI.

Parameter
NameDescription
var string
Returns
TypeDescription
$this