Google Cloud Commerce Consumer Procurement V1 Client - Class LicensePool (1.1.0)

Reference documentation and code samples for the Google Cloud Commerce Consumer Procurement V1 Client class LicensePool.

A license pool represents a pool of licenses that can be assigned to users.

Generated from protobuf message google.cloud.commerce.consumer.procurement.v1.LicensePool

Namespace

Google \ Cloud \ Commerce \ Consumer \ Procurement \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Identifier. Format: billingAccounts/{billing_account}/orders/{order}/licensePool

↳ license_assignment_protocol Google\Cloud\Commerce\Consumer\Procurement\V1\AssignmentProtocol

Required. Assignment protocol for the license pool.

↳ available_license_count int

Output only. Licenses count that are available to be assigned.

↳ total_license_count int

Output only. Total number of licenses in the pool.

getName

Identifier. Format: billingAccounts/{billing_account}/orders/{order}/licensePool

Returns
Type Description
string

setName

Identifier. Format: billingAccounts/{billing_account}/orders/{order}/licensePool

Parameter
Name Description
var string
Returns
Type Description
$this

getLicenseAssignmentProtocol

Required. Assignment protocol for the license pool.

Returns
Type Description
Google\Cloud\Commerce\Consumer\Procurement\V1\AssignmentProtocol|null

hasLicenseAssignmentProtocol

clearLicenseAssignmentProtocol

setLicenseAssignmentProtocol

Required. Assignment protocol for the license pool.

Parameter
Name Description
var Google\Cloud\Commerce\Consumer\Procurement\V1\AssignmentProtocol
Returns
Type Description
$this

getAvailableLicenseCount

Output only. Licenses count that are available to be assigned.

Returns
Type Description
int

setAvailableLicenseCount

Output only. Licenses count that are available to be assigned.

Parameter
Name Description
var int
Returns
Type Description
$this

getTotalLicenseCount

Output only. Total number of licenses in the pool.

Returns
Type Description
int

setTotalLicenseCount

Output only. Total number of licenses in the pool.

Parameter
Name Description
var int
Returns
Type Description
$this