Cloud Commerce Consumer Procurement V1 API - Class Google::Cloud::Commerce::Consumer::Procurement::V1::LicenseManagementService::Rest::ServiceStub (v1.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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#initialize

def initialize(endpoint:, endpoint_template:, universe_domain:, credentials:) -> ServiceStub
Returns

#unassign

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

Baseline implementation for the unassign REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)