Skip to content

Commit

Permalink
Refactoring Job Definitions (#3116)
Browse files Browse the repository at this point in the history
  • Loading branch information
vrdmr authored and bashahee committed Jun 1, 2018
1 parent 95e0b05 commit fe8aa07
Show file tree
Hide file tree
Showing 2 changed files with 337 additions and 245 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1092,6 +1092,84 @@
],
"description": "The parameters supplied to the create compilation job operation."
},
"JobStreamListResult": {
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/JobStream"
},
"description": "A list of job streams."
},
"nextLink": {
"type": "string",
"description": "Gets or sets the next link."
}
},
"description": "The response model for the list job stream operation."
},
"JobStream": {
"properties": {
"id": {
"type": "string",
"description": "Gets or sets the id of the resource."
},
"properties": {
"$ref": "#/definitions/JobStreamProperties",
"x-ms-client-flatten": true,
"description": "Gets or sets the id of the job stream."
}
},
"description": "Definition of the job stream."
},
"JobStreamProperties": {
"properties": {
"jobStreamId": {
"type": "string",
"description": "Gets or sets the id of the job stream."
},
"time": {
"type": "string",
"format": "date-time",
"description": "Gets or sets the creation time of the job.",
"x-nullable": false
},
"streamType": {
"type": "string",
"description": "Gets or sets the stream type.",
"enum": [
"Progress",
"Output",
"Warning",
"Error",
"Debug",
"Verbose",
"Any"
],
"x-ms-enum": {
"name": "JobStreamType",
"modelAsString": true
}
},
"streamText": {
"type": "string",
"description": "Gets or sets the stream text."
},
"summary": {
"type": "string",
"description": "Gets or sets the summary."
},
"value": {
"type": "object",
"additionalProperties": {
"type": "object"
},
"description": "Gets or sets the values of the job stream."
}
},
"x-ms-client-flatten": true,
"description": "Definition of the job stream."
},
"DscCompilationJobProperties": {
"properties": {
"configuration": {
Expand Down Expand Up @@ -1842,72 +1920,6 @@
},
"description": "Parameters supplied to the update operation."
},
"Job": {
"properties": {
"id": {
"type": "string",
"description": "Id of the resource."
},
"properties": {
"$ref": "./definitions.json#/definitions/JobProperties",
"x-ms-client-flatten": true,
"description": "The properties of the job."
}
},
"description": "Definition of the job."
},
"JobCreateProperties": {
"properties": {
"runbook": {
"$ref": "./definitions.json#/definitions/RunbookAssociationProperty",
"description": "Gets or sets the runbook."
},
"parameters": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Gets or sets the parameters of the job."
},
"runOn": {
"type": "string",
"description": "Gets or sets the runOn which specifies the group name where the job is to be executed."
}
},
"required": [
"runbook"
],
"description": "The parameters supplied to the create job operation."
},
"JobCreateParameters": {
"properties": {
"properties": {
"$ref": "./definitions.json#/definitions/JobCreateProperties",
"x-ms-client-flatten": true,
"description": "Gets or sets the list of job properties."
}
},
"required": [
"properties"
],
"description": "The parameters supplied to the create job operation."
},
"JobListResult": {
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "./definitions.json#/definitions/Job"
},
"description": "Gets or sets a list of jobs."
},
"nextLink": {
"type": "string",
"description": "Gets or sets the next link."
}
},
"description": "The response model for the list job operation."
},
"JobScheduleCreateProperties": {
"properties": {
"schedule": {
Expand Down Expand Up @@ -2018,179 +2030,6 @@
},
"description": "The response model for the list job schedule operation."
},
"JobStream": {
"properties": {
"id": {
"type": "string",
"description": "Gets or sets the id of the resource."
},
"properties": {
"$ref": "./definitions.json#/definitions/JobStreamProperties",
"x-ms-client-flatten": true,
"description": "Gets or sets the id of the job stream."
}
},
"description": "Definition of the job stream."
},
"JobStreamListResult": {
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "./definitions.json#/definitions/JobStream"
},
"description": "A list of job streams."
},
"nextLink": {
"type": "string",
"description": "Gets or sets the next link."
}
},
"description": "The response model for the list job stream operation."
},
"JobProperties": {
"properties": {
"runbook": {
"$ref": "./definitions.json#/definitions/RunbookAssociationProperty",
"description": "Gets or sets the runbook."
},
"startedBy": {
"type": "string",
"description": "Gets or sets the job started by."
},
"runOn": {
"type": "string",
"description": "Gets or sets the runOn which specifies the group name where the job is to be executed."
},
"jobId": {
"type": "string",
"format": "uuid",
"description": "Gets or sets the id of the job.",
"x-nullable": false
},
"creationTime": {
"type": "string",
"format": "date-time",
"description": "Gets or sets the creation time of the job.",
"x-nullable": false
},
"status": {
"type": "string",
"description": "Gets or sets the status of the job.",
"enum": [
"New",
"Activating",
"Running",
"Completed",
"Failed",
"Stopped",
"Blocked",
"Suspended",
"Disconnected",
"Suspending",
"Stopping",
"Resuming",
"Removing"
],
"x-ms-enum": {
"name": "JobStatus",
"modelAsString": true
}
},
"statusDetails": {
"type": "string",
"description": "Gets or sets the status details of the job."
},
"startTime": {
"type": "string",
"format": "date-time",
"description": "Gets or sets the start time of the job.",
"x-nullable": true
},
"endTime": {
"type": "string",
"format": "date-time",
"description": "Gets or sets the end time of the job.",
"x-nullable": true
},
"exception": {
"type": "string",
"description": "Gets or sets the exception of the job."
},
"lastModifiedTime": {
"type": "string",
"format": "date-time",
"description": "Gets or sets the last modified time of the job.",
"x-nullable": true
},
"lastStatusModifiedTime": {
"type": "string",
"format": "date-time",
"description": "Gets or sets the last status modified time of the job.",
"x-nullable": true
},
"parameters": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Gets or sets the parameters of the job."
},
"provisioningState": {
"$ref": "#/definitions/JobProvisioningStateProperty",
"description": "The provisioning state of a resource."
}
},
"description": "Definition of job properties."
},
"JobStreamProperties": {
"properties": {
"jobStreamId": {
"type": "string",
"description": "Gets or sets the id of the job stream."
},
"time": {
"type": "string",
"format": "date-time",
"description": "Gets or sets the creation time of the job.",
"x-nullable": false
},
"streamType": {
"type": "string",
"description": "Gets or sets the stream type.",
"enum": [
"Progress",
"Output",
"Warning",
"Error",
"Debug",
"Verbose",
"Any"
],
"x-ms-enum": {
"name": "JobStreamType",
"modelAsString": true
}
},
"streamText": {
"type": "string",
"description": "Gets or sets the stream text."
},
"summary": {
"type": "string",
"description": "Gets or sets the summary."
},
"value": {
"type": "object",
"additionalProperties": {
"type": "object"
},
"description": "Gets or sets the values of the job stream."
}
},
"x-ms-client-flatten": true,
"description": "Definition of the job stream."
},
"Key":{
"properties": {
"keyName": {
Expand Down
Loading

0 comments on commit fe8aa07

Please sign in to comment.