Compute V1 Client - Class LicenseResourceCommitment (1.19.0)

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ amountint|string

The number of licenses purchased.

↳ cores_per_licensestring

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

↳ licensestring

Any applicable license URI.

getAmount

The number of licenses purchased.

Returns
TypeDescription
int|string

hasAmount

clearAmount

setAmount

The number of licenses purchased.

Parameter
NameDescription
varint|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
varstring
Returns
TypeDescription
$this

getLicense

Any applicable license URI.

Returns
TypeDescription
string

hasLicense

clearLicense

setLicense

Any applicable license URI.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this