@@ -8,44 +8,70 @@ import (
88 "github.com/sapcc/go-api-declarations/limes"
99)
1010
11+ // MarshalJSON implements the json.Marshaler interface.
1112func (r ClusterAvailabilityZoneReports ) MarshalJSON () ([]byte , error ) { return marshal .MapAsList (r ) }
12- func (r ClusterResourceReports ) MarshalJSON () ([]byte , error ) { return marshal .MapAsList (r ) }
13- func (s ClusterServiceReports ) MarshalJSON () ([]byte , error ) { return marshal .MapAsList (s ) }
14- func (r DomainResourceReports ) MarshalJSON () ([]byte , error ) { return marshal .MapAsList (r ) }
15- func (s DomainServiceReports ) MarshalJSON () ([]byte , error ) { return marshal .MapAsList (s ) }
16- func (r ProjectResourceReports ) MarshalJSON () ([]byte , error ) { return marshal .MapAsList (r ) }
17- func (s ProjectServiceReports ) MarshalJSON () ([]byte , error ) { return marshal .MapAsList (s ) }
1813
14+ // MarshalJSON implements the json.Marshaler interface.
15+ func (r ClusterResourceReports ) MarshalJSON () ([]byte , error ) { return marshal .MapAsList (r ) }
16+
17+ // MarshalJSON implements the json.Marshaler interface.
18+ func (s ClusterServiceReports ) MarshalJSON () ([]byte , error ) { return marshal .MapAsList (s ) }
19+
20+ // MarshalJSON implements the json.Marshaler interface.
21+ func (r DomainResourceReports ) MarshalJSON () ([]byte , error ) { return marshal .MapAsList (r ) }
22+
23+ // MarshalJSON implements the json.Marshaler interface.
24+ func (s DomainServiceReports ) MarshalJSON () ([]byte , error ) { return marshal .MapAsList (s ) }
25+
26+ // MarshalJSON implements the json.Marshaler interface.
27+ func (r ProjectResourceReports ) MarshalJSON () ([]byte , error ) { return marshal .MapAsList (r ) }
28+
29+ // MarshalJSON implements the json.Marshaler interface.
30+ func (s ProjectServiceReports ) MarshalJSON () ([]byte , error ) { return marshal .MapAsList (s ) }
31+
32+ // UnmarshalJSON implements the json.Unmarshaler interface.
1933func (r * ClusterAvailabilityZoneReports ) UnmarshalJSON (buf []byte ) error {
2034 m , err := marshal .MapFromList (buf , func (r * ClusterAvailabilityZoneReport ) limes.AvailabilityZone { return r .Name })
2135 * r = ClusterAvailabilityZoneReports (m )
2236 return err
2337}
38+
39+ // UnmarshalJSON implements the json.Unmarshaler interface.
2440func (r * ClusterResourceReports ) UnmarshalJSON (buf []byte ) error {
2541 m , err := marshal .MapFromList (buf , func (r * ClusterResourceReport ) ResourceName { return r .Name })
2642 * r = ClusterResourceReports (m )
2743 return err
2844}
45+
46+ // UnmarshalJSON implements the json.Unmarshaler interface.
2947func (s * ClusterServiceReports ) UnmarshalJSON (buf []byte ) error {
3048 m , err := marshal .MapFromList (buf , func (s * ClusterServiceReport ) limes.ServiceType { return s .Type })
3149 * s = ClusterServiceReports (m )
3250 return err
3351}
52+
53+ // UnmarshalJSON implements the json.Unmarshaler interface.
3454func (r * DomainResourceReports ) UnmarshalJSON (buf []byte ) error {
3555 m , err := marshal .MapFromList (buf , func (r * DomainResourceReport ) ResourceName { return r .Name })
3656 * r = DomainResourceReports (m )
3757 return err
3858}
59+
60+ // UnmarshalJSON implements the json.Unmarshaler interface.
3961func (s * DomainServiceReports ) UnmarshalJSON (buf []byte ) error {
4062 m , err := marshal .MapFromList (buf , func (s * DomainServiceReport ) limes.ServiceType { return s .Type })
4163 * s = DomainServiceReports (m )
4264 return err
4365}
66+
67+ // UnmarshalJSON implements the json.Unmarshaler interface.
4468func (r * ProjectResourceReports ) UnmarshalJSON (buf []byte ) error {
4569 m , err := marshal .MapFromList (buf , func (r * ProjectResourceReport ) ResourceName { return r .Name })
4670 * r = ProjectResourceReports (m )
4771 return err
4872}
73+
74+ // UnmarshalJSON implements the json.Unmarshaler interface.
4975func (s * ProjectServiceReports ) UnmarshalJSON (buf []byte ) error {
5076 m , err := marshal .MapFromList (buf , func (s * ProjectServiceReport ) limes.ServiceType { return s .Type })
5177 * s = ProjectServiceReports (m )
0 commit comments