Skip to content

Commit

Permalink
New 2020-03-01 API Version for Streaming Jobs (Azure#14199)
Browse files Browse the repository at this point in the history
* copy 2016 version into 2020 folder to easily see diff

* add the changes from 2017 preview

* add dynamic scaling api and update api version to 2020

* add new version to readme

* remove accidental changes to 2017 folder

* fix streamingjobs.json

* fix operations api

* minor fixes

* address some review comments

* more validation fixes

* address comments

* fix breaking changes

* prettier fix

* update 2016

* fix some validation checks

* try to fix location/tags validation error

* fix lintdiff

* fix lintdiff warnings

* missed one

Co-authored-by: Roslyn Lu <roslu@microsoft.com>
  • Loading branch information
2 people authored and mkarmark committed Jul 20, 2021
1 parent 0f2dd57 commit 1a76274
Show file tree
Hide file tree
Showing 92 changed files with 9,881 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
}
},
"Resource": {
"type": "object",
"description": "The base resource definition",
"properties": {
"id": {
"readOnly": true,
Expand All @@ -58,6 +60,7 @@
"x-ms-azure-resource": true
},
"TrackedResource": {
"type": "object",
"description": "The resource model definition for a ARM tracked top level resource",
"properties": {
"tags": {
Expand Down Expand Up @@ -88,6 +91,7 @@
]
},
"ProxyResource": {
"type": "object",
"description": "The resource model definition for a ARM proxy resource. It will have everything other than required location and tags",
"allOf": [
{
Expand All @@ -96,8 +100,10 @@
]
},
"Error": {
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string",
Expand Down Expand Up @@ -125,6 +131,7 @@
"description": "Common error representation."
},
"ErrorDetails": {
"type": "object",
"properties": {
"code": {
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@
"type": "string"
}
}
},
"default": {
"description": "Error.",
"schema": {
"$ref": "../../common/v1/definitions.json#/definitions/Error"
}
}
}
},
Expand Down Expand Up @@ -177,6 +183,12 @@
"type": "string"
}
}
},
"default": {
"description": "Error.",
"schema": {
"$ref": "../../common/v1/definitions.json#/definitions/Error"
}
}
}
},
Expand Down Expand Up @@ -214,6 +226,12 @@
},
"204": {
"description": "The function does not exist."
},
"default": {
"description": "Error.",
"schema": {
"$ref": "../../common/v1/definitions.json#/definitions/Error"
}
}
}
},
Expand Down Expand Up @@ -260,6 +278,12 @@
"type": "string"
}
}
},
"default": {
"description": "Error.",
"schema": {
"$ref": "../../common/v1/definitions.json#/definitions/Error"
}
}
}
}
Expand Down Expand Up @@ -303,6 +327,12 @@
"schema": {
"$ref": "#/definitions/FunctionListResult"
}
},
"default": {
"description": "Error.",
"schema": {
"$ref": "../../common/v1/definitions.json#/definitions/Error"
}
}
},
"x-ms-pageable": {
Expand Down Expand Up @@ -360,12 +390,18 @@
},
"202": {
"description": "The test request was successfully initiated."
},
"default": {
"description": "Error.",
"schema": {
"$ref": "../../common/v1/definitions.json#/definitions/Error"
}
}
},
"x-ms-long-running-operation": true
}
},
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}/RetrieveDefaultDefinition": {
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}/retrieveDefaultDefinition": {
"post": {
"tags": [
"Functions"
Expand Down Expand Up @@ -409,6 +445,12 @@
"schema": {
"$ref": "#/definitions/Function"
}
},
"default": {
"description": "Error.",
"schema": {
"$ref": "../../common/v1/definitions.json#/definitions/Error"
}
}
}
}
Expand Down Expand Up @@ -442,7 +484,10 @@
"type": "string",
"description": "The current entity tag for the function. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency."
}
}
},
"required": [
"type"
]
},
"ScalarFunctionProperties": {
"description": "The properties that are associated with a scalar function.",
Expand Down Expand Up @@ -510,7 +555,10 @@
"type": "string",
"description": "Indicates the function binding type."
}
}
},
"required": [
"type"
]
},
"AzureMachineLearningWebServiceFunctionBinding": {
"description": "The binding to an Azure Machine Learning web service.",
Expand Down Expand Up @@ -637,7 +685,10 @@
"type": "string",
"description": "Indicates the function binding type."
}
}
},
"required": [
"bindingType"
]
},
"AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters": {
"description": "The parameters needed to retrieve the default function definition for an Azure Machine Learning web service function.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@
"type": "string"
}
}
},
"default": {
"description": "Error.",
"schema": {
"$ref": "../../common/v1/definitions.json#/definitions/Error"
}
}
}
},
Expand Down Expand Up @@ -189,6 +195,12 @@
"type": "string"
}
}
},
"default": {
"description": "Error.",
"schema": {
"$ref": "../../common/v1/definitions.json#/definitions/Error"
}
}
}
},
Expand Down Expand Up @@ -226,6 +238,12 @@
},
"204": {
"description": "The input does not exist."
},
"default": {
"description": "Error.",
"schema": {
"$ref": "../../common/v1/definitions.json#/definitions/Error"
}
}
}
},
Expand Down Expand Up @@ -278,6 +296,12 @@
"type": "string"
}
}
},
"default": {
"description": "Error.",
"schema": {
"$ref": "../../common/v1/definitions.json#/definitions/Error"
}
}
}
}
Expand Down Expand Up @@ -324,6 +348,12 @@
"schema": {
"$ref": "#/definitions/InputListResult"
}
},
"default": {
"description": "Error.",
"schema": {
"$ref": "../../common/v1/definitions.json#/definitions/Error"
}
}
},
"x-ms-pageable": {
Expand Down Expand Up @@ -378,6 +408,12 @@
},
"202": {
"description": "The test request was successfully initiated."
},
"default": {
"description": "Error.",
"schema": {
"$ref": "../../common/v1/definitions.json#/definitions/Error"
}
}
},
"x-ms-long-running-operation": true
Expand Down Expand Up @@ -421,7 +457,10 @@
"type": "string",
"description": "The current entity tag for the input. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency."
}
}
},
"required": [
"type"
]
},
"StreamInputProperties": {
"description": "The properties that are associated with an input containing stream data.",
Expand Down Expand Up @@ -461,7 +500,10 @@
"type": "string",
"description": "Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests."
}
}
},
"required": [
"type"
]
},
"BlobStreamInputDataSource": {
"description": "Describes a blob input data source that contains stream data.",
Expand Down Expand Up @@ -573,7 +615,10 @@
"type": "string",
"description": "Indicates the type of input data source containing reference data. Required on PUT (CreateOrReplace) requests."
}
}
},
"required": [
"type"
]
},
"BlobReferenceInputDataSource": {
"description": "Describes a blob input data source that contains reference data.",
Expand Down Expand Up @@ -728,9 +773,25 @@
"discriminator": "type",
"properties": {
"type": {
"type": "string",
"description": "Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests."
"description": "Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests.",
"$ref": "#/definitions/EventSerializationType"
}
},
"required": [
"type"
]
},
"EventSerializationType": {
"type": "string",
"description": "Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests.",
"enum": [
"Csv",
"Avro",
"Json"
],
"x-ms-enum": {
"name": "EventSerializationType",
"modelAsString": true
}
},
"CsvSerialization": {
Expand Down
Loading

0 comments on commit 1a76274

Please sign in to comment.