From 853638f94600efe26bf5213c7476b1a8b5117772 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 7 Jul 2021 03:49:40 +0000 Subject: [PATCH] CodeGen from PR 13322 in Azure/azure-rest-api-specs [Stream Analytics] Add Subscription Level APIs (#13322) * add query testing apis * add operationId and outputURI * fix some linter errors * fix model validation * address some PR comments * address some comments * delete getoperationresults example * try adding raw input datasource wrappers * add inputs * refactor input structure * add outputs * modify some descriptions * address more comments * add 200 response * fix formatting * Delete package-lock.json * restore package-lock.json * address final comments * add compile query * add sample input api * add test input and test output apis * fix validation errors * update testQuery and compileQuery * update sample input and test input/output * final fixes * fix linter errors pt1 * fix small bugs * remove duplicate operations def Co-authored-by: Roslyn Lu --- .../Microsoft.StreamAnalytics.json | 117 +++++++++++++++++- 1 file changed, 115 insertions(+), 2 deletions(-) diff --git a/schemas/2017-04-01-preview/Microsoft.StreamAnalytics.json b/schemas/2017-04-01-preview/Microsoft.StreamAnalytics.json index 11fea0f74e..a05d327d50 100644 --- a/schemas/2017-04-01-preview/Microsoft.StreamAnalytics.json +++ b/schemas/2017-04-01-preview/Microsoft.StreamAnalytics.json @@ -811,7 +811,8 @@ { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } - ] + ], + "description": "Describes Azure SQL database reference input data source properties." }, "type": { "type": "string", @@ -864,7 +865,8 @@ "type": "string", "description": "This element is associated with the datasource element. This is the user name that will be used to connect to the SQL Database instance." } - } + }, + "description": "Describes Azure SQL database reference input data source properties." }, "AzureSynapseOutputDataSource": { "type": "object", @@ -2062,6 +2064,9 @@ "OutputDataSource": { "type": "object", "oneOf": [ + { + "$ref": "#/definitions/RawOutputDatasource" + }, { "$ref": "#/definitions/BlobOutputDataSource" }, @@ -2239,12 +2244,117 @@ }, "description": "The properties that are associated with a Power BI output." }, + "RawInputDatasourceProperties": { + "type": "object", + "properties": { + "payload": { + "type": "string", + "description": "The JSON serialized content of the input data. Either payload or payloadUri must be set, but not both. " + }, + "payloadUri": { + "type": "string", + "description": "The SAS URL to a blob containing the JSON serialized content of the input data. Either payload or payloadUri must be set, but not both." + } + }, + "description": "The properties that are associated with a raw input." + }, + "RawOutputDatasource": { + "type": "object", + "properties": { + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/RawOutputDatasourceProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties that are associated with a raw output." + }, + "type": { + "type": "string", + "enum": [ + "Raw" + ] + } + }, + "required": [ + "type" + ], + "description": "Describes a raw output data source. This data source type is only applicable/usable when using the query testing API. You cannot create a job with this data source type or add an output of this data source type to an existing job." + }, + "RawOutputDatasourceProperties": { + "type": "object", + "properties": { + "payloadUri": { + "type": "string", + "description": "The SAS URL to a blob where the output should be written. If this property is not set, output data will be written into a temporary storage, and a SAS URL to that temporary storage will be included in the result." + } + }, + "description": "The properties that are associated with a raw output." + }, + "RawReferenceInputDataSource": { + "type": "object", + "properties": { + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/RawInputDatasourceProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties that are associated with a raw input." + }, + "type": { + "type": "string", + "enum": [ + "Raw" + ] + } + }, + "required": [ + "type" + ], + "description": "Describes a raw input data source that contains reference data. This data source type is only applicable/usable when using the query testing API. You cannot create a job with this data source type or add an input of this data source type to an existing job." + }, + "RawStreamInputDataSource": { + "type": "object", + "properties": { + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/RawInputDatasourceProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties that are associated with a raw input." + }, + "type": { + "type": "string", + "enum": [ + "Raw" + ] + } + }, + "required": [ + "type" + ], + "description": "Describes a raw input data source that contains stream data. This data source type is only applicable/usable when using the query testing API. You cannot create a job with this data source type or add an input of this data source type to an existing job." + }, "ReferenceInputDataSource": { "type": "object", "oneOf": [ { "$ref": "#/definitions/BlobReferenceInputDataSource" }, + { + "$ref": "#/definitions/RawReferenceInputDataSource" + }, { "$ref": "#/definitions/AzureSqlReferenceInputDataSource" } @@ -2927,6 +3037,9 @@ }, { "$ref": "#/definitions/IoTHubStreamInputDataSource" + }, + { + "$ref": "#/definitions/RawStreamInputDataSource" } ], "properties": {},