File tree Expand file tree Collapse file tree
src/services/storageBucket Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ export interface RawGcpStorageBucket {
2222 iam : any
2323 pollIntervalMs ?: number
2424 userProject ?: string
25+ labels ?: {
26+ [ key : string ] : string
27+ }
2528}
2629
2730export const listStorageBucketsData = async (
@@ -43,6 +46,7 @@ export const listStorageBucketsData = async (
4346 id : bucket . name ,
4447 ...bucket ,
4548 projectId,
49+ labels : bucket ?. metadata ?. labels ,
4650 region : regions . includes ( location ) ? location : GLOBAL_REGION ,
4751 } )
4852 }
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ export default ({
1616 name,
1717 pollIntervalMs,
1818 userProject,
19+ labels,
1920 } = service
2021
2122 return {
@@ -33,10 +34,10 @@ export default ({
3334 defaultEventBasedHold : metadata . defaultEventBasedHold ,
3435 timeCreated : metadata . timeCreated ,
3536 updated : metadata . updated ,
36- labels : Object . keys ( metadata . labels || { } ) . map ( key => ( {
37+ labels : Object . keys ( labels || { } ) . map ( key => ( {
3738 id : cuid ( ) ,
3839 key,
39- value : metadata . labels [ key ] ,
40+ value : labels [ key ] ,
4041 } ) ) ,
4142 iamConfiguration : metadata . iamConfiguration ,
4243 locationType : metadata . locationType ,
You can’t perform that action at this time.
0 commit comments