123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300 |
- syntax = "proto3";
- package google.cloud.billing.budgets.v1;
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/protobuf/struct.proto";
- import "google/type/date.proto";
- import "google/type/money.proto";
- option go_package = "google.golang.org/genproto/googleapis/cloud/billing/budgets/v1;budgets";
- option java_multiple_files = true;
- option java_outer_classname = "BudgetModelProto";
- option java_package = "com.google.cloud.billing.budgets.v1";
- message Budget {
- option (google.api.resource) = {
- type: "billingbudgets.googleapis.com/Budget"
- pattern: "billingAccounts/{billing_account}/budgets/{budget}"
- };
-
-
-
- string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- string display_name = 2;
-
-
-
- Filter budget_filter = 3 [(google.api.field_behavior) = OPTIONAL];
-
- BudgetAmount amount = 4 [(google.api.field_behavior) = REQUIRED];
-
-
- repeated ThresholdRule threshold_rules = 5
- [(google.api.field_behavior) = OPTIONAL];
-
-
- NotificationsRule notifications_rule = 6
- [(google.api.field_behavior) = OPTIONAL];
-
-
-
- string etag = 7 [(google.api.field_behavior) = OPTIONAL];
- }
- message BudgetAmount {
-
- oneof budget_amount {
-
-
-
-
-
- google.type.Money specified_amount = 1;
-
-
-
-
-
- LastPeriodAmount last_period_amount = 2;
- }
- }
- message LastPeriodAmount {}
- message ThresholdRule {
-
- enum Basis {
-
- BASIS_UNSPECIFIED = 0;
-
- CURRENT_SPEND = 1;
-
-
-
-
-
-
- FORECASTED_SPEND = 2;
- }
-
-
-
- double threshold_percent = 1 [(google.api.field_behavior) = REQUIRED];
-
-
- Basis spend_basis = 2 [(google.api.field_behavior) = OPTIONAL];
- }
- message NotificationsRule {
-
-
-
-
-
-
-
-
-
-
-
- string pubsub_topic = 1 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
-
-
- string schema_version = 2 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
-
-
-
-
- repeated string monitoring_notification_channels = 3
- [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
- bool disable_default_iam_recipients = 4
- [(google.api.field_behavior) = OPTIONAL];
- }
- message Filter {
-
-
-
-
-
- enum CreditTypesTreatment {
- CREDIT_TYPES_TREATMENT_UNSPECIFIED = 0;
-
-
- INCLUDE_ALL_CREDITS = 1;
-
-
- EXCLUDE_ALL_CREDITS = 2;
-
-
-
-
- INCLUDE_SPECIFIED_CREDITS = 3;
- }
-
-
-
-
-
- repeated string projects = 1 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
-
-
-
-
-
-
- repeated string credit_types = 7 [(google.api.field_behavior) = OPTIONAL];
-
- CreditTypesTreatment credit_types_treatment = 4
- [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
-
-
- repeated string services = 3 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
-
-
- repeated string subaccounts = 5 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
- map<string, google.protobuf.ListValue> labels = 6
- [(google.api.field_behavior) = OPTIONAL];
-
-
-
- oneof usage_period {
-
-
-
-
-
-
- CalendarPeriod calendar_period = 8 [(google.api.field_behavior) = OPTIONAL];
-
-
- CustomPeriod custom_period = 9 [(google.api.field_behavior) = OPTIONAL];
- }
- }
- message CustomPeriod {
-
- google.type.Date start_date = 1 [(google.api.field_behavior) = REQUIRED];
-
-
-
- google.type.Date end_date = 2 [(google.api.field_behavior) = OPTIONAL];
- }
- enum CalendarPeriod {
- CALENDAR_PERIOD_UNSPECIFIED = 0;
-
-
- MONTH = 1;
-
-
- QUARTER = 2;
-
- YEAR = 3;
- }
|