Skip to content

Commit 8994dd7

Browse files
yoshi-automationsofisl
authored andcommitted
feat(css): update the API
#### css:v1 The following keys were added: - resources.accounts.resources.cssProductInputs.methods.insert.parameters.feedId.deprecated - resources.accounts.resources.cssProductInputs.methods.patch.description - resources.accounts.resources.cssProductInputs.methods.patch.flatPath - resources.accounts.resources.cssProductInputs.methods.patch.httpMethod - resources.accounts.resources.cssProductInputs.methods.patch.id - resources.accounts.resources.cssProductInputs.methods.patch.parameterOrder - resources.accounts.resources.cssProductInputs.methods.patch.parameters.name.description - resources.accounts.resources.cssProductInputs.methods.patch.parameters.name.location - resources.accounts.resources.cssProductInputs.methods.patch.parameters.name.pattern - resources.accounts.resources.cssProductInputs.methods.patch.parameters.name.required - resources.accounts.resources.cssProductInputs.methods.patch.parameters.name.type - resources.accounts.resources.cssProductInputs.methods.patch.parameters.updateMask.description - resources.accounts.resources.cssProductInputs.methods.patch.parameters.updateMask.format - resources.accounts.resources.cssProductInputs.methods.patch.parameters.updateMask.location - resources.accounts.resources.cssProductInputs.methods.patch.parameters.updateMask.type - resources.accounts.resources.cssProductInputs.methods.patch.path - resources.accounts.resources.cssProductInputs.methods.patch.request.$ref - resources.accounts.resources.cssProductInputs.methods.patch.response.$ref - resources.accounts.resources.cssProductInputs.methods.patch.scopes - schemas.CssProductInput.properties.freshnessTime.deprecated The following keys were changed: - resources.accounts.methods.listChildAccounts.parameters.pageSize.description - resources.accounts.resources.cssProductInputs.methods.insert.parameters.feedId.description - resources.accounts.resources.labels.methods.list.description - schemas.Attributes.properties.headlineOfferPrice.description - schemas.Attributes.properties.headlineOfferShippingPrice.description - schemas.Attributes.properties.highPrice.description - schemas.Attributes.properties.lowPrice.description - schemas.Attributes.properties.numberOfOffers.description - schemas.CssProduct.description - schemas.CssProductInput.properties.freshnessTime.description - schemas.DestinationStatus.properties.approvedCountries.description - schemas.DestinationStatus.properties.disapprovedCountries.description - schemas.DestinationStatus.properties.pendingCountries.description - schemas.ItemLevelIssue.properties.applicableCountries.description - schemas.ItemLevelIssue.properties.servability.description
1 parent f16a818 commit 8994dd7

File tree

2 files changed

+168
-31
lines changed

2 files changed

+168
-31
lines changed

‎discovery/css-v1.json

Lines changed: 52 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
"type": "string"
159159
},
160160
"pageSize": {
161-
"description": "Optional. The maximum number of accounts to return. The service may return fewer than this value. If unspecified, at most 50 accounts will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.",
161+
"description": "Optional. The maximum number of accounts to return. The service may return fewer than this value. If unspecified, at most 50 accounts will be returned. The maximum value is 100; values above 100 will be coerced to 100.",
162162
"format": "int32",
163163
"location": "query",
164164
"type": "integer"
@@ -257,7 +257,8 @@
257257
],
258258
"parameters": {
259259
"feedId": {
260-
"description": "Required. The primary or supplemental feed id. If CSS Product already exists and feed id provided is different, then the CSS Product will be moved to a new feed. Note: For now, CSSs do not need to provide feed ids as we create feeds on the fly. We do not have supplemental feed support for CSS Products yet.",
260+
"deprecated": true,
261+
"description": "Optional. DEPRECATED. Feed id is not required for CSS Products. The primary or supplemental feed id. If CSS Product already exists and feed id provided is different, then the CSS Product will be moved to a new feed. Note: For now, CSSs do not need to provide feed ids as we create feeds on the fly. We do not have supplemental feed support for CSS Products yet.",
261262
"format": "int64",
262263
"location": "query",
263264
"type": "string"
@@ -280,6 +281,40 @@
280281
"scopes": [
281282
"https://www.googleapis.com/auth/content"
282283
]
284+
},
285+
"patch": {
286+
"description": "Updates the existing Css Product input in your CSS Center account. After inserting, updating, or deleting a CSS Product input, it may take several minutes before the processed Css Product can be retrieved.",
287+
"flatPath": "v1/accounts/{accountsId}/cssProductInputs/{cssProductInputsId}",
288+
"httpMethod": "PATCH",
289+
"id": "css.accounts.cssProductInputs.patch",
290+
"parameterOrder": [
291+
"name"
292+
],
293+
"parameters": {
294+
"name": {
295+
"description": "The name of the CSS Product input. Format: `accounts/{account}/cssProductInputs/{css_product_input}`",
296+
"location": "path",
297+
"pattern": "^accounts/[^/]+/cssProductInputs/[^/]+$",
298+
"required": true,
299+
"type": "string"
300+
},
301+
"updateMask": {
302+
"description": "The list of CSS product attributes to be updated. If the update mask is omitted, then it is treated as implied field mask equivalent to all fields that are populated (have a non-empty value). Attributes specified in the update mask without a value specified in the body will be deleted from the CSS product. Update mask can only be specified for top level fields in attributes and custom attributes. To specify the update mask for custom attributes you need to add the `custom_attribute.` prefix. Providing special \"*\" value for full CSS product replacement is not supported.",
303+
"format": "google-fieldmask",
304+
"location": "query",
305+
"type": "string"
306+
}
307+
},
308+
"path": "v1/{+name}",
309+
"request": {
310+
"$ref": "CssProductInput"
311+
},
312+
"response": {
313+
"$ref": "CssProductInput"
314+
},
315+
"scopes": [
316+
"https://www.googleapis.com/auth/content"
317+
]
283318
}
284319
}
285320
},
@@ -404,7 +439,7 @@
404439
]
405440
},
406441
"list": {
407-
"description": "Lists the labels assigned to an account.",
442+
"description": "Lists the labels owned by an account.",
408443
"flatPath": "v1/accounts/{accountsId}/labels",
409444
"httpMethod": "GET",
410445
"id": "css.accounts.labels.list",
@@ -472,7 +507,7 @@
472507
}
473508
}
474509
},
475-
"revision": "20240909",
510+
"revision": "20250106",
476511
"rootUrl": "https://css.googleapis.com/",
477512
"schemas": {
478513
"Account": {
@@ -705,19 +740,19 @@
705740
},
706741
"headlineOfferPrice": {
707742
"$ref": "Price",
708-
"description": "Headline Price of the aggregate offer."
743+
"description": "Headline Price of the CSS Product."
709744
},
710745
"headlineOfferShippingPrice": {
711746
"$ref": "Price",
712-
"description": "Headline Price of the aggregate offer."
747+
"description": "Headline Price of the CSS Product."
713748
},
714749
"headlineOfferSubscriptionCost": {
715750
"$ref": "HeadlineOfferSubscriptionCost",
716751
"description": "Number of periods (months or years) and amount of payment per period for an item with an associated subscription contract."
717752
},
718753
"highPrice": {
719754
"$ref": "Price",
720-
"description": "High Price of the aggregate offer."
755+
"description": "High Price of the CSS Product."
721756
},
722757
"imageLink": {
723758
"description": "URL of an image of the item.",
@@ -740,7 +775,7 @@
740775
},
741776
"lowPrice": {
742777
"$ref": "Price",
743-
"description": "Low Price of the aggregate offer."
778+
"description": "Low Price of the CSS Product."
744779
},
745780
"material": {
746781
"description": "The material of which the item is made.",
@@ -756,7 +791,7 @@
756791
"type": "string"
757792
},
758793
"numberOfOffers": {
759-
"description": "The number of aggregate offers.",
794+
"description": "The number of CSS Products.",
760795
"format": "int64",
761796
"type": "string"
762797
},
@@ -847,7 +882,7 @@
847882
"type": "object"
848883
},
849884
"CssProduct": {
850-
"description": "The processed CSS Product(a.k.a Aggregate Offer internally).",
885+
"description": "The processed CSS Product.",
851886
"id": "CssProduct",
852887
"properties": {
853888
"attributes": {
@@ -919,7 +954,8 @@
919954
"type": "string"
920955
},
921956
"freshnessTime": {
922-
"description": "Represents the existing version (freshness) of the CSS Product, which can be used to preserve the right order when multiple updates are done at the same time. This field must not be set to the future time. If set, the update is prevented if a newer version of the item already exists in our system (that is the last update time of the existing CSS products is later than the freshness time set in the update). If the update happens, the last update time is then set to this freshness time. If not set, the update will not be prevented and the last update time will default to when this request was received by the CSS API. If the operation is prevented, the aborted exception will be thrown.",
957+
"deprecated": true,
958+
"description": "DEPRECATED. Use expiration_date instead. Represents the existing version (freshness) of the CSS Product, which can be used to preserve the right order when multiple updates are done at the same time. This field must not be set to the future time. If set, the update is prevented if a newer version of the item already exists in our system (that is the last update time of the existing CSS products is later than the freshness time set in the update). If the update happens, the last update time is then set to this freshness time. If not set, the update will not be prevented and the last update time will default to when this request was received by the CSS API. If the operation is prevented, the aborted exception will be thrown.",
923959
"format": "google-datetime",
924960
"type": "string"
925961
},
@@ -997,7 +1033,7 @@
9971033
"id": "DestinationStatus",
9981034
"properties": {
9991035
"approvedCountries": {
1000-
"description": "List of country codes (ISO 3166-1 alpha-2) where the aggregate offer is approved.",
1036+
"description": "List of country codes (ISO 3166-1 alpha-2) where the CSS Product is approved.",
10011037
"items": {
10021038
"type": "string"
10031039
},
@@ -1008,14 +1044,14 @@
10081044
"type": "string"
10091045
},
10101046
"disapprovedCountries": {
1011-
"description": "List of country codes (ISO 3166-1 alpha-2) where the aggregate offer is disapproved.",
1047+
"description": "List of country codes (ISO 3166-1 alpha-2) where the CSS Product is disapproved.",
10121048
"items": {
10131049
"type": "string"
10141050
},
10151051
"type": "array"
10161052
},
10171053
"pendingCountries": {
1018-
"description": "List of country codes (ISO 3166-1 alpha-2) where the aggregate offer is pending approval.",
1054+
"description": "List of country codes (ISO 3166-1 alpha-2) where the CSS Product is pending approval.",
10191055
"items": {
10201056
"type": "string"
10211057
},
@@ -1085,7 +1121,7 @@
10851121
"id": "ItemLevelIssue",
10861122
"properties": {
10871123
"applicableCountries": {
1088-
"description": "List of country codes (ISO 3166-1 alpha-2) where issue applies to the aggregate offer.",
1124+
"description": "List of country codes (ISO 3166-1 alpha-2) where issue applies to the CSS Product.",
10891125
"items": {
10901126
"type": "string"
10911127
},
@@ -1120,7 +1156,7 @@
11201156
"type": "string"
11211157
},
11221158
"servability": {
1123-
"description": "How this issue affects serving of the aggregate offer.",
1159+
"description": "How this issue affects serving of the CSS Product.",
11241160
"type": "string"
11251161
}
11261162
},

0 commit comments

Comments
 (0)