@@ -75,7 +75,14 @@ message PlannedLimit {
75
75
}
76
76
77
77
message BudgetNotificationRecipients {
78
+ enum BudgetManagerNotification {
79
+ NONE = 0 ;
80
+ ENABLED = 1 ;
81
+ DISABLED = 2 ;
82
+ }
78
83
repeated string users = 1 ;
84
+ BudgetManagerNotification budget_manager_notification = 2 ;
85
+
79
86
80
87
}
81
88
@@ -97,12 +104,6 @@ message BudgetNotification {
97
104
DISABLED = 2 ;
98
105
}
99
106
100
- enum NotificationType {
101
- NOTIFICATION_TYPE_NONE = 0 ;
102
- CRITICAL = 1 ;
103
- WARNING = 2 ;
104
- }
105
-
106
107
BudgetNotificationState state = 1 ;
107
108
repeated BudgetNotificationPlan plans = 2 ;
108
109
BudgetNotificationRecipients recipients = 3 ;
@@ -137,7 +138,8 @@ message BudgetNotification {
137
138
// }
138
139
// ],
139
140
// "recipients": {
140
-
141
+
142
+ // "budget_manager_notification": "ENABLED"
141
143
// }
142
144
// },
143
145
// "tags": {},
@@ -193,23 +195,26 @@ message CreateBudgetRequest {
193
195
// "budget_id": "budget-d51b6b6a9910",
194
196
// "budget_manager_id": "[email protected] ",
195
197
// "name": "Cloudforet-Budget-test", "limit": 15000.0,
196
- // "planned_limits": [{"date": "2022-01", "limit": 500.0},
197
- // {"date": "2022-02", "limit": 500.0},
198
- // {"date": "2022-03", "limit": 500.0},
199
- // {"date": "2022-04", "limit": 500.0},
200
- // {"date": "2022-05", "limit": 500.0},
201
- // {"date": "2022-06", "limit": 500.0},
202
- // {"date": "2022-07", "limit": 500.0},
203
- // {"date": "2022-08", "limit": 500.0},
204
- // {"date": "2022-09", "limit": 500.0}],
205
- // "start": "2022-01",
206
- // "end": "2022-12",
198
+ // "planned_limits": [{"date": "2025-01", "limit": 500.0},
199
+ // {"date": "2025-02", "limit": 500.0},
200
+ // {"date": "2025-03", "limit": 500.0},
201
+ // {"date": "2025-04", "limit": 500.0},
202
+ // {"date": "2025-05", "limit": 500.0},
203
+ // {"date": "2025-06", "limit": 500.0},
204
+ // {"date": "2025-07", "limit": 500.0},
205
+ // {"date": "2025-08", "limit": 500.0},
206
+ // {"date": "2025-09", "limit": 500.0}],
207
+ // "limit": 15000.0,
208
+ // "budget_year": "2025",
209
+ // "start": "2025-01",
210
+ // "end": "2025-12",
207
211
// "tags": {}
208
212
//}
209
213
message UpdateBudgetRequest {
210
214
string budget_id = 1 ;
211
215
// +optional
212
216
string name = 2 ;
217
+ // Only `TOTAL` time_unit budget can be updated
213
218
// +optional
214
219
double limit = 3 ;
215
220
// +optional
@@ -240,6 +245,8 @@ message UpdateBudgetRequest {
240
245
// "unit": "PERCENT"
241
246
// }],
242
247
// "recipients": {
248
+ // "users": ["[email protected] "],
249
+ // "budget_manager_notification": "ENABLED"
243
250
// }
244
251
// }
245
252
//}
@@ -359,7 +366,8 @@ message BudgetQuery {
359
366
// }
360
367
// ],
361
368
// "recipients": {
362
-
369
+ // "users": ["[email protected] "],
370
+ // "budget_manager_notification": "ENABLED"
363
371
// }
364
372
// },
365
373
// "utilization_rate": 20.0,
@@ -416,70 +424,68 @@ message BudgetInfo {
416
424
// "limit": 18600.0,
417
425
// "planned_limits": [
418
426
// {
419
- // "date": "2022 -01",
427
+ // "date": "2025 -01",
420
428
// "limit": 1000.0
421
429
// },
422
430
// {
423
- // "date": "2022 -02",
431
+ // "date": "2025 -02",
424
432
// "limit": 1100.0
425
433
// },
426
434
// {
427
- // "date": "2022 -03",
435
+ // "date": "2025 -03",
428
436
// "limit": 1200.0
429
437
// },
430
438
// {
431
- // "date": "2022 -04",
439
+ // "date": "2025 -04",
432
440
// "limit": 1300.0
433
441
// },
434
442
// {
435
- // "date": "2022 -05",
443
+ // "date": "2025 -05",
436
444
// "limit": 1400.0
437
445
// },
438
446
// {
439
- // "date": "2022 -06",
447
+ // "date": "2025 -06",
440
448
// "limit": 1500.0
441
449
// },
442
450
// {
443
- // "date": "2022 -07",
451
+ // "date": "2025 -07",
444
452
// "limit": 1600.0
445
453
// },
446
454
// {
447
- // "date": "2022 -08",
455
+ // "date": "2025 -08",
448
456
// "limit": 1700.0
449
457
// },
450
458
// {
451
- // "date": "2022 -09",
459
+ // "date": "2025 -09",
452
460
// "limit": 1800.0
453
461
// },
454
462
// {
455
- // "date": "2022 -10",
463
+ // "date": "2025 -10",
456
464
// "limit": 1900.0
457
465
// },
458
466
// {
459
- // "date": "2022 -11",
467
+ // "date": "2025 -11",
460
468
// "limit": 2000.0
461
469
// },
462
470
// {
463
- // "date": "2022 -12",
471
+ // "date": "2025 -12",
464
472
// "limit": 2100.0
465
473
// }
466
474
// ],
467
475
// "currency": "USD",
468
- // "provider_filter": {
469
- // "state": "ENABLED",
470
- // "providers": [
471
- // "aws",
472
- // "google_cloud"
473
- // ]
474
- // },
475
476
// "time_unit": "MONTHLY",
476
- // "start": "2022 -01",
477
- // "end": "2022 -12",
477
+ // "start": "2025 -01",
478
+ // "end": "2025 -12",
478
479
// "tags": {},
479
- // "project_group_id": "pg-812c90990877",
480
+ // "utilization_rate": 20.0,
481
+ // "budget_year": "2025",
482
+ // "resource_group": "PROJECT",
483
+ // "service_account_id": "sa-1234567890",
484
+ // "project_id": "project-1234567890",
485
+ // "workspace_id": "workspace-1234567890",
480
486
// "domain_id": "domain-58010aa2e451",
481
- // "created_at": "2022 -04-12T06:09:56.917Z",
482
- // "updated_at": "2022 -04-12T06:09:56.917Z"
487
+ // "created_at": "2025 -04-12T06:09:56.917Z",
488
+ // "updated_at": "2025 -04-12T06:09:56.917Z"
483
489
// }
484
490
// ],
485
491
// "total_count": 6
0 commit comments