Skip to content

Commit c0c0d79

Browse files
feat(storage): update the API
#### storage:v1 The following keys were added: - resources.objects.methods.list.parameters.filter.description - resources.objects.methods.list.parameters.filter.location - resources.objects.methods.list.parameters.filter.type - schemas.Object.properties.contexts.description - schemas.Object.properties.contexts.properties.custom.additionalProperties.$ref - schemas.Object.properties.contexts.properties.custom.additionalProperties.description - schemas.Object.properties.contexts.properties.custom.description - schemas.Object.properties.contexts.properties.custom.type - schemas.Object.properties.contexts.type - schemas.ObjectCustomContextPayload.description - schemas.ObjectCustomContextPayload.id - schemas.ObjectCustomContextPayload.properties.createTime.description - schemas.ObjectCustomContextPayload.properties.createTime.format - schemas.ObjectCustomContextPayload.properties.createTime.type - schemas.ObjectCustomContextPayload.properties.updateTime.description - schemas.ObjectCustomContextPayload.properties.updateTime.format - schemas.ObjectCustomContextPayload.properties.updateTime.type - schemas.ObjectCustomContextPayload.properties.value.description - schemas.ObjectCustomContextPayload.properties.value.type - schemas.ObjectCustomContextPayload.type
1 parent 57bef9a commit c0c0d79

File tree

3 files changed

+85
-3
lines changed

3 files changed

+85
-3
lines changed

‎discovery/storage-v1.json

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@
253253
"location": "northamerica-south1"
254254
}
255255
],
256-
"etag": "\"36383730363437323837383838393538333732\"",
256+
"etag": "\"31353834363234393531343533373938353433\"",
257257
"icons": {
258258
"x16": "https://www.google.com/images/icons/product/cloud_storage-16.png",
259259
"x32": "https://www.google.com/images/icons/product/cloud_storage-32.png"
@@ -3306,6 +3306,11 @@
33063306
"location": "query",
33073307
"type": "string"
33083308
},
3309+
"filter": {
3310+
"description": "Filter the returned objects. Currently only supported for the contexts field. If delimiter is set, the returned prefixes are exempt from this filter.",
3311+
"location": "query",
3312+
"type": "string"
3313+
},
33093314
"includeFoldersAsPrefixes": {
33103315
"description": "Only applicable if delimiter is set to '/'. If true, will also include folders and managed folders (besides objects) in the returned prefixes.",
33113316
"location": "query",
@@ -4539,7 +4544,7 @@
45394544
}
45404545
}
45414546
},
4542-
"revision": "20250605",
4547+
"revision": "20250629",
45434548
"rootUrl": "https://storage.googleapis.com/",
45444549
"schemas": {
45454550
"AdvanceRelocateBucketOperationRequest": {
@@ -5932,6 +5937,20 @@
59325937
"description": "Content-Type of the object data. If an object is stored without a Content-Type, it is served as application/octet-stream.",
59335938
"type": "string"
59345939
},
5940+
"contexts": {
5941+
"description": "User-defined or system-defined object contexts. Each object context is a key-payload pair, where the key provides the identification and the payload holds the associated value and additional metadata.",
5942+
"properties": {
5943+
"custom": {
5944+
"additionalProperties": {
5945+
"$ref": "ObjectCustomContextPayload",
5946+
"description": "A single user-defined object context."
5947+
},
5948+
"description": "User-defined object contexts.",
5949+
"type": "object"
5950+
}
5951+
},
5952+
"type": "object"
5953+
},
59355954
"crc32c": {
59365955
"description": "CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64 in big-endian byte order. For more information about using the CRC32c checksum, see [Data Validation and Change Detection](https://cloud.google.com/storage/docs/data-validation).",
59375956
"type": "string"
@@ -6201,6 +6220,27 @@
62016220
},
62026221
"type": "object"
62036222
},
6223+
"ObjectCustomContextPayload": {
6224+
"description": "The payload of a single user-defined object context.",
6225+
"id": "ObjectCustomContextPayload",
6226+
"properties": {
6227+
"createTime": {
6228+
"description": "The time at which the object context was created in RFC 3339 format.",
6229+
"format": "date-time",
6230+
"type": "string"
6231+
},
6232+
"updateTime": {
6233+
"description": "The time at which the object context was last updated in RFC 3339 format.",
6234+
"format": "date-time",
6235+
"type": "string"
6236+
},
6237+
"value": {
6238+
"description": "The value of the object context.",
6239+
"type": "string"
6240+
}
6241+
},
6242+
"type": "object"
6243+
},
62046244
"Objects": {
62056245
"description": "A list of objects.",
62066246
"id": "Objects",

‎src/apis/storage/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"webpack": "webpack"
2929
},
3030
"dependencies": {
31-
"googleapis-common": "^8.0.0"
31+
"googleapis-common": "^8.0.2-rc.0"
3232
},
3333
"devDependencies": {
3434
"@microsoft/api-documenter": "^7.8.10",

‎src/apis/storage/v1.ts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,6 +1006,12 @@ export namespace storage_v1 {
10061006
* Content-Type of the object data. If an object is stored without a Content-Type, it is served as application/octet-stream.
10071007
*/
10081008
contentType?: string | null;
1009+
/**
1010+
* User-defined or system-defined object contexts. Each object context is a key-payload pair, where the key provides the identification and the payload holds the associated value and additional metadata.
1011+
*/
1012+
contexts?: {
1013+
custom?: {[key: string]: Schema$ObjectCustomContextPayload};
1014+
} | null;
10091015
/**
10101016
* CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64 in big-endian byte order. For more information about using the CRC32c checksum, see [Data Validation and Change Detection](https://cloud.google.com/storage/docs/data-validation).
10111017
*/
@@ -1207,6 +1213,23 @@ export namespace storage_v1 {
12071213
*/
12081214
kind?: string | null;
12091215
}
1216+
/**
1217+
* The payload of a single user-defined object context.
1218+
*/
1219+
export interface Schema$ObjectCustomContextPayload {
1220+
/**
1221+
* The time at which the object context was created in RFC 3339 format.
1222+
*/
1223+
createTime?: string | null;
1224+
/**
1225+
* The time at which the object context was last updated in RFC 3339 format.
1226+
*/
1227+
updateTime?: string | null;
1228+
/**
1229+
* The value of the object context.
1230+
*/
1231+
value?: string | null;
1232+
}
12101233
/**
12111234
* A list of objects.
12121235
*/
@@ -11597,6 +11620,7 @@ export namespace storage_v1 {
1159711620
* // "contentEncoding": "my_contentEncoding",
1159811621
* // "contentLanguage": "my_contentLanguage",
1159911622
* // "contentType": "my_contentType",
11623+
* // "contexts": {},
1160011624
* // "crc32c": "my_crc32c",
1160111625
* // "customTime": "my_customTime",
1160211626
* // "customerEncryption": {},
@@ -11805,6 +11829,7 @@ export namespace storage_v1 {
1180511829
* // "contentEncoding": "my_contentEncoding",
1180611830
* // "contentLanguage": "my_contentLanguage",
1180711831
* // "contentType": "my_contentType",
11832+
* // "contexts": {},
1180811833
* // "crc32c": "my_crc32c",
1180911834
* // "customTime": "my_customTime",
1181011835
* // "customerEncryption": {},
@@ -11849,6 +11874,7 @@ export namespace storage_v1 {
1184911874
* // "contentEncoding": "my_contentEncoding",
1185011875
* // "contentLanguage": "my_contentLanguage",
1185111876
* // "contentType": "my_contentType",
11877+
* // "contexts": {},
1185211878
* // "crc32c": "my_crc32c",
1185311879
* // "customTime": "my_customTime",
1185411880
* // "customerEncryption": {},
@@ -12204,6 +12230,7 @@ export namespace storage_v1 {
1220412230
* // "contentEncoding": "my_contentEncoding",
1220512231
* // "contentLanguage": "my_contentLanguage",
1220612232
* // "contentType": "my_contentType",
12233+
* // "contexts": {},
1220712234
* // "crc32c": "my_crc32c",
1220812235
* // "customTime": "my_customTime",
1220912236
* // "customerEncryption": {},
@@ -12553,6 +12580,7 @@ export namespace storage_v1 {
1255312580
* // "contentEncoding": "my_contentEncoding",
1255412581
* // "contentLanguage": "my_contentLanguage",
1255512582
* // "contentType": "my_contentType",
12583+
* // "contexts": {},
1255612584
* // "crc32c": "my_crc32c",
1255712585
* // "customTime": "my_customTime",
1255812586
* // "customerEncryption": {},
@@ -12601,6 +12629,7 @@ export namespace storage_v1 {
1260112629
* // "contentEncoding": "my_contentEncoding",
1260212630
* // "contentLanguage": "my_contentLanguage",
1260312631
* // "contentType": "my_contentType",
12632+
* // "contexts": {},
1260412633
* // "crc32c": "my_crc32c",
1260512634
* // "customTime": "my_customTime",
1260612635
* // "customerEncryption": {},
@@ -12774,6 +12803,8 @@ export namespace storage_v1 {
1277412803
* delimiter: 'placeholder-value',
1277512804
* // Filter results to objects whose names are lexicographically before endOffset. If startOffset is also set, the objects listed will have names between startOffset (inclusive) and endOffset (exclusive).
1277612805
* endOffset: 'placeholder-value',
12806+
* // Filter the returned objects. Currently only supported for the contexts field. If delimiter is set, the returned prefixes are exempt from this filter.
12807+
* filter: 'placeholder-value',
1277712808
* // Only applicable if delimiter is set to '/'. If true, will also include folders and managed folders (besides objects) in the returned prefixes.
1277812809
* includeFoldersAsPrefixes: 'placeholder-value',
1277912810
* // If true, objects that end in exactly one instance of delimiter will have their metadata included in items in addition to prefixes.
@@ -12976,6 +13007,7 @@ export namespace storage_v1 {
1297613007
* // "contentEncoding": "my_contentEncoding",
1297713008
* // "contentLanguage": "my_contentLanguage",
1297813009
* // "contentType": "my_contentType",
13010+
* // "contexts": {},
1297913011
* // "crc32c": "my_crc32c",
1298013012
* // "customTime": "my_customTime",
1298113013
* // "customerEncryption": {},
@@ -13171,6 +13203,7 @@ export namespace storage_v1 {
1317113203
* // "contentEncoding": "my_contentEncoding",
1317213204
* // "contentLanguage": "my_contentLanguage",
1317313205
* // "contentType": "my_contentType",
13206+
* // "contexts": {},
1317413207
* // "crc32c": "my_crc32c",
1317513208
* // "customTime": "my_customTime",
1317613209
* // "customerEncryption": {},
@@ -13215,6 +13248,7 @@ export namespace storage_v1 {
1321513248
* // "contentEncoding": "my_contentEncoding",
1321613249
* // "contentLanguage": "my_contentLanguage",
1321713250
* // "contentType": "my_contentType",
13251+
* // "contexts": {},
1321813252
* // "crc32c": "my_crc32c",
1321913253
* // "customTime": "my_customTime",
1322013254
* // "customerEncryption": {},
@@ -13410,6 +13444,7 @@ export namespace storage_v1 {
1341013444
* // "contentEncoding": "my_contentEncoding",
1341113445
* // "contentLanguage": "my_contentLanguage",
1341213446
* // "contentType": "my_contentType",
13447+
* // "contexts": {},
1341313448
* // "crc32c": "my_crc32c",
1341413449
* // "customTime": "my_customTime",
1341513450
* // "customerEncryption": {},
@@ -13621,6 +13656,7 @@ export namespace storage_v1 {
1362113656
* // "contentEncoding": "my_contentEncoding",
1362213657
* // "contentLanguage": "my_contentLanguage",
1362313658
* // "contentType": "my_contentType",
13659+
* // "contexts": {},
1362413660
* // "crc32c": "my_crc32c",
1362513661
* // "customTime": "my_customTime",
1362613662
* // "customerEncryption": {},
@@ -14157,6 +14193,7 @@ export namespace storage_v1 {
1415714193
* // "contentEncoding": "my_contentEncoding",
1415814194
* // "contentLanguage": "my_contentLanguage",
1415914195
* // "contentType": "my_contentType",
14196+
* // "contexts": {},
1416014197
* // "crc32c": "my_crc32c",
1416114198
* // "customTime": "my_customTime",
1416214199
* // "customerEncryption": {},
@@ -14201,6 +14238,7 @@ export namespace storage_v1 {
1420114238
* // "contentEncoding": "my_contentEncoding",
1420214239
* // "contentLanguage": "my_contentLanguage",
1420314240
* // "contentType": "my_contentType",
14241+
* // "contexts": {},
1420414242
* // "crc32c": "my_crc32c",
1420514243
* // "customTime": "my_customTime",
1420614244
* // "customerEncryption": {},
@@ -14816,6 +14854,10 @@ export namespace storage_v1 {
1481614854
* Filter results to objects whose names are lexicographically before endOffset. If startOffset is also set, the objects listed will have names between startOffset (inclusive) and endOffset (exclusive).
1481714855
*/
1481814856
endOffset?: string;
14857+
/**
14858+
* Filter the returned objects. Currently only supported for the contexts field. If delimiter is set, the returned prefixes are exempt from this filter.
14859+
*/
14860+
filter?: string;
1481914861
/**
1482014862
* Only applicable if delimiter is set to '/'. If true, will also include folders and managed folders (besides objects) in the returned prefixes.
1482114863
*/

0 commit comments

Comments
 (0)