Skip to content
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",
Comment thread
riserrad marked this conversation as resolved.
"properties": {
"kind": {
"type": "string",
"readOnly": true,
Comment thread
riserrad marked this conversation as 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"
Comment thread
riserrad marked this conversation as 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
Copy Markdown
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