Skip to content

Commit 7bb2cfe

Browse files
yoshi-automationleahecole
authored andcommitted
feat(cloudchannel): update the API
#### cloudchannel:v1 The following keys were added: - schemas.GoogleCloudChannelV1DiscountComponent.description - schemas.GoogleCloudChannelV1DiscountComponent.id - schemas.GoogleCloudChannelV1DiscountComponent.properties.discountAbsolute.$ref - schemas.GoogleCloudChannelV1DiscountComponent.properties.discountAbsolute.description - schemas.GoogleCloudChannelV1DiscountComponent.properties.discountPercentage.description - schemas.GoogleCloudChannelV1DiscountComponent.properties.discountPercentage.format - schemas.GoogleCloudChannelV1DiscountComponent.properties.discountPercentage.type - schemas.GoogleCloudChannelV1DiscountComponent.properties.discountType.description - schemas.GoogleCloudChannelV1DiscountComponent.properties.discountType.enum - schemas.GoogleCloudChannelV1DiscountComponent.properties.discountType.enumDescriptions - schemas.GoogleCloudChannelV1DiscountComponent.properties.discountType.type - schemas.GoogleCloudChannelV1DiscountComponent.type - schemas.GoogleCloudChannelV1Price.properties.discountComponents.description - schemas.GoogleCloudChannelV1Price.properties.discountComponents.items.$ref - schemas.GoogleCloudChannelV1Price.properties.discountComponents.type - schemas.GoogleCloudChannelV1Price.properties.pricePeriod.$ref - schemas.GoogleCloudChannelV1Price.properties.pricePeriod.description
1 parent 4d8a044 commit 7bb2cfe

File tree

2 files changed

+73
-1
lines changed

2 files changed

+73
-1
lines changed

discovery/cloudchannel-v1.json

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2289,7 +2289,7 @@
22892289
}
22902290
}
22912291
},
2292-
"revision": "20250614",
2292+
"revision": "20250809",
22932293
"rootUrl": "https://cloudchannel.googleapis.com/",
22942294
"schemas": {
22952295
"GoogleCloudChannelV1ActivateEntitlementRequest": {
@@ -3035,6 +3035,42 @@
30353035
},
30363036
"type": "object"
30373037
},
3038+
"GoogleCloudChannelV1DiscountComponent": {
3039+
"description": "Represents a single component of the total discount applicable on a Price.",
3040+
"id": "GoogleCloudChannelV1DiscountComponent",
3041+
"properties": {
3042+
"discountAbsolute": {
3043+
"$ref": "GoogleTypeMoney",
3044+
"description": "Fixed value discount."
3045+
},
3046+
"discountPercentage": {
3047+
"description": "Discount percentage, represented as decimal. For example, a 20% discount will be represented as 0.2.",
3048+
"format": "double",
3049+
"type": "number"
3050+
},
3051+
"discountType": {
3052+
"description": "Type of the discount.",
3053+
"enum": [
3054+
"DISCOUNT_TYPE_UNSPECIFIED",
3055+
"REGIONAL_DISCOUNT",
3056+
"PROMOTIONAL_DISCOUNT",
3057+
"SALES_DISCOUNT",
3058+
"RESELLER_MARGIN",
3059+
"DEAL_CODE"
3060+
],
3061+
"enumDescriptions": [
3062+
"Not used.",
3063+
"Regional discount.",
3064+
"Promotional discount.",
3065+
"Sales-provided discount.",
3066+
"Reseller margin.",
3067+
"Deal code discount."
3068+
],
3069+
"type": "string"
3070+
}
3071+
},
3072+
"type": "object"
3073+
},
30383074
"GoogleCloudChannelV1EduData": {
30393075
"description": "Required Edu Attributes",
30403076
"id": "GoogleCloudChannelV1EduData",
@@ -4157,13 +4193,24 @@
41574193
"format": "double",
41584194
"type": "number"
41594195
},
4196+
"discountComponents": {
4197+
"description": "Breakdown of the discount into its components. This will be empty if there is no discount present.",
4198+
"items": {
4199+
"$ref": "GoogleCloudChannelV1DiscountComponent"
4200+
},
4201+
"type": "array"
4202+
},
41604203
"effectivePrice": {
41614204
"$ref": "GoogleTypeMoney",
41624205
"description": "Effective Price after applying the discounts."
41634206
},
41644207
"externalPriceUri": {
41654208
"description": "Link to external price list, such as link to Google Voice rate card.",
41664209
"type": "string"
4210+
},
4211+
"pricePeriod": {
4212+
"$ref": "GoogleCloudChannelV1Period",
4213+
"description": "The time period with respect to which base and effective prices are defined. Example: 1 month, 6 months, 1 year, etc."
41674214
}
41684215
},
41694216
"type": "object"

src/apis/cloudchannel/v1.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,6 +1100,23 @@ export namespace cloudchannel_v1 {
11001100
*/
11011101
usageStartDateTime?: Schema$GoogleTypeDateTime;
11021102
}
1103+
/**
1104+
* Represents a single component of the total discount applicable on a Price.
1105+
*/
1106+
export interface Schema$GoogleCloudChannelV1DiscountComponent {
1107+
/**
1108+
* Fixed value discount.
1109+
*/
1110+
discountAbsolute?: Schema$GoogleTypeMoney;
1111+
/**
1112+
* Discount percentage, represented as decimal. For example, a 20% discount will be represented as 0.2.
1113+
*/
1114+
discountPercentage?: number | null;
1115+
/**
1116+
* Type of the discount.
1117+
*/
1118+
discountType?: string | null;
1119+
}
11031120
/**
11041121
* Required Edu Attributes
11051122
*/
@@ -1791,6 +1808,10 @@ export namespace cloudchannel_v1 {
17911808
* Discount percentage, represented as decimal. For example, a 20% discount will be represent as 0.2.
17921809
*/
17931810
discount?: number | null;
1811+
/**
1812+
* Breakdown of the discount into its components. This will be empty if there is no discount present.
1813+
*/
1814+
discountComponents?: Schema$GoogleCloudChannelV1DiscountComponent[];
17941815
/**
17951816
* Effective Price after applying the discounts.
17961817
*/
@@ -1799,6 +1820,10 @@ export namespace cloudchannel_v1 {
17991820
* Link to external price list, such as link to Google Voice rate card.
18001821
*/
18011822
externalPriceUri?: string | null;
1823+
/**
1824+
* The time period with respect to which base and effective prices are defined. Example: 1 month, 6 months, 1 year, etc.
1825+
*/
1826+
pricePeriod?: Schema$GoogleCloudChannelV1Period;
18021827
}
18031828
/**
18041829
* Represents price by resource type.

0 commit comments

Comments
 (0)