Cloud Billing Budget API v1alpha1

Add support for subaccounts and labels filter fields.

PiperOrigin-RevId: 313202970
pull/605/head
Google APIs 5 years ago committed by Copybara-Service
parent f563b1dffe
commit af7903d2fb
  1. 2
      google/cloud/billing/budgets/v1alpha1/BUILD.bazel
  2. 14
      google/cloud/billing/budgets/v1alpha1/budget_model.proto

@ -22,6 +22,7 @@ proto_library(
"//google/type:money_proto",
"@com_google_protobuf//:empty_proto",
"@com_google_protobuf//:field_mask_proto",
"@com_google_protobuf//:struct_proto",
],
)
@ -85,6 +86,7 @@ moved_proto_library(
"//google/type:money_proto",
"@com_google_protobuf//:empty_proto",
"@com_google_protobuf//:field_mask_proto",
"@com_google_protobuf//:struct_proto",
],
)

@ -18,6 +18,7 @@ package google.cloud.billing.budgets.v1alpha1;
import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/protobuf/struct.proto";
import "google/type/money.proto";
option go_package = "google.golang.org/genproto/googleapis/cloud/billing/budgets/v1alpha1;budgets";
@ -176,4 +177,17 @@ message Filter {
// The service names are available through the Catalog API:
// https://cloud.google.com/billing/v1/how-tos/catalog-api.
repeated string services = 3 [(google.api.field_behavior) = OPTIONAL];
// Optional. A set of subaccounts of the form `billingAccounts/{account_id}`, specifying
// that usage from only this set of subaccounts should be included in the
// budget. If a subaccount is set to the name of the master account, usage
// from the master account will be included. If omitted, the report will
// include usage from the master account and all subaccounts, if they exist.
repeated string subaccounts = 5 [(google.api.field_behavior) = OPTIONAL];
// Optional. A single label and value pair specifying that usage from only this set of
// labeled resources should be included in the budget. Currently, multiple
// entries or multiple values per entry are not allowed. If omitted, the
// report will include all labeled and unlabeled usage.
map<string, google.protobuf.ListValue> labels = 6 [(google.api.field_behavior) = OPTIONAL];
}

Loading…
Cancel
Save