Compute V1 Client - Class LicenseResourceCommitment (1.5.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

Methods

__construct

Constructor.

Parameters
Name
Description
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.

Generated from protobuf field optional int64 amount = 196759640;

Returns
Type
Description
int|string

hasAmount

clearAmount

setAmount

The number of licenses purchased.

Generated from protobuf field optional int64 amount = 196759640;

Parameter
Name
Description
var
int|string
Returns
Type
Description
$this

getCoresPerLicense

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

Generated from protobuf field optional string cores_per_license = 32482324;

Returns
Type
Description
string

hasCoresPerLicense

clearCoresPerLicense

setCoresPerLicense

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

Generated from protobuf field optional string cores_per_license = 32482324;

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getLicense

Any applicable license URI.

Generated from protobuf field optional string license = 166757441;

Returns
Type
Description
string

hasLicense

clearLicense

setLicense

Any applicable license URI.

Generated from protobuf field optional string license = 166757441;

Parameter
Name
Description
var
string
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: