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
- (String)
#export_forecasts
def export_forecasts(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the export_forecasts REST call
- request_pb (::Google::Cloud::CapacityPlanner::V1beta::ExportForecastsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::CapacityPlanner::V1beta::ExportReservationsUsageRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::CapacityPlanner::V1beta::ExportUsageHistoriesRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#logger
def logger(stub: false) -> Logger
The logger used for request/response debug logging.
- (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
- request_pb (::Google::Cloud::CapacityPlanner::V1beta::QueryForecastsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::CapacityPlanner::V1beta::QueryForecastsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::CapacityPlanner::V1beta::QueryForecastsResponse) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::CapacityPlanner::V1beta::QueryReservationsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::CapacityPlanner::V1beta::QueryReservationsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::CapacityPlanner::V1beta::QueryReservationsResponse) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::CapacityPlanner::V1beta::QueryUsageHistoriesRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::CapacityPlanner::V1beta::QueryUsageHistoriesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::CapacityPlanner::V1beta::QueryUsageHistoriesResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#universe_domain
def universe_domain() -> String
The effective universe domain
- (String)