@@ -95,6 +95,7 @@ def create(
95
95
external_marketplace : Optional [Literal ["google" , "aws" , "azure" ]] | NotGiven = NOT_GIVEN ,
96
96
external_marketplace_reporting_id : Optional [str ] | NotGiven = NOT_GIVEN ,
97
97
external_plan_id : Optional [str ] | NotGiven = NOT_GIVEN ,
98
+ filter : Optional [str ] | NotGiven = NOT_GIVEN ,
98
99
initial_phase_order : Optional [int ] | NotGiven = NOT_GIVEN ,
99
100
invoicing_threshold : Optional [str ] | NotGiven = NOT_GIVEN ,
100
101
metadata : Optional [Dict [str , Optional [str ]]] | NotGiven = NOT_GIVEN ,
@@ -395,6 +396,11 @@ def create(
395
396
external_plan_id: The external_plan_id of the plan that the given subscription should be switched
396
397
to. Note that either this property or `plan_id` must be specified.
397
398
399
+ filter: An additional filter to apply to usage queries. This filter must be expressed as
400
+ a boolean
401
+ [computed property](../guides/extensibility/advanced-metrics#computed-properties).
402
+ If null, usage queries will not include any additional filter.
403
+
398
404
initial_phase_order: The phase of the plan to start with
399
405
400
406
invoicing_threshold: When this subscription's accrued usage reaches this threshold, an invoice will
@@ -463,6 +469,7 @@ def create(
463
469
"external_marketplace" : external_marketplace ,
464
470
"external_marketplace_reporting_id" : external_marketplace_reporting_id ,
465
471
"external_plan_id" : external_plan_id ,
472
+ "filter" : filter ,
466
473
"initial_phase_order" : initial_phase_order ,
467
474
"invoicing_threshold" : invoicing_threshold ,
468
475
"metadata" : metadata ,
@@ -1345,6 +1352,7 @@ def schedule_plan_change(
1345
1352
credits_overage_rate : Optional [float ] | NotGiven = NOT_GIVEN ,
1346
1353
default_invoice_memo : Optional [str ] | NotGiven = NOT_GIVEN ,
1347
1354
external_plan_id : Optional [str ] | NotGiven = NOT_GIVEN ,
1355
+ filter : Optional [str ] | NotGiven = NOT_GIVEN ,
1348
1356
initial_phase_order : Optional [int ] | NotGiven = NOT_GIVEN ,
1349
1357
invoicing_threshold : Optional [str ] | NotGiven = NOT_GIVEN ,
1350
1358
net_terms : Optional [int ] | NotGiven = NOT_GIVEN ,
@@ -1582,6 +1590,11 @@ def schedule_plan_change(
1582
1590
external_plan_id: The external_plan_id of the plan that the given subscription should be switched
1583
1591
to. Note that either this property or `plan_id` must be specified.
1584
1592
1593
+ filter: An additional filter to apply to usage queries. This filter must be expressed as
1594
+ a boolean
1595
+ [computed property](../guides/extensibility/advanced-metrics#computed-properties).
1596
+ If null, usage queries will not include any additional filter.
1597
+
1585
1598
initial_phase_order: The phase of the plan to start with
1586
1599
1587
1600
invoicing_threshold: When this subscription's accrued usage reaches this threshold, an invoice will
@@ -1645,6 +1658,7 @@ def schedule_plan_change(
1645
1658
"credits_overage_rate" : credits_overage_rate ,
1646
1659
"default_invoice_memo" : default_invoice_memo ,
1647
1660
"external_plan_id" : external_plan_id ,
1661
+ "filter" : filter ,
1648
1662
"initial_phase_order" : initial_phase_order ,
1649
1663
"invoicing_threshold" : invoicing_threshold ,
1650
1664
"net_terms" : net_terms ,
@@ -2044,6 +2058,7 @@ async def create(
2044
2058
external_marketplace : Optional [Literal ["google" , "aws" , "azure" ]] | NotGiven = NOT_GIVEN ,
2045
2059
external_marketplace_reporting_id : Optional [str ] | NotGiven = NOT_GIVEN ,
2046
2060
external_plan_id : Optional [str ] | NotGiven = NOT_GIVEN ,
2061
+ filter : Optional [str ] | NotGiven = NOT_GIVEN ,
2047
2062
initial_phase_order : Optional [int ] | NotGiven = NOT_GIVEN ,
2048
2063
invoicing_threshold : Optional [str ] | NotGiven = NOT_GIVEN ,
2049
2064
metadata : Optional [Dict [str , Optional [str ]]] | NotGiven = NOT_GIVEN ,
@@ -2344,6 +2359,11 @@ async def create(
2344
2359
external_plan_id: The external_plan_id of the plan that the given subscription should be switched
2345
2360
to. Note that either this property or `plan_id` must be specified.
2346
2361
2362
+ filter: An additional filter to apply to usage queries. This filter must be expressed as
2363
+ a boolean
2364
+ [computed property](../guides/extensibility/advanced-metrics#computed-properties).
2365
+ If null, usage queries will not include any additional filter.
2366
+
2347
2367
initial_phase_order: The phase of the plan to start with
2348
2368
2349
2369
invoicing_threshold: When this subscription's accrued usage reaches this threshold, an invoice will
@@ -2412,6 +2432,7 @@ async def create(
2412
2432
"external_marketplace" : external_marketplace ,
2413
2433
"external_marketplace_reporting_id" : external_marketplace_reporting_id ,
2414
2434
"external_plan_id" : external_plan_id ,
2435
+ "filter" : filter ,
2415
2436
"initial_phase_order" : initial_phase_order ,
2416
2437
"invoicing_threshold" : invoicing_threshold ,
2417
2438
"metadata" : metadata ,
@@ -3294,6 +3315,7 @@ async def schedule_plan_change(
3294
3315
credits_overage_rate : Optional [float ] | NotGiven = NOT_GIVEN ,
3295
3316
default_invoice_memo : Optional [str ] | NotGiven = NOT_GIVEN ,
3296
3317
external_plan_id : Optional [str ] | NotGiven = NOT_GIVEN ,
3318
+ filter : Optional [str ] | NotGiven = NOT_GIVEN ,
3297
3319
initial_phase_order : Optional [int ] | NotGiven = NOT_GIVEN ,
3298
3320
invoicing_threshold : Optional [str ] | NotGiven = NOT_GIVEN ,
3299
3321
net_terms : Optional [int ] | NotGiven = NOT_GIVEN ,
@@ -3531,6 +3553,11 @@ async def schedule_plan_change(
3531
3553
external_plan_id: The external_plan_id of the plan that the given subscription should be switched
3532
3554
to. Note that either this property or `plan_id` must be specified.
3533
3555
3556
+ filter: An additional filter to apply to usage queries. This filter must be expressed as
3557
+ a boolean
3558
+ [computed property](../guides/extensibility/advanced-metrics#computed-properties).
3559
+ If null, usage queries will not include any additional filter.
3560
+
3534
3561
initial_phase_order: The phase of the plan to start with
3535
3562
3536
3563
invoicing_threshold: When this subscription's accrued usage reaches this threshold, an invoice will
@@ -3594,6 +3621,7 @@ async def schedule_plan_change(
3594
3621
"credits_overage_rate" : credits_overage_rate ,
3595
3622
"default_invoice_memo" : default_invoice_memo ,
3596
3623
"external_plan_id" : external_plan_id ,
3624
+ "filter" : filter ,
3597
3625
"initial_phase_order" : initial_phase_order ,
3598
3626
"invoicing_threshold" : invoicing_threshold ,
3599
3627
"net_terms" : net_terms ,
0 commit comments