MetadataAsMap parses the Response metadata into a map.
()
| 43 | |
| 44 | // MetadataAsMap parses the Response metadata into a map. |
| 45 | func (r *Response) MetadataAsMap() (map[string]any, error) { |
| 46 | ret := map[string]any{} |
| 47 | err := r.MetadataAsStruct(&ret) |
| 48 | if err != nil { |
| 49 | return nil, err |
| 50 | } |
| 51 | |
| 52 | return ret, nil |
| 53 | } |
| 54 | |
| 55 | // MetadataAsOperation turns the Response metadata into an Operation. |
| 56 | func (r *Response) MetadataAsOperation() (*Operation, error) { |
nothing calls this directly
no test coverage detected