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

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

REST service stub for the CapacityPlanningService 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)

#get_capacity_plan

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

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

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

Baseline implementation for the query_capacity_plan_insights REST call

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

#query_capacity_plans

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

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