Service Usage V1 API - Class Google::Cloud::ServiceUsage::V1::ServiceUsage::Rest::ServiceStub (v0.7.0)

Reference documentation and code samples for the Service Usage V1 API class Google::Cloud::ServiceUsage::V1::ServiceUsage::Rest::ServiceStub.

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

Inherits

  • Object

Methods

#batch_enable_services

def batch_enable_services(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the batch_enable_services REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#batch_get_services

def batch_get_services(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceUsage::V1::BatchGetServicesResponse

Baseline implementation for the batch_get_services REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#disable_service

def disable_service(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the disable_service REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#enable_service

def enable_service(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the enable_service 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)

#get_service

def get_service(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceUsage::V1::Service

Baseline implementation for the get_service 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

#list_services

def list_services(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceUsage::V1::ListServicesResponse

Baseline implementation for the list_services 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)