# Cloud Commerce Consumer Procurement V1 API - Class Google::Cloud::Commerce::Consumer::Procurement::V1::LicenseManagementService::Rest::ServiceStub (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::LicenseManagementService::Rest::ServiceStub.

REST service stub for the LicenseManagementService service.
Service stub contains baseline method implementations
including transcoding, making the REST call, and deserialing the response.

## Inherits

- Object

## Methods

### #assign

    def assign(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Commerce::Consumer::Procurement::V1::AssignResponse

Baseline implementation for the assign REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Commerce::Consumer::Procurement::V1::AssignRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Cloud-Commerce-Consumer-Procurement-V1-AssignRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Commerce::Consumer::Procurement::V1::AssignResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Cloud-Commerce-Consumer-Procurement-V1-AssignResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Commerce::Consumer::Procurement::V1::AssignResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Cloud-Commerce-Consumer-Procurement-V1-AssignResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #endpoint

    def endpoint() -> String

The effective endpoint
**Returns**

- (String)

### #enumerate_licensed_users

    def enumerate_licensed_users(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Commerce::Consumer::Procurement::V1::EnumerateLicensedUsersResponse

Baseline implementation for the enumerate_licensed_users REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Commerce::Consumer::Procurement::V1::EnumerateLicensedUsersRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Cloud-Commerce-Consumer-Procurement-V1-EnumerateLicensedUsersRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Commerce::Consumer::Procurement::V1::EnumerateLicensedUsersResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Cloud-Commerce-Consumer-Procurement-V1-EnumerateLicensedUsersResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Commerce::Consumer::Procurement::V1::EnumerateLicensedUsersResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Cloud-Commerce-Consumer-Procurement-V1-EnumerateLicensedUsersResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #get_license_pool

    def get_license_pool(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Commerce::Consumer::Procurement::V1::LicensePool

Baseline implementation for the get_license_pool REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Commerce::Consumer::Procurement::V1::GetLicensePoolRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Cloud-Commerce-Consumer-Procurement-V1-GetLicensePoolRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Commerce::Consumer::Procurement::V1::LicensePool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Cloud-Commerce-Consumer-Procurement-V1-LicensePool))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Commerce::Consumer::Procurement::V1::LicensePool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Cloud-Commerce-Consumer-Procurement-V1-LicensePool)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #logger

    def logger(stub: false) -> Logger

The logger used for request/response debug logging.
**Returns**

- (Logger)

### #unassign

    def unassign(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Commerce::Consumer::Procurement::V1::UnassignResponse

Baseline implementation for the unassign REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Commerce::Consumer::Procurement::V1::UnassignRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Cloud-Commerce-Consumer-Procurement-V1-UnassignRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Commerce::Consumer::Procurement::V1::UnassignResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Cloud-Commerce-Consumer-Procurement-V1-UnassignResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Commerce::Consumer::Procurement::V1::UnassignResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Cloud-Commerce-Consumer-Procurement-V1-UnassignResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #universe_domain

    def universe_domain() -> String

The effective universe domain
**Returns**

- (String)

### #update_license_pool

    def update_license_pool(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Commerce::Consumer::Procurement::V1::LicensePool

Baseline implementation for the update_license_pool REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Commerce::Consumer::Procurement::V1::UpdateLicensePoolRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Cloud-Commerce-Consumer-Procurement-V1-UpdateLicensePoolRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Commerce::Consumer::Procurement::V1::LicensePool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Cloud-Commerce-Consumer-Procurement-V1-LicensePool))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Commerce::Consumer::Procurement::V1::LicensePool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Cloud-Commerce-Consumer-Procurement-V1-LicensePool)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)