shared/api/response.go
func (r *Response) MetadataAsOperation() (*Operation, error) {
	op := Operation{}
	err := r.MetadataAsStruct(&op)
	if err != nil {
		return nil, err
	}

	return &op, nil
}
func (r *Response) MetadataAsOperation() (*Operation, error) {
	op := Operation{}
	err := r.MetadataAsStruct(&op)
	if err != nil {
		return nil, err
	}

	return &op, nil
}
func ( r * Response ) MetadataAsOperation ( ) ( * Operation , error ) { op := Operation { } err := r . MetadataAsStruct ( & op ) if err != nil { return nil , err } return & op , nil }
// MetadataAsOperation turns the Response metadata into an Operation
MetadataAsOperation turns the Response metadata into an Operation