| 400 | } |
| 401 | |
| 402 | func (f *flowResourceFetcher) FetchData(ctx context.Context) (importDataList, error) { |
| 403 | var data importDataList |
| 404 | |
| 405 | flowList, err := f.api.Flow.List(ctx) |
| 406 | if err != nil { |
| 407 | return data, err |
| 408 | } |
| 409 | |
| 410 | for _, flow := range flowList.Flows { |
| 411 | data = append(data, importDataItem{ |
| 412 | ResourceName: "auth0_flow." + sanitizeResourceName(flow.GetName()), |
| 413 | ImportID: flow.GetID(), |
| 414 | }) |
| 415 | } |
| 416 | |
| 417 | return data, nil |
| 418 | } |
| 419 | |
| 420 | func (f *flowVaultConnectionResourceFetcher) FetchData(ctx context.Context) (importDataList, error) { |
| 421 | var data importDataList |