Skip to content

Commit e0ea6bc

Browse files
vrdmrsergey-shandar
authored andcommitted
Refactoring Job Definitions (#3116)
1 parent 2078863 commit e0ea6bc

File tree

2 files changed

+337
-245
lines changed

2 files changed

+337
-245
lines changed

specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/definitions.json

Lines changed: 78 additions & 239 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,6 +1092,84 @@
10921092
],
10931093
"description": "The parameters supplied to the create compilation job operation."
10941094
},
1095+
"JobStreamListResult": {
1096+
"properties": {
1097+
"value": {
1098+
"type": "array",
1099+
"items": {
1100+
"$ref": "#/definitions/JobStream"
1101+
},
1102+
"description": "A list of job streams."
1103+
},
1104+
"nextLink": {
1105+
"type": "string",
1106+
"description": "Gets or sets the next link."
1107+
}
1108+
},
1109+
"description": "The response model for the list job stream operation."
1110+
},
1111+
"JobStream": {
1112+
"properties": {
1113+
"id": {
1114+
"type": "string",
1115+
"description": "Gets or sets the id of the resource."
1116+
},
1117+
"properties": {
1118+
"$ref": "#/definitions/JobStreamProperties",
1119+
"x-ms-client-flatten": true,
1120+
"description": "Gets or sets the id of the job stream."
1121+
}
1122+
},
1123+
"description": "Definition of the job stream."
1124+
},
1125+
"JobStreamProperties": {
1126+
"properties": {
1127+
"jobStreamId": {
1128+
"type": "string",
1129+
"description": "Gets or sets the id of the job stream."
1130+
},
1131+
"time": {
1132+
"type": "string",
1133+
"format": "date-time",
1134+
"description": "Gets or sets the creation time of the job.",
1135+
"x-nullable": false
1136+
},
1137+
"streamType": {
1138+
"type": "string",
1139+
"description": "Gets or sets the stream type.",
1140+
"enum": [
1141+
"Progress",
1142+
"Output",
1143+
"Warning",
1144+
"Error",
1145+
"Debug",
1146+
"Verbose",
1147+
"Any"
1148+
],
1149+
"x-ms-enum": {
1150+
"name": "JobStreamType",
1151+
"modelAsString": true
1152+
}
1153+
},
1154+
"streamText": {
1155+
"type": "string",
1156+
"description": "Gets or sets the stream text."
1157+
},
1158+
"summary": {
1159+
"type": "string",
1160+
"description": "Gets or sets the summary."
1161+
},
1162+
"value": {
1163+
"type": "object",
1164+
"additionalProperties": {
1165+
"type": "object"
1166+
},
1167+
"description": "Gets or sets the values of the job stream."
1168+
}
1169+
},
1170+
"x-ms-client-flatten": true,
1171+
"description": "Definition of the job stream."
1172+
},
10951173
"DscCompilationJobProperties": {
10961174
"properties": {
10971175
"configuration": {
@@ -1842,72 +1920,6 @@
18421920
},
18431921
"description": "Parameters supplied to the update operation."
18441922
},
1845-
"Job": {
1846-
"properties": {
1847-
"id": {
1848-
"type": "string",
1849-
"description": "Id of the resource."
1850-
},
1851-
"properties": {
1852-
"$ref": "./definitions.json#/definitions/JobProperties",
1853-
"x-ms-client-flatten": true,
1854-
"description": "The properties of the job."
1855-
}
1856-
},
1857-
"description": "Definition of the job."
1858-
},
1859-
"JobCreateProperties": {
1860-
"properties": {
1861-
"runbook": {
1862-
"$ref": "./definitions.json#/definitions/RunbookAssociationProperty",
1863-
"description": "Gets or sets the runbook."
1864-
},
1865-
"parameters": {
1866-
"type": "object",
1867-
"additionalProperties": {
1868-
"type": "string"
1869-
},
1870-
"description": "Gets or sets the parameters of the job."
1871-
},
1872-
"runOn": {
1873-
"type": "string",
1874-
"description": "Gets or sets the runOn which specifies the group name where the job is to be executed."
1875-
}
1876-
},
1877-
"required": [
1878-
"runbook"
1879-
],
1880-
"description": "The parameters supplied to the create job operation."
1881-
},
1882-
"JobCreateParameters": {
1883-
"properties": {
1884-
"properties": {
1885-
"$ref": "./definitions.json#/definitions/JobCreateProperties",
1886-
"x-ms-client-flatten": true,
1887-
"description": "Gets or sets the list of job properties."
1888-
}
1889-
},
1890-
"required": [
1891-
"properties"
1892-
],
1893-
"description": "The parameters supplied to the create job operation."
1894-
},
1895-
"JobListResult": {
1896-
"properties": {
1897-
"value": {
1898-
"type": "array",
1899-
"items": {
1900-
"$ref": "./definitions.json#/definitions/Job"
1901-
},
1902-
"description": "Gets or sets a list of jobs."
1903-
},
1904-
"nextLink": {
1905-
"type": "string",
1906-
"description": "Gets or sets the next link."
1907-
}
1908-
},
1909-
"description": "The response model for the list job operation."
1910-
},
19111923
"JobScheduleCreateProperties": {
19121924
"properties": {
19131925
"schedule": {
@@ -2018,179 +2030,6 @@
20182030
},
20192031
"description": "The response model for the list job schedule operation."
20202032
},
2021-
"JobStream": {
2022-
"properties": {
2023-
"id": {
2024-
"type": "string",
2025-
"description": "Gets or sets the id of the resource."
2026-
},
2027-
"properties": {
2028-
"$ref": "./definitions.json#/definitions/JobStreamProperties",
2029-
"x-ms-client-flatten": true,
2030-
"description": "Gets or sets the id of the job stream."
2031-
}
2032-
},
2033-
"description": "Definition of the job stream."
2034-
},
2035-
"JobStreamListResult": {
2036-
"properties": {
2037-
"value": {
2038-
"type": "array",
2039-
"items": {
2040-
"$ref": "./definitions.json#/definitions/JobStream"
2041-
},
2042-
"description": "A list of job streams."
2043-
},
2044-
"nextLink": {
2045-
"type": "string",
2046-
"description": "Gets or sets the next link."
2047-
}
2048-
},
2049-
"description": "The response model for the list job stream operation."
2050-
},
2051-
"JobProperties": {
2052-
"properties": {
2053-
"runbook": {
2054-
"$ref": "./definitions.json#/definitions/RunbookAssociationProperty",
2055-
"description": "Gets or sets the runbook."
2056-
},
2057-
"startedBy": {
2058-
"type": "string",
2059-
"description": "Gets or sets the job started by."
2060-
},
2061-
"runOn": {
2062-
"type": "string",
2063-
"description": "Gets or sets the runOn which specifies the group name where the job is to be executed."
2064-
},
2065-
"jobId": {
2066-
"type": "string",
2067-
"format": "uuid",
2068-
"description": "Gets or sets the id of the job.",
2069-
"x-nullable": false
2070-
},
2071-
"creationTime": {
2072-
"type": "string",
2073-
"format": "date-time",
2074-
"description": "Gets or sets the creation time of the job.",
2075-
"x-nullable": false
2076-
},
2077-
"status": {
2078-
"type": "string",
2079-
"description": "Gets or sets the status of the job.",
2080-
"enum": [
2081-
"New",
2082-
"Activating",
2083-
"Running",
2084-
"Completed",
2085-
"Failed",
2086-
"Stopped",
2087-
"Blocked",
2088-
"Suspended",
2089-
"Disconnected",
2090-
"Suspending",
2091-
"Stopping",
2092-
"Resuming",
2093-
"Removing"
2094-
],
2095-
"x-ms-enum": {
2096-
"name": "JobStatus",
2097-
"modelAsString": true
2098-
}
2099-
},
2100-
"statusDetails": {
2101-
"type": "string",
2102-
"description": "Gets or sets the status details of the job."
2103-
},
2104-
"startTime": {
2105-
"type": "string",
2106-
"format": "date-time",
2107-
"description": "Gets or sets the start time of the job.",
2108-
"x-nullable": true
2109-
},
2110-
"endTime": {
2111-
"type": "string",
2112-
"format": "date-time",
2113-
"description": "Gets or sets the end time of the job.",
2114-
"x-nullable": true
2115-
},
2116-
"exception": {
2117-
"type": "string",
2118-
"description": "Gets or sets the exception of the job."
2119-
},
2120-
"lastModifiedTime": {
2121-
"type": "string",
2122-
"format": "date-time",
2123-
"description": "Gets or sets the last modified time of the job.",
2124-
"x-nullable": true
2125-
},
2126-
"lastStatusModifiedTime": {
2127-
"type": "string",
2128-
"format": "date-time",
2129-
"description": "Gets or sets the last status modified time of the job.",
2130-
"x-nullable": true
2131-
},
2132-
"parameters": {
2133-
"type": "object",
2134-
"additionalProperties": {
2135-
"type": "string"
2136-
},
2137-
"description": "Gets or sets the parameters of the job."
2138-
},
2139-
"provisioningState": {
2140-
"$ref": "#/definitions/JobProvisioningStateProperty",
2141-
"description": "The provisioning state of a resource."
2142-
}
2143-
},
2144-
"description": "Definition of job properties."
2145-
},
2146-
"JobStreamProperties": {
2147-
"properties": {
2148-
"jobStreamId": {
2149-
"type": "string",
2150-
"description": "Gets or sets the id of the job stream."
2151-
},
2152-
"time": {
2153-
"type": "string",
2154-
"format": "date-time",
2155-
"description": "Gets or sets the creation time of the job.",
2156-
"x-nullable": false
2157-
},
2158-
"streamType": {
2159-
"type": "string",
2160-
"description": "Gets or sets the stream type.",
2161-
"enum": [
2162-
"Progress",
2163-
"Output",
2164-
"Warning",
2165-
"Error",
2166-
"Debug",
2167-
"Verbose",
2168-
"Any"
2169-
],
2170-
"x-ms-enum": {
2171-
"name": "JobStreamType",
2172-
"modelAsString": true
2173-
}
2174-
},
2175-
"streamText": {
2176-
"type": "string",
2177-
"description": "Gets or sets the stream text."
2178-
},
2179-
"summary": {
2180-
"type": "string",
2181-
"description": "Gets or sets the summary."
2182-
},
2183-
"value": {
2184-
"type": "object",
2185-
"additionalProperties": {
2186-
"type": "object"
2187-
},
2188-
"description": "Gets or sets the values of the job stream."
2189-
}
2190-
},
2191-
"x-ms-client-flatten": true,
2192-
"description": "Definition of the job stream."
2193-
},
21942033
"Key":{
21952034
"properties": {
21962035
"keyName": {

0 commit comments

Comments
 (0)