Skip to content

Commit 249620e

Browse files
yoshi-automationsofisl
authored andcommittedSep 22, 2023
feat(cloudbilling)!: update the API
BREAKING CHANGE: This release has breaking changes. #### cloudbilling:v1beta The following keys were deleted: - schemas.GoogleCloudBillingBillingaccountpricesV1betaMigratedPrice.properties.sourceDiscountOnTargetPrice.$ref - schemas.GoogleCloudBillingBillingaccountpricesV1betaMigratedPrice.properties.sourceDiscountOnTargetPrice.description - schemas.GoogleCloudBillingBillingaccountpricesV1betaMigratedPrice.properties.type.description - schemas.GoogleCloudBillingBillingaccountpricesV1betaMigratedPrice.properties.type.type - schemas.GoogleCloudBillingBillingaccountpricesV1betaSourceDiscountOnTargetPrice.description - schemas.GoogleCloudBillingBillingaccountpricesV1betaSourceDiscountOnTargetPrice.id - schemas.GoogleCloudBillingBillingaccountpricesV1betaSourceDiscountOnTargetPrice.properties.migratedDiscountPercent.$ref - schemas.GoogleCloudBillingBillingaccountpricesV1betaSourceDiscountOnTargetPrice.properties.migratedDiscountPercent.description - schemas.GoogleCloudBillingBillingaccountpricesV1betaSourceDiscountOnTargetPrice.type The following keys were changed: - schemas.GoogleCloudBillingBillingaccountpricesV1betaFixedDiscount.properties.discountScopeType.description - schemas.GoogleCloudBillingBillingaccountpricesV1betaFloatingDiscount.properties.discountScopeType.description - schemas.GoogleCloudBillingBillingaccountpricesV1betaMigratedPrice.properties.sourceSku.description - schemas.GoogleCloudBillingBillingaccountpricesV1betaPriceReason.properties.type.description
1 parent 6640f27 commit 249620e

File tree

2 files changed

+9
-45
lines changed

2 files changed

+9
-45
lines changed
 

‎discovery/cloudbilling-v1beta.json

+5-24
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@
664664
}
665665
}
666666
},
667-
"revision": "20230811",
667+
"revision": "20230915",
668668
"rootUrl": "https://cloudbilling.googleapis.com/",
669669
"schemas": {
670670
"CacheFillRegions": {
@@ -1302,7 +1302,7 @@
13021302
"description": "Percentage of the fixed discount."
13031303
},
13041304
"discountScopeType": {
1305-
"description": "Type of the fixed discount scope which indicates the source of the discount. It can have values such as 'sku-group'.",
1305+
"description": "Type of the fixed discount scope which indicates the source of the discount. It can have values such as 'unspecified' and 'sku-group'.",
13061306
"type": "string"
13071307
},
13081308
"fixTime": {
@@ -1332,7 +1332,7 @@
13321332
"description": "Percentage of the floating discount."
13331333
},
13341334
"discountScopeType": {
1335-
"description": "Type of the floating discount scope which indicates the source of the discount. It can have values such as 'sku-group'.",
1335+
"description": "Type of the floating discount scope which indicates the source of the discount. It can have values such as 'unspecified' and 'sku-group'.",
13361336
"type": "string"
13371337
},
13381338
"skuGroup": {
@@ -1358,16 +1358,8 @@
13581358
"description": "Encapsulates a price migrated from other SKUs.",
13591359
"id": "GoogleCloudBillingBillingaccountpricesV1betaMigratedPrice",
13601360
"properties": {
1361-
"sourceDiscountOnTargetPrice": {
1362-
"$ref": "GoogleCloudBillingBillingaccountpricesV1betaSourceDiscountOnTargetPrice",
1363-
"description": "The source SKU floating discount is applied on the target SKU's default price."
1364-
},
13651361
"sourceSku": {
1366-
"description": "Source SKU where the discount is migrated from.",
1367-
"type": "string"
1368-
},
1369-
"type": {
1370-
"description": "Type of the migrated price. It can have values such as 'source-discount-on-target-price'.",
1362+
"description": "Source SKU where the discount is migrated from. Format: billingAccounts/{billing_account}/skus/{sku}",
13711363
"type": "string"
13721364
}
13731365
},
@@ -1406,7 +1398,7 @@
14061398
"description": "Price migrated from other SKUs."
14071399
},
14081400
"type": {
1409-
"description": "Type of the price reason. It can values such as 'default-price', 'fixed-price', 'fixed-discount', 'floating-discount', 'migrated-price', 'merged-price', 'list-price-as-ceiling'.",
1401+
"description": "Type of the price reason. It can have values such as 'unspecified', 'default-price', 'fixed-price', 'fixed-discount', 'floating-discount', 'migrated-price', 'merged-price', 'list-price-as-ceiling'.",
14101402
"type": "string"
14111403
}
14121404
},
@@ -1457,17 +1449,6 @@
14571449
},
14581450
"type": "object"
14591451
},
1460-
"GoogleCloudBillingBillingaccountpricesV1betaSourceDiscountOnTargetPrice": {
1461-
"description": "Encapsulates a type of MigratedPrice where the source SKU floating discount is applied on the target SKU's default price.",
1462-
"id": "GoogleCloudBillingBillingaccountpricesV1betaSourceDiscountOnTargetPrice",
1463-
"properties": {
1464-
"migratedDiscountPercent": {
1465-
"$ref": "Decimal",
1466-
"description": "Discount percent of the source SKU that is applied on the target SKU's default price."
1467-
}
1468-
},
1469-
"type": "object"
1470-
},
14711452
"GoogleCloudBillingBillingaccountpricesV1betaUnitInfo": {
14721453
"description": "Encapsulates the unit information for a Rate",
14731454
"id": "GoogleCloudBillingBillingaccountpricesV1betaUnitInfo",

‎src/apis/cloudbilling/v1beta.ts

+4-21
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ export namespace cloudbilling_v1beta {
531531
*/
532532
discountPercent?: Schema$Decimal;
533533
/**
534-
* Type of the fixed discount scope which indicates the source of the discount. It can have values such as 'sku-group'.
534+
* Type of the fixed discount scope which indicates the source of the discount. It can have values such as 'unspecified' and 'sku-group'.
535535
*/
536536
discountScopeType?: string | null;
537537
/**
@@ -556,7 +556,7 @@ export namespace cloudbilling_v1beta {
556556
*/
557557
discountPercent?: Schema$Decimal;
558558
/**
559-
* Type of the floating discount scope which indicates the source of the discount. It can have values such as 'sku-group'.
559+
* Type of the floating discount scope which indicates the source of the discount. It can have values such as 'unspecified' and 'sku-group'.
560560
*/
561561
discountScopeType?: string | null;
562562
/**
@@ -577,17 +577,9 @@ export namespace cloudbilling_v1beta {
577577
*/
578578
export interface Schema$GoogleCloudBillingBillingaccountpricesV1betaMigratedPrice {
579579
/**
580-
* The source SKU floating discount is applied on the target SKU's default price.
581-
*/
582-
sourceDiscountOnTargetPrice?: Schema$GoogleCloudBillingBillingaccountpricesV1betaSourceDiscountOnTargetPrice;
583-
/**
584-
* Source SKU where the discount is migrated from.
580+
* Source SKU where the discount is migrated from. Format: billingAccounts/{billing_account\}/skus/{sku\}
585581
*/
586582
sourceSku?: string | null;
587-
/**
588-
* Type of the migrated price. It can have values such as 'source-discount-on-target-price'.
589-
*/
590-
type?: string | null;
591583
}
592584
/**
593585
* Encapsulates a price reason which contains background information about the origin of the price.
@@ -622,7 +614,7 @@ export namespace cloudbilling_v1beta {
622614
*/
623615
migratedPrice?: Schema$GoogleCloudBillingBillingaccountpricesV1betaMigratedPrice;
624616
/**
625-
* Type of the price reason. It can values such as 'default-price', 'fixed-price', 'fixed-discount', 'floating-discount', 'migrated-price', 'merged-price', 'list-price-as-ceiling'.
617+
* Type of the price reason. It can have values such as 'unspecified', 'default-price', 'fixed-price', 'fixed-discount', 'floating-discount', 'migrated-price', 'merged-price', 'list-price-as-ceiling'.
626618
*/
627619
type?: string | null;
628620
}
@@ -664,15 +656,6 @@ export namespace cloudbilling_v1beta {
664656
*/
665657
startAmount?: Schema$Decimal;
666658
}
667-
/**
668-
* Encapsulates a type of MigratedPrice where the source SKU floating discount is applied on the target SKU's default price.
669-
*/
670-
export interface Schema$GoogleCloudBillingBillingaccountpricesV1betaSourceDiscountOnTargetPrice {
671-
/**
672-
* Discount percent of the source SKU that is applied on the target SKU's default price.
673-
*/
674-
migratedDiscountPercent?: Schema$Decimal;
675-
}
676659
/**
677660
* Encapsulates the unit information for a Rate
678661
*/

0 commit comments

Comments
 (0)
Please sign in to comment.