question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Request: Include Enum for Types of Data Flows in the Data Factory

See original GitHub issue

Is your feature request related to a problem? Please describe. Instead of needing to expose a protected list of Data Flow types in sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_models_py3.py because it’s bad practice to access protected properties/methods.

Describe the solution you’d like It would be nice if there was an enum that was accessible sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_data_factory_management_client_enums.py

Describe alternatives you’ve considered Hardcoding the list is less desirable since things could change in the future and that’s more code to update elsewhere.

Additional context n/a

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
msyyccommented, Oct 12, 2022

@mindlessroman SDK is generated with swagger. If you want to use these values as enum, there shall be relative enum definition in swagger. Unfortunately, I don’t find it in swagger. So I advise you open an issue in https://github.com/Azure/azure-rest-api-specs/issues or make a PR to add it. (enum definition sample: https://github.com/Azure/azure-rest-api-specs/blob/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/datafactory.json#L5105-L5110)

0reactions
msftbot[bot]commented, Oct 27, 2022

Hi @mindlessroman, since you haven’t asked that we “/unresolve” the issue, we’ll close this out. If you believe further discussion is needed, please add a comment “/unresolve” to reopen the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Data Flows - Get - REST API (Azure Data Factory)
Learn more about Data Factory service - Gets a data flow. ... URI Parameters; Request Header; Responses; Security; Examples; Definitions ... type, enum:....
Read more >
Splitting Arrays and Case Statements in ADF Data Flows
Learn how to work with splitting strings, splitting arrays, and enumerating values with case statements in #Azure # DataFactory ...
Read more >
Advanced mapping of JSON in Azure Data Factory
I'm trying to map a JSON document (sensor data) into a more meaningful representation using Mapping Dataflows.
Read more >
Flow | Metadata API Developer Guide
Represents the metadata associated with a flow. With Flow, you can create an application that navigates users through a series of screens to...
Read more >
Defining an Enum - The Rust Programming Language
This code illustrates that you can put any kind of data inside an enum variant: strings, numeric types, or structs, for example. You...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found