Capacity Planner V1BETA API - Class Google::Cloud::CapacityPlanner::V1beta::UsageService::Rest::ServiceStub (v0.2.0)

Reference documentation and code samples for the Capacity Planner V1BETA API class Google::Cloud::CapacityPlanner::V1beta::UsageService::Rest::ServiceStub.

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

Inherits

  • Object

Methods

#endpoint

def endpoint() -> String

The effective endpoint

Returns
  • (String)

#export_forecasts

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

Baseline implementation for the export_forecasts REST call

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

#export_reservations_usage

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

Baseline implementation for the export_reservations_usage REST call

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

#export_usage_histories

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

Baseline implementation for the export_usage_histories REST call

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

#logger

def logger(stub: false) -> Logger

The logger used for request/response debug logging.

Returns
  • (Logger)

#query_forecasts

def query_forecasts(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::CapacityPlanner::V1beta::QueryForecastsResponse

Baseline implementation for the query_forecasts REST call

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

#query_reservations

def query_reservations(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::CapacityPlanner::V1beta::QueryReservationsResponse

Baseline implementation for the query_reservations REST call

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

#query_usage_histories

def query_usage_histories(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::CapacityPlanner::V1beta::QueryUsageHistoriesResponse

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