feat(api): return remote storage states for worker

This commit is contained in:
Damian Debkowski authored and Elim Tsiagbey committed 2024-07-17 14:23:11 -04:00
1 parent 11272b6c2a
commit c0cf5c4e1b
13 files changed
+787 -108

No files matched your search

+15
View File
@@ -1352,6 +1352,14 @@ var inputStructs = []*structInfo{
inProto: &workers.Certificate{},
outFile: "workers/certificate.gen.go",
},
{
inProto: &workers.RemoteStorageState{},
outFile: "workers/remote_storage_state.gen.go",
},
{
inProto: &workers.RemoteStoragePermissions{},
outFile: "workers/remote_storage_permissions.gen.go",
},
{
inProto: &workers.CertificateAuthority{},
outFile: "workers/certificate_authority.gen.go",
@@ -1408,6 +1416,13 @@ var inputStructs = []*structInfo{
VarName: "apiTags",
},
},
fieldOverrides: []fieldInfo{
{
Name: "RemoteStorageState",
ProtoName: "remote_storage_state",
FieldType: "map[string]RemoteStorageState",
},
},
createResponseTypes: []string{CreateResponseType, ReadResponseType, UpdateResponseType, DeleteResponseType, ListResponseType},
recursiveListing: true,
versionEnabled: true,