Skip to content

Commit

Permalink
[EventGrid] Add "FarmBeats" prefix to two enums (Azure#14628)
Browse files Browse the repository at this point in the history
The `JobStatus` and `ResourceActionType` has very general names and
did not indicate they were specific to FarmBeats. Add a prefix to the
names so the generated types in the SDKs have more specific names.
  • Loading branch information
ellismg authored and mkarmark committed Jul 20, 2021
1 parent f569b46 commit 4e0b4e5
Showing 1 changed file with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"paths": {},
"definitions": {
"ResourceActionType": {
"FarmBeatsResourceActionType": {
"description": "Action occurred on a resource.",
"enum": [
"Created",
Expand All @@ -16,7 +16,7 @@
],
"type": "string",
"x-ms-enum": {
"name": "ResourceActionType",
"name": "FarmBeatsResourceActionType",
"modelAsString": true
}
},
Expand All @@ -41,7 +41,7 @@
"type": "boolean"
},
"actionType": {
"$ref": "#/definitions/ResourceActionType"
"$ref": "#/definitions/FarmBeatsResourceActionType"
},
"status": {
"description": "Status of the resource.",
Expand Down Expand Up @@ -87,7 +87,7 @@
"type": "object",
"properties": {
"actionType": {
"$ref": "#/definitions/ResourceActionType"
"$ref": "#/definitions/FarmBeatsResourceActionType"
},
"status": {
"description": "Status of the resource.",
Expand Down Expand Up @@ -137,7 +137,7 @@
"type": "string"
},
"actionType": {
"$ref": "#/definitions/ResourceActionType"
"$ref": "#/definitions/FarmBeatsResourceActionType"
},
"status": {
"description": "Status of the resource.",
Expand Down Expand Up @@ -187,7 +187,7 @@
"type": "string"
},
"actionType": {
"$ref": "#/definitions/ResourceActionType"
"$ref": "#/definitions/FarmBeatsResourceActionType"
},
"status": {
"description": "Status of the resource.",
Expand Down Expand Up @@ -233,7 +233,7 @@
"type": "object",
"properties": {
"actionType": {
"$ref": "#/definitions/ResourceActionType"
"$ref": "#/definitions/FarmBeatsResourceActionType"
},
"status": {
"description": "Status of the resource.",
Expand Down Expand Up @@ -287,7 +287,7 @@
"type": "string"
},
"actionType": {
"$ref": "#/definitions/ResourceActionType"
"$ref": "#/definitions/FarmBeatsResourceActionType"
},
"status": {
"description": "Status of the resource.",
Expand Down Expand Up @@ -349,7 +349,7 @@
"type": "string"
},
"actionType": {
"$ref": "#/definitions/ResourceActionType"
"$ref": "#/definitions/FarmBeatsResourceActionType"
},
"status": {
"description": "Status of the resource.",
Expand Down Expand Up @@ -395,7 +395,7 @@
"type": "object",
"properties": {
"actionType": {
"$ref": "#/definitions/ResourceActionType"
"$ref": "#/definitions/FarmBeatsResourceActionType"
},
"status": {
"description": "Status of the resource.",
Expand Down Expand Up @@ -441,7 +441,7 @@
"type": "object",
"properties": {
"actionType": {
"$ref": "#/definitions/ResourceActionType"
"$ref": "#/definitions/FarmBeatsResourceActionType"
},
"farmerId": {
"description": "Id of the farmer it belongs to.",
Expand Down Expand Up @@ -495,7 +495,7 @@
"type": "object",
"properties": {
"actionType": {
"$ref": "#/definitions/ResourceActionType"
"$ref": "#/definitions/FarmBeatsResourceActionType"
},
"farmerId": {
"description": "Id of the farmer it belongs to.",
Expand Down Expand Up @@ -549,7 +549,7 @@
"type": "object",
"properties": {
"actionType": {
"$ref": "#/definitions/ResourceActionType"
"$ref": "#/definitions/FarmBeatsResourceActionType"
},
"farmerId": {
"description": "Id of the farmer it belongs to.",
Expand Down Expand Up @@ -603,7 +603,7 @@
"type": "object",
"properties": {
"actionType": {
"$ref": "#/definitions/ResourceActionType"
"$ref": "#/definitions/FarmBeatsResourceActionType"
},
"farmerId": {
"description": "Id of the farmer it belongs to.",
Expand Down Expand Up @@ -652,7 +652,7 @@
}
}
},
"JobStatus": {
"FarmBeatsJobStatus": {
"description": "Various states a job can be in.",
"enum": [
"Waiting",
Expand All @@ -663,7 +663,7 @@
],
"type": "string",
"x-ms-enum": {
"name": "JobStatus",
"name": "FarmBeatsJobStatus",
"modelAsString": true
}
},
Expand All @@ -680,7 +680,7 @@
"type": "string"
},
"status": {
"$ref": "#/definitions/JobStatus"
"$ref": "#/definitions/FarmBeatsJobStatus"
},
"lastActionDateTime": {
"format": "date-time",
Expand Down Expand Up @@ -730,7 +730,7 @@
"type": "string"
},
"status": {
"$ref": "#/definitions/JobStatus"
"$ref": "#/definitions/FarmBeatsJobStatus"
},
"lastActionDateTime": {
"format": "date-time",
Expand Down Expand Up @@ -780,7 +780,7 @@
"type": "string"
},
"status": {
"$ref": "#/definitions/JobStatus"
"$ref": "#/definitions/FarmBeatsJobStatus"
},
"lastActionDateTime": {
"format": "date-time",
Expand Down

0 comments on commit 4e0b4e5

Please sign in to comment.