# Cloud Commerce Consumer Procurement V1 API - Class Google::Cloud::Commerce::Consumer::Procurement::V1::LicensePool (v1.8.0)

1.8.0 (latest) 1.7.0 1.6.1 1.5.0 1.4.1 1.3.1 1.2.0 1.1.0 1.0.2 0.4.0 0.3.2 0.2.0 0.1.0 Reference documentation and code samples for the Cloud Commerce Consumer Procurement V1 API class Google::Cloud::Commerce::Consumer::Procurement::V1::LicensePool.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #available_license_count

    def available_license_count() -> ::Integer

**Returns**

- (::Integer) --- Output only. Licenses count that are available to be assigned.

### #license_assignment_protocol

    def license_assignment_protocol() -> ::Google::Cloud::Commerce::Consumer::Procurement::V1::AssignmentProtocol

**Returns**

- ([::Google::Cloud::Commerce::Consumer::Procurement::V1::AssignmentProtocol](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Cloud-Commerce-Consumer-Procurement-V1-AssignmentProtocol)) --- Required. Assignment protocol for the license pool.

### #license_assignment_protocol=

    def license_assignment_protocol=(value) -> ::Google::Cloud::Commerce::Consumer::Procurement::V1::AssignmentProtocol

**Parameter**

- **value** ([::Google::Cloud::Commerce::Consumer::Procurement::V1::AssignmentProtocol](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Cloud-Commerce-Consumer-Procurement-V1-AssignmentProtocol)) --- Required. Assignment protocol for the license pool.
**Returns**

- ([::Google::Cloud::Commerce::Consumer::Procurement::V1::AssignmentProtocol](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Cloud-Commerce-Consumer-Procurement-V1-AssignmentProtocol)) --- Required. Assignment protocol for the license pool.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Identifier. Format: `billingAccounts/{billing_account}/orders/{order}/licensePool`

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Identifier. Format: `billingAccounts/{billing_account}/orders/{order}/licensePool`
**Returns**

- (::String) --- Identifier. Format: `billingAccounts/{billing_account}/orders/{order}/licensePool`

### #total_license_count

    def total_license_count() -> ::Integer

**Returns**

- (::Integer) --- Output only. Total number of licenses in the pool.