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
defavailable_license_count()->::Integer
Returns
(::Integer) — Output only. Licenses count that are available to be assigned.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Cloud Commerce Consumer Procurement V1 API - Class Google::Cloud::Commerce::Consumer::Procurement::V1::LicensePool (v1.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.1 (latest)](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Cloud-Commerce-Consumer-Procurement-V1-LicensePool)\n- [1.4.0](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/1.4.0/Google-Cloud-Commerce-Consumer-Procurement-V1-LicensePool)\n- [1.3.1](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/1.3.1/Google-Cloud-Commerce-Consumer-Procurement-V1-LicensePool)\n- [1.2.0](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/1.2.0/Google-Cloud-Commerce-Consumer-Procurement-V1-LicensePool)\n- [1.1.0](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/1.1.0/Google-Cloud-Commerce-Consumer-Procurement-V1-LicensePool)\n- [1.0.2](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/1.0.2/Google-Cloud-Commerce-Consumer-Procurement-V1-LicensePool)\n- [0.4.0](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/0.4.0/Google-Cloud-Commerce-Consumer-Procurement-V1-LicensePool)\n- [0.3.2](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/0.3.2/Google-Cloud-Commerce-Consumer-Procurement-V1-LicensePool)\n- [0.2.0](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/0.2.0/Google-Cloud-Commerce-Consumer-Procurement-V1-LicensePool)\n- [0.1.0](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/0.1.0/Google-Cloud-Commerce-Consumer-Procurement-V1-LicensePool) \nReference documentation and code samples for the Cloud Commerce Consumer Procurement V1 API class Google::Cloud::Commerce::Consumer::Procurement::V1::LicensePool.\n\nA license pool represents a pool of licenses that can be assigned to users. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #available_license_count\n\n def available_license_count() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Output only. Licenses count that are available to be assigned.\n\n### #license_assignment_protocol\n\n def license_assignment_protocol() -\u003e ::Google::Cloud::Commerce::Consumer::Procurement::V1::AssignmentProtocol\n\n**Returns**\n\n- ([::Google::Cloud::Commerce::Consumer::Procurement::V1::AssignmentProtocol](./Google-Cloud-Commerce-Consumer-Procurement-V1-AssignmentProtocol)) --- Required. Assignment protocol for the license pool.\n\n### #license_assignment_protocol=\n\n def license_assignment_protocol=(value) -\u003e ::Google::Cloud::Commerce::Consumer::Procurement::V1::AssignmentProtocol\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Commerce::Consumer::Procurement::V1::AssignmentProtocol](./Google-Cloud-Commerce-Consumer-Procurement-V1-AssignmentProtocol)) --- Required. Assignment protocol for the license pool. \n**Returns**\n\n- ([::Google::Cloud::Commerce::Consumer::Procurement::V1::AssignmentProtocol](./Google-Cloud-Commerce-Consumer-Procurement-V1-AssignmentProtocol)) --- Required. Assignment protocol for the license pool.\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Identifier. Format: `billingAccounts/{billing_account}/orders/{order}/licensePool`\n\n### #name=\n\n def name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Identifier. Format: `billingAccounts/{billing_account}/orders/{order}/licensePool` \n**Returns**\n\n- (::String) --- Identifier. Format: `billingAccounts/{billing_account}/orders/{order}/licensePool`\n\n### #total_license_count\n\n def total_license_count() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Output only. Total number of licenses in the pool."]]