Reference documentation and code samples for the Billing V1 API class Google::Cloud::Billing::V1::CloudBilling::Rest::ServiceStub.
REST service stub for the CloudBilling service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
Methods
#create_billing_account
def create_billing_account(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Billing::V1::BillingAccount
Baseline implementation for the create_billing_account REST call
- request_pb (::Google::Cloud::Billing::V1::CreateBillingAccountRequest) — 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::V1::BillingAccount)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Billing::V1::BillingAccount) — A result object deserialized from the server's reply
- (::ArgumentError)
#endpoint
def endpoint() -> String
The effective endpoint
- (String)
#get_billing_account
def get_billing_account(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Billing::V1::BillingAccount
Baseline implementation for the get_billing_account REST call
- request_pb (::Google::Cloud::Billing::V1::GetBillingAccountRequest) — 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::V1::BillingAccount)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Billing::V1::BillingAccount) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_iam_policy
def get_iam_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::V1::Policy
Baseline implementation for the get_iam_policy REST call
- request_pb (::Google::Iam::V1::GetIamPolicyRequest) — 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::Iam::V1::Policy)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Iam::V1::Policy) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_project_billing_info
def get_project_billing_info(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Billing::V1::ProjectBillingInfo
Baseline implementation for the get_project_billing_info REST call
- request_pb (::Google::Cloud::Billing::V1::GetProjectBillingInfoRequest) — 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::V1::ProjectBillingInfo)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Billing::V1::ProjectBillingInfo) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_billing_accounts
def list_billing_accounts(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Billing::V1::ListBillingAccountsResponse
Baseline implementation for the list_billing_accounts REST call
- request_pb (::Google::Cloud::Billing::V1::ListBillingAccountsRequest) — 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::V1::ListBillingAccountsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Billing::V1::ListBillingAccountsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_project_billing_info
def list_project_billing_info(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Billing::V1::ListProjectBillingInfoResponse
Baseline implementation for the list_project_billing_info REST call
- request_pb (::Google::Cloud::Billing::V1::ListProjectBillingInfoRequest) — 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::V1::ListProjectBillingInfoResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Billing::V1::ListProjectBillingInfoResponse) — 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)
#move_billing_account
def move_billing_account(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Billing::V1::BillingAccount
Baseline implementation for the move_billing_account REST call
- request_pb (::Google::Cloud::Billing::V1::MoveBillingAccountRequest) — 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::V1::BillingAccount)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Billing::V1::BillingAccount) — A result object deserialized from the server's reply
- (::ArgumentError)
#set_iam_policy
def set_iam_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::V1::Policy
Baseline implementation for the set_iam_policy REST call
- request_pb (::Google::Iam::V1::SetIamPolicyRequest) — 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::Iam::V1::Policy)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Iam::V1::Policy) — A result object deserialized from the server's reply
- (::ArgumentError)
#test_iam_permissions
def test_iam_permissions(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::V1::TestIamPermissionsResponse
Baseline implementation for the test_iam_permissions REST call
- request_pb (::Google::Iam::V1::TestIamPermissionsRequest) — 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::Iam::V1::TestIamPermissionsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Iam::V1::TestIamPermissionsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#universe_domain
def universe_domain() -> String
The effective universe domain
- (String)
#update_billing_account
def update_billing_account(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Billing::V1::BillingAccount
Baseline implementation for the update_billing_account REST call
- request_pb (::Google::Cloud::Billing::V1::UpdateBillingAccountRequest) — 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::V1::BillingAccount)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Billing::V1::BillingAccount) — A result object deserialized from the server's reply
- (::ArgumentError)
#update_project_billing_info
def update_project_billing_info(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Billing::V1::ProjectBillingInfo
Baseline implementation for the update_project_billing_info REST call
- request_pb (::Google::Cloud::Billing::V1::UpdateProjectBillingInfoRequest) — 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::V1::ProjectBillingInfo)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Billing::V1::ProjectBillingInfo) — A result object deserialized from the server's reply
- (::ArgumentError)