Skip to content

Commit 1c8c75d

Browse files
feat(css): update the API
#### css:v1 The following keys were added: - resources.accounts.resources.quotas.methods.list.description - resources.accounts.resources.quotas.methods.list.flatPath - resources.accounts.resources.quotas.methods.list.httpMethod - resources.accounts.resources.quotas.methods.list.id - resources.accounts.resources.quotas.methods.list.parameterOrder - resources.accounts.resources.quotas.methods.list.parameters.pageSize.description - resources.accounts.resources.quotas.methods.list.parameters.pageSize.format - resources.accounts.resources.quotas.methods.list.parameters.pageSize.location - resources.accounts.resources.quotas.methods.list.parameters.pageSize.type - resources.accounts.resources.quotas.methods.list.parameters.pageToken.description - resources.accounts.resources.quotas.methods.list.parameters.pageToken.location - resources.accounts.resources.quotas.methods.list.parameters.pageToken.type - resources.accounts.resources.quotas.methods.list.parameters.parent.description - resources.accounts.resources.quotas.methods.list.parameters.parent.location - resources.accounts.resources.quotas.methods.list.parameters.parent.pattern - resources.accounts.resources.quotas.methods.list.parameters.parent.required - resources.accounts.resources.quotas.methods.list.parameters.parent.type - resources.accounts.resources.quotas.methods.list.path - resources.accounts.resources.quotas.methods.list.response.$ref - resources.accounts.resources.quotas.methods.list.scopes - schemas.ListQuotaGroupsResponse.description - schemas.ListQuotaGroupsResponse.id - schemas.ListQuotaGroupsResponse.properties.nextPageToken.description - schemas.ListQuotaGroupsResponse.properties.nextPageToken.type - schemas.ListQuotaGroupsResponse.properties.quotaGroups.description - schemas.ListQuotaGroupsResponse.properties.quotaGroups.items.$ref - schemas.ListQuotaGroupsResponse.properties.quotaGroups.type - schemas.ListQuotaGroupsResponse.type - schemas.MethodDetails.description - schemas.MethodDetails.id - schemas.MethodDetails.properties.method.description - schemas.MethodDetails.properties.method.readOnly - schemas.MethodDetails.properties.method.type - schemas.MethodDetails.properties.path.description - schemas.MethodDetails.properties.path.readOnly - schemas.MethodDetails.properties.path.type - schemas.MethodDetails.properties.subapi.description - schemas.MethodDetails.properties.subapi.readOnly - schemas.MethodDetails.properties.subapi.type - schemas.MethodDetails.properties.version.description - schemas.MethodDetails.properties.version.readOnly - schemas.MethodDetails.properties.version.type - schemas.MethodDetails.type - schemas.QuotaGroup.description - schemas.QuotaGroup.id - schemas.QuotaGroup.properties.methodDetails.description - schemas.QuotaGroup.properties.methodDetails.items.$ref - schemas.QuotaGroup.properties.methodDetails.readOnly - schemas.QuotaGroup.properties.methodDetails.type - schemas.QuotaGroup.properties.name.description - schemas.QuotaGroup.properties.name.type - schemas.QuotaGroup.properties.quotaLimit.description - schemas.QuotaGroup.properties.quotaLimit.format - schemas.QuotaGroup.properties.quotaLimit.readOnly - schemas.QuotaGroup.properties.quotaLimit.type - schemas.QuotaGroup.properties.quotaMinuteLimit.description - schemas.QuotaGroup.properties.quotaMinuteLimit.format - schemas.QuotaGroup.properties.quotaMinuteLimit.readOnly - schemas.QuotaGroup.properties.quotaMinuteLimit.type - schemas.QuotaGroup.properties.quotaUsage.description - schemas.QuotaGroup.properties.quotaUsage.format - schemas.QuotaGroup.properties.quotaUsage.readOnly - schemas.QuotaGroup.properties.quotaUsage.type - schemas.QuotaGroup.type The following keys were changed: - resources.accounts.resources.cssProductInputs.methods.patch.parameters.name.description - resources.accounts.resources.labels.methods.patch.parameters.name.description - schemas.AccountLabel.properties.name.description - schemas.CssProductInput.properties.name.description
1 parent 1722671 commit 1c8c75d

File tree

2 files changed

+308
-9
lines changed

2 files changed

+308
-9
lines changed

‎discovery/css-v1.json

Lines changed: 127 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@
292292
],
293293
"parameters": {
294294
"name": {
295-
"description": "The name of the CSS Product input. Format: `accounts/{account}/cssProductInputs/{css_product_input}`, where the last section `css_product_input` consists of 3 parts: contentLanguage~feedLabel~offerId. Example: accounts/123/cssProductInputs/de~DE~rawProvidedId123",
295+
"description": "Identifier. The name of the CSS Product input. Format: `accounts/{account}/cssProductInputs/{css_product_input}`, where the last section `css_product_input` consists of 3 parts: contentLanguage~feedLabel~offerId. Example: accounts/123/cssProductInputs/de~DE~rawProvidedId123",
296296
"location": "path",
297297
"pattern": "^accounts/[^/]+/cssProductInputs/[^/]+$",
298298
"required": true,
@@ -484,7 +484,7 @@
484484
],
485485
"parameters": {
486486
"name": {
487-
"description": "The resource name of the label. Format: accounts/{account}/labels/{label}",
487+
"description": "Identifier. The resource name of the label. Format: accounts/{account}/labels/{label}",
488488
"location": "path",
489489
"pattern": "^accounts/[^/]+/labels/[^/]+$",
490490
"required": true,
@@ -503,11 +503,51 @@
503503
]
504504
}
505505
}
506+
},
507+
"quotas": {
508+
"methods": {
509+
"list": {
510+
"description": "Lists the daily call quota and usage per group for your CSS Center account.",
511+
"flatPath": "v1/accounts/{accountsId}/quotas",
512+
"httpMethod": "GET",
513+
"id": "css.accounts.quotas.list",
514+
"parameterOrder": [
515+
"parent"
516+
],
517+
"parameters": {
518+
"pageSize": {
519+
"description": "Optional. The maximum number of quotas to return in the response, used for paging. Defaults to 500; values above 1000 will be coerced to 1000.",
520+
"format": "int32",
521+
"location": "query",
522+
"type": "integer"
523+
},
524+
"pageToken": {
525+
"description": "Optional. Token (if provided) to retrieve the subsequent page. All other parameters must match the original call that provided the page token.",
526+
"location": "query",
527+
"type": "string"
528+
},
529+
"parent": {
530+
"description": "Required. The CSS account that owns the collection of method quotas and resources. In most cases, this is the CSS domain. Format: accounts/{account}",
531+
"location": "path",
532+
"pattern": "^accounts/[^/]+$",
533+
"required": true,
534+
"type": "string"
535+
}
536+
},
537+
"path": "v1/{+parent}/quotas",
538+
"response": {
539+
"$ref": "ListQuotaGroupsResponse"
540+
},
541+
"scopes": [
542+
"https://www.googleapis.com/auth/content"
543+
]
544+
}
545+
}
506546
}
507547
}
508548
}
509549
},
510-
"revision": "20250219",
550+
"revision": "20250421",
511551
"rootUrl": "https://css.googleapis.com/",
512552
"schemas": {
513553
"Account": {
@@ -622,7 +662,7 @@
622662
"type": "string"
623663
},
624664
"name": {
625-
"description": "The resource name of the label. Format: accounts/{account}/labels/{label}",
665+
"description": "Identifier. The resource name of the label. Format: accounts/{account}/labels/{label}",
626666
"type": "string"
627667
}
628668
},
@@ -960,7 +1000,7 @@
9601000
"type": "string"
9611001
},
9621002
"name": {
963-
"description": "The name of the CSS Product input. Format: `accounts/{account}/cssProductInputs/{css_product_input}`, where the last section `css_product_input` consists of 3 parts: contentLanguage~feedLabel~offerId. Example: accounts/123/cssProductInputs/de~DE~rawProvidedId123",
1003+
"description": "Identifier. The name of the CSS Product input. Format: `accounts/{account}/cssProductInputs/{css_product_input}`, where the last section `css_product_input` consists of 3 parts: contentLanguage~feedLabel~offerId. Example: accounts/123/cssProductInputs/de~DE~rawProvidedId123",
9641004
"type": "string"
9651005
},
9661006
"rawProvidedId": {
@@ -1216,6 +1256,51 @@
12161256
},
12171257
"type": "object"
12181258
},
1259+
"ListQuotaGroupsResponse": {
1260+
"description": "Response message for the ListMethodGroups method.",
1261+
"id": "ListQuotaGroupsResponse",
1262+
"properties": {
1263+
"nextPageToken": {
1264+
"description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.",
1265+
"type": "string"
1266+
},
1267+
"quotaGroups": {
1268+
"description": "The methods, current quota usage and limits per each group. The quota is shared between all methods in the group. The groups are sorted in descending order based on quota_usage.",
1269+
"items": {
1270+
"$ref": "QuotaGroup"
1271+
},
1272+
"type": "array"
1273+
}
1274+
},
1275+
"type": "object"
1276+
},
1277+
"MethodDetails": {
1278+
"description": "The method details per method in the CSS API.",
1279+
"id": "MethodDetails",
1280+
"properties": {
1281+
"method": {
1282+
"description": "Output only. The name of the method for example `cssproductsservice.listcssproducts`.",
1283+
"readOnly": true,
1284+
"type": "string"
1285+
},
1286+
"path": {
1287+
"description": "Output only. The path for the method such as `v1/cssproductsservice.listcssproducts`.",
1288+
"readOnly": true,
1289+
"type": "string"
1290+
},
1291+
"subapi": {
1292+
"description": "Output only. The sub-API that the method belongs to. In the CSS API, this is always `css`.",
1293+
"readOnly": true,
1294+
"type": "string"
1295+
},
1296+
"version": {
1297+
"description": "Output only. The API version that the method belongs to.",
1298+
"readOnly": true,
1299+
"type": "string"
1300+
}
1301+
},
1302+
"type": "object"
1303+
},
12191304
"Price": {
12201305
"description": "The price represented as a number and currency.",
12211306
"id": "Price",
@@ -1283,6 +1368,43 @@
12831368
},
12841369
"type": "object"
12851370
},
1371+
"QuotaGroup": {
1372+
"description": "The group information for methods in the CSS API. The quota is shared between all methods in the group. Even if none of the methods within the group have usage the information for the group is returned.",
1373+
"id": "QuotaGroup",
1374+
"properties": {
1375+
"methodDetails": {
1376+
"description": "Output only. List of all methods group quota applies to.",
1377+
"items": {
1378+
"$ref": "MethodDetails"
1379+
},
1380+
"readOnly": true,
1381+
"type": "array"
1382+
},
1383+
"name": {
1384+
"description": "Identifier. The resource name of the quota group. Format: accounts/{account}/quotas/{group} Example: `accounts/12345678/quotas/css-products-insert` Note: The {group} part is not guaranteed to follow a specific pattern.",
1385+
"type": "string"
1386+
},
1387+
"quotaLimit": {
1388+
"description": "Output only. The maximum number of calls allowed per day for the group.",
1389+
"format": "int64",
1390+
"readOnly": true,
1391+
"type": "string"
1392+
},
1393+
"quotaMinuteLimit": {
1394+
"description": "Output only. The maximum number of calls allowed per minute for the group.",
1395+
"format": "int64",
1396+
"readOnly": true,
1397+
"type": "string"
1398+
},
1399+
"quotaUsage": {
1400+
"description": "Output only. The current quota usage, meaning the number of calls already made on a given day to the methods in the group. The daily quota limits reset at at 12:00 PM midday UTC.",
1401+
"format": "int64",
1402+
"readOnly": true,
1403+
"type": "string"
1404+
}
1405+
},
1406+
"type": "object"
1407+
},
12861408
"UpdateAccountLabelsRequest": {
12871409
"description": "The request message for the `UpdateLabels` method.",
12881410
"id": "UpdateAccountLabelsRequest",

0 commit comments

Comments
 (0)