Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TimeSeriesInsights swagger issues #12204

Merged
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1406,7 +1406,21 @@
},
"EnvironmentUpdateParameters": {
"type": "object",
"discriminator": "kind",
riserrad marked this conversation as resolved.
Show resolved Hide resolved
"properties": {
"kind": {
"type": "string",
"readOnly": true,
riserrad marked this conversation as resolved.
Show resolved Hide resolved
"description": "The kind of the environment.",
"enum": [
"Gen1",
"Gen2"
],
"x-ms-enum": {
"name": "EnvironmentKind",
"modelAsString": true
}
},
"tags": {
"type": "object",
"additionalProperties": {
Expand All @@ -1419,6 +1433,7 @@
},
"Gen1EnvironmentUpdateParameters": {
"type": "object",
"x-ms-discriminator-value": "Gen1",
"properties": {
"sku": {
"$ref": "#/definitions/Sku",
Expand All @@ -1439,6 +1454,7 @@
},
"Gen2EnvironmentUpdateParameters": {
"type": "object",
"x-ms-discriminator-value": "Gen2",
"properties": {
"properties": {
"x-ms-client-flatten": true,
Expand Down Expand Up @@ -1618,9 +1634,6 @@
},
{
"$ref": "#/definitions/EnvironmentResourceProperties"
},
{
"$ref": "#/definitions/ResourceProperties"
riserrad marked this conversation as resolved.
Show resolved Hide resolved
}
],
"required": [
Expand Down Expand Up @@ -1654,9 +1667,6 @@
"allOf": [
{
"$ref": "#/definitions/EnvironmentResourceProperties"
},
{
"$ref": "#/definitions/ResourceProperties"
}
],
"description": "Properties of the Gen2 environment."
Expand Down Expand Up @@ -1900,8 +1910,22 @@
"description": "Parameters supplied to the Create or Update Event Source operation for an IoTHub event source."
},
"EventSourceUpdateParameters": {
"discriminator": "kind",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add this to discriminate "EventHubEventSourceUpdateParameters" and "IoTHubEventSourceUpdateParameters".

"type": "object",
"properties": {
"kind": {
"type": "string",
"readOnly": true,
"description": "The kind of the event source.",
"enum": [
"Microsoft.EventHub",
"Microsoft.IoTHub"
],
"x-ms-enum": {
"name": "EventSourceKind",
"modelAsString": true
}
},
"tags": {
"type": "object",
"additionalProperties": {
Expand Down