Billing Budgets V1 API - Class Google::Cloud::Billing::Budgets::V1::BudgetService::Rest::ServiceStub (v0.4.0)

Reference documentation and code samples for the Billing Budgets V1 API class Google::Cloud::Billing::Budgets::V1::BudgetService::Rest::ServiceStub.

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

Inherits

  • Object

Methods

#create_budget

def create_budget(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Billing::Budgets::V1::Budget

Baseline implementation for the create_budget REST call

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

#delete_budget

def delete_budget(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_budget REST call

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

#get_budget

def get_budget(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Billing::Budgets::V1::Budget

Baseline implementation for the get_budget REST call

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

#initialize

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

#list_budgets

def list_budgets(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Billing::Budgets::V1::ListBudgetsResponse

Baseline implementation for the list_budgets REST call

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

#update_budget

def update_budget(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Billing::Budgets::V1::Budget

Baseline implementation for the update_budget REST call

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