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
- request_pb (::Google::Cloud::Billing::Budgets::V1::CreateBudgetRequest) — 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::Billing::Budgets::V1::Budget)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Billing::Budgets::V1::Budget) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_budget
def delete_budget(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the delete_budget REST call
- request_pb (::Google::Cloud::Billing::Budgets::V1::DeleteBudgetRequest) — 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::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::ArgumentError)
#endpoint
def endpoint() -> String
The effective endpoint
- (String)
#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
- request_pb (::Google::Cloud::Billing::Budgets::V1::GetBudgetRequest) — 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::Billing::Budgets::V1::Budget)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Billing::Budgets::V1::Budget) — A result object deserialized from the server's reply
- (::ArgumentError)
#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
- request_pb (::Google::Cloud::Billing::Budgets::V1::ListBudgetsRequest) — 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::Billing::Budgets::V1::ListBudgetsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Billing::Budgets::V1::ListBudgetsResponse) — 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)
#universe_domain
def universe_domain() -> String
The effective universe domain
- (String)
#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
- request_pb (::Google::Cloud::Billing::Budgets::V1::UpdateBudgetRequest) — 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::Billing::Budgets::V1::Budget)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Billing::Budgets::V1::Budget) — A result object deserialized from the server's reply
- (::ArgumentError)