From ca0f583460fbfbae290192ebced2b42eee581604 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 17 Nov 2021 20:17:02 +0000 Subject: [PATCH] CodeGen from PR 16721 in Azure/azure-rest-api-specs Merge aac9b90d08a3461fe052dca5b98b2edf357eda30 into 564d0137d08defea63d9de2413ef5336fbfe2e6d --- .../arm-streamanalytics/README.md | 22 +- .../arm-streamanalytics/package.json | 2 +- .../src/models/clustersMappers.ts | 21 +- .../src/models/functionsMappers.ts | 29 +- .../arm-streamanalytics/src/models/index.ts | 3107 ++++++++-------- .../src/models/inputsMappers.ts | 25 +- .../arm-streamanalytics/src/models/mappers.ts | 3186 ++++++++--------- .../src/models/operationsMappers.ts | 4 +- .../src/models/outputsMappers.ts | 25 +- .../src/models/parameters.ts | 19 +- .../src/models/privateEndpointsMappers.ts | 21 +- .../src/models/streamingJobsMappers.ts | 26 +- .../src/models/subscriptionsMappers.ts | 25 +- .../src/models/transformationsMappers.ts | 25 +- .../src/operations/clusters.ts | 20 +- .../src/operations/functions.ts | 34 +- .../src/operations/index.ts | 8 +- .../src/operations/inputs.ts | 28 +- .../src/operations/operations.ts | 8 +- .../src/operations/outputs.ts | 28 +- .../src/operations/privateEndpoints.ts | 10 +- .../src/operations/streamingJobs.ts | 100 +- .../src/operations/subscriptions.ts | 4 +- .../src/operations/transformations.ts | 12 +- .../src/streamAnalyticsManagementClient.ts | 16 +- .../streamAnalyticsManagementClientContext.ts | 4 +- 26 files changed, 3118 insertions(+), 3691 deletions(-) diff --git a/sdk/streamanalytics/arm-streamanalytics/README.md b/sdk/streamanalytics/arm-streamanalytics/README.md index 512d5b856076..2b66e21d4262 100644 --- a/sdk/streamanalytics/arm-streamanalytics/README.md +++ b/sdk/streamanalytics/arm-streamanalytics/README.md @@ -1,11 +1,11 @@ ## Azure StreamAnalyticsManagementClient SDK for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for StreamAnalyticsManagementClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for StreamAnalyticsManagementClient. ### Currently supported environments - [LTS versions of Node.js](https://nodejs.org/about/releases/) -- Latest versions of Safari, Chrome, Edge, and Firefox. +- Latest versions of Safari, Chrome, Edge and Firefox. ### Prerequisites @@ -21,7 +21,6 @@ Install both packages using the below command: ```bash npm install --save @azure/arm-streamanalytics @azure/identity ``` - > **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features. If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options. @@ -37,8 +36,7 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/ In the below samples, we pass the credential and the Azure subscription id to instantiate the client. Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started. - -#### nodejs - Authentication, client creation, and get functions as an example written in JavaScript. +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code @@ -51,10 +49,7 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; // Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. const creds = new DefaultAzureCredential(); const client = new StreamAnalyticsManagementClient(creds, subscriptionId); -const resourceGroupName = "testresourceGroupName"; -const jobName = "testjobName"; -const functionName = "testfunctionName"; -client.functions.get(resourceGroupName, jobName, functionName).then((result) => { +client.operations.list().then((result) => { console.log("The result is:"); console.log(result); }).catch((err) => { @@ -63,7 +58,7 @@ client.functions.get(resourceGroupName, jobName, functionName).then((result) => }); ``` -#### browser - Authentication, client creation, and get functions as an example written in JavaScript. +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. @@ -88,13 +83,10 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t const credential = new InteractiveBrowserCredential( { clientId: "", - tenantId: "" + tenant: "" }); const client = new Azure.ArmStreamanalytics.StreamAnalyticsManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const jobName = "testjobName"; - const functionName = "testfunctionName"; - client.functions.get(resourceGroupName, jobName, functionName).then((result) => { + client.operations.list().then((result) => { console.log("The result is:"); console.log(result); }).catch((err) => { diff --git a/sdk/streamanalytics/arm-streamanalytics/package.json b/sdk/streamanalytics/arm-streamanalytics/package.json index 54b4aa4aa616..350a433fd5f3 100644 --- a/sdk/streamanalytics/arm-streamanalytics/package.json +++ b/sdk/streamanalytics/arm-streamanalytics/package.json @@ -27,7 +27,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/streamanalytics/arm-streamanalytics", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/streamanalytics/arm-streamanalytics", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/streamanalytics/arm-streamanalytics/src/models/clustersMappers.ts b/sdk/streamanalytics/arm-streamanalytics/src/models/clustersMappers.ts index 5b7ba13d4529..6221d38d2735 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/models/clustersMappers.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/models/clustersMappers.ts @@ -8,20 +8,14 @@ export { discriminators, - AggregateFunctionProperties, AvroSerialization, AzureDataLakeStoreOutputDataSource, - AzureFunctionOutputDataSource, - AzureMachineLearningServiceFunctionBinding, - AzureMachineLearningServiceInputColumn, - AzureMachineLearningServiceOutputColumn, - AzureMachineLearningStudioFunctionBinding, - AzureMachineLearningStudioInputColumn, - AzureMachineLearningStudioInputs, - AzureMachineLearningStudioOutputColumn, + AzureMachineLearningWebServiceFunctionBinding, + AzureMachineLearningWebServiceInputColumn, + AzureMachineLearningWebServiceInputs, + AzureMachineLearningWebServiceOutputColumn, AzureSqlDatabaseOutputDataSource, AzureSqlReferenceInputDataSource, - AzureSqlReferenceInputDataSourceProperties, AzureSynapseOutputDataSource, AzureTableOutputDataSource, BaseResource, @@ -33,12 +27,9 @@ export { ClusterJob, ClusterJobListResult, ClusterListResult, - ClusterProperties, ClusterSku, Compression, - CSharpFunctionBinding, CsvSerialization, - CustomClrSerialization, DiagnosticCondition, Diagnostics, DocumentDbOutputDataSource, @@ -49,7 +40,6 @@ export { EventHubStreamInputDataSource, EventHubV2OutputDataSource, EventHubV2StreamInputDataSource, - External, FunctionBinding, FunctionInput, FunctionModel, @@ -67,7 +57,6 @@ export { ParquetSerialization, PowerBIOutputDataSource, PrivateEndpoint, - PrivateEndpointProperties, PrivateLinkConnectionState, PrivateLinkServiceConnection, ProxyResource, @@ -78,9 +67,9 @@ export { Serialization, ServiceBusQueueOutputDataSource, ServiceBusTopicOutputDataSource, + Sku, StorageAccount, StreamingJob, - StreamingJobSku, StreamInputDataSource, StreamInputProperties, SubResource, diff --git a/sdk/streamanalytics/arm-streamanalytics/src/models/functionsMappers.ts b/sdk/streamanalytics/arm-streamanalytics/src/models/functionsMappers.ts index df53151085b8..080fa4b0da36 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/models/functionsMappers.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/models/functionsMappers.ts @@ -8,47 +8,37 @@ export { discriminators, - AggregateFunctionProperties, AvroSerialization, AzureDataLakeStoreOutputDataSource, - AzureFunctionOutputDataSource, - AzureMachineLearningServiceFunctionBinding, - AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters, - AzureMachineLearningServiceInputColumn, - AzureMachineLearningServiceOutputColumn, - AzureMachineLearningStudioFunctionBinding, - AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters, - AzureMachineLearningStudioInputColumn, - AzureMachineLearningStudioInputs, - AzureMachineLearningStudioOutputColumn, + AzureMachineLearningWebServiceFunctionBinding, + AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters, + AzureMachineLearningWebServiceInputColumn, + AzureMachineLearningWebServiceInputs, + AzureMachineLearningWebServiceOutputColumn, AzureSqlDatabaseOutputDataSource, AzureSqlReferenceInputDataSource, - AzureSqlReferenceInputDataSourceProperties, AzureSynapseOutputDataSource, AzureTableOutputDataSource, BaseResource, BlobOutputDataSource, BlobReferenceInputDataSource, BlobStreamInputDataSource, - CloudError, Cluster, ClusterInfo, - ClusterProperties, ClusterSku, Compression, - CSharpFunctionBinding, - CSharpFunctionRetrieveDefaultDefinitionParameters, CsvSerialization, - CustomClrSerialization, DiagnosticCondition, Diagnostics, DocumentDbOutputDataSource, + ErrorDetails, + ErrorError, + ErrorModel, ErrorResponse, EventHubOutputDataSource, EventHubStreamInputDataSource, EventHubV2OutputDataSource, EventHubV2StreamInputDataSource, - External, FunctionBinding, FunctionInput, FunctionListResult, @@ -72,7 +62,6 @@ export { ParquetSerialization, PowerBIOutputDataSource, PrivateEndpoint, - PrivateEndpointProperties, PrivateLinkConnectionState, PrivateLinkServiceConnection, ProxyResource, @@ -84,9 +73,9 @@ export { Serialization, ServiceBusQueueOutputDataSource, ServiceBusTopicOutputDataSource, + Sku, StorageAccount, StreamingJob, - StreamingJobSku, StreamInputDataSource, StreamInputProperties, SubResource, diff --git a/sdk/streamanalytics/arm-streamanalytics/src/models/index.ts b/sdk/streamanalytics/arm-streamanalytics/src/models/index.ts index 774507c085a7..93d3f07583ca 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/models/index.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/models/index.ts @@ -12,934 +12,957 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; /** - * Describes one input parameter of a function. + * Contains the localized display information for this particular operation / action. */ -export interface FunctionInput { +export interface OperationDisplay { /** - * The (Azure Stream Analytics supported) data type of the function input parameter. A list of - * valid Azure Stream Analytics data types are described at - * https://msdn.microsoft.com/en-us/library/azure/dn835065.aspx + * The localized friendly form of the resource provider name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - dataType?: string; + readonly provider?: string; /** - * A flag indicating if the parameter is a configuration parameter. True if this input parameter - * is expected to be a constant. Default is false. + * The localized friendly form of the resource type related to this action/operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - isConfigurationParameter?: boolean; + readonly resource?: string; + /** + * The localized friendly name for the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly operation?: string; + /** + * The localized friendly description for the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly description?: string; } /** - * Describes the output of a function. + * A Stream Analytics REST API operation */ -export interface FunctionOutput { +export interface Operation { /** - * The (Azure Stream Analytics supported) data type of the function output. A list of valid Azure - * Stream Analytics data types are described at - * https://msdn.microsoft.com/en-us/library/azure/dn835065.aspx + * The name of the operation being performed on this particular object. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - dataType?: string; + readonly name?: string; + /** + * Indicates whether the operation is a data action + */ + isDataAction?: boolean; + /** + * Contains the localized display information for this particular operation / action. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly display?: OperationDisplay; } /** - * Contains the possible cases for FunctionBinding. - */ -export type FunctionBindingUnion = FunctionBinding | AzureMachineLearningStudioFunctionBinding | JavaScriptFunctionBinding | CSharpFunctionBinding | AzureMachineLearningServiceFunctionBinding; - -/** - * The physical binding of the function. For example, in the Azure Machine Learning web service’s - * case, this describes the endpoint. + * The properties that are associated with a SKU. */ -export interface FunctionBinding { +export interface Sku { /** - * Polymorphic Discriminator + * The name of the SKU. Required on PUT (CreateOrReplace) requests. Possible values include: + * 'Standard' */ - type: "FunctionBinding"; + name?: SkuName; } /** - * Contains the possible cases for FunctionProperties. + * Contains the possible cases for Serialization. */ -export type FunctionPropertiesUnion = FunctionProperties | ScalarFunctionProperties | AggregateFunctionProperties; +export type SerializationUnion = Serialization | AvroSerialization | JsonSerialization | CsvSerialization | ParquetSerialization; /** - * The properties that are associated with a function. + * Describes how data from an input is serialized or how data is serialized when written to an + * output. */ -export interface FunctionProperties { +export interface Serialization { /** * Polymorphic Discriminator */ - type: "FunctionProperties"; - /** - * 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. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly etag?: string; - inputs?: FunctionInput[]; - output?: FunctionOutput; - binding?: FunctionBindingUnion; + type: "Serialization"; } /** - * The base sub-resource model definition. + * Condition applicable to the resource, or to the job overall, that warrant customer attention. */ -export interface SubResource extends BaseResource { +export interface DiagnosticCondition { /** - * Resource Id + * The UTC timestamp of when the condition started. Customers should be able to find a + * corresponding event in the ops log around this time. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly id?: string; + readonly since?: string; /** - * Resource name + * The opaque diagnostic code. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - name?: string; + readonly code?: string; /** - * Resource type + * The human-readable message describing the condition in detail. Localized in the + * Accept-Language of the client request. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly type?: string; + readonly message?: string; } /** - * A function object, containing all information associated with the named function. All functions - * are contained under a streaming job. + * Describes conditions applicable to the Input, Output, or the job overall, that warrant customer + * attention. */ -export interface FunctionModel extends SubResource { +export interface Diagnostics { /** - * The properties that are associated with a function. + * A collection of zero or more conditions applicable to the resource, or to the job overall, + * that warrant customer attention. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - properties?: FunctionPropertiesUnion; + readonly conditions?: DiagnosticCondition[]; } /** - * The properties that are associated with a scalar function. + * Describes how input data is compressed */ -export interface ScalarFunctionProperties { +export interface Compression { + /** + * Indicates the type of compression that the input uses. Required on PUT (CreateOrReplace) + * requests. Possible values include: 'None', 'GZip', 'Deflate' + */ + type: CompressionType; +} + +/** + * Contains the possible cases for InputProperties. + */ +export type InputPropertiesUnion = InputProperties | ReferenceInputProperties | StreamInputProperties; + +/** + * The properties that are associated with an input. + */ +export interface InputProperties { /** * Polymorphic Discriminator */ - type: "Scalar"; + type: "InputProperties"; /** - * The current entity tag for the function. This is an opaque string. You can use it to detect + * Describes how data from an input is serialized or how data is serialized when written to an + * output. Required on PUT (CreateOrReplace) requests. + */ + serialization?: SerializationUnion; + /** + * Describes conditions applicable to the Input, Output, or the job overall, that warrant + * customer attention. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly diagnostics?: Diagnostics; + /** + * 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. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly etag?: string; - inputs?: FunctionInput[]; - output?: FunctionOutput; - binding?: FunctionBindingUnion; -} - -/** - * Describes an input column for the Azure Machine Learning Studio endpoint. - */ -export interface AzureMachineLearningStudioInputColumn { - /** - * The name of the input column. - */ - name?: string; /** - * The (Azure Machine Learning supported) data type of the input column. A list of valid Azure - * Machine Learning data types are described at - * https://msdn.microsoft.com/en-us/library/azure/dn905923.aspx . + * Describes how input data is compressed */ - dataType?: string; + compression?: Compression; /** - * The zero based index of the function parameter this input maps to. + * partitionKey Describes a key in the input data which is used for partitioning the input data */ - mapTo?: number; + partitionKey?: string; } /** - * The inputs for the Azure Machine Learning Studio endpoint. + * The base sub-resource model definition. */ -export interface AzureMachineLearningStudioInputs { +export interface SubResource extends BaseResource { /** - * The name of the input. This is the name provided while authoring the endpoint. + * Resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Resource name */ name?: string; /** - * A list of input columns for the Azure Machine Learning Studio endpoint. + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - columnNames?: AzureMachineLearningStudioInputColumn[]; + readonly type?: string; } /** - * Describes an output column for the Azure Machine Learning Studio endpoint. + * An input object, containing all information associated with the named input. All inputs are + * contained under a streaming job. */ -export interface AzureMachineLearningStudioOutputColumn { - /** - * The name of the output column. - */ - name?: string; +export interface Input extends SubResource { /** - * The (Azure Machine Learning supported) data type of the output column. A list of valid Azure - * Machine Learning data types are described at - * https://msdn.microsoft.com/en-us/library/azure/dn905923.aspx . + * The properties that are associated with an input. Required on PUT (CreateOrReplace) requests. */ - dataType?: string; + properties?: InputPropertiesUnion; } /** - * The binding to an Azure Machine Learning Studio. + * A transformation object, containing all information associated with the named transformation. + * All transformations are contained under a streaming job. */ -export interface AzureMachineLearningStudioFunctionBinding { - /** - * Polymorphic Discriminator - */ - type: "Microsoft.MachineLearning/WebService"; - /** - * The Request-Response execute endpoint of the Azure Machine Learning Studio. Find out more - * here: - * https://docs.microsoft.com/en-us/azure/machine-learning/machine-learning-consume-web-services#request-response-service-rrs - */ - endpoint?: string; +export interface Transformation extends SubResource { /** - * The API key used to authenticate with Request-Response endpoint. + * Specifies the number of streaming units that the streaming job uses. */ - apiKey?: string; + streamingUnits?: number; /** - * The inputs for the Azure Machine Learning Studio endpoint. + * Specifies the valid streaming units a streaming job can scale to. */ - inputs?: AzureMachineLearningStudioInputs; + validStreamingUnits?: number[]; /** - * A list of outputs from the Azure Machine Learning Studio endpoint execution. + * Specifies the query that will be run in the streaming job. You can learn more about the Stream + * Analytics Query Language (SAQL) here: https://msdn.microsoft.com/library/azure/dn834998 . + * Required on PUT (CreateOrReplace) requests. */ - outputs?: AzureMachineLearningStudioOutputColumn[]; + query?: string; /** - * Number between 1 and 10000 describing maximum number of rows for every Azure ML RRS execute - * request. Default is 1000. + * The current entity tag for the transformation. 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. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - batchSize?: number; + readonly etag?: string; } /** - * The binding to a JavaScript function. + * Contains the possible cases for OutputDataSource. */ -export interface JavaScriptFunctionBinding { +export type OutputDataSourceUnion = OutputDataSource | AzureDataLakeStoreOutputDataSource | PowerBIOutputDataSource | ServiceBusTopicOutputDataSource | ServiceBusQueueOutputDataSource | DocumentDbOutputDataSource | AzureSynapseOutputDataSource | AzureSqlDatabaseOutputDataSource | EventHubV2OutputDataSource | EventHubOutputDataSource | AzureTableOutputDataSource | BlobOutputDataSource; + +/** + * Describes the data source that output will be written to. + */ +export interface OutputDataSource { /** * Polymorphic Discriminator */ - type: "Microsoft.StreamAnalytics/JavascriptUdf"; - /** - * The JavaScript code containing a single function definition. For example: 'function (x, y) { - * return x + y; }' - */ - script?: string; + type: "OutputDataSource"; } /** - * The binding to a CSharp function. + * An output object, containing all information associated with the named output. All outputs are + * contained under a streaming job. */ -export interface CSharpFunctionBinding { +export interface Output extends SubResource { /** - * Polymorphic Discriminator + * Describes the data source that output will be written to. Required on PUT (CreateOrReplace) + * requests. */ - type: "Microsoft.StreamAnalytics/CLRUdf"; + datasource?: OutputDataSourceUnion; /** - * The Csharp code containing a single function definition. + * The time frame for filtering Stream Analytics job outputs. */ - script?: string; + timeWindow?: string; + /** + * The size window to constrain a Stream Analytics output to. + */ + sizeWindow?: number; /** - * The Csharp code containing a single function definition. + * Describes how data from an input is serialized or how data is serialized when written to an + * output. Required on PUT (CreateOrReplace) requests. */ - dllPath?: string; + serialization?: SerializationUnion; /** - * The Csharp code containing a single function definition. + * Describes conditions applicable to the Input, Output, or the job overall, that warrant + * customer attention. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - classProperty?: string; + readonly diagnostics?: Diagnostics; /** - * The Csharp code containing a single function definition. + * The current entity tag for the output. 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. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - method?: string; + readonly etag?: string; } /** - * Contains the possible cases for FunctionRetrieveDefaultDefinitionParameters. + * Contains the possible cases for FunctionProperties. */ -export type FunctionRetrieveDefaultDefinitionParametersUnion = FunctionRetrieveDefaultDefinitionParameters | AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters | AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters | JavaScriptFunctionRetrieveDefaultDefinitionParameters | CSharpFunctionRetrieveDefaultDefinitionParameters; +export type FunctionPropertiesUnion = FunctionProperties | ScalarFunctionProperties; /** - * Parameters used to specify the type of function to retrieve the default definition for. + * The properties that are associated with a function. */ -export interface FunctionRetrieveDefaultDefinitionParameters { +export interface FunctionProperties { /** * Polymorphic Discriminator */ - bindingType: "FunctionRetrieveDefaultDefinitionParameters"; + type: "FunctionProperties"; + /** + * 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. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly etag?: string; } /** - * The parameters needed to retrieve the default function definition for an Azure Machine Learning - * Studio function. + * A function object, containing all information associated with the named function. All functions + * are contained under a streaming job. */ -export interface AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters { - /** - * Polymorphic Discriminator - */ - bindingType: "Microsoft.MachineLearning/WebService"; - /** - * The Request-Response execute endpoint of the Azure Machine Learning Studio. Find out more - * here: - * https://docs.microsoft.com/en-us/azure/machine-learning/machine-learning-consume-web-services#request-response-service-rrs - */ - executeEndpoint?: string; +export interface FunctionModel extends SubResource { /** - * The function type. Possible values include: 'Scalar' + * The properties that are associated with a function. */ - udfType?: UdfType; + properties?: FunctionPropertiesUnion; } /** - * The parameters needed to retrieve the default function definition for an Azure Machine Learning - * web service function. + * The properties that are associated with an Azure Storage account */ -export interface AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters { - /** - * Polymorphic Discriminator - */ - bindingType: "Microsoft.MachineLearningServices"; +export interface StorageAccount { /** - * The Request-Response execute endpoint of the Azure Machine Learning web service. + * The name of the Azure Storage account. Required on PUT (CreateOrReplace) requests. */ - executeEndpoint?: string; + accountName?: string; /** - * The function type. Possible values include: 'Scalar' + * The account key for the Azure Storage account. Required on PUT (CreateOrReplace) requests. */ - udfType?: UdfType; + accountKey?: string; } /** - * The parameters needed to retrieve the default function definition for a JavaScript function. + * The properties that are associated with an Azure Storage account with MSI */ -export interface JavaScriptFunctionRetrieveDefaultDefinitionParameters { - /** - * Polymorphic Discriminator - */ - bindingType: "Microsoft.StreamAnalytics/JavascriptUdf"; +export interface JobStorageAccount extends StorageAccount { /** - * The JavaScript code containing a single function definition. For example: 'function (x, y) { - * return x + y; }'. + * Authentication Mode. Possible values include: 'Msi', 'UserToken', 'ConnectionString' */ - script?: string; + authenticationMode?: AuthenticationMode; +} + +/** + * The properties associated with a Stream Analytics cluster. + */ +export interface ClusterInfo { /** - * The function type. Possible values include: 'Scalar' + * The resource id of cluster. */ - udfType?: UdfType; + id?: string; } /** - * The parameters needed to retrieve the default function definition for a CSharp function. + * Describes how identity is verified */ -export interface CSharpFunctionRetrieveDefaultDefinitionParameters { +export interface Identity { /** - * Polymorphic Discriminator + * The identity tenantId */ - bindingType: "Microsoft.StreamAnalytics/CLRUdf"; + tenantId?: string; /** - * The CSharp code containing a single function definition. + * The identity principal ID */ - script?: string; + principalId?: string; /** - * The function type. Possible values include: 'Scalar' + * The identity type */ - udfType?: UdfType; + type?: string; } /** - * Describes an input column for the Azure Machine Learning web service endpoint. + * The base resource definition */ -export interface AzureMachineLearningServiceInputColumn { +export interface Resource extends BaseResource { /** - * The name of the input column. + * Fully qualified resource Id for the resource. Ex - + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - name?: string; + readonly id?: string; /** - * The (Azure Machine Learning supported) data type of the input column. + * The name of the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - dataType?: string; + readonly name?: string; /** - * The zero based index of the function parameter this input maps to. + * The type of the resource. Ex- Microsoft.Compute/virtualMachines or + * Microsoft.Storage/storageAccounts. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - mapTo?: number; + readonly type?: string; } /** - * Describes an output column for the Azure Machine Learning web service endpoint. + * The resource model definition for a ARM tracked top level resource */ -export interface AzureMachineLearningServiceOutputColumn { - /** - * The name of the output column. - */ - name?: string; +export interface TrackedResource extends Resource { /** - * The (Azure Machine Learning supported) data type of the output column. + * Resource tags. */ - dataType?: string; + tags?: { [propertyName: string]: string }; /** - * The zero based index of the function parameter this input maps to. + * The geo-location where the resource lives */ - mapTo?: number; + location?: string; } /** - * The binding to an Azure Machine Learning web service. + * A streaming job object, containing all information associated with the named streaming job. */ -export interface AzureMachineLearningServiceFunctionBinding { +export interface StreamingJob extends TrackedResource { /** - * Polymorphic Discriminator + * Describes the SKU of the streaming job. Required on PUT (CreateOrReplace) requests. */ - type: "Microsoft.MachineLearningServices"; + sku?: Sku; /** - * The Request-Response execute endpoint of the Azure Machine Learning web service. + * A GUID uniquely identifying the streaming job. This GUID is generated upon creation of the + * streaming job. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - endpoint?: string; + readonly jobId?: string; /** - * The API key used to authenticate with Request-Response endpoint. + * Describes the provisioning status of the streaming job. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - apiKey?: string; + readonly provisioningState?: string; /** - * The inputs for the Azure Machine Learning web service endpoint. + * Describes the state of the streaming job. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - inputs?: AzureMachineLearningServiceInputColumn[]; + readonly jobState?: string; /** - * A list of outputs from the Azure Machine Learning web service endpoint execution. + * Describes the type of the job. Valid modes are `Cloud` and 'Edge'. Possible values include: + * 'Cloud', 'Edge' */ - outputs?: AzureMachineLearningServiceOutputColumn[]; + jobType?: JobType; /** - * Number between 1 and 10000 describing maximum number of rows for every Azure ML RRS execute - * request. Default is 1000. + * This property should only be utilized when it is desired that the job be started immediately + * upon creation. Value may be JobStartTime, CustomTime, or LastOutputEventTime to indicate + * whether the starting point of the output event stream should start whenever the job is + * started, start at a custom user time stamp specified via the outputStartTime property, or + * start from the last event output time. Possible values include: 'JobStartTime', 'CustomTime', + * 'LastOutputEventTime' */ - batchSize?: number; + outputStartMode?: OutputStartMode; /** - * The number of parallel requests that will be sent per partition of your job to the machine - * learning service. Default is 1. + * Value is either an ISO-8601 formatted time stamp that indicates the starting point of the + * output event stream, or null to indicate that the output event stream will start whenever the + * streaming job is started. This property must have a value if outputStartMode is set to + * CustomTime. */ - numberOfParallelRequests?: number; -} - -/** - * The inputs for the Azure Machine Learning web service endpoint. - */ -export interface AzureMachineLearningServiceInputs { + outputStartTime?: Date; /** - * The name of the input. This is the name provided while authoring the endpoint. + * Value is either an ISO-8601 formatted timestamp indicating the last output event time of the + * streaming job or null indicating that output has not yet been produced. In case of multiple + * outputs or multiple streams, this shows the latest value in that set. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - name?: string; + readonly lastOutputEventTime?: Date; /** - * A list of input columns for the Azure Machine Learning web service endpoint. + * Indicates the policy to apply to events that arrive out of order in the input event stream. + * Possible values include: 'Adjust', 'Drop' */ - columnNames?: AzureMachineLearningServiceInputColumn[]; -} - -/** - * The properties that are associated with an aggregate function. - */ -export interface AggregateFunctionProperties { + eventsOutOfOrderPolicy?: EventsOutOfOrderPolicy; /** - * Polymorphic Discriminator + * Indicates the policy to apply to events that arrive at the output and cannot be written to the + * external storage due to being malformed (missing column values, column values of wrong type or + * size). Possible values include: 'Stop', 'Drop' */ - type: "Aggregate"; + outputErrorPolicy?: OutputErrorPolicy; /** - * 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. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The maximum tolerable delay in seconds where out-of-order events can be adjusted to be back in + * order. */ - readonly etag?: string; - inputs?: FunctionInput[]; - output?: FunctionOutput; - binding?: FunctionBindingUnion; -} - -/** - * Describes the error that occurred. - */ -export interface ErrorResponse { + eventsOutOfOrderMaxDelayInSeconds?: number; /** - * Error code associated with the error that occurred. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The maximum tolerable delay in seconds where events arriving late could be included. + * Supported range is -1 to 1814399 (20.23:59:59 days) and -1 is used to specify wait + * indefinitely. If the property is absent, it is interpreted to have a value of -1. */ - readonly code?: string; + eventsLateArrivalMaxDelayInSeconds?: number; /** - * Describes the error in detail. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The data locale of the stream analytics job. Value should be the name of a supported .NET + * Culture from the set + * https://msdn.microsoft.com/en-us/library/system.globalization.culturetypes(v=vs.110).aspx. + * Defaults to 'en-US' if none specified. */ - readonly message?: string; -} - -/** - * Describes the status of the test operation along with error information, if applicable. - */ -export interface ResourceTestStatus { + dataLocale?: string; /** - * The status of the test operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Controls certain runtime behaviors of the streaming job. Possible values include: '1.0', '1.2' */ - readonly status?: string; + compatibilityLevel?: CompatibilityLevel; /** - * Describes the error that occurred. + * Value is an ISO-8601 formatted UTC timestamp indicating when the streaming job was created. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly error?: ErrorResponse; -} - -/** - * Contains the possible cases for Serialization. - */ -export type SerializationUnion = Serialization | ParquetSerialization | CustomClrSerialization | CsvSerialization | JsonSerialization | AvroSerialization; - -/** - * Describes how data from an input is serialized or how data is serialized when written to an - * output. - */ -export interface Serialization { + readonly createdDate?: Date; /** - * Polymorphic Discriminator + * A list of one or more inputs to the streaming job. The name property for each input is + * required when specifying this property in a PUT request. This property cannot be modify via a + * PATCH operation. You must use the PATCH API available for the individual input. */ - type: "Serialization"; -} - -/** - * Condition applicable to the resource, or to the job overall, that warrant customer attention. - */ -export interface DiagnosticCondition { + inputs?: Input[]; /** - * The UTC timestamp of when the condition started. Customers should be able to find a - * corresponding event in the ops log around this time. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Indicates the query and the number of streaming units to use for the streaming job. The name + * property of the transformation is required when specifying this property in a PUT request. + * This property cannot be modify via a PATCH operation. You must use the PATCH API available for + * the individual transformation. */ - readonly since?: string; + transformation?: Transformation; /** - * The opaque diagnostic code. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * A list of one or more outputs for the streaming job. The name property for each output is + * required when specifying this property in a PUT request. This property cannot be modify via a + * PATCH operation. You must use the PATCH API available for the individual output. */ - readonly code?: string; + outputs?: Output[]; /** - * The human-readable message describing the condition in detail. Localized in the - * Accept-Language of the client request. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly message?: string; + * A list of one or more functions for the streaming job. The name property for each function is + * required when specifying this property in a PUT request. This property cannot be modify via a + * PATCH operation. You must use the PATCH API available for the individual transformation. + */ + functions?: FunctionModel[]; + /** + * The current entity tag for the streaming job. 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. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly etag?: string; + /** + * The properties that are associated with an Azure Storage account with MSI + */ + jobStorageAccount?: JobStorageAccount; + /** + * Valid values are JobStorageAccount and SystemAccount. If set to JobStorageAccount, this + * requires the user to also specify jobStorageAccount property. Possible values include: + * 'SystemAccount', 'JobStorageAccount' + */ + contentStoragePolicy?: ContentStoragePolicy; + /** + * The cluster which streaming jobs will run on. + */ + cluster?: ClusterInfo; + /** + * Describes the system-assigned managed identity assigned to this job that can be used to + * authenticate with inputs and outputs. + */ + identity?: Identity; } /** - * Describes conditions applicable to the Input, Output, or the job overall, that warrant customer - * attention. + * Parameters supplied to the Start Streaming Job operation. */ -export interface Diagnostics { +export interface StartStreamingJobParameters { /** - * A collection of zero or more conditions applicable to the resource, or to the job overall, - * that warrant customer attention. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Value may be JobStartTime, CustomTime, or LastOutputEventTime to indicate whether the starting + * point of the output event stream should start whenever the job is started, start at a custom + * user time stamp specified via the outputStartTime property, or start from the last event + * output time. Possible values include: 'JobStartTime', 'CustomTime', 'LastOutputEventTime' */ - readonly conditions?: DiagnosticCondition[]; + outputStartMode?: OutputStartMode; + /** + * Value is either an ISO-8601 formatted time stamp that indicates the starting point of the + * output event stream, or null to indicate that the output event stream will start whenever the + * streaming job is started. This property must have a value if outputStartMode is set to + * CustomTime. + */ + outputStartTime?: Date; } /** - * Describes how input data is compressed + * Parameters supplied to the Scale Streaming Job operation. */ -export interface Compression { - type: string; +export interface ScaleStreamingJobParameters { + /** + * Specifies the number of streaming units that the streaming job will scale to. + */ + streamingUnits?: number; } /** - * Contains the possible cases for InputProperties. + * Contains the possible cases for FunctionBinding. */ -export type InputPropertiesUnion = InputProperties | StreamInputProperties | ReferenceInputProperties; +export type FunctionBindingUnion = FunctionBinding | JavaScriptFunctionBinding | AzureMachineLearningWebServiceFunctionBinding; /** - * The properties that are associated with an input. + * The physical binding of the function. For example, in the Azure Machine Learning web service’s + * case, this describes the endpoint. */ -export interface InputProperties { +export interface FunctionBinding { /** * Polymorphic Discriminator */ - type: "InputProperties"; + type: "FunctionBinding"; +} + +/** + * The binding to a JavaScript function. + */ +export interface JavaScriptFunctionBinding { /** - * Describes how data from an input is serialized or how data is serialized when written to an - * output. Required on PUT (CreateOrReplace) requests. + * Polymorphic Discriminator */ - serialization?: SerializationUnion; + type: "Microsoft.StreamAnalytics/JavascriptUdf"; /** - * Describes conditions applicable to the Input, Output, or the job overall, that warrant - * customer attention. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The JavaScript code containing a single function definition. For example: 'function (x, y) { + * return x + y; }' */ - readonly diagnostics?: Diagnostics; + script?: string; +} + +/** + * Describes an output column for the Azure Machine Learning web service endpoint. + */ +export interface AzureMachineLearningWebServiceOutputColumn { /** - * 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. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The name of the output column. */ - readonly etag?: string; - compression?: Compression; + name?: string; /** - * partitionKey Describes a key in the input data which is used for partitioning the input data + * The (Azure Machine Learning supported) data type of the output column. A list of valid Azure + * Machine Learning data types are described at + * https://msdn.microsoft.com/en-us/library/azure/dn905923.aspx . */ - partitionKey?: string; + dataType?: string; } /** - * An input object, containing all information associated with the named input. All inputs are - * contained under a streaming job. + * Describes an input column for the Azure Machine Learning web service endpoint. */ -export interface Input extends SubResource { +export interface AzureMachineLearningWebServiceInputColumn { /** - * The properties that are associated with an input. Required on PUT (CreateOrReplace) requests. + * The name of the input column. */ - properties?: InputPropertiesUnion; + name?: string; + /** + * The (Azure Machine Learning supported) data type of the input column. A list of valid Azure + * Machine Learning data types are described at + * https://msdn.microsoft.com/en-us/library/azure/dn905923.aspx . + */ + dataType?: string; + /** + * The zero based index of the function parameter this input maps to. + */ + mapTo?: number; } /** - * Contains the possible cases for StreamInputDataSource. - */ -export type StreamInputDataSourceUnion = StreamInputDataSource | BlobStreamInputDataSource | EventHubStreamInputDataSource | EventHubV2StreamInputDataSource | IoTHubStreamInputDataSource; - -/** - * Describes an input data source that contains stream data. + * The inputs for the Azure Machine Learning web service endpoint. */ -export interface StreamInputDataSource { +export interface AzureMachineLearningWebServiceInputs { /** - * Polymorphic Discriminator + * The name of the input. This is the name provided while authoring the endpoint. */ - type: "StreamInputDataSource"; + name?: string; + /** + * A list of input columns for the Azure Machine Learning web service endpoint. + */ + columnNames?: AzureMachineLearningWebServiceInputColumn[]; } /** - * The properties that are associated with an input containing stream data. + * The binding to an Azure Machine Learning web service. */ -export interface StreamInputProperties { +export interface AzureMachineLearningWebServiceFunctionBinding { /** * Polymorphic Discriminator */ - type: "Stream"; + type: "Microsoft.MachineLearning/WebService"; /** - * Describes how data from an input is serialized or how data is serialized when written to an - * output. Required on PUT (CreateOrReplace) requests. + * The Request-Response execute endpoint of the Azure Machine Learning web service. Find out more + * here: + * https://docs.microsoft.com/en-us/azure/machine-learning/machine-learning-consume-web-services#request-response-service-rrs */ - serialization?: SerializationUnion; + endpoint?: string; /** - * Describes conditions applicable to the Input, Output, or the job overall, that warrant - * customer attention. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The API key used to authenticate with Request-Response endpoint. */ - readonly diagnostics?: Diagnostics; + apiKey?: string; /** - * 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. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The inputs for the Azure Machine Learning web service endpoint. */ - readonly etag?: string; - compression?: Compression; + inputs?: AzureMachineLearningWebServiceInputs; /** - * partitionKey Describes a key in the input data which is used for partitioning the input data + * A list of outputs from the Azure Machine Learning web service endpoint execution. */ - partitionKey?: string; + outputs?: AzureMachineLearningWebServiceOutputColumn[]; /** - * Describes an input data source that contains stream data. Required on PUT (CreateOrReplace) - * requests. + * Number between 1 and 10000 describing maximum number of rows for every Azure ML RRS execute + * request. Default is 1000. */ - datasource?: StreamInputDataSourceUnion; + batchSize?: number; } /** - * Contains the possible cases for ReferenceInputDataSource. - */ -export type ReferenceInputDataSourceUnion = ReferenceInputDataSource | BlobReferenceInputDataSource | AzureSqlReferenceInputDataSource; - -/** - * Describes an input data source that contains reference data. + * Describes the output of a function. */ -export interface ReferenceInputDataSource { +export interface FunctionOutput { /** - * Polymorphic Discriminator + * The (Azure Stream Analytics supported) data type of the function output. A list of valid Azure + * Stream Analytics data types are described at + * https://msdn.microsoft.com/en-us/library/azure/dn835065.aspx */ - type: "ReferenceInputDataSource"; + dataType?: string; } /** - * The properties that are associated with an input containing reference data. + * Describes one input parameter of a function. */ -export interface ReferenceInputProperties { +export interface FunctionInput { /** - * Polymorphic Discriminator + * The (Azure Stream Analytics supported) data type of the function input parameter. A list of + * valid Azure Stream Analytics data types are described at + * https://msdn.microsoft.com/en-us/library/azure/dn835065.aspx */ - type: "Reference"; + dataType?: string; /** - * Describes how data from an input is serialized or how data is serialized when written to an - * output. Required on PUT (CreateOrReplace) requests. + * A flag indicating if the parameter is a configuration parameter. True if this input parameter + * is expected to be a constant. Default is false. */ - serialization?: SerializationUnion; + isConfigurationParameter?: boolean; +} + +/** + * The properties that are associated with a scalar function. + */ +export interface ScalarFunctionProperties { /** - * Describes conditions applicable to the Input, Output, or the job overall, that warrant - * customer attention. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Polymorphic Discriminator */ - readonly diagnostics?: Diagnostics; + type: "Scalar"; /** - * The current entity tag for the input. This is an opaque string. You can use it to detect + * 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. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly etag?: string; - compression?: Compression; /** - * partitionKey Describes a key in the input data which is used for partitioning the input data + * A list of inputs describing the parameters of the function. */ - partitionKey?: string; + inputs?: FunctionInput[]; /** - * Describes an input data source that contains reference data. Required on PUT (CreateOrReplace) - * requests. + * The output of the function. */ - datasource?: ReferenceInputDataSourceUnion; + output?: FunctionOutput; + /** + * The physical binding of the function. For example, in the Azure Machine Learning web service’s + * case, this describes the endpoint. + */ + binding?: FunctionBindingUnion; } /** - * Describes a blob input data source that contains stream data. + * Describes how data from an input is serialized or how data is serialized when written to an + * output in Avro format. */ -export interface BlobStreamInputDataSource { +export interface AvroSerialization { /** * Polymorphic Discriminator */ - type: "Microsoft.Storage/Blob"; + type: "Avro"; /** - * A list of one or more Azure Storage accounts. Required on PUT (CreateOrReplace) requests. + * The properties that are associated with the Avro serialization type. Required on PUT + * (CreateOrReplace) requests. */ - storageAccounts?: StorageAccount[]; + properties?: any; +} + +/** + * Describes how data from an input is serialized or how data is serialized when written to an + * output in JSON format. + */ +export interface JsonSerialization { /** - * The name of a container within the associated Storage account. This container contains either - * the blob(s) to be read from or written to. Required on PUT (CreateOrReplace) requests. + * Polymorphic Discriminator */ - container?: string; + type: "Json"; /** - * The blob path pattern. Not a regular expression. It represents a pattern against which blob - * names will be matched to determine whether or not they should be included as input or output - * to the job. See - * https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-input or - * https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output for a more - * detailed explanation and example. + * Specifies the encoding of the incoming data in the case of input and the encoding of outgoing + * data in the case of output. Required on PUT (CreateOrReplace) requests. Possible values + * include: 'UTF8' */ - pathPattern?: string; - /** - * The date format. Wherever {date} appears in pathPattern, the value of this property is used as - * the date format instead. - */ - dateFormat?: string; - /** - * The time format. Wherever {time} appears in pathPattern, the value of this property is used as - * the time format instead. - */ - timeFormat?: string; + encoding?: Encoding; /** - * The partition count of the blob input data source. Range 1 - 256. + * This property only applies to JSON serialization of outputs only. It is not applicable to + * inputs. This property specifies the format of the JSON the output will be written in. The + * currently supported values are 'lineSeparated' indicating the output will be formatted by + * having each JSON object separated by a new line and 'array' indicating the output will be + * formatted as an array of JSON objects. Default value is 'lineSeparated' if left null. Possible + * values include: 'LineSeparated', 'Array' */ - sourcePartitionCount?: number; + format?: JsonOutputSerializationFormat; } /** - * Describes an Event Hub input data source that contains stream data. + * Describes how data from an input is serialized or how data is serialized when written to an + * output in CSV format. */ -export interface EventHubStreamInputDataSource { +export interface CsvSerialization { /** * Polymorphic Discriminator */ - type: "Microsoft.ServiceBus/EventHub"; - /** - * The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus - * Topic, etc. Required on PUT (CreateOrReplace) requests. - */ - serviceBusNamespace?: string; - /** - * The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. - * Required on PUT (CreateOrReplace) requests. - */ - sharedAccessPolicyName?: string; - /** - * The shared access policy key for the specified shared access policy. Required on PUT - * (CreateOrReplace) requests. - */ - sharedAccessPolicyKey?: string; - /** - * Authentication Mode. Possible values include: 'Msi', 'UserToken', 'ConnectionString' - */ - authenticationMode?: AuthenticationMode; + type: "Csv"; /** - * The name of the Event Hub. Required on PUT (CreateOrReplace) requests. + * Specifies the delimiter that will be used to separate comma-separated value (CSV) records. See + * https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-input or + * https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output for a list + * of supported values. Required on PUT (CreateOrReplace) requests. */ - eventHubName?: string; + fieldDelimiter?: string; /** - * The name of an Event Hub Consumer Group that should be used to read events from the Event Hub. - * Specifying distinct consumer group names for multiple inputs allows each of those inputs to - * receive the same events from the Event Hub. If not specified, the input uses the Event Hub’s - * default consumer group. + * Specifies the encoding of the incoming data in the case of input and the encoding of outgoing + * data in the case of output. Required on PUT (CreateOrReplace) requests. Possible values + * include: 'UTF8' */ - consumerGroupName?: string; + encoding?: Encoding; } /** - * Describes an Event Hub input data source that contains stream data. + * Describes how data from an input is serialized or how data is serialized when written to an + * output in Parquet format. */ -export interface EventHubV2StreamInputDataSource { +export interface ParquetSerialization { /** * Polymorphic Discriminator */ - type: "Microsoft.EventHub/EventHub"; - /** - * The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus - * Topic, etc. Required on PUT (CreateOrReplace) requests. - */ - serviceBusNamespace?: string; - /** - * The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. - * Required on PUT (CreateOrReplace) requests. - */ - sharedAccessPolicyName?: string; + type: "Parquet"; /** - * The shared access policy key for the specified shared access policy. Required on PUT + * The properties that are associated with the Parquet serialization type. Required on PUT * (CreateOrReplace) requests. */ - sharedAccessPolicyKey?: string; + properties?: any; +} + +/** + * The properties that are associated with data sources that use OAuth as their authentication + * model. + */ +export interface OAuthBasedDataSourceProperties { /** - * Authentication Mode. Possible values include: 'Msi', 'UserToken', 'ConnectionString' + * A refresh token that can be used to obtain a valid access token that can then be used to + * authenticate with the data source. A valid refresh token is currently only obtainable via the + * Azure Portal. It is recommended to put a dummy string value here when creating the data source + * and then going to the Azure Portal to authenticate the data source which will update this + * property with a valid refresh token. Required on PUT (CreateOrReplace) requests. */ - authenticationMode?: AuthenticationMode; + refreshToken?: string; /** - * The name of the Event Hub. Required on PUT (CreateOrReplace) requests. + * The user principal name (UPN) of the user that was used to obtain the refresh token. Use this + * property to help remember which user was used to obtain the refresh token. */ - eventHubName?: string; + tokenUserPrincipalName?: string; /** - * The name of an Event Hub Consumer Group that should be used to read events from the Event Hub. - * Specifying distinct consumer group names for multiple inputs allows each of those inputs to - * receive the same events from the Event Hub. If not specified, the input uses the Event Hub’s - * default consumer group. + * The user display name of the user that was used to obtain the refresh token. Use this property + * to help remember which user was used to obtain the refresh token. */ - consumerGroupName?: string; + tokenUserDisplayName?: string; } /** - * Describes an IoT Hub input data source that contains stream data. + * Describes an Azure Data Lake Store output data source. */ -export interface IoTHubStreamInputDataSource { +export interface AzureDataLakeStoreOutputDataSource { /** * Polymorphic Discriminator */ - type: "Microsoft.Devices/IotHubs"; - /** - * The name or the URI of the IoT Hub. Required on PUT (CreateOrReplace) requests. - */ - iotHubNamespace?: string; - /** - * The shared access policy name for the IoT Hub. This policy must contain at least the Service - * connect permission. Required on PUT (CreateOrReplace) requests. - */ - sharedAccessPolicyName?: string; - /** - * The shared access policy key for the specified shared access policy. Required on PUT - * (CreateOrReplace) requests. - */ - sharedAccessPolicyKey?: string; + type: "Microsoft.DataLake/Accounts"; /** - * The name of an IoT Hub Consumer Group that should be used to read events from the IoT Hub. If - * not specified, the input uses the Iot Hub’s default consumer group. + * A refresh token that can be used to obtain a valid access token that can then be used to + * authenticate with the data source. A valid refresh token is currently only obtainable via the + * Azure Portal. It is recommended to put a dummy string value here when creating the data source + * and then going to the Azure Portal to authenticate the data source which will update this + * property with a valid refresh token. Required on PUT (CreateOrReplace) requests. */ - consumerGroupName?: string; + refreshToken?: string; /** - * The IoT Hub endpoint to connect to (ie. messages/events, messages/operationsMonitoringEvents, - * etc.). + * The user principal name (UPN) of the user that was used to obtain the refresh token. Use this + * property to help remember which user was used to obtain the refresh token. */ - endpoint?: string; -} - -/** - * Describes a blob input data source that contains reference data. - */ -export interface BlobReferenceInputDataSource { + tokenUserPrincipalName?: string; /** - * Polymorphic Discriminator + * The user display name of the user that was used to obtain the refresh token. Use this property + * to help remember which user was used to obtain the refresh token. */ - type: "Microsoft.Storage/Blob"; + tokenUserDisplayName?: string; /** - * A list of one or more Azure Storage accounts. Required on PUT (CreateOrReplace) requests. + * The name of the Azure Data Lake Store account. Required on PUT (CreateOrReplace) requests. */ - storageAccounts?: StorageAccount[]; + accountName?: string; /** - * The name of a container within the associated Storage account. This container contains either - * the blob(s) to be read from or written to. Required on PUT (CreateOrReplace) requests. + * The tenant id of the user used to obtain the refresh token. Required on PUT (CreateOrReplace) + * requests. */ - container?: string; + tenantId?: string; /** - * The blob path pattern. Not a regular expression. It represents a pattern against which blob - * names will be matched to determine whether or not they should be included as input or output - * to the job. See - * https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-input or - * https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output for a more - * detailed explanation and example. + * The location of the file to which the output should be written to. Required on PUT + * (CreateOrReplace) requests. */ - pathPattern?: string; + filePathPrefix?: string; /** - * The date format. Wherever {date} appears in pathPattern, the value of this property is used as - * the date format instead. + * The date format. Wherever {date} appears in filePathPrefix, the value of this property is used + * as the date format instead. */ dateFormat?: string; /** - * The time format. Wherever {time} appears in pathPattern, the value of this property is used as - * the time format instead. + * The time format. Wherever {time} appears in filePathPrefix, the value of this property is used + * as the time format instead. */ timeFormat?: string; + /** + * Authentication Mode. Possible values include: 'Msi', 'UserToken', 'ConnectionString' + */ + authenticationMode?: AuthenticationMode; } /** - * The properties that are associated with an Azure Storage account + * Describes a Power BI output data source. */ -export interface StorageAccount { +export interface PowerBIOutputDataSource { /** - * The name of the Azure Storage account. Required on PUT (CreateOrReplace) requests. + * Polymorphic Discriminator */ - accountName?: string; + type: "PowerBI"; /** - * The account key for the Azure Storage account. Required on PUT (CreateOrReplace) requests. + * A refresh token that can be used to obtain a valid access token that can then be used to + * authenticate with the data source. A valid refresh token is currently only obtainable via the + * Azure Portal. It is recommended to put a dummy string value here when creating the data source + * and then going to the Azure Portal to authenticate the data source which will update this + * property with a valid refresh token. Required on PUT (CreateOrReplace) requests. */ - accountKey?: string; -} - -/** - * The properties that are associated with a blob data source. - */ -export interface BlobDataSourceProperties { + refreshToken?: string; /** - * A list of one or more Azure Storage accounts. Required on PUT (CreateOrReplace) requests. + * The user principal name (UPN) of the user that was used to obtain the refresh token. Use this + * property to help remember which user was used to obtain the refresh token. */ - storageAccounts?: StorageAccount[]; + tokenUserPrincipalName?: string; /** - * The name of a container within the associated Storage account. This container contains either - * the blob(s) to be read from or written to. Required on PUT (CreateOrReplace) requests. + * The user display name of the user that was used to obtain the refresh token. Use this property + * to help remember which user was used to obtain the refresh token. */ - container?: string; + tokenUserDisplayName?: string; /** - * The blob path pattern. Not a regular expression. It represents a pattern against which blob - * names will be matched to determine whether or not they should be included as input or output - * to the job. See - * https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-input or - * https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output for a more - * detailed explanation and example. + * The name of the Power BI dataset. Required on PUT (CreateOrReplace) requests. */ - pathPattern?: string; + dataset?: string; /** - * The date format. Wherever {date} appears in pathPattern, the value of this property is used as - * the date format instead. + * The name of the Power BI table under the specified dataset. Required on PUT (CreateOrReplace) + * requests. */ - dateFormat?: string; + table?: string; /** - * The time format. Wherever {time} appears in pathPattern, the value of this property is used as - * the time format instead. + * The ID of the Power BI group. */ - timeFormat?: string; + groupId?: string; + /** + * The name of the Power BI group. Use this property to help remember which specific Power BI + * group id was used. + */ + groupName?: string; + /** + * Authentication Mode. Possible values include: 'Msi', 'UserToken', 'ConnectionString' + */ + authenticationMode?: AuthenticationMode; } /** @@ -979,345 +1002,286 @@ export interface EventHubDataSourceProperties extends ServiceBusDataSourceProper } /** - * Describes how data from an input is serialized or how data is serialized when written to an - * output in Parquet format. + * Describes a Service Bus Topic output data source. */ -export interface ParquetSerialization { +export interface ServiceBusTopicOutputDataSource { /** * Polymorphic Discriminator */ - type: "Parquet"; + type: "Microsoft.ServiceBus/Topic"; /** - * The properties that are associated with the Parquet serialization type. Required on PUT - * (CreateOrReplace) requests. + * The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus + * Topic, etc. Required on PUT (CreateOrReplace) requests. */ - properties?: any; -} - -/** - * Describes how data from an input is serialized or how data is serialized when written to an - * output in custom format. - */ -export interface CustomClrSerialization { + serviceBusNamespace?: string; /** - * Polymorphic Discriminator + * The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. + * Required on PUT (CreateOrReplace) requests. */ - type: "CustomClr"; + sharedAccessPolicyName?: string; /** - * The serialization library path. + * The shared access policy key for the specified shared access policy. Required on PUT + * (CreateOrReplace) requests. */ - serializationDllPath?: string; + sharedAccessPolicyKey?: string; /** - * The serialization class name. + * Authentication Mode. Possible values include: 'Msi', 'UserToken', 'ConnectionString' */ - serializationClassName?: string; -} - -/** - * Describes how data from an input is serialized or how data is serialized when written to an - * output in CSV format. - */ -export interface CsvSerialization { + authenticationMode?: AuthenticationMode; /** - * Polymorphic Discriminator + * The name of the Service Bus Topic. Required on PUT (CreateOrReplace) requests. */ - type: "Csv"; + topicName?: string; /** - * Specifies the delimiter that will be used to separate comma-separated value (CSV) records. See - * https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-input or - * https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output for a list - * of supported values. Required on PUT (CreateOrReplace) requests. + * A string array of the names of output columns to be attached to Service Bus messages as custom + * properties. */ - fieldDelimiter?: string; + propertyColumns?: string[]; /** - * Specifies the encoding of the incoming data in the case of input and the encoding of outgoing - * data in the case of output. Required on PUT (CreateOrReplace) requests. Possible values - * include: 'UTF8' + * The system properties associated with the Service Bus Topic Output. The following system + * properties are supported: ReplyToSessionId, ContentType, To, Subject, CorrelationId, + * TimeToLive, PartitionKey, SessionId, ScheduledEnqueueTime, MessageId, ReplyTo, Label, + * ScheduledEnqueueTimeUtc. */ - encoding?: Encoding; + systemPropertyColumns?: { [propertyName: string]: string }; } /** - * Describes how data from an input is serialized or how data is serialized when written to an - * output in JSON format. + * Describes a Service Bus Queue output data source. */ -export interface JsonSerialization { +export interface ServiceBusQueueOutputDataSource { /** * Polymorphic Discriminator */ - type: "Json"; + type: "Microsoft.ServiceBus/Queue"; /** - * Specifies the encoding of the incoming data in the case of input and the encoding of outgoing - * data in the case of output. Required on PUT (CreateOrReplace) requests. Possible values - * include: 'UTF8' + * The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus + * Topic, etc. Required on PUT (CreateOrReplace) requests. */ - encoding?: Encoding; + serviceBusNamespace?: string; /** - * This property only applies to JSON serialization of outputs only. It is not applicable to - * inputs. This property specifies the format of the JSON the output will be written in. The - * currently supported values are 'lineSeparated' indicating the output will be formatted by - * having each JSON object separated by a new line and 'array' indicating the output will be - * formatted as an array of JSON objects. Default value is 'lineSeparated' if left null. Possible - * values include: 'LineSeparated', 'Array' + * The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. + * Required on PUT (CreateOrReplace) requests. */ - format?: JsonOutputSerializationFormat; -} - -/** - * Describes how data from an input is serialized or how data is serialized when written to an - * output in Avro format. - */ -export interface AvroSerialization { + sharedAccessPolicyName?: string; /** - * Polymorphic Discriminator + * The shared access policy key for the specified shared access policy. Required on PUT + * (CreateOrReplace) requests. */ - type: "Avro"; + sharedAccessPolicyKey?: string; /** - * The properties that are associated with the Avro serialization type. Required on PUT - * (CreateOrReplace) requests. + * Authentication Mode. Possible values include: 'Msi', 'UserToken', 'ConnectionString' */ - properties?: any; -} - -/** - * Describes how identity is verified - */ -export interface Identity { - tenantId?: string; - principalId?: string; - type?: string; -} - -/** - * An interface representing AzureSqlReferenceInputDataSourceProperties. - */ -export interface AzureSqlReferenceInputDataSourceProperties { + authenticationMode?: AuthenticationMode; /** - * This element is associated with the datasource element. This is the name of the server that - * contains the database that will be written to. + * The name of the Service Bus Queue. Required on PUT (CreateOrReplace) requests. */ - server?: string; + queueName?: string; /** - * This element is associated with the datasource element. This is the name of the database that - * output will be written to. + * A string array of the names of output columns to be attached to Service Bus messages as custom + * properties. */ - database?: string; + propertyColumns?: string[]; /** - * This element is associated with the datasource element. This is the user name that will be - * used to connect to the SQL Database instance. + * The system properties associated with the Service Bus Queue. The following system properties + * are supported: ReplyToSessionId, ContentType, To, Subject, CorrelationId, TimeToLive, + * PartitionKey, SessionId, ScheduledEnqueueTime, MessageId, ReplyTo, Label, + * ScheduledEnqueueTimeUtc. */ - user?: string; + systemPropertyColumns?: any; +} + +/** + * Describes a DocumentDB output data source. + */ +export interface DocumentDbOutputDataSource { /** - * This element is associated with the datasource element. This is the password that will be used - * to connect to the SQL Database instance. + * Polymorphic Discriminator */ - password?: string; + type: "Microsoft.Storage/DocumentDB"; /** - * This element is associated with the datasource element. The name of the table in the Azure SQL - * database.. + * The DocumentDB account name or ID. Required on PUT (CreateOrReplace) requests. */ - table?: string; + accountId?: string; /** - * This element is associated with the datasource element. This element is of enum type. It - * indicates what kind of data refresh option do we want to - * use:Static/RefreshPeriodicallyWithFull/RefreshPeriodicallyWithDelta + * The account key for the DocumentDB account. Required on PUT (CreateOrReplace) requests. */ - refreshType?: string; + accountKey?: string; /** - * This element is associated with the datasource element. This indicates how frequently the data - * will be fetched from the database. It is of DateTime format. + * The name of the DocumentDB database. Required on PUT (CreateOrReplace) requests. */ - refreshRate?: string; + database?: string; /** - * This element is associated with the datasource element. This query is used to fetch data from - * the sql database. + * The collection name pattern for the collections to be used. The collection name format can be + * constructed using the optional {partition} token, where partitions start from 0. See the + * DocumentDB section of + * https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output for more + * information. Required on PUT (CreateOrReplace) requests. */ - fullSnapshotQuery?: string; + collectionNamePattern?: string; /** - * This element is associated with the datasource element. This query is used to fetch - * incremental changes from the SQL database. To use this option, we recommend using temporal - * tables in Azure SQL Database. + * The name of the field in output events used to specify the key for partitioning output across + * collections. If 'collectionNamePattern' contains the {partition} token, this property is + * required to be specified. */ - deltaSnapshotQuery?: string; -} - -/** - * Describes an Azure SQL database reference input data source. - */ -export interface AzureSqlReferenceInputDataSource { + partitionKey?: string; /** - * Polymorphic Discriminator + * The name of the field in output events used to specify the primary key which insert or update + * operations are based on. */ - type: "Microsoft.Sql/Server/Database"; - properties?: AzureSqlReferenceInputDataSourceProperties; + documentId?: string; } /** - * Contains the possible cases for OutputDataSource. - */ -export type OutputDataSourceUnion = OutputDataSource | BlobOutputDataSource | AzureTableOutputDataSource | EventHubOutputDataSource | EventHubV2OutputDataSource | AzureSqlDatabaseOutputDataSource | AzureSynapseOutputDataSource | DocumentDbOutputDataSource | AzureFunctionOutputDataSource | ServiceBusQueueOutputDataSource | ServiceBusTopicOutputDataSource | PowerBIOutputDataSource | AzureDataLakeStoreOutputDataSource; - -/** - * Describes the data source that output will be written to. + * The properties that are associated with an Azure SQL database data source. */ -export interface OutputDataSource { +export interface AzureSynapseDataSourceProperties { /** - * Polymorphic Discriminator + * The name of the SQL server containing the Azure SQL database. Required on PUT + * (CreateOrReplace) requests. */ - type: "OutputDataSource"; -} - -/** - * An output object, containing all information associated with the named output. All outputs are - * contained under a streaming job. - */ -export interface Output extends SubResource { + server?: string; /** - * Describes the data source that output will be written to. Required on PUT (CreateOrReplace) - * requests. + * The name of the Azure SQL database. Required on PUT (CreateOrReplace) requests. */ - datasource?: OutputDataSourceUnion; - timeWindow?: string; - sizeWindow?: number; + database?: string; /** - * Describes how data from an input is serialized or how data is serialized when written to an - * output. Required on PUT (CreateOrReplace) requests. + * The name of the table in the Azure SQL database. Required on PUT (CreateOrReplace) requests. */ - serialization?: SerializationUnion; + table?: string; /** - * Describes conditions applicable to the Input, Output, or the job overall, that warrant - * customer attention. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The user name that will be used to connect to the Azure SQL database. Required on PUT + * (CreateOrReplace) requests. */ - readonly diagnostics?: Diagnostics; + user?: string; /** - * The current entity tag for the output. 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. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The password that will be used to connect to the Azure SQL database. Required on PUT + * (CreateOrReplace) requests. */ - readonly etag?: string; + password?: string; } /** - * Describes a blob output data source. + * Describes an Azure Synapse output data source. */ -export interface BlobOutputDataSource { +export interface AzureSynapseOutputDataSource { /** * Polymorphic Discriminator */ - type: "Microsoft.Storage/Blob"; - /** - * A list of one or more Azure Storage accounts. Required on PUT (CreateOrReplace) requests. - */ - storageAccounts?: StorageAccount[]; + type: "Microsoft.Sql/Server/DataWarehouse"; /** - * The name of a container within the associated Storage account. This container contains either - * the blob(s) to be read from or written to. Required on PUT (CreateOrReplace) requests. + * The name of the SQL server containing the Azure SQL database. Required on PUT + * (CreateOrReplace) requests. */ - container?: string; + server?: string; /** - * The blob path pattern. Not a regular expression. It represents a pattern against which blob - * names will be matched to determine whether or not they should be included as input or output - * to the job. See - * https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-input or - * https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output for a more - * detailed explanation and example. + * The name of the Azure SQL database. Required on PUT (CreateOrReplace) requests. */ - pathPattern?: string; + database?: string; /** - * The date format. Wherever {date} appears in pathPattern, the value of this property is used as - * the date format instead. + * The name of the table in the Azure SQL database. Required on PUT (CreateOrReplace) requests. */ - dateFormat?: string; + table?: string; /** - * The time format. Wherever {time} appears in pathPattern, the value of this property is used as - * the time format instead. + * The user name that will be used to connect to the Azure SQL database. Required on PUT + * (CreateOrReplace) requests. */ - timeFormat?: string; + user?: string; /** - * Authentication Mode. Possible values include: 'Msi', 'UserToken', 'ConnectionString' + * The password that will be used to connect to the Azure SQL database. Required on PUT + * (CreateOrReplace) requests. */ - authenticationMode?: AuthenticationMode; + password?: string; } /** - * Describes an Azure Table output data source. + * The properties that are associated with an Azure SQL database data source. */ -export interface AzureTableOutputDataSource { +export interface AzureSqlDatabaseDataSourceProperties { /** - * Polymorphic Discriminator + * The name of the SQL server containing the Azure SQL database. Required on PUT + * (CreateOrReplace) requests. */ - type: "Microsoft.Storage/Table"; + server?: string; /** - * The name of the Azure Storage account. Required on PUT (CreateOrReplace) requests. + * The name of the Azure SQL database. Required on PUT (CreateOrReplace) requests. */ - accountName?: string; + database?: string; /** - * The account key for the Azure Storage account. Required on PUT (CreateOrReplace) requests. + * The user name that will be used to connect to the Azure SQL database. Required on PUT + * (CreateOrReplace) requests. */ - accountKey?: string; + user?: string; /** - * The name of the Azure Table. Required on PUT (CreateOrReplace) requests. + * The password that will be used to connect to the Azure SQL database. Required on PUT + * (CreateOrReplace) requests. */ - table?: string; + password?: string; /** - * This element indicates the name of a column from the SELECT statement in the query that will - * be used as the partition key for the Azure Table. Required on PUT (CreateOrReplace) requests. + * The name of the table in the Azure SQL database. Required on PUT (CreateOrReplace) requests. */ - partitionKey?: string; + table?: string; /** - * This element indicates the name of a column from the SELECT statement in the query that will - * be used as the row key for the Azure Table. Required on PUT (CreateOrReplace) requests. + * Max Batch count for write to Sql database, the default value is 10,000. Optional on PUT + * requests. */ - rowKey?: string; + maxBatchCount?: number; /** - * If specified, each item in the array is the name of a column to remove (if present) from - * output event entities. + * Max Writer count, currently only 1(single writer) and 0(based on query partition) are + * available. Optional on PUT requests. */ - columnsToRemove?: string[]; + maxWriterCount?: number; /** - * The number of rows to write to the Azure Table at a time. + * Authentication Mode. Possible values include: 'Msi', 'UserToken', 'ConnectionString' */ - batchSize?: number; + authenticationMode?: AuthenticationMode; } /** - * Describes an Event Hub output data source. + * Describes an Azure SQL database output data source. */ -export interface EventHubOutputDataSource { +export interface AzureSqlDatabaseOutputDataSource { /** * Polymorphic Discriminator */ - type: "Microsoft.ServiceBus/EventHub"; + type: "Microsoft.Sql/Server/Database"; /** - * The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus - * Topic, etc. Required on PUT (CreateOrReplace) requests. + * The name of the SQL server containing the Azure SQL database. Required on PUT + * (CreateOrReplace) requests. */ - serviceBusNamespace?: string; + server?: string; /** - * The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. - * Required on PUT (CreateOrReplace) requests. + * The name of the Azure SQL database. Required on PUT (CreateOrReplace) requests. */ - sharedAccessPolicyName?: string; + database?: string; /** - * The shared access policy key for the specified shared access policy. Required on PUT + * The user name that will be used to connect to the Azure SQL database. Required on PUT * (CreateOrReplace) requests. */ - sharedAccessPolicyKey?: string; + user?: string; /** - * Authentication Mode. Possible values include: 'Msi', 'UserToken', 'ConnectionString' + * The password that will be used to connect to the Azure SQL database. Required on PUT + * (CreateOrReplace) requests. */ - authenticationMode?: AuthenticationMode; + password?: string; /** - * The name of the Event Hub. Required on PUT (CreateOrReplace) requests. + * The name of the table in the Azure SQL database. Required on PUT (CreateOrReplace) requests. */ - eventHubName?: string; + table?: string; /** - * The key/column that is used to determine to which partition to send event data. + * Max Batch count for write to Sql database, the default value is 10,000. Optional on PUT + * requests. */ - partitionKey?: string; - propertyColumns?: string[]; + maxBatchCount?: number; + /** + * Max Writer count, currently only 1(single writer) and 0(based on query partition) are + * available. Optional on PUT requests. + */ + maxWriterCount?: number; + /** + * Authentication Mode. Possible values include: 'Msi', 'UserToken', 'ConnectionString' + */ + authenticationMode?: AuthenticationMode; } /** @@ -1355,756 +1319,674 @@ export interface EventHubV2OutputDataSource { * The key/column that is used to determine to which partition to send event data. */ partitionKey?: string; + /** + * The properties associated with this Event Hub output. + */ propertyColumns?: string[]; } /** - * Describes an Azure SQL database output data source. + * Describes an Event Hub output data source. */ -export interface AzureSqlDatabaseOutputDataSource { +export interface EventHubOutputDataSource { /** * Polymorphic Discriminator */ - type: "Microsoft.Sql/Server/Database"; - /** - * The name of the SQL server containing the Azure SQL database. Required on PUT - * (CreateOrReplace) requests. - */ - server?: string; + type: "Microsoft.ServiceBus/EventHub"; /** - * The name of the Azure SQL database. Required on PUT (CreateOrReplace) requests. + * The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus + * Topic, etc. Required on PUT (CreateOrReplace) requests. */ - database?: string; + serviceBusNamespace?: string; /** - * The user name that will be used to connect to the Azure SQL database. Required on PUT - * (CreateOrReplace) requests. + * The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. + * Required on PUT (CreateOrReplace) requests. */ - user?: string; + sharedAccessPolicyName?: string; /** - * The password that will be used to connect to the Azure SQL database. Required on PUT + * The shared access policy key for the specified shared access policy. Required on PUT * (CreateOrReplace) requests. */ - password?: string; + sharedAccessPolicyKey?: string; /** - * The name of the table in the Azure SQL database. Required on PUT (CreateOrReplace) requests. + * Authentication Mode. Possible values include: 'Msi', 'UserToken', 'ConnectionString' */ - table?: string; + authenticationMode?: AuthenticationMode; /** - * Max Batch count for write to Sql database, the default value is 10,000. Optional on PUT - * requests. + * The name of the Event Hub. Required on PUT (CreateOrReplace) requests. */ - maxBatchCount?: number; + eventHubName?: string; /** - * Max Write r count, currently only 1(single writer) and 0(based on query partition) are - * available. Optional on PUT requests. + * The key/column that is used to determine to which partition to send event data. */ - maxWriterCount?: number; + partitionKey?: string; /** - * Authentication Mode. Possible values include: 'Msi', 'UserToken', 'ConnectionString' + * The properties associated with this Event Hub output. */ - authenticationMode?: AuthenticationMode; + propertyColumns?: string[]; } /** - * Describes an Azure Synapse output data source. + * Describes an Azure Table output data source. */ -export interface AzureSynapseOutputDataSource { +export interface AzureTableOutputDataSource { /** * Polymorphic Discriminator */ - type: "Microsoft.Sql/Server/DataWarehouse"; + type: "Microsoft.Storage/Table"; /** - * The name of the SQL server containing the Azure SQL database. Required on PUT - * (CreateOrReplace) requests. + * The name of the Azure Storage account. Required on PUT (CreateOrReplace) requests. */ - server?: string; + accountName?: string; /** - * The name of the Azure SQL database. Required on PUT (CreateOrReplace) requests. + * The account key for the Azure Storage account. Required on PUT (CreateOrReplace) requests. */ - database?: string; + accountKey?: string; /** - * The name of the table in the Azure SQL database. Required on PUT (CreateOrReplace) requests. + * The name of the Azure Table. Required on PUT (CreateOrReplace) requests. */ table?: string; /** - * The user name that will be used to connect to the Azure SQL database. Required on PUT - * (CreateOrReplace) requests. + * This element indicates the name of a column from the SELECT statement in the query that will + * be used as the partition key for the Azure Table. Required on PUT (CreateOrReplace) requests. */ - user?: string; + partitionKey?: string; /** - * The password that will be used to connect to the Azure SQL database. Required on PUT - * (CreateOrReplace) requests. + * This element indicates the name of a column from the SELECT statement in the query that will + * be used as the row key for the Azure Table. Required on PUT (CreateOrReplace) requests. */ - password?: string; + rowKey?: string; + /** + * If specified, each item in the array is the name of a column to remove (if present) from + * output event entities. + */ + columnsToRemove?: string[]; + /** + * The number of rows to write to the Azure Table at a time. + */ + batchSize?: number; } /** - * The properties that are associated with an Azure SQL database data source. + * The properties that are associated with a blob data source. */ -export interface AzureSynapseDataSourceProperties { +export interface BlobDataSourceProperties { /** - * The name of the SQL server containing the Azure SQL database. Required on PUT - * (CreateOrReplace) requests. + * A list of one or more Azure Storage accounts. Required on PUT (CreateOrReplace) requests. */ - server?: string; + storageAccounts?: StorageAccount[]; /** - * The name of the Azure SQL database. Required on PUT (CreateOrReplace) requests. + * The name of a container within the associated Storage account. This container contains either + * the blob(s) to be read from or written to. Required on PUT (CreateOrReplace) requests. */ - database?: string; + container?: string; /** - * The name of the table in the Azure SQL database. Required on PUT (CreateOrReplace) requests. + * The blob path pattern. Not a regular expression. It represents a pattern against which blob + * names will be matched to determine whether or not they should be included as input or output + * to the job. See + * https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-input or + * https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output for a more + * detailed explanation and example. */ - table?: string; + pathPattern?: string; /** - * The user name that will be used to connect to the Azure SQL database. Required on PUT - * (CreateOrReplace) requests. + * The date format. Wherever {date} appears in pathPattern, the value of this property is used as + * the date format instead. */ - user?: string; + dateFormat?: string; /** - * The password that will be used to connect to the Azure SQL database. Required on PUT - * (CreateOrReplace) requests. + * The time format. Wherever {time} appears in pathPattern, the value of this property is used as + * the time format instead. */ - password?: string; + timeFormat?: string; } /** - * Describes a DocumentDB output data source. + * Describes a blob output data source. */ -export interface DocumentDbOutputDataSource { +export interface BlobOutputDataSource { /** * Polymorphic Discriminator */ - type: "Microsoft.Storage/DocumentDB"; + type: "Microsoft.Storage/Blob"; /** - * The DocumentDB account name or ID. Required on PUT (CreateOrReplace) requests. + * A list of one or more Azure Storage accounts. Required on PUT (CreateOrReplace) requests. */ - accountId?: string; + storageAccounts?: StorageAccount[]; /** - * The account key for the DocumentDB account. Required on PUT (CreateOrReplace) requests. + * The name of a container within the associated Storage account. This container contains either + * the blob(s) to be read from or written to. Required on PUT (CreateOrReplace) requests. */ - accountKey?: string; + container?: string; /** - * The name of the DocumentDB database. Required on PUT (CreateOrReplace) requests. + * The blob path pattern. Not a regular expression. It represents a pattern against which blob + * names will be matched to determine whether or not they should be included as input or output + * to the job. See + * https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-input or + * https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output for a more + * detailed explanation and example. */ - database?: string; + pathPattern?: string; /** - * The collection name pattern for the collections to be used. The collection name format can be - * constructed using the optional {partition} token, where partitions start from 0. See the - * DocumentDB section of - * https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output for more - * information. Required on PUT (CreateOrReplace) requests. + * The date format. Wherever {date} appears in pathPattern, the value of this property is used as + * the date format instead. */ - collectionNamePattern?: string; + dateFormat?: string; /** - * The name of the field in output events used to specify the key for partitioning output across - * collections. If 'collectionNamePattern' contains the {partition} token, this property is - * required to be specified. + * The time format. Wherever {time} appears in pathPattern, the value of this property is used as + * the time format instead. */ - partitionKey?: string; + timeFormat?: string; /** - * The name of the field in output events used to specify the primary key which insert or update - * operations are based on. + * Authentication Mode. Possible values include: 'Msi', 'UserToken', 'ConnectionString' */ - documentId?: string; + authenticationMode?: AuthenticationMode; } /** - * Defines the metadata of AzureFunctionOutputDataSource + * Contains the possible cases for ReferenceInputDataSource. + */ +export type ReferenceInputDataSourceUnion = ReferenceInputDataSource | AzureSqlReferenceInputDataSource | BlobReferenceInputDataSource; + +/** + * Describes an input data source that contains reference data. */ -export interface AzureFunctionOutputDataSource { +export interface ReferenceInputDataSource { /** * Polymorphic Discriminator */ - type: "Microsoft.AzureFunction"; - /** - * The name of your Azure Functions app. - */ - functionAppName?: string; - /** - * The name of the function in your Azure Functions app. - */ - functionName?: string; + type: "ReferenceInputDataSource"; +} + +/** + * Describes an Azure SQL database reference input data source. + */ +export interface AzureSqlReferenceInputDataSource { /** - * If you want to use an Azure Function from another subscription, you can do so by providing the - * key to access your function. + * Polymorphic Discriminator */ - apiKey?: string; + type: "Microsoft.Sql/Server/Database"; /** - * A property that lets you set the maximum size for each output batch that's sent to your Azure - * function. The input unit is in bytes. By default, this value is 262,144 bytes (256 KB). + * This element is associated with the datasource element. This is the name of the server that + * contains the database that will be written to. */ - maxBatchSize?: number; + server?: string; /** - * A property that lets you specify the maximum number of events in each batch that's sent to - * Azure Functions. The default value is 100. + * This element is associated with the datasource element. This is the name of the database that + * output will be written to. */ - maxBatchCount?: number; -} - -/** - * Describes a Service Bus Queue output data source. - */ -export interface ServiceBusQueueOutputDataSource { + database?: string; /** - * Polymorphic Discriminator + * This element is associated with the datasource element. This is the user name that will be + * used to connect to the SQL Database instance. */ - type: "Microsoft.ServiceBus/Queue"; + user?: string; /** - * The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus - * Topic, etc. Required on PUT (CreateOrReplace) requests. + * This element is associated with the datasource element. This is the password that will be used + * to connect to the SQL Database instance. */ - serviceBusNamespace?: string; + password?: string; /** - * The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. - * Required on PUT (CreateOrReplace) requests. + * This element is associated with the datasource element. The name of the table in the Azure SQL + * database.. */ - sharedAccessPolicyName?: string; + table?: string; /** - * The shared access policy key for the specified shared access policy. Required on PUT - * (CreateOrReplace) requests. + * Indicates the type of data refresh option. Possible values include: 'Static', + * 'RefreshPeriodicallyWithFull', 'RefreshPeriodicallyWithDelta' */ - sharedAccessPolicyKey?: string; + refreshType?: RefreshType; /** - * Authentication Mode. Possible values include: 'Msi', 'UserToken', 'ConnectionString' + * This element is associated with the datasource element. This indicates how frequently the data + * will be fetched from the database. It is of DateTime format. */ - authenticationMode?: AuthenticationMode; + refreshRate?: string; /** - * The name of the Service Bus Queue. Required on PUT (CreateOrReplace) requests. + * This element is associated with the datasource element. This query is used to fetch data from + * the sql database. */ - queueName?: string; + fullSnapshotQuery?: string; /** - * A string array of the names of output columns to be attached to Service Bus messages as custom - * properties. + * This element is associated with the datasource element. This query is used to fetch + * incremental changes from the SQL database. To use this option, we recommend using temporal + * tables in Azure SQL Database. */ - propertyColumns?: string[]; - systemPropertyColumns?: { [propertyName: string]: string }; + deltaSnapshotQuery?: string; } /** - * Describes a Service Bus Topic output data source. + * Describes a blob input data source that contains reference data. */ -export interface ServiceBusTopicOutputDataSource { +export interface BlobReferenceInputDataSource { /** * Polymorphic Discriminator */ - type: "Microsoft.ServiceBus/Topic"; - /** - * The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus - * Topic, etc. Required on PUT (CreateOrReplace) requests. - */ - serviceBusNamespace?: string; + type: "Microsoft.Storage/Blob"; /** - * The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. - * Required on PUT (CreateOrReplace) requests. + * A list of one or more Azure Storage accounts. Required on PUT (CreateOrReplace) requests. */ - sharedAccessPolicyName?: string; + storageAccounts?: StorageAccount[]; /** - * The shared access policy key for the specified shared access policy. Required on PUT - * (CreateOrReplace) requests. + * The name of a container within the associated Storage account. This container contains either + * the blob(s) to be read from or written to. Required on PUT (CreateOrReplace) requests. */ - sharedAccessPolicyKey?: string; + container?: string; /** - * Authentication Mode. Possible values include: 'Msi', 'UserToken', 'ConnectionString' + * The blob path pattern. Not a regular expression. It represents a pattern against which blob + * names will be matched to determine whether or not they should be included as input or output + * to the job. See + * https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-input or + * https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output for a more + * detailed explanation and example. */ - authenticationMode?: AuthenticationMode; + pathPattern?: string; /** - * The name of the Service Bus Topic. Required on PUT (CreateOrReplace) requests. + * The date format. Wherever {date} appears in pathPattern, the value of this property is used as + * the date format instead. */ - topicName?: string; + dateFormat?: string; /** - * A string array of the names of output columns to be attached to Service Bus messages as custom - * properties. + * The time format. Wherever {time} appears in pathPattern, the value of this property is used as + * the time format instead. */ - propertyColumns?: string[]; - systemPropertyColumns?: { [propertyName: string]: string }; + timeFormat?: string; } /** - * Describes a Power BI output data source. + * The properties that are associated with an input containing reference data. */ -export interface PowerBIOutputDataSource { +export interface ReferenceInputProperties { /** * Polymorphic Discriminator */ - type: "PowerBI"; - /** - * A refresh token that can be used to obtain a valid access token that can then be used to - * authenticate with the data source. A valid refresh token is currently only obtainable via the - * Azure Portal. It is recommended to put a dummy string value here when creating the data source - * and then going to the Azure Portal to authenticate the data source which will update this - * property with a valid refresh token. Required on PUT (CreateOrReplace) requests. - */ - refreshToken?: string; - /** - * The user principal name (UPN) of the user that was used to obtain the refresh token. Use this - * property to help remember which user was used to obtain the refresh token. - */ - tokenUserPrincipalName?: string; + type: "Reference"; /** - * The user display name of the user that was used to obtain the refresh token. Use this property - * to help remember which user was used to obtain the refresh token. + * Describes how data from an input is serialized or how data is serialized when written to an + * output. Required on PUT (CreateOrReplace) requests. */ - tokenUserDisplayName?: string; + serialization?: SerializationUnion; /** - * The name of the Power BI dataset. Required on PUT (CreateOrReplace) requests. + * Describes conditions applicable to the Input, Output, or the job overall, that warrant + * customer attention. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - dataset?: string; + readonly diagnostics?: Diagnostics; /** - * The name of the Power BI table under the specified dataset. Required on PUT (CreateOrReplace) - * requests. + * 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. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - table?: string; + readonly etag?: string; /** - * The ID of the Power BI group. + * Describes how input data is compressed */ - groupId?: string; + compression?: Compression; /** - * The name of the Power BI group. Use this property to help remember which specific Power BI - * group id was used. + * partitionKey Describes a key in the input data which is used for partitioning the input data */ - groupName?: string; + partitionKey?: string; /** - * Authentication Mode. Possible values include: 'Msi', 'UserToken', 'ConnectionString' + * Describes an input data source that contains reference data. Required on PUT (CreateOrReplace) + * requests. */ - authenticationMode?: AuthenticationMode; + datasource?: ReferenceInputDataSourceUnion; } /** - * Describes an Azure Data Lake Store output data source. + * Contains the possible cases for StreamInputDataSource. */ -export interface AzureDataLakeStoreOutputDataSource { +export type StreamInputDataSourceUnion = StreamInputDataSource | IoTHubStreamInputDataSource | EventHubV2StreamInputDataSource | EventHubStreamInputDataSource | BlobStreamInputDataSource; + +/** + * Describes an input data source that contains stream data. + */ +export interface StreamInputDataSource { /** * Polymorphic Discriminator */ - type: "Microsoft.DataLake/Accounts"; - /** - * A refresh token that can be used to obtain a valid access token that can then be used to - * authenticate with the data source. A valid refresh token is currently only obtainable via the - * Azure Portal. It is recommended to put a dummy string value here when creating the data source - * and then going to the Azure Portal to authenticate the data source which will update this - * property with a valid refresh token. Required on PUT (CreateOrReplace) requests. - */ - refreshToken?: string; - /** - * The user principal name (UPN) of the user that was used to obtain the refresh token. Use this - * property to help remember which user was used to obtain the refresh token. - */ - tokenUserPrincipalName?: string; + type: "StreamInputDataSource"; +} + +/** + * Describes an IoT Hub input data source that contains stream data. + */ +export interface IoTHubStreamInputDataSource { /** - * The user display name of the user that was used to obtain the refresh token. Use this property - * to help remember which user was used to obtain the refresh token. + * Polymorphic Discriminator */ - tokenUserDisplayName?: string; + type: "Microsoft.Devices/IotHubs"; /** - * The name of the Azure Data Lake Store account. Required on PUT (CreateOrReplace) requests. + * The name or the URI of the IoT Hub. Required on PUT (CreateOrReplace) requests. */ - accountName?: string; + iotHubNamespace?: string; /** - * The tenant id of the user used to obtain the refresh token. Required on PUT (CreateOrReplace) - * requests. + * The shared access policy name for the IoT Hub. This policy must contain at least the Service + * connect permission. Required on PUT (CreateOrReplace) requests. */ - tenantId?: string; + sharedAccessPolicyName?: string; /** - * The location of the file to which the output should be written to. Required on PUT + * The shared access policy key for the specified shared access policy. Required on PUT * (CreateOrReplace) requests. */ - filePathPrefix?: string; - /** - * The date format. Wherever {date} appears in filePathPrefix, the value of this property is used - * as the date format instead. - */ - dateFormat?: string; + sharedAccessPolicyKey?: string; /** - * The time format. Wherever {time} appears in filePathPrefix, the value of this property is used - * as the time format instead. + * The name of an IoT Hub Consumer Group that should be used to read events from the IoT Hub. If + * not specified, the input uses the Iot Hub’s default consumer group. */ - timeFormat?: string; + consumerGroupName?: string; /** - * Authentication Mode. Possible values include: 'Msi', 'UserToken', 'ConnectionString' + * The IoT Hub endpoint to connect to (ie. messages/events, messages/operationsMonitoringEvents, + * etc.). */ - authenticationMode?: AuthenticationMode; + endpoint?: string; } /** - * The properties that are associated with an Azure SQL database data source. + * Describes an Event Hub input data source that contains stream data. */ -export interface AzureSqlDatabaseDataSourceProperties { +export interface EventHubV2StreamInputDataSource { /** - * The name of the SQL server containing the Azure SQL database. Required on PUT - * (CreateOrReplace) requests. + * Polymorphic Discriminator */ - server?: string; + type: "Microsoft.EventHub/EventHub"; /** - * The name of the Azure SQL database. Required on PUT (CreateOrReplace) requests. + * The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus + * Topic, etc. Required on PUT (CreateOrReplace) requests. */ - database?: string; + serviceBusNamespace?: string; /** - * The user name that will be used to connect to the Azure SQL database. Required on PUT - * (CreateOrReplace) requests. + * The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. + * Required on PUT (CreateOrReplace) requests. */ - user?: string; + sharedAccessPolicyName?: string; /** - * The password that will be used to connect to the Azure SQL database. Required on PUT + * The shared access policy key for the specified shared access policy. Required on PUT * (CreateOrReplace) requests. */ - password?: string; + sharedAccessPolicyKey?: string; /** - * The name of the table in the Azure SQL database. Required on PUT (CreateOrReplace) requests. + * Authentication Mode. Possible values include: 'Msi', 'UserToken', 'ConnectionString' */ - table?: string; + authenticationMode?: AuthenticationMode; /** - * Max Batch count for write to Sql database, the default value is 10,000. Optional on PUT - * requests. + * The name of the Event Hub. Required on PUT (CreateOrReplace) requests. */ - maxBatchCount?: number; + eventHubName?: string; /** - * Max Write r count, currently only 1(single writer) and 0(based on query partition) are - * available. Optional on PUT requests. - */ - maxWriterCount?: number; - /** - * Authentication Mode. Possible values include: 'Msi', 'UserToken', 'ConnectionString' + * The name of an Event Hub Consumer Group that should be used to read events from the Event Hub. + * Specifying distinct consumer group names for multiple inputs allows each of those inputs to + * receive the same events from the Event Hub. If not specified, the input uses the Event Hub’s + * default consumer group. */ - authenticationMode?: AuthenticationMode; + consumerGroupName?: string; } /** - * The properties that are associated with data sources that use OAuth as their authentication - * model. + * Describes an Event Hub input data source that contains stream data. */ -export interface OAuthBasedDataSourceProperties { +export interface EventHubStreamInputDataSource { /** - * A refresh token that can be used to obtain a valid access token that can then be used to - * authenticate with the data source. A valid refresh token is currently only obtainable via the - * Azure Portal. It is recommended to put a dummy string value here when creating the data source - * and then going to the Azure Portal to authenticate the data source which will update this - * property with a valid refresh token. Required on PUT (CreateOrReplace) requests. + * Polymorphic Discriminator */ - refreshToken?: string; + type: "Microsoft.ServiceBus/EventHub"; /** - * The user principal name (UPN) of the user that was used to obtain the refresh token. Use this - * property to help remember which user was used to obtain the refresh token. + * The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus + * Topic, etc. Required on PUT (CreateOrReplace) requests. */ - tokenUserPrincipalName?: string; + serviceBusNamespace?: string; /** - * The user display name of the user that was used to obtain the refresh token. Use this property - * to help remember which user was used to obtain the refresh token. + * The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. + * Required on PUT (CreateOrReplace) requests. */ - tokenUserDisplayName?: string; -} - -/** - * The storage account where the custom code artifacts are located. - */ -export interface External { - storageAccount?: StorageAccount; - container?: string; - path?: string; -} - -/** - * Contains the localized display information for this particular operation / action. - */ -export interface OperationDisplay { + sharedAccessPolicyName?: string; /** - * The localized friendly form of the resource provider name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The shared access policy key for the specified shared access policy. Required on PUT + * (CreateOrReplace) requests. */ - readonly provider?: string; + sharedAccessPolicyKey?: string; /** - * The localized friendly form of the resource type related to this action/operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Authentication Mode. Possible values include: 'Msi', 'UserToken', 'ConnectionString' */ - readonly resource?: string; + authenticationMode?: AuthenticationMode; /** - * The localized friendly name for the operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The name of the Event Hub. Required on PUT (CreateOrReplace) requests. */ - readonly operation?: string; + eventHubName?: string; /** - * The localized friendly description for the operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The name of an Event Hub Consumer Group that should be used to read events from the Event Hub. + * Specifying distinct consumer group names for multiple inputs allows each of those inputs to + * receive the same events from the Event Hub. If not specified, the input uses the Event Hub’s + * default consumer group. */ - readonly description?: string; + consumerGroupName?: string; } /** - * A Stream Analytics REST API operation + * Describes a blob input data source that contains stream data. */ -export interface Operation { +export interface BlobStreamInputDataSource { /** - * The name of the operation being performed on this particular object. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Polymorphic Discriminator */ - readonly name?: string; + type: "Microsoft.Storage/Blob"; /** - * Contains the localized display information for this particular operation / action. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * A list of one or more Azure Storage accounts. Required on PUT (CreateOrReplace) requests. */ - readonly display?: OperationDisplay; -} - -/** - * The properties that are associated with a SKU. - */ -export interface StreamingJobSku { + storageAccounts?: StorageAccount[]; /** - * The name of the SKU. Required on PUT (CreateOrReplace) requests. Possible values include: - * 'Standard' + * The name of a container within the associated Storage account. This container contains either + * the blob(s) to be read from or written to. Required on PUT (CreateOrReplace) requests. */ - name?: StreamingJobSkuName; -} - -/** - * A transformation object, containing all information associated with the named transformation. - * All transformations are contained under a streaming job. - */ -export interface Transformation extends SubResource { + container?: string; /** - * Specifies the number of streaming units that the streaming job uses. + * The blob path pattern. Not a regular expression. It represents a pattern against which blob + * names will be matched to determine whether or not they should be included as input or output + * to the job. See + * https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-input or + * https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output for a more + * detailed explanation and example. */ - streamingUnits?: number; + pathPattern?: string; /** - * Specifies the query that will be run in the streaming job. You can learn more about the Stream - * Analytics Query Language (SAQL) here: https://msdn.microsoft.com/library/azure/dn834998 . - * Required on PUT (CreateOrReplace) requests. + * The date format. Wherever {date} appears in pathPattern, the value of this property is used as + * the date format instead. */ - query?: string; + dateFormat?: string; /** - * The current entity tag for the transformation. 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. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The time format. Wherever {time} appears in pathPattern, the value of this property is used as + * the time format instead. */ - readonly etag?: string; -} - -/** - * The properties that are associated with an Azure Storage account with MSI - */ -export interface JobStorageAccount extends StorageAccount { + timeFormat?: string; /** - * Authentication Mode. Possible values include: 'Msi', 'UserToken', 'ConnectionString' + * The partition count of the blob input data source. Range 1 - 256. */ - authenticationMode?: AuthenticationMode; + sourcePartitionCount?: number; } /** - * The properties associated with a Stream Analytics cluster. + * The properties that are associated with an input containing stream data. */ -export interface ClusterInfo { +export interface StreamInputProperties { /** - * The resource id of cluster. + * Polymorphic Discriminator */ - id?: string; -} - -/** - * An interface representing Resource. - */ -export interface Resource extends BaseResource { + type: "Stream"; /** - * Fully qualified resource Id for the resource. Ex - - * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Describes how data from an input is serialized or how data is serialized when written to an + * output. Required on PUT (CreateOrReplace) requests. */ - readonly id?: string; + serialization?: SerializationUnion; /** - * The name of the resource + * Describes conditions applicable to the Input, Output, or the job overall, that warrant + * customer attention. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly name?: string; + readonly diagnostics?: Diagnostics; /** - * The type of the resource. Ex- Microsoft.Compute/virtualMachines or - * Microsoft.Storage/storageAccounts. + * 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. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly type?: string; -} - -/** - * The resource model definition for a ARM tracked top level resource - */ -export interface TrackedResource extends Resource { + readonly etag?: string; /** - * Resource tags. + * Describes how input data is compressed */ - tags?: { [propertyName: string]: string }; + compression?: Compression; /** - * The geo-location where the resource lives + * partitionKey Describes a key in the input data which is used for partitioning the input data */ - location?: string; + partitionKey?: string; + /** + * Describes an input data source that contains stream data. Required on PUT (CreateOrReplace) + * requests. + */ + datasource?: StreamInputDataSourceUnion; } /** - * A streaming job object, containing all information associated with the named streaming job. + * The resource model definition for a ARM proxy resource. It will have everything other than + * required location and tags */ -export interface StreamingJob extends TrackedResource { - /** - * Describes the SKU of the streaming job. Required on PUT (CreateOrReplace) requests. - */ - sku?: StreamingJobSku; - /** - * A GUID uniquely identifying the streaming job. This GUID is generated upon creation of the - * streaming job. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly jobId?: string; - /** - * Describes the provisioning status of the streaming job. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningState?: string; - /** - * Describes the state of the streaming job. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly jobState?: string; - /** - * Describes the type of the job. Valid modes are `Cloud` and 'Edge'. Possible values include: - * 'Cloud', 'Edge' - */ - jobType?: JobType; - /** - * This property should only be utilized when it is desired that the job be started immediately - * upon creation. Value may be JobStartTime, CustomTime, or LastOutputEventTime to indicate - * whether the starting point of the output event stream should start whenever the job is - * started, start at a custom user time stamp specified via the outputStartTime property, or - * start from the last event output time. Possible values include: 'JobStartTime', 'CustomTime', - * 'LastOutputEventTime' - */ - outputStartMode?: OutputStartMode; +export interface ProxyResource extends Resource { +} + +/** + * Common error details representation. + */ +export interface ErrorDetails { /** - * Value is either an ISO-8601 formatted time stamp that indicates the starting point of the - * output event stream, or null to indicate that the output event stream will start whenever the - * streaming job is started. This property must have a value if outputStartMode is set to - * CustomTime. + * Error code. */ - outputStartTime?: Date; + code?: string; /** - * Value is either an ISO-8601 formatted timestamp indicating the last output event time of the - * streaming job or null indicating that output has not yet been produced. In case of multiple - * outputs or multiple streams, this shows the latest value in that set. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Error target. */ - readonly lastOutputEventTime?: Date; + target?: string; /** - * Indicates the policy to apply to events that arrive out of order in the input event stream. - * Possible values include: 'Adjust', 'Drop' + * Error message. */ - eventsOutOfOrderPolicy?: EventsOutOfOrderPolicy; + message?: string; +} + +/** + * Error definition properties. + */ +export interface ErrorError { /** - * Indicates the policy to apply to events that arrive at the output and cannot be written to the - * external storage due to being malformed (missing column values, column values of wrong type or - * size). Possible values include: 'Stop', 'Drop' + * Error code. */ - outputErrorPolicy?: OutputErrorPolicy; + code?: string; /** - * The maximum tolerable delay in seconds where out-of-order events can be adjusted to be back in - * order. + * Error message. */ - eventsOutOfOrderMaxDelayInSeconds?: number; + message?: string; /** - * The maximum tolerable delay in seconds where events arriving late could be included. - * Supported range is -1 to 1814399 (20.23:59:59 days) and -1 is used to specify wait - * indefinitely. If the property is absent, it is interpreted to have a value of -1. + * Error target. */ - eventsLateArrivalMaxDelayInSeconds?: number; + target?: string; /** - * The data locale of the stream analytics job. Value should be the name of a supported .NET - * Culture from the set - * https://msdn.microsoft.com/en-us/library/system.globalization.culturetypes(v=vs.110).aspx. - * Defaults to 'en-US' if none specified. + * Error details. */ - dataLocale?: string; + details?: ErrorDetails[]; +} + +/** + * Common error representation. + */ +export interface ErrorModel { /** - * Controls certain runtime behaviors of the streaming job. Possible values include: '1.0' + * Error definition properties. */ - compatibilityLevel?: CompatibilityLevel; + error?: ErrorError; +} + +/** + * Describes the error that occurred. + */ +export interface ErrorResponse { /** - * Value is an ISO-8601 formatted UTC timestamp indicating when the streaming job was created. + * Error code associated with the error that occurred. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly createdDate?: Date; - /** - * A list of one or more inputs to the streaming job. The name property for each input is - * required when specifying this property in a PUT request. This property cannot be modify via a - * PATCH operation. You must use the PATCH API available for the individual input. - */ - inputs?: Input[]; - /** - * Indicates the query and the number of streaming units to use for the streaming job. The name - * property of the transformation is required when specifying this property in a PUT request. - * This property cannot be modify via a PATCH operation. You must use the PATCH API available for - * the individual transformation. - */ - transformation?: Transformation; + readonly code?: string; /** - * A list of one or more outputs for the streaming job. The name property for each output is - * required when specifying this property in a PUT request. This property cannot be modify via a - * PATCH operation. You must use the PATCH API available for the individual output. + * Describes the error in detail. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - outputs?: Output[]; + readonly message?: string; +} + +/** + * Describes the status of the test operation along with error information, if applicable. + */ +export interface ResourceTestStatus { /** - * A list of one or more functions for the streaming job. The name property for each function is - * required when specifying this property in a PUT request. This property cannot be modify via a - * PATCH operation. You must use the PATCH API available for the individual transformation. + * The status of the test operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - functions?: FunctionModel[]; + readonly status?: string; /** - * The current entity tag for the streaming job. 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. + * Describes the error that occurred. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly etag?: string; - jobStorageAccount?: JobStorageAccount; - /** - * Valid values are JobStorageAccount and SystemAccount. If set to JobStorageAccount, this - * requires the user to also specify jobStorageAccount property. Possible values include: - * 'SystemAccount', 'JobStorageAccount' + readonly error?: ErrorResponse; +} + +/** + * Contains the possible cases for FunctionRetrieveDefaultDefinitionParameters. + */ +export type FunctionRetrieveDefaultDefinitionParametersUnion = FunctionRetrieveDefaultDefinitionParameters | AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters | JavaScriptFunctionRetrieveDefaultDefinitionParameters; + +/** + * Parameters used to specify the type of function to retrieve the default definition for. + */ +export interface FunctionRetrieveDefaultDefinitionParameters { + /** + * Polymorphic Discriminator */ - contentStoragePolicy?: ContentStoragePolicy; + bindingType: "FunctionRetrieveDefaultDefinitionParameters"; +} + +/** + * The parameters needed to retrieve the default function definition for an Azure Machine Learning + * web service function. + */ +export interface AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters { /** - * The storage account where the custom code artifacts are located. + * Polymorphic Discriminator */ - externals?: External; + bindingType: "Microsoft.MachineLearning/WebService"; /** - * The cluster which streaming jobs will run on. + * The Request-Response execute endpoint of the Azure Machine Learning web service. Find out more + * here: + * https://docs.microsoft.com/en-us/azure/machine-learning/machine-learning-consume-web-services#request-response-service-rrs */ - cluster?: ClusterInfo; + executeEndpoint?: string; /** - * Describes the system-assigned managed identity assigned to this job that can be used to - * authenticate with inputs and outputs. + * The function type. Possible values include: 'Scalar' */ - identity?: Identity; + udfType?: UdfType; } /** - * Parameters supplied to the Start Streaming Job operation. + * The parameters needed to retrieve the default function definition for a JavaScript function. */ -export interface StartStreamingJobParameters { +export interface JavaScriptFunctionRetrieveDefaultDefinitionParameters { /** - * Value may be JobStartTime, CustomTime, or LastOutputEventTime to indicate whether the starting - * point of the output event stream should start whenever the job is started, start at a custom - * user time stamp specified via the outputStartTime property, or start from the last event - * output time. Possible values include: 'JobStartTime', 'CustomTime', 'LastOutputEventTime' + * Polymorphic Discriminator */ - outputStartMode?: OutputStartMode; + bindingType: "Microsoft.StreamAnalytics/JavascriptUdf"; /** - * Value is either an ISO-8601 formatted time stamp that indicates the starting point of the - * output event stream, or null to indicate that the output event stream will start whenever the - * streaming job is started. This property must have a value if outputStartMode is set to - * CustomTime. + * The JavaScript code containing a single function definition. For example: 'function (x, y) { + * return x + y; }'. */ - outputStartTime?: Date; -} - -/** - * The resource model definition for a ARM proxy resource. It will have everything other than - * required location and tags - */ -export interface ProxyResource extends Resource { + script?: string; + /** + * The function type. Possible values include: 'Scalar' + */ + udfType?: UdfType; } /** @@ -2154,9 +2036,17 @@ export interface ClusterSku { } /** - * The properties associated with a Stream Analytics cluster. + * A Stream Analytics Cluster object */ -export interface ClusterProperties { +export interface Cluster extends TrackedResource { + sku?: ClusterSku; + /** + * The current entity tag for the cluster. 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. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly etag?: string; /** * The date this cluster was created. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -2184,24 +2074,6 @@ export interface ClusterProperties { readonly capacityAssigned?: number; } -/** - * A Stream Analytics Cluster object - */ -export interface Cluster extends TrackedResource { - sku?: ClusterSku; - /** - * The current entity tag for the cluster. 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. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly etag?: string; - /** - * The properties associated with a Stream Analytics cluster. - */ - properties?: ClusterProperties; -} - /** * A streaming job. */ @@ -2223,56 +2095,6 @@ export interface ClusterJob { jobState?: JobState; } -/** - * Common error details representation. - */ -export interface ErrorDetails { - /** - * Error code. - */ - code?: string; - /** - * Error target. - */ - target?: string; - /** - * Error message. - */ - message?: string; -} - -/** - * Error definition properties. - */ -export interface ErrorError { - /** - * Error code. - */ - code?: string; - /** - * Error message. - */ - message?: string; - /** - * Error target. - */ - target?: string; - /** - * Error details. - */ - details?: ErrorDetails[]; -} - -/** - * Common error representation. - */ -export interface ErrorModel { - /** - * Error definition properties. - */ - error?: ErrorError; -} - /** * A collection of read-only information about the state of the connection to the private remote * resource. @@ -2312,8 +2134,9 @@ export interface PrivateLinkServiceConnection { /** * A message passed to the owner of the remote resource with this connection request. Restricted * to 140 chars. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - requestMessage?: string; + readonly requestMessage?: string; /** * A collection of read-only information about the state of the connection to the private remote * resource. @@ -2322,9 +2145,9 @@ export interface PrivateLinkServiceConnection { } /** - * The properties associated with a private endpoint. + * Complete information about the private endpoint. */ -export interface PrivateEndpointProperties { +export interface PrivateEndpoint extends ProxyResource { /** * The date when this private endpoint was created. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -2334,16 +2157,6 @@ export interface PrivateEndpointProperties { * A list of connections to the remote resource. Immutable after it is set. */ manualPrivateLinkServiceConnections?: PrivateLinkServiceConnection[]; -} - -/** - * Complete information about the private endpoint. - */ -export interface PrivateEndpoint extends ProxyResource { - /** - * The properties associated with a private endpoint. - */ - properties?: PrivateEndpointProperties; /** * Unique opaque string (generally a GUID) that represents the metadata state of the resource * (private endpoint) and changes whenever the resource is updated. Required on PUT @@ -2356,15 +2169,15 @@ export interface PrivateEndpoint extends ProxyResource { /** * Optional Parameters. */ -export interface FunctionsCreateOrReplaceOptionalParams extends msRest.RequestOptionsBase { +export interface StreamingJobsCreateOrReplaceOptionalParams extends msRest.RequestOptionsBase { /** - * The ETag of the function. Omit this value to always overwrite the current function. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. + * The ETag of the streaming job. Omit this value to always overwrite the current record set. + * Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. */ ifMatch?: string; /** - * Set to '*' to allow a new function to be created, but to prevent updating an existing - * function. Other values will result in a 412 Pre-condition Failed response. + * Set to '*' to allow a new streaming job to be created, but to prevent updating an existing + * record set. Other values will result in a 412 Pre-condition Failed response. */ ifNoneMatch?: string; } @@ -2372,10 +2185,10 @@ export interface FunctionsCreateOrReplaceOptionalParams extends msRest.RequestOp /** * Optional Parameters. */ -export interface FunctionsUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface StreamingJobsUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * The ETag of the function. Omit this value to always overwrite the current function. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. + * The ETag of the streaming job. Omit this value to always overwrite the current record set. + * Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. */ ifMatch?: string; } @@ -2383,63 +2196,122 @@ export interface FunctionsUpdateOptionalParams extends msRest.RequestOptionsBase /** * Optional Parameters. */ -export interface FunctionsListByStreamingJobOptionalParams extends msRest.RequestOptionsBase { +export interface StreamingJobsGetOptionalParams extends msRest.RequestOptionsBase { /** - * The $select OData query parameter. This is a comma-separated list of structural properties to - * include in the response, or "*" to include all properties. By default, all properties are - * returned except diagnostics. Currently only accepts '*' as a valid value. + * The $expand OData query parameter. This is a comma-separated list of additional streaming job + * properties to include in the response, beyond the default set returned when this parameter is + * absent. The default set is all streaming job properties other than 'inputs', 'transformation', + * 'outputs', and 'functions'. */ - select?: string; + expand?: string; } /** * Optional Parameters. */ -export interface FunctionsTestOptionalParams extends msRest.RequestOptionsBase { +export interface StreamingJobsListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { /** - * If the function specified does not already exist, this parameter must contain the full - * function definition intended to be tested. If the function specified already exists, this - * parameter can be left null to test the existing function as is or if specified, the properties - * specified will overwrite the corresponding properties in the existing function (exactly like a - * PATCH operation) and the resulting function will be tested. + * The $expand OData query parameter. This is a comma-separated list of additional streaming job + * properties to include in the response, beyond the default set returned when this parameter is + * absent. The default set is all streaming job properties other than 'inputs', 'transformation', + * 'outputs', and 'functions'. */ - functionParameter?: FunctionModel; + expand?: string; } /** * Optional Parameters. */ -export interface FunctionsRetrieveDefaultDefinitionOptionalParams extends msRest.RequestOptionsBase { +export interface StreamingJobsListOptionalParams extends msRest.RequestOptionsBase { /** - * Parameters used to specify the type of function to retrieve the default definition for. + * The $expand OData query parameter. This is a comma-separated list of additional streaming job + * properties to include in the response, beyond the default set returned when this parameter is + * absent. The default set is all streaming job properties other than 'inputs', 'transformation', + * 'outputs', and 'functions'. */ - functionRetrieveDefaultDefinitionParameters?: FunctionRetrieveDefaultDefinitionParametersUnion; + expand?: string; } /** * Optional Parameters. */ -export interface FunctionsBeginTestOptionalParams extends msRest.RequestOptionsBase { +export interface StreamingJobsStartOptionalParams extends msRest.RequestOptionsBase { /** - * If the function specified does not already exist, this parameter must contain the full - * function definition intended to be tested. If the function specified already exists, this - * parameter can be left null to test the existing function as is or if specified, the properties - * specified will overwrite the corresponding properties in the existing function (exactly like a - * PATCH operation) and the resulting function will be tested. + * Parameters applicable to a start streaming job operation. */ - functionParameter?: FunctionModel; + startJobParameters?: StartStreamingJobParameters; } /** * Optional Parameters. */ -export interface FunctionsListByStreamingJobNextOptionalParams extends msRest.RequestOptionsBase { +export interface StreamingJobsScaleOptionalParams extends msRest.RequestOptionsBase { /** - * The $select OData query parameter. This is a comma-separated list of structural properties to - * include in the response, or "*" to include all properties. By default, all properties are - * returned except diagnostics. Currently only accepts '*' as a valid value. + * Parameters applicable to a scale streaming job operation. + */ + scaleJobParameters?: ScaleStreamingJobParameters; +} + +/** + * Optional Parameters. + */ +export interface StreamingJobsBeginCreateOrReplaceOptionalParams extends msRest.RequestOptionsBase { + /** + * The ETag of the streaming job. Omit this value to always overwrite the current record set. + * Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. + */ + ifMatch?: string; + /** + * Set to '*' to allow a new streaming job to be created, but to prevent updating an existing + * record set. Other values will result in a 412 Pre-condition Failed response. + */ + ifNoneMatch?: string; +} + +/** + * Optional Parameters. + */ +export interface StreamingJobsBeginStartOptionalParams extends msRest.RequestOptionsBase { + /** + * Parameters applicable to a start streaming job operation. + */ + startJobParameters?: StartStreamingJobParameters; +} + +/** + * Optional Parameters. + */ +export interface StreamingJobsBeginScaleOptionalParams extends msRest.RequestOptionsBase { + /** + * Parameters applicable to a scale streaming job operation. + */ + scaleJobParameters?: ScaleStreamingJobParameters; +} + +/** + * Optional Parameters. + */ +export interface StreamingJobsListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The $expand OData query parameter. This is a comma-separated list of additional streaming job + * properties to include in the response, beyond the default set returned when this parameter is + * absent. The default set is all streaming job properties other than 'inputs', 'transformation', + * 'outputs', and 'functions'. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface StreamingJobsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The $expand OData query parameter. This is a comma-separated list of additional streaming job + * properties to include in the response, beyond the default set returned when this parameter is + * absent. The default set is all streaming job properties other than 'inputs', 'transformation', + * 'outputs', and 'functions'. */ - select?: string; + expand?: string; } /** @@ -2603,15 +2475,16 @@ export interface OutputsListByStreamingJobNextOptionalParams extends msRest.Requ /** * Optional Parameters. */ -export interface StreamingJobsCreateOrReplaceOptionalParams extends msRest.RequestOptionsBase { +export interface TransformationsCreateOrReplaceOptionalParams extends msRest.RequestOptionsBase { /** - * The ETag of the streaming job. Omit this value to always overwrite the current record set. - * Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. + * The ETag of the transformation. Omit this value to always overwrite the current + * transformation. Specify the last-seen ETag value to prevent accidentally overwriting + * concurrent changes. */ ifMatch?: string; /** - * Set to '*' to allow a new streaming job to be created, but to prevent updating an existing - * record set. Other values will result in a 412 Pre-condition Failed response. + * Set to '*' to allow a new transformation to be created, but to prevent updating an existing + * transformation. Other values will result in a 412 Pre-condition Failed response. */ ifNoneMatch?: string; } @@ -2619,10 +2492,11 @@ export interface StreamingJobsCreateOrReplaceOptionalParams extends msRest.Reque /** * Optional Parameters. */ -export interface StreamingJobsUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface TransformationsUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * The ETag of the streaming job. Omit this value to always overwrite the current record set. - * Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. + * The ETag of the transformation. Omit this value to always overwrite the current + * transformation. Specify the last-seen ETag value to prevent accidentally overwriting + * concurrent changes. */ ifMatch?: string; } @@ -2630,131 +2504,90 @@ export interface StreamingJobsUpdateOptionalParams extends msRest.RequestOptions /** * Optional Parameters. */ -export interface StreamingJobsGetOptionalParams extends msRest.RequestOptionsBase { - /** - * The $expand OData query parameter. This is a comma-separated list of additional streaming job - * properties to include in the response, beyond the default set returned when this parameter is - * absent. The default set is all streaming job properties other than 'inputs', 'transformation', - * 'outputs', and 'functions'. - */ - expand?: string; -} - -/** - * Optional Parameters. - */ -export interface StreamingJobsListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { - /** - * The $expand OData query parameter. This is a comma-separated list of additional streaming job - * properties to include in the response, beyond the default set returned when this parameter is - * absent. The default set is all streaming job properties other than 'inputs', 'transformation', - * 'outputs', and 'functions'. - */ - expand?: string; -} - -/** - * Optional Parameters. - */ -export interface StreamingJobsListOptionalParams extends msRest.RequestOptionsBase { +export interface FunctionsCreateOrReplaceOptionalParams extends msRest.RequestOptionsBase { /** - * The $expand OData query parameter. This is a comma-separated list of additional streaming job - * properties to include in the response, beyond the default set returned when this parameter is - * absent. The default set is all streaming job properties other than 'inputs', 'transformation', - * 'outputs', and 'functions'. + * The ETag of the function. Omit this value to always overwrite the current function. Specify + * the last-seen ETag value to prevent accidentally overwriting concurrent changes. */ - expand?: string; -} - -/** - * Optional Parameters. - */ -export interface StreamingJobsStartOptionalParams extends msRest.RequestOptionsBase { + ifMatch?: string; /** - * Parameters applicable to a start streaming job operation. + * Set to '*' to allow a new function to be created, but to prevent updating an existing + * function. Other values will result in a 412 Pre-condition Failed response. */ - startJobParameters?: StartStreamingJobParameters; + ifNoneMatch?: string; } /** * Optional Parameters. */ -export interface StreamingJobsBeginCreateOrReplaceOptionalParams extends msRest.RequestOptionsBase { +export interface FunctionsUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * The ETag of the streaming job. Omit this value to always overwrite the current record set. - * Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. + * The ETag of the function. Omit this value to always overwrite the current function. Specify + * the last-seen ETag value to prevent accidentally overwriting concurrent changes. */ ifMatch?: string; - /** - * Set to '*' to allow a new streaming job to be created, but to prevent updating an existing - * record set. Other values will result in a 412 Pre-condition Failed response. - */ - ifNoneMatch?: string; } /** * Optional Parameters. */ -export interface StreamingJobsBeginStartOptionalParams extends msRest.RequestOptionsBase { +export interface FunctionsListByStreamingJobOptionalParams extends msRest.RequestOptionsBase { /** - * Parameters applicable to a start streaming job operation. + * The $select OData query parameter. This is a comma-separated list of structural properties to + * include in the response, or "*" to include all properties. By default, all properties are + * returned except diagnostics. Currently only accepts '*' as a valid value. */ - startJobParameters?: StartStreamingJobParameters; + select?: string; } /** * Optional Parameters. */ -export interface StreamingJobsListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase { +export interface FunctionsTestOptionalParams extends msRest.RequestOptionsBase { /** - * The $expand OData query parameter. This is a comma-separated list of additional streaming job - * properties to include in the response, beyond the default set returned when this parameter is - * absent. The default set is all streaming job properties other than 'inputs', 'transformation', - * 'outputs', and 'functions'. + * If the function specified does not already exist, this parameter must contain the full + * function definition intended to be tested. If the function specified already exists, this + * parameter can be left null to test the existing function as is or if specified, the properties + * specified will overwrite the corresponding properties in the existing function (exactly like a + * PATCH operation) and the resulting function will be tested. */ - expand?: string; + functionParameter?: FunctionModel; } /** * Optional Parameters. */ -export interface StreamingJobsListNextOptionalParams extends msRest.RequestOptionsBase { +export interface FunctionsRetrieveDefaultDefinitionOptionalParams extends msRest.RequestOptionsBase { /** - * The $expand OData query parameter. This is a comma-separated list of additional streaming job - * properties to include in the response, beyond the default set returned when this parameter is - * absent. The default set is all streaming job properties other than 'inputs', 'transformation', - * 'outputs', and 'functions'. + * Parameters used to specify the type of function to retrieve the default definition for. */ - expand?: string; + functionRetrieveDefaultDefinitionParameters?: FunctionRetrieveDefaultDefinitionParametersUnion; } /** * Optional Parameters. */ -export interface TransformationsCreateOrReplaceOptionalParams extends msRest.RequestOptionsBase { - /** - * The ETag of the transformation. Omit this value to always overwrite the current - * transformation. Specify the last-seen ETag value to prevent accidentally overwriting - * concurrent changes. - */ - ifMatch?: string; +export interface FunctionsBeginTestOptionalParams extends msRest.RequestOptionsBase { /** - * Set to '*' to allow a new transformation to be created, but to prevent updating an existing - * transformation. Other values will result in a 412 Pre-condition Failed response. + * If the function specified does not already exist, this parameter must contain the full + * function definition intended to be tested. If the function specified already exists, this + * parameter can be left null to test the existing function as is or if specified, the properties + * specified will overwrite the corresponding properties in the existing function (exactly like a + * PATCH operation) and the resulting function will be tested. */ - ifNoneMatch?: string; + functionParameter?: FunctionModel; } /** * Optional Parameters. */ -export interface TransformationsUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface FunctionsListByStreamingJobNextOptionalParams extends msRest.RequestOptionsBase { /** - * The ETag of the transformation. Omit this value to always overwrite the current - * transformation. Specify the last-seen ETag value to prevent accidentally overwriting - * concurrent changes. + * The $select OData query parameter. This is a comma-separated list of structural properties to + * include in the response, or "*" to include all properties. By default, all properties are + * returned except diagnostics. Currently only accepts '*' as a valid value. */ - ifMatch?: string; + select?: string; } /** @@ -2837,11 +2670,11 @@ export interface StreamAnalyticsManagementClientOptions extends AzureServiceClie /** * Defines headers for CreateOrReplace operation. */ -export interface FunctionsCreateOrReplaceHeaders { +export interface StreamingJobsCreateOrReplaceHeaders { /** - * 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. + * The current entity tag for the streaming job. 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. */ eTag: string; } @@ -2849,11 +2682,11 @@ export interface FunctionsCreateOrReplaceHeaders { /** * Defines headers for Update operation. */ -export interface FunctionsUpdateHeaders { +export interface StreamingJobsUpdateHeaders { /** - * 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. + * The current entity tag for the streaming job. 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. */ eTag: string; } @@ -2861,11 +2694,11 @@ export interface FunctionsUpdateHeaders { /** * Defines headers for Get operation. */ -export interface FunctionsGetHeaders { +export interface StreamingJobsGetHeaders { /** - * 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. + * The current entity tag for the streaming job. 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. */ eTag: string; } @@ -2945,9 +2778,9 @@ export interface OutputsGetHeaders { /** * Defines headers for CreateOrReplace operation. */ -export interface StreamingJobsCreateOrReplaceHeaders { +export interface TransformationsCreateOrReplaceHeaders { /** - * The current entity tag for the streaming job. This is an opaque string. You can use it to + * The current entity tag for the transformation. 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. */ @@ -2957,9 +2790,9 @@ export interface StreamingJobsCreateOrReplaceHeaders { /** * Defines headers for Update operation. */ -export interface StreamingJobsUpdateHeaders { +export interface TransformationsUpdateHeaders { /** - * The current entity tag for the streaming job. This is an opaque string. You can use it to + * The current entity tag for the transformation. 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. */ @@ -2969,9 +2802,9 @@ export interface StreamingJobsUpdateHeaders { /** * Defines headers for Get operation. */ -export interface StreamingJobsGetHeaders { +export interface TransformationsGetHeaders { /** - * The current entity tag for the streaming job. This is an opaque string. You can use it to + * The current entity tag for the transformation. 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. */ @@ -2981,11 +2814,11 @@ export interface StreamingJobsGetHeaders { /** * Defines headers for CreateOrReplace operation. */ -export interface TransformationsCreateOrReplaceHeaders { +export interface FunctionsCreateOrReplaceHeaders { /** - * The current entity tag for the transformation. 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. + * 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. */ eTag: string; } @@ -2993,11 +2826,11 @@ export interface TransformationsCreateOrReplaceHeaders { /** * Defines headers for Update operation. */ -export interface TransformationsUpdateHeaders { +export interface FunctionsUpdateHeaders { /** - * The current entity tag for the transformation. 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. + * 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. */ eTag: string; } @@ -3005,23 +2838,24 @@ export interface TransformationsUpdateHeaders { /** * Defines headers for Get operation. */ -export interface TransformationsGetHeaders { +export interface FunctionsGetHeaders { /** - * The current entity tag for the transformation. 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. + * 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. */ eTag: string; } /** * @interface - * Object containing a list of functions under a streaming job. - * @extends Array + * Result of the request to list Stream Analytics operations. It contains a list of operations and + * a URL link to get the next set of results. + * @extends Array */ -export interface FunctionListResult extends Array { +export interface OperationListResult extends Array { /** - * The link (url) to the next page of results. + * URL to get the next set of operation list results if there are any. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly nextLink?: string; @@ -3029,10 +2863,10 @@ export interface FunctionListResult extends Array { /** * @interface - * Object containing a list of inputs under a streaming job. - * @extends Array + * Object containing a list of streaming jobs. + * @extends Array */ -export interface InputListResult extends Array { +export interface StreamingJobListResult extends Array { /** * The link (url) to the next page of results. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -3042,10 +2876,10 @@ export interface InputListResult extends Array { /** * @interface - * Object containing a list of outputs under a streaming job. - * @extends Array + * Object containing a list of inputs under a streaming job. + * @extends Array */ -export interface OutputListResult extends Array { +export interface InputListResult extends Array { /** * The link (url) to the next page of results. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -3055,10 +2889,10 @@ export interface OutputListResult extends Array { /** * @interface - * Object containing a list of streaming jobs. - * @extends Array + * Object containing a list of outputs under a streaming job. + * @extends Array */ -export interface StreamingJobListResult extends Array { +export interface OutputListResult extends Array { /** * The link (url) to the next page of results. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -3068,13 +2902,12 @@ export interface StreamingJobListResult extends Array { /** * @interface - * Result of the request to list Stream Analytics operations. It contains a list of operations and - * a URL link to get the next set of results. - * @extends Array + * Object containing a list of functions under a streaming job. + * @extends Array */ -export interface OperationListResult extends Array { +export interface FunctionListResult extends Array { /** - * URL to get the next set of operation list results if there are any. + * The link (url) to the next page of results. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly nextLink?: string; @@ -3111,109 +2944,125 @@ export interface ClusterJobListResult extends Array { * A list of private endpoints. * @extends Array */ -export interface PrivateEndpointListResult extends Array { - /** - * The URL to fetch the next set of private endpoints. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nextLink?: string; -} +export interface PrivateEndpointListResult extends Array { + /** + * The URL to fetch the next set of private endpoints. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * Defines values for SkuName. + * Possible values include: 'Standard' + * @readonly + * @enum {string} + */ +export type SkuName = 'Standard'; + +/** + * Defines values for JobType. + * Possible values include: 'Cloud', 'Edge' + * @readonly + * @enum {string} + */ +export type JobType = 'Cloud' | 'Edge'; /** - * Defines values for UdfType. - * Possible values include: 'Scalar' + * Defines values for OutputStartMode. + * Possible values include: 'JobStartTime', 'CustomTime', 'LastOutputEventTime' * @readonly * @enum {string} */ -export type UdfType = 'Scalar'; +export type OutputStartMode = 'JobStartTime' | 'CustomTime' | 'LastOutputEventTime'; /** - * Defines values for AuthenticationMode. - * Possible values include: 'Msi', 'UserToken', 'ConnectionString' + * Defines values for EventsOutOfOrderPolicy. + * Possible values include: 'Adjust', 'Drop' * @readonly * @enum {string} */ -export type AuthenticationMode = 'Msi' | 'UserToken' | 'ConnectionString'; +export type EventsOutOfOrderPolicy = 'Adjust' | 'Drop'; /** - * Defines values for Encoding. - * Possible values include: 'UTF8' + * Defines values for OutputErrorPolicy. + * Possible values include: 'Stop', 'Drop' * @readonly * @enum {string} */ -export type Encoding = 'UTF8'; +export type OutputErrorPolicy = 'Stop' | 'Drop'; /** - * Defines values for JsonOutputSerializationFormat. - * Possible values include: 'LineSeparated', 'Array' + * Defines values for CompatibilityLevel. + * Possible values include: '1.0', '1.2' * @readonly * @enum {string} */ -export type JsonOutputSerializationFormat = 'LineSeparated' | 'Array'; +export type CompatibilityLevel = '1.0' | '1.2'; /** - * Defines values for EventSerializationType. - * Possible values include: 'Csv', 'Avro', 'Json', 'CustomClr', 'Parquet' + * Defines values for CompressionType. + * Possible values include: 'None', 'GZip', 'Deflate' * @readonly * @enum {string} */ -export type EventSerializationType = 'Csv' | 'Avro' | 'Json' | 'CustomClr' | 'Parquet'; +export type CompressionType = 'None' | 'GZip' | 'Deflate'; /** - * Defines values for StreamingJobSkuName. - * Possible values include: 'Standard' + * Defines values for AuthenticationMode. + * Possible values include: 'Msi', 'UserToken', 'ConnectionString' * @readonly * @enum {string} */ -export type StreamingJobSkuName = 'Standard'; +export type AuthenticationMode = 'Msi' | 'UserToken' | 'ConnectionString'; /** - * Defines values for JobType. - * Possible values include: 'Cloud', 'Edge' + * Defines values for ContentStoragePolicy. + * Possible values include: 'SystemAccount', 'JobStorageAccount' * @readonly * @enum {string} */ -export type JobType = 'Cloud' | 'Edge'; +export type ContentStoragePolicy = 'SystemAccount' | 'JobStorageAccount'; /** - * Defines values for OutputStartMode. - * Possible values include: 'JobStartTime', 'CustomTime', 'LastOutputEventTime' + * Defines values for EventSerializationType. + * Possible values include: 'Csv', 'Avro', 'Json', 'Parquet' * @readonly * @enum {string} */ -export type OutputStartMode = 'JobStartTime' | 'CustomTime' | 'LastOutputEventTime'; +export type EventSerializationType = 'Csv' | 'Avro' | 'Json' | 'Parquet'; /** - * Defines values for EventsOutOfOrderPolicy. - * Possible values include: 'Adjust', 'Drop' + * Defines values for JsonOutputSerializationFormat. + * Possible values include: 'LineSeparated', 'Array' * @readonly * @enum {string} */ -export type EventsOutOfOrderPolicy = 'Adjust' | 'Drop'; +export type JsonOutputSerializationFormat = 'LineSeparated' | 'Array'; /** - * Defines values for OutputErrorPolicy. - * Possible values include: 'Stop', 'Drop' + * Defines values for Encoding. + * Possible values include: 'UTF8' * @readonly * @enum {string} */ -export type OutputErrorPolicy = 'Stop' | 'Drop'; +export type Encoding = 'UTF8'; /** - * Defines values for CompatibilityLevel. - * Possible values include: '1.0' + * Defines values for RefreshType. + * Possible values include: 'Static', 'RefreshPeriodicallyWithFull', 'RefreshPeriodicallyWithDelta' * @readonly * @enum {string} */ -export type CompatibilityLevel = '1.0'; +export type RefreshType = 'Static' | 'RefreshPeriodicallyWithFull' | 'RefreshPeriodicallyWithDelta'; /** - * Defines values for ContentStoragePolicy. - * Possible values include: 'SystemAccount', 'JobStorageAccount' + * Defines values for UdfType. + * Possible values include: 'Scalar' * @readonly * @enum {string} */ -export type ContentStoragePolicy = 'SystemAccount' | 'JobStorageAccount'; +export type UdfType = 'Scalar'; /** * Defines values for ClusterSkuName. @@ -3241,18 +3090,33 @@ export type ClusterProvisioningState = 'Succeeded' | 'Failed' | 'Canceled' | 'In export type JobState = 'Created' | 'Starting' | 'Running' | 'Stopping' | 'Stopped' | 'Deleting' | 'Failed' | 'Degraded' | 'Restarting' | 'Scaling'; /** - * Contains response data for the createOrReplace operation. + * Contains response data for the list operation. */ -export type FunctionsCreateOrReplaceResponse = FunctionModel & FunctionsCreateOrReplaceHeaders & { +export type OperationsListResponse = OperationListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { /** - * The parsed HTTP response headers. + * The response body as text (string format) */ - parsedHeaders: FunctionsCreateOrReplaceHeaders; + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationListResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type OperationsListNextResponse = OperationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { /** * The response body as text (string format) */ @@ -3261,14 +3125,14 @@ export type FunctionsCreateOrReplaceResponse = FunctionModel & FunctionsCreateOr /** * The response body as parsed JSON or XML */ - parsedBody: FunctionModel; + parsedBody: OperationListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the createOrReplace operation. */ -export type FunctionsUpdateResponse = FunctionModel & FunctionsUpdateHeaders & { +export type StreamingJobsCreateOrReplaceResponse = StreamingJob & StreamingJobsCreateOrReplaceHeaders & { /** * The underlying HTTP response. */ @@ -3276,7 +3140,7 @@ export type FunctionsUpdateResponse = FunctionModel & FunctionsUpdateHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: FunctionsUpdateHeaders; + parsedHeaders: StreamingJobsCreateOrReplaceHeaders; /** * The response body as text (string format) @@ -3286,14 +3150,14 @@ export type FunctionsUpdateResponse = FunctionModel & FunctionsUpdateHeaders & { /** * The response body as parsed JSON or XML */ - parsedBody: FunctionModel; + parsedBody: StreamingJob; }; }; /** - * Contains response data for the get operation. + * Contains response data for the update operation. */ -export type FunctionsGetResponse = FunctionModel & FunctionsGetHeaders & { +export type StreamingJobsUpdateResponse = StreamingJob & StreamingJobsUpdateHeaders & { /** * The underlying HTTP response. */ @@ -3301,7 +3165,7 @@ export type FunctionsGetResponse = FunctionModel & FunctionsGetHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: FunctionsGetHeaders; + parsedHeaders: StreamingJobsUpdateHeaders; /** * The response body as text (string format) @@ -3311,18 +3175,23 @@ export type FunctionsGetResponse = FunctionModel & FunctionsGetHeaders & { /** * The response body as parsed JSON or XML */ - parsedBody: FunctionModel; + parsedBody: StreamingJob; }; }; /** - * Contains response data for the listByStreamingJob operation. + * Contains response data for the get operation. */ -export type FunctionsListByStreamingJobResponse = FunctionListResult & { +export type StreamingJobsGetResponse = StreamingJob & StreamingJobsGetHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: StreamingJobsGetHeaders; + /** * The response body as text (string format) */ @@ -3331,14 +3200,14 @@ export type FunctionsListByStreamingJobResponse = FunctionListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: FunctionListResult; + parsedBody: StreamingJob; }; }; /** - * Contains response data for the test operation. + * Contains response data for the listByResourceGroup operation. */ -export type FunctionsTestResponse = ResourceTestStatus & { +export type StreamingJobsListByResourceGroupResponse = StreamingJobListResult & { /** * The underlying HTTP response. */ @@ -3351,14 +3220,14 @@ export type FunctionsTestResponse = ResourceTestStatus & { /** * The response body as parsed JSON or XML */ - parsedBody: ResourceTestStatus; + parsedBody: StreamingJobListResult; }; }; /** - * Contains response data for the retrieveDefaultDefinition operation. + * Contains response data for the list operation. */ -export type FunctionsRetrieveDefaultDefinitionResponse = FunctionModel & { +export type StreamingJobsListResponse = StreamingJobListResult & { /** * The underlying HTTP response. */ @@ -3371,14 +3240,14 @@ export type FunctionsRetrieveDefaultDefinitionResponse = FunctionModel & { /** * The response body as parsed JSON or XML */ - parsedBody: FunctionModel; + parsedBody: StreamingJobListResult; }; }; /** - * Contains response data for the beginTest operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type FunctionsBeginTestResponse = ResourceTestStatus & { +export type StreamingJobsListByResourceGroupNextResponse = StreamingJobListResult & { /** * The underlying HTTP response. */ @@ -3391,14 +3260,14 @@ export type FunctionsBeginTestResponse = ResourceTestStatus & { /** * The response body as parsed JSON or XML */ - parsedBody: ResourceTestStatus; + parsedBody: StreamingJobListResult; }; }; /** - * Contains response data for the listByStreamingJobNext operation. + * Contains response data for the listNext operation. */ -export type FunctionsListByStreamingJobNextResponse = FunctionListResult & { +export type StreamingJobsListNextResponse = StreamingJobListResult & { /** * The underlying HTTP response. */ @@ -3411,7 +3280,7 @@ export type FunctionsListByStreamingJobNextResponse = FunctionListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: FunctionListResult; + parsedBody: StreamingJobListResult; }; }; @@ -3728,7 +3597,7 @@ export type OutputsListByStreamingJobNextResponse = OutputListResult & { /** * Contains response data for the createOrReplace operation. */ -export type StreamingJobsCreateOrReplaceResponse = StreamingJob & StreamingJobsCreateOrReplaceHeaders & { +export type TransformationsCreateOrReplaceResponse = Transformation & TransformationsCreateOrReplaceHeaders & { /** * The underlying HTTP response. */ @@ -3736,7 +3605,7 @@ export type StreamingJobsCreateOrReplaceResponse = StreamingJob & StreamingJobsC /** * The parsed HTTP response headers. */ - parsedHeaders: StreamingJobsCreateOrReplaceHeaders; + parsedHeaders: TransformationsCreateOrReplaceHeaders; /** * The response body as text (string format) @@ -3746,14 +3615,14 @@ export type StreamingJobsCreateOrReplaceResponse = StreamingJob & StreamingJobsC /** * The response body as parsed JSON or XML */ - parsedBody: StreamingJob; + parsedBody: Transformation; }; }; /** * Contains response data for the update operation. */ -export type StreamingJobsUpdateResponse = StreamingJob & StreamingJobsUpdateHeaders & { +export type TransformationsUpdateResponse = Transformation & TransformationsUpdateHeaders & { /** * The underlying HTTP response. */ @@ -3761,7 +3630,7 @@ export type StreamingJobsUpdateResponse = StreamingJob & StreamingJobsUpdateHead /** * The parsed HTTP response headers. */ - parsedHeaders: StreamingJobsUpdateHeaders; + parsedHeaders: TransformationsUpdateHeaders; /** * The response body as text (string format) @@ -3771,14 +3640,14 @@ export type StreamingJobsUpdateResponse = StreamingJob & StreamingJobsUpdateHead /** * The response body as parsed JSON or XML */ - parsedBody: StreamingJob; + parsedBody: Transformation; }; }; /** * Contains response data for the get operation. */ -export type StreamingJobsGetResponse = StreamingJob & StreamingJobsGetHeaders & { +export type TransformationsGetResponse = Transformation & TransformationsGetHeaders & { /** * The underlying HTTP response. */ @@ -3786,7 +3655,7 @@ export type StreamingJobsGetResponse = StreamingJob & StreamingJobsGetHeaders & /** * The parsed HTTP response headers. */ - parsedHeaders: StreamingJobsGetHeaders; + parsedHeaders: TransformationsGetHeaders; /** * The response body as text (string format) @@ -3796,38 +3665,23 @@ export type StreamingJobsGetResponse = StreamingJob & StreamingJobsGetHeaders & /** * The response body as parsed JSON or XML */ - parsedBody: StreamingJob; + parsedBody: Transformation; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the createOrReplace operation. */ -export type StreamingJobsListByResourceGroupResponse = StreamingJobListResult & { +export type FunctionsCreateOrReplaceResponse = FunctionModel & FunctionsCreateOrReplaceHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML + * The parsed HTTP response headers. */ - parsedBody: StreamingJobListResult; - }; -}; + parsedHeaders: FunctionsCreateOrReplaceHeaders; -/** - * Contains response data for the list operation. - */ -export type StreamingJobsListResponse = StreamingJobListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { /** * The response body as text (string format) */ @@ -3836,18 +3690,23 @@ export type StreamingJobsListResponse = StreamingJobListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: StreamingJobListResult; + parsedBody: FunctionModel; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the update operation. */ -export type StreamingJobsListByResourceGroupNextResponse = StreamingJobListResult & { +export type FunctionsUpdateResponse = FunctionModel & FunctionsUpdateHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: FunctionsUpdateHeaders; + /** * The response body as text (string format) */ @@ -3856,18 +3715,23 @@ export type StreamingJobsListByResourceGroupNextResponse = StreamingJobListResul /** * The response body as parsed JSON or XML */ - parsedBody: StreamingJobListResult; + parsedBody: FunctionModel; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the get operation. */ -export type StreamingJobsListNextResponse = StreamingJobListResult & { +export type FunctionsGetResponse = FunctionModel & FunctionsGetHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: FunctionsGetHeaders; + /** * The response body as text (string format) */ @@ -3876,14 +3740,14 @@ export type StreamingJobsListNextResponse = StreamingJobListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: StreamingJobListResult; + parsedBody: FunctionModel; }; }; /** - * Contains response data for the listQuotas operation. + * Contains response data for the listByStreamingJob operation. */ -export type SubscriptionsListQuotasResponse = SubscriptionQuotasListResult & { +export type FunctionsListByStreamingJobResponse = FunctionListResult & { /** * The underlying HTTP response. */ @@ -3896,23 +3760,18 @@ export type SubscriptionsListQuotasResponse = SubscriptionQuotasListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SubscriptionQuotasListResult; + parsedBody: FunctionListResult; }; }; /** - * Contains response data for the createOrReplace operation. + * Contains response data for the test operation. */ -export type TransformationsCreateOrReplaceResponse = Transformation & TransformationsCreateOrReplaceHeaders & { +export type FunctionsTestResponse = ResourceTestStatus & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: TransformationsCreateOrReplaceHeaders; - /** * The response body as text (string format) */ @@ -3921,23 +3780,18 @@ export type TransformationsCreateOrReplaceResponse = Transformation & Transforma /** * The response body as parsed JSON or XML */ - parsedBody: Transformation; + parsedBody: ResourceTestStatus; }; }; /** - * Contains response data for the update operation. + * Contains response data for the retrieveDefaultDefinition operation. */ -export type TransformationsUpdateResponse = Transformation & TransformationsUpdateHeaders & { +export type FunctionsRetrieveDefaultDefinitionResponse = FunctionModel & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: TransformationsUpdateHeaders; - /** * The response body as text (string format) */ @@ -3946,23 +3800,18 @@ export type TransformationsUpdateResponse = Transformation & TransformationsUpda /** * The response body as parsed JSON or XML */ - parsedBody: Transformation; + parsedBody: FunctionModel; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginTest operation. */ -export type TransformationsGetResponse = Transformation & TransformationsGetHeaders & { +export type FunctionsBeginTestResponse = ResourceTestStatus & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: TransformationsGetHeaders; - /** * The response body as text (string format) */ @@ -3971,14 +3820,14 @@ export type TransformationsGetResponse = Transformation & TransformationsGetHead /** * The response body as parsed JSON or XML */ - parsedBody: Transformation; + parsedBody: ResourceTestStatus; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByStreamingJobNext operation. */ -export type OperationsListResponse = OperationListResult & { +export type FunctionsListByStreamingJobNextResponse = FunctionListResult & { /** * The underlying HTTP response. */ @@ -3991,14 +3840,14 @@ export type OperationsListResponse = OperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationListResult; + parsedBody: FunctionListResult; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listQuotas operation. */ -export type OperationsListNextResponse = OperationListResult & { +export type SubscriptionsListQuotasResponse = SubscriptionQuotasListResult & { /** * The underlying HTTP response. */ @@ -4011,7 +3860,7 @@ export type OperationsListNextResponse = OperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationListResult; + parsedBody: SubscriptionQuotasListResult; }; }; diff --git a/sdk/streamanalytics/arm-streamanalytics/src/models/inputsMappers.ts b/sdk/streamanalytics/arm-streamanalytics/src/models/inputsMappers.ts index 307adf85834f..ea346906cb75 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/models/inputsMappers.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/models/inputsMappers.ts @@ -8,44 +8,36 @@ export { discriminators, - AggregateFunctionProperties, AvroSerialization, AzureDataLakeStoreOutputDataSource, - AzureFunctionOutputDataSource, - AzureMachineLearningServiceFunctionBinding, - AzureMachineLearningServiceInputColumn, - AzureMachineLearningServiceOutputColumn, - AzureMachineLearningStudioFunctionBinding, - AzureMachineLearningStudioInputColumn, - AzureMachineLearningStudioInputs, - AzureMachineLearningStudioOutputColumn, + AzureMachineLearningWebServiceFunctionBinding, + AzureMachineLearningWebServiceInputColumn, + AzureMachineLearningWebServiceInputs, + AzureMachineLearningWebServiceOutputColumn, AzureSqlDatabaseOutputDataSource, AzureSqlReferenceInputDataSource, - AzureSqlReferenceInputDataSourceProperties, AzureSynapseOutputDataSource, AzureTableOutputDataSource, BaseResource, BlobOutputDataSource, BlobReferenceInputDataSource, BlobStreamInputDataSource, - CloudError, Cluster, ClusterInfo, - ClusterProperties, ClusterSku, Compression, - CSharpFunctionBinding, CsvSerialization, - CustomClrSerialization, DiagnosticCondition, Diagnostics, DocumentDbOutputDataSource, + ErrorDetails, + ErrorError, + ErrorModel, ErrorResponse, EventHubOutputDataSource, EventHubStreamInputDataSource, EventHubV2OutputDataSource, EventHubV2StreamInputDataSource, - External, FunctionBinding, FunctionInput, FunctionModel, @@ -67,7 +59,6 @@ export { ParquetSerialization, PowerBIOutputDataSource, PrivateEndpoint, - PrivateEndpointProperties, PrivateLinkConnectionState, PrivateLinkServiceConnection, ProxyResource, @@ -79,9 +70,9 @@ export { Serialization, ServiceBusQueueOutputDataSource, ServiceBusTopicOutputDataSource, + Sku, StorageAccount, StreamingJob, - StreamingJobSku, StreamInputDataSource, StreamInputProperties, SubResource, diff --git a/sdk/streamanalytics/arm-streamanalytics/src/models/mappers.ts b/sdk/streamanalytics/arm-streamanalytics/src/models/mappers.ts index c80dfa931abb..598b47ec7b07 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/models/mappers.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/models/mappers.ts @@ -12,36 +12,83 @@ import * as msRest from "@azure/ms-rest-js"; export const CloudError = CloudErrorMapper; export const BaseResource = BaseResourceMapper; -export const FunctionInput: msRest.CompositeMapper = { - serializedName: "FunctionInput", +export const OperationDisplay: msRest.CompositeMapper = { + serializedName: "Operation_display", type: { name: "Composite", - className: "FunctionInput", + className: "OperationDisplay", modelProperties: { - dataType: { - serializedName: "dataType", + provider: { + readOnly: true, + serializedName: "provider", type: { name: "String" } }, - isConfigurationParameter: { - serializedName: "isConfigurationParameter", + resource: { + readOnly: true, + serializedName: "resource", + type: { + name: "String" + } + }, + operation: { + readOnly: true, + serializedName: "operation", + type: { + name: "String" + } + }, + description: { + readOnly: true, + serializedName: "description", + type: { + name: "String" + } + } + } + } +}; + +export const Operation: msRest.CompositeMapper = { + serializedName: "Operation", + type: { + name: "Composite", + className: "Operation", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + isDataAction: { + serializedName: "isDataAction", type: { name: "Boolean" } + }, + display: { + readOnly: true, + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay" + } } } } }; -export const FunctionOutput: msRest.CompositeMapper = { - serializedName: "FunctionOutput", +export const Sku: msRest.CompositeMapper = { + serializedName: "Sku", type: { name: "Composite", - className: "FunctionOutput", + className: "Sku", modelProperties: { - dataType: { - serializedName: "dataType", + name: { + serializedName: "name", type: { name: "String" } @@ -50,16 +97,16 @@ export const FunctionOutput: msRest.CompositeMapper = { } }; -export const FunctionBinding: msRest.CompositeMapper = { - serializedName: "FunctionBinding", +export const Serialization: msRest.CompositeMapper = { + serializedName: "Serialization", type: { name: "Composite", polymorphicDiscriminator: { serializedName: "type", clientName: "type" }, - uberParent: "FunctionBinding", - className: "FunctionBinding", + uberParent: "Serialization", + className: "Serialization", modelProperties: { type: { required: true, @@ -72,55 +119,128 @@ export const FunctionBinding: msRest.CompositeMapper = { } }; -export const FunctionProperties: msRest.CompositeMapper = { - serializedName: "FunctionProperties", +export const DiagnosticCondition: msRest.CompositeMapper = { + serializedName: "DiagnosticCondition", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, - uberParent: "FunctionProperties", - className: "FunctionProperties", + className: "DiagnosticCondition", modelProperties: { - etag: { + since: { readOnly: true, - serializedName: "etag", + serializedName: "since", type: { name: "String" } }, - type: { - required: true, - serializedName: "type", + code: { + readOnly: true, + serializedName: "code", type: { name: "String" } }, - inputs: { - serializedName: "properties.inputs", + message: { + readOnly: true, + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const Diagnostics: msRest.CompositeMapper = { + serializedName: "Diagnostics", + type: { + name: "Composite", + className: "Diagnostics", + modelProperties: { + conditions: { + readOnly: true, + serializedName: "conditions", type: { name: "Sequence", element: { type: { name: "Composite", - className: "FunctionInput" + className: "DiagnosticCondition" } } } + } + } + } +}; + +export const Compression: msRest.CompositeMapper = { + serializedName: "Compression", + type: { + name: "Composite", + className: "Compression", + modelProperties: { + type: { + required: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const InputProperties: msRest.CompositeMapper = { + serializedName: "InputProperties", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, + uberParent: "InputProperties", + className: "InputProperties", + modelProperties: { + serialization: { + serializedName: "serialization", + type: { + name: "Composite", + className: "Serialization" + } }, - output: { - serializedName: "properties.output", + diagnostics: { + readOnly: true, + serializedName: "diagnostics", type: { name: "Composite", - className: "FunctionOutput" + className: "Diagnostics" } }, - binding: { - serializedName: "properties.binding", + etag: { + readOnly: true, + serializedName: "etag", + type: { + name: "String" + } + }, + compression: { + serializedName: "compression", type: { name: "Composite", - className: "FunctionBinding" + className: "Compression" + } + }, + partitionKey: { + serializedName: "partitionKey", + type: { + name: "String" + } + }, + type: { + required: true, + serializedName: "type", + type: { + name: "String" } } } @@ -157,176 +277,131 @@ export const SubResource: msRest.CompositeMapper = { } }; -export const FunctionModel: msRest.CompositeMapper = { - serializedName: "Function", +export const Input: msRest.CompositeMapper = { + serializedName: "Input", type: { name: "Composite", - className: "FunctionModel", + className: "Input", modelProperties: { ...SubResource.type.modelProperties, properties: { serializedName: "properties", type: { name: "Composite", - className: "FunctionProperties" + className: "InputProperties" } } } } }; -export const ScalarFunctionProperties: msRest.CompositeMapper = { - serializedName: "Scalar", - type: { - name: "Composite", - polymorphicDiscriminator: FunctionProperties.type.polymorphicDiscriminator, - uberParent: "FunctionProperties", - className: "ScalarFunctionProperties", - modelProperties: { - ...FunctionProperties.type.modelProperties - } - } -}; - -export const AzureMachineLearningStudioInputColumn: msRest.CompositeMapper = { - serializedName: "AzureMachineLearningStudioInputColumn", +export const Transformation: msRest.CompositeMapper = { + serializedName: "Transformation", type: { name: "Composite", - className: "AzureMachineLearningStudioInputColumn", + className: "Transformation", modelProperties: { - name: { - serializedName: "name", + ...SubResource.type.modelProperties, + streamingUnits: { + serializedName: "properties.streamingUnits", type: { - name: "String" + name: "Number" } }, - dataType: { - serializedName: "dataType", + validStreamingUnits: { + serializedName: "properties.validStreamingUnits", + type: { + name: "Sequence", + element: { + type: { + name: "Number" + } + } + } + }, + query: { + serializedName: "properties.query", type: { name: "String" } }, - mapTo: { - serializedName: "mapTo", + etag: { + readOnly: true, + serializedName: "properties.etag", type: { - name: "Number" + name: "String" } } } } }; -export const AzureMachineLearningStudioInputs: msRest.CompositeMapper = { - serializedName: "AzureMachineLearningStudioInputs", +export const OutputDataSource: msRest.CompositeMapper = { + serializedName: "OutputDataSource", type: { name: "Composite", - className: "AzureMachineLearningStudioInputs", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, + uberParent: "OutputDataSource", + className: "OutputDataSource", modelProperties: { - name: { - serializedName: "name", + type: { + required: true, + serializedName: "type", type: { name: "String" } - }, - columnNames: { - serializedName: "columnNames", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AzureMachineLearningStudioInputColumn" - } - } - } } } } }; -export const AzureMachineLearningStudioOutputColumn: msRest.CompositeMapper = { - serializedName: "AzureMachineLearningStudioOutputColumn", +export const Output: msRest.CompositeMapper = { + serializedName: "Output", type: { name: "Composite", - className: "AzureMachineLearningStudioOutputColumn", + className: "Output", modelProperties: { - name: { - serializedName: "name", + ...SubResource.type.modelProperties, + datasource: { + serializedName: "properties.datasource", type: { - name: "String" + name: "Composite", + className: "OutputDataSource" } }, - dataType: { - serializedName: "dataType", - type: { - name: "String" - } - } - } - } -}; - -export const AzureMachineLearningStudioFunctionBinding: msRest.CompositeMapper = { - serializedName: "Microsoft.MachineLearning/WebService", - type: { - name: "Composite", - polymorphicDiscriminator: FunctionBinding.type.polymorphicDiscriminator, - uberParent: "FunctionBinding", - className: "AzureMachineLearningStudioFunctionBinding", - modelProperties: { - ...FunctionBinding.type.modelProperties, - endpoint: { - serializedName: "properties.endpoint", + timeWindow: { + serializedName: "properties.timeWindow", type: { name: "String" } }, - apiKey: { - serializedName: "properties.apiKey", + sizeWindow: { + serializedName: "properties.sizeWindow", type: { - name: "String" + name: "Number" } }, - inputs: { - serializedName: "properties.inputs", + serialization: { + serializedName: "properties.serialization", type: { name: "Composite", - className: "AzureMachineLearningStudioInputs" + className: "Serialization" } }, - outputs: { - serializedName: "properties.outputs", + diagnostics: { + readOnly: true, + serializedName: "properties.diagnostics", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AzureMachineLearningStudioOutputColumn" - } - } + name: "Composite", + className: "Diagnostics" } }, - batchSize: { - serializedName: "properties.batchSize", - type: { - name: "Number" - } - } - } - } -}; - -export const JavaScriptFunctionBinding: msRest.CompositeMapper = { - serializedName: "Microsoft.StreamAnalytics/JavascriptUdf", - type: { - name: "Composite", - polymorphicDiscriminator: FunctionBinding.type.polymorphicDiscriminator, - uberParent: "FunctionBinding", - className: "JavaScriptFunctionBinding", - modelProperties: { - ...FunctionBinding.type.modelProperties, - script: { - serializedName: "properties.script", + etag: { + readOnly: true, + serializedName: "properties.etag", type: { name: "String" } @@ -335,35 +410,27 @@ export const JavaScriptFunctionBinding: msRest.CompositeMapper = { } }; -export const CSharpFunctionBinding: msRest.CompositeMapper = { - serializedName: "Microsoft.StreamAnalytics/CLRUdf", +export const FunctionProperties: msRest.CompositeMapper = { + serializedName: "FunctionProperties", type: { name: "Composite", - polymorphicDiscriminator: FunctionBinding.type.polymorphicDiscriminator, - uberParent: "FunctionBinding", - className: "CSharpFunctionBinding", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, + uberParent: "FunctionProperties", + className: "FunctionProperties", modelProperties: { - ...FunctionBinding.type.modelProperties, - script: { - serializedName: "properties.script", - type: { - name: "String" - } - }, - dllPath: { - serializedName: "properties.dllPath", - type: { - name: "String" - } - }, - classProperty: { - serializedName: "properties.class", + etag: { + readOnly: true, + serializedName: "etag", type: { name: "String" } }, - method: { - serializedName: "properties.method", + type: { + required: true, + serializedName: "type", type: { name: "String" } @@ -372,836 +439,421 @@ export const CSharpFunctionBinding: msRest.CompositeMapper = { } }; -export const FunctionRetrieveDefaultDefinitionParameters: msRest.CompositeMapper = { - serializedName: "FunctionRetrieveDefaultDefinitionParameters", +export const FunctionModel: msRest.CompositeMapper = { + serializedName: "Function", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "bindingType", - clientName: "bindingType" - }, - uberParent: "FunctionRetrieveDefaultDefinitionParameters", - className: "FunctionRetrieveDefaultDefinitionParameters", + className: "FunctionModel", modelProperties: { - bindingType: { - required: true, - serializedName: "bindingType", + ...SubResource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "FunctionProperties" } } } } }; -export const AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters: msRest.CompositeMapper = { - serializedName: "Microsoft.MachineLearning/WebService", +export const StorageAccount: msRest.CompositeMapper = { + serializedName: "StorageAccount", type: { name: "Composite", - polymorphicDiscriminator: FunctionRetrieveDefaultDefinitionParameters.type.polymorphicDiscriminator, - uberParent: "FunctionRetrieveDefaultDefinitionParameters", - className: "AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters", + className: "StorageAccount", modelProperties: { - ...FunctionRetrieveDefaultDefinitionParameters.type.modelProperties, - executeEndpoint: { - serializedName: "bindingRetrievalProperties.executeEndpoint", + accountName: { + serializedName: "accountName", type: { name: "String" } }, - udfType: { - serializedName: "bindingRetrievalProperties.udfType", + accountKey: { + serializedName: "accountKey", type: { - name: "Enum", - allowedValues: [ - "Scalar" - ] + name: "String" } } } } }; -export const AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters: msRest.CompositeMapper = { - serializedName: "Microsoft.MachineLearningServices", +export const JobStorageAccount: msRest.CompositeMapper = { + serializedName: "JobStorageAccount", type: { name: "Composite", - polymorphicDiscriminator: FunctionRetrieveDefaultDefinitionParameters.type.polymorphicDiscriminator, - uberParent: "FunctionRetrieveDefaultDefinitionParameters", - className: "AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters", + className: "JobStorageAccount", modelProperties: { - ...FunctionRetrieveDefaultDefinitionParameters.type.modelProperties, - executeEndpoint: { - serializedName: "bindingRetrievalProperties.executeEndpoint", + ...StorageAccount.type.modelProperties, + authenticationMode: { + serializedName: "authenticationMode", type: { name: "String" } - }, - udfType: { - serializedName: "bindingRetrievalProperties.udfType", - type: { - name: "Enum", - allowedValues: [ - "Scalar" - ] - } } } } }; -export const JavaScriptFunctionRetrieveDefaultDefinitionParameters: msRest.CompositeMapper = { - serializedName: "Microsoft.StreamAnalytics/JavascriptUdf", +export const ClusterInfo: msRest.CompositeMapper = { + serializedName: "ClusterInfo", type: { name: "Composite", - polymorphicDiscriminator: FunctionRetrieveDefaultDefinitionParameters.type.polymorphicDiscriminator, - uberParent: "FunctionRetrieveDefaultDefinitionParameters", - className: "JavaScriptFunctionRetrieveDefaultDefinitionParameters", + className: "ClusterInfo", modelProperties: { - ...FunctionRetrieveDefaultDefinitionParameters.type.modelProperties, - script: { - serializedName: "bindingRetrievalProperties.script", + id: { + serializedName: "id", type: { name: "String" } - }, - udfType: { - serializedName: "bindingRetrievalProperties.udfType", - type: { - name: "Enum", - allowedValues: [ - "Scalar" - ] - } } } } }; -export const CSharpFunctionRetrieveDefaultDefinitionParameters: msRest.CompositeMapper = { - serializedName: "Microsoft.StreamAnalytics/CLRUdf", +export const Identity: msRest.CompositeMapper = { + serializedName: "Identity", type: { name: "Composite", - polymorphicDiscriminator: FunctionRetrieveDefaultDefinitionParameters.type.polymorphicDiscriminator, - uberParent: "FunctionRetrieveDefaultDefinitionParameters", - className: "CSharpFunctionRetrieveDefaultDefinitionParameters", + className: "Identity", modelProperties: { - ...FunctionRetrieveDefaultDefinitionParameters.type.modelProperties, - script: { - serializedName: "bindingRetrievalProperties.script", + tenantId: { + serializedName: "tenantId", type: { name: "String" } }, - udfType: { - serializedName: "bindingRetrievalProperties.udfType", + principalId: { + serializedName: "principalId", type: { - name: "Enum", - allowedValues: [ - "Scalar" - ] + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" } } } } }; -export const AzureMachineLearningServiceInputColumn: msRest.CompositeMapper = { - serializedName: "AzureMachineLearningServiceInputColumn", +export const Resource: msRest.CompositeMapper = { + serializedName: "Resource", type: { name: "Composite", - className: "AzureMachineLearningServiceInputColumn", + className: "Resource", modelProperties: { - name: { - serializedName: "name", + id: { + readOnly: true, + serializedName: "id", type: { name: "String" } }, - dataType: { - serializedName: "dataType", + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, - mapTo: { - serializedName: "mapTo", + type: { + readOnly: true, + serializedName: "type", type: { - name: "Number" + name: "String" } } } } }; -export const AzureMachineLearningServiceOutputColumn: msRest.CompositeMapper = { - serializedName: "AzureMachineLearningServiceOutputColumn", +export const TrackedResource: msRest.CompositeMapper = { + serializedName: "TrackedResource", type: { name: "Composite", - className: "AzureMachineLearningServiceOutputColumn", + className: "TrackedResource", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - dataType: { - serializedName: "dataType", + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", type: { - name: "String" - } - }, - mapTo: { - serializedName: "mapTo", - type: { - name: "Number" - } - } - } - } -}; - -export const AzureMachineLearningServiceFunctionBinding: msRest.CompositeMapper = { - serializedName: "Microsoft.MachineLearningServices", - type: { - name: "Composite", - polymorphicDiscriminator: FunctionBinding.type.polymorphicDiscriminator, - uberParent: "FunctionBinding", - className: "AzureMachineLearningServiceFunctionBinding", - modelProperties: { - ...FunctionBinding.type.modelProperties, - endpoint: { - serializedName: "properties.endpoint", - type: { - name: "String" - } - }, - apiKey: { - serializedName: "properties.apiKey", - type: { - name: "String" - } - }, - inputs: { - serializedName: "properties.inputs", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AzureMachineLearningServiceInputColumn" - } - } - } - }, - outputs: { - serializedName: "properties.outputs", - type: { - name: "Sequence", - element: { + name: "Dictionary", + value: { type: { - name: "Composite", - className: "AzureMachineLearningServiceOutputColumn" + name: "String" } } } }, - batchSize: { - serializedName: "properties.batchSize", - type: { - name: "Number" - } - }, - numberOfParallelRequests: { - serializedName: "properties.numberOfParallelRequests", - type: { - name: "Number" - } - } - } - } -}; - -export const AzureMachineLearningServiceInputs: msRest.CompositeMapper = { - serializedName: "AzureMachineLearningServiceInputs", - type: { - name: "Composite", - className: "AzureMachineLearningServiceInputs", - modelProperties: { - name: { - serializedName: "name", + location: { + serializedName: "location", type: { name: "String" } - }, - columnNames: { - serializedName: "columnNames", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AzureMachineLearningServiceInputColumn" - } - } - } } } } }; -export const AggregateFunctionProperties: msRest.CompositeMapper = { - serializedName: "Aggregate", - type: { - name: "Composite", - polymorphicDiscriminator: FunctionProperties.type.polymorphicDiscriminator, - uberParent: "FunctionProperties", - className: "AggregateFunctionProperties", - modelProperties: { - ...FunctionProperties.type.modelProperties - } - } -}; - -export const ErrorResponse: msRest.CompositeMapper = { - serializedName: "ErrorResponse", +export const StreamingJob: msRest.CompositeMapper = { + serializedName: "StreamingJob", type: { name: "Composite", - className: "ErrorResponse", + className: "StreamingJob", modelProperties: { - code: { - readOnly: true, - serializedName: "code", + ...TrackedResource.type.modelProperties, + sku: { + serializedName: "properties.sku", type: { - name: "String" + name: "Composite", + className: "Sku" } }, - message: { - readOnly: true, - serializedName: "message", - type: { - name: "String" - } - } - } - } -}; - -export const ResourceTestStatus: msRest.CompositeMapper = { - serializedName: "ResourceTestStatus", - type: { - name: "Composite", - className: "ResourceTestStatus", - modelProperties: { - status: { + jobId: { readOnly: true, - serializedName: "status", + serializedName: "properties.jobId", type: { name: "String" } }, - error: { - readOnly: true, - serializedName: "error", - type: { - name: "Composite", - className: "ErrorResponse" - } - } - } - } -}; - -export const Serialization: msRest.CompositeMapper = { - serializedName: "Serialization", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, - uberParent: "Serialization", - className: "Serialization", - modelProperties: { - type: { - required: true, - serializedName: "type", - type: { - name: "String" - } - } - } - } -}; - -export const DiagnosticCondition: msRest.CompositeMapper = { - serializedName: "DiagnosticCondition", - type: { - name: "Composite", - className: "DiagnosticCondition", - modelProperties: { - since: { + provisioningState: { readOnly: true, - serializedName: "since", + serializedName: "properties.provisioningState", type: { name: "String" } }, - code: { + jobState: { readOnly: true, - serializedName: "code", + serializedName: "properties.jobState", type: { name: "String" } }, - message: { - readOnly: true, - serializedName: "message", + jobType: { + serializedName: "properties.jobType", type: { name: "String" } - } - } - } -}; - -export const Diagnostics: msRest.CompositeMapper = { - serializedName: "Diagnostics", - type: { - name: "Composite", - className: "Diagnostics", - modelProperties: { - conditions: { - readOnly: true, - serializedName: "conditions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnosticCondition" - } - } - } - } - } - } -}; - -export const Compression: msRest.CompositeMapper = { - serializedName: "Compression", - type: { - name: "Composite", - className: "Compression", - modelProperties: { - type: { - required: true, - serializedName: "type", + }, + outputStartMode: { + serializedName: "properties.outputStartMode", type: { name: "String" } - } - } - } -}; - -export const InputProperties: msRest.CompositeMapper = { - serializedName: "InputProperties", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, - uberParent: "InputProperties", - className: "InputProperties", - modelProperties: { - serialization: { - serializedName: "serialization", - type: { - name: "Composite", - className: "Serialization" - } }, - diagnostics: { - readOnly: true, - serializedName: "diagnostics", + outputStartTime: { + serializedName: "properties.outputStartTime", type: { - name: "Composite", - className: "Diagnostics" + name: "DateTime" } }, - etag: { + lastOutputEventTime: { readOnly: true, - serializedName: "etag", + serializedName: "properties.lastOutputEventTime", type: { - name: "String" + name: "DateTime" } }, - compression: { - serializedName: "compression", + eventsOutOfOrderPolicy: { + serializedName: "properties.eventsOutOfOrderPolicy", type: { - name: "Composite", - className: "Compression" + name: "String" } }, - partitionKey: { - serializedName: "partitionKey", + outputErrorPolicy: { + serializedName: "properties.outputErrorPolicy", type: { name: "String" } }, - type: { - required: true, - serializedName: "type", + eventsOutOfOrderMaxDelayInSeconds: { + serializedName: "properties.eventsOutOfOrderMaxDelayInSeconds", type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const Input: msRest.CompositeMapper = { - serializedName: "Input", - type: { - name: "Composite", - className: "Input", - modelProperties: { - ...SubResource.type.modelProperties, - properties: { - serializedName: "properties", + }, + eventsLateArrivalMaxDelayInSeconds: { + serializedName: "properties.eventsLateArrivalMaxDelayInSeconds", type: { - name: "Composite", - className: "InputProperties" + name: "Number" } - } - } - } -}; - -export const StreamInputDataSource: msRest.CompositeMapper = { - serializedName: "StreamInputDataSource", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, - uberParent: "StreamInputDataSource", - className: "StreamInputDataSource", - modelProperties: { - type: { - required: true, - serializedName: "type", + }, + dataLocale: { + serializedName: "properties.dataLocale", type: { name: "String" } - } - } - } -}; - -export const StreamInputProperties: msRest.CompositeMapper = { - serializedName: "Stream", - type: { - name: "Composite", - polymorphicDiscriminator: InputProperties.type.polymorphicDiscriminator, - uberParent: "InputProperties", - className: "StreamInputProperties", - modelProperties: { - ...InputProperties.type.modelProperties, - datasource: { - serializedName: "datasource", - type: { - name: "Composite", - className: "StreamInputDataSource" - } - } - } - } -}; - -export const ReferenceInputDataSource: msRest.CompositeMapper = { - serializedName: "ReferenceInputDataSource", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, - uberParent: "ReferenceInputDataSource", - className: "ReferenceInputDataSource", - modelProperties: { - type: { - required: true, - serializedName: "type", + }, + compatibilityLevel: { + serializedName: "properties.compatibilityLevel", type: { name: "String" } - } - } - } -}; - -export const ReferenceInputProperties: msRest.CompositeMapper = { - serializedName: "Reference", - type: { - name: "Composite", - polymorphicDiscriminator: InputProperties.type.polymorphicDiscriminator, - uberParent: "InputProperties", - className: "ReferenceInputProperties", - modelProperties: { - ...InputProperties.type.modelProperties, - datasource: { - serializedName: "datasource", + }, + createdDate: { + readOnly: true, + serializedName: "properties.createdDate", type: { - name: "Composite", - className: "ReferenceInputDataSource" + name: "DateTime" } - } - } - } -}; - -export const BlobStreamInputDataSource: msRest.CompositeMapper = { - serializedName: "Microsoft.Storage/Blob", - type: { - name: "Composite", - polymorphicDiscriminator: StreamInputDataSource.type.polymorphicDiscriminator, - uberParent: "StreamInputDataSource", - className: "BlobStreamInputDataSource", - modelProperties: { - ...StreamInputDataSource.type.modelProperties, - storageAccounts: { - serializedName: "properties.storageAccounts", + }, + inputs: { + serializedName: "properties.inputs", type: { name: "Sequence", element: { type: { name: "Composite", - className: "StorageAccount" + className: "Input" } } } }, - container: { - serializedName: "properties.container", - type: { - name: "String" - } - }, - pathPattern: { - serializedName: "properties.pathPattern", - type: { - name: "String" - } - }, - dateFormat: { - serializedName: "properties.dateFormat", + transformation: { + serializedName: "properties.transformation", type: { - name: "String" + name: "Composite", + className: "Transformation" } }, - timeFormat: { - serializedName: "properties.timeFormat", + outputs: { + serializedName: "properties.outputs", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Output" + } + } } }, - sourcePartitionCount: { - serializedName: "properties.sourcePartitionCount", - type: { - name: "Number" - } - } - } - } -}; - -export const EventHubStreamInputDataSource: msRest.CompositeMapper = { - serializedName: "Microsoft.ServiceBus/EventHub", - type: { - name: "Composite", - polymorphicDiscriminator: StreamInputDataSource.type.polymorphicDiscriminator, - uberParent: "StreamInputDataSource", - className: "EventHubStreamInputDataSource", - modelProperties: { - ...StreamInputDataSource.type.modelProperties, - serviceBusNamespace: { - serializedName: "properties.serviceBusNamespace", + functions: { + serializedName: "properties.functions", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FunctionModel" + } + } } - }, - sharedAccessPolicyName: { - serializedName: "properties.sharedAccessPolicyName", + }, + etag: { + readOnly: true, + serializedName: "properties.etag", type: { name: "String" } }, - sharedAccessPolicyKey: { - serializedName: "properties.sharedAccessPolicyKey", + jobStorageAccount: { + serializedName: "properties.jobStorageAccount", type: { - name: "String" + name: "Composite", + className: "JobStorageAccount" } }, - authenticationMode: { - serializedName: "properties.authenticationMode", + contentStoragePolicy: { + serializedName: "properties.contentStoragePolicy", type: { name: "String" } }, - eventHubName: { - serializedName: "properties.eventHubName", + cluster: { + serializedName: "properties.cluster", type: { - name: "String" + name: "Composite", + className: "ClusterInfo" } }, - consumerGroupName: { - serializedName: "properties.consumerGroupName", + identity: { + serializedName: "identity", type: { - name: "String" + name: "Composite", + className: "Identity" } } } } }; -export const EventHubV2StreamInputDataSource: msRest.CompositeMapper = { - serializedName: "Microsoft.EventHub/EventHub", +export const StartStreamingJobParameters: msRest.CompositeMapper = { + serializedName: "StartStreamingJobParameters", type: { name: "Composite", - polymorphicDiscriminator: StreamInputDataSource.type.polymorphicDiscriminator, - uberParent: "StreamInputDataSource", - className: "EventHubV2StreamInputDataSource", + className: "StartStreamingJobParameters", modelProperties: { - ...StreamInputDataSource.type.modelProperties, - serviceBusNamespace: { - serializedName: "properties.serviceBusNamespace", - type: { - name: "String" - } - }, - sharedAccessPolicyName: { - serializedName: "properties.sharedAccessPolicyName", - type: { - name: "String" - } - }, - sharedAccessPolicyKey: { - serializedName: "properties.sharedAccessPolicyKey", - type: { - name: "String" - } - }, - authenticationMode: { - serializedName: "properties.authenticationMode", - type: { - name: "String" - } - }, - eventHubName: { - serializedName: "properties.eventHubName", + outputStartMode: { + serializedName: "outputStartMode", type: { name: "String" } }, - consumerGroupName: { - serializedName: "properties.consumerGroupName", + outputStartTime: { + serializedName: "outputStartTime", type: { - name: "String" + name: "DateTime" } } } } }; -export const IoTHubStreamInputDataSource: msRest.CompositeMapper = { - serializedName: "Microsoft.Devices/IotHubs", +export const ScaleStreamingJobParameters: msRest.CompositeMapper = { + serializedName: "ScaleStreamingJobParameters", type: { name: "Composite", - polymorphicDiscriminator: StreamInputDataSource.type.polymorphicDiscriminator, - uberParent: "StreamInputDataSource", - className: "IoTHubStreamInputDataSource", + className: "ScaleStreamingJobParameters", modelProperties: { - ...StreamInputDataSource.type.modelProperties, - iotHubNamespace: { - serializedName: "properties.iotHubNamespace", - type: { - name: "String" - } - }, - sharedAccessPolicyName: { - serializedName: "properties.sharedAccessPolicyName", - type: { - name: "String" - } - }, - sharedAccessPolicyKey: { - serializedName: "properties.sharedAccessPolicyKey", - type: { - name: "String" - } - }, - consumerGroupName: { - serializedName: "properties.consumerGroupName", - type: { - name: "String" - } - }, - endpoint: { - serializedName: "properties.endpoint", + streamingUnits: { + serializedName: "streamingUnits", type: { - name: "String" + name: "Number" } } } } }; -export const BlobReferenceInputDataSource: msRest.CompositeMapper = { - serializedName: "Microsoft.Storage/Blob", +export const FunctionBinding: msRest.CompositeMapper = { + serializedName: "FunctionBinding", type: { name: "Composite", - polymorphicDiscriminator: ReferenceInputDataSource.type.polymorphicDiscriminator, - uberParent: "ReferenceInputDataSource", - className: "BlobReferenceInputDataSource", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, + uberParent: "FunctionBinding", + className: "FunctionBinding", modelProperties: { - ...ReferenceInputDataSource.type.modelProperties, - storageAccounts: { - serializedName: "properties.storageAccounts", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "StorageAccount" - } - } - } - }, - container: { - serializedName: "properties.container", - type: { - name: "String" - } - }, - pathPattern: { - serializedName: "properties.pathPattern", - type: { - name: "String" - } - }, - dateFormat: { - serializedName: "properties.dateFormat", + type: { + required: true, + serializedName: "type", type: { name: "String" } - }, - timeFormat: { - serializedName: "properties.timeFormat", + } + } + } +}; + +export const JavaScriptFunctionBinding: msRest.CompositeMapper = { + serializedName: "Microsoft.StreamAnalytics/JavascriptUdf", + type: { + name: "Composite", + polymorphicDiscriminator: FunctionBinding.type.polymorphicDiscriminator, + uberParent: "FunctionBinding", + className: "JavaScriptFunctionBinding", + modelProperties: { + ...FunctionBinding.type.modelProperties, + script: { + serializedName: "properties.script", type: { name: "String" } @@ -1210,20 +862,20 @@ export const BlobReferenceInputDataSource: msRest.CompositeMapper = { } }; -export const StorageAccount: msRest.CompositeMapper = { - serializedName: "StorageAccount", +export const AzureMachineLearningWebServiceOutputColumn: msRest.CompositeMapper = { + serializedName: "AzureMachineLearningWebServiceOutputColumn", type: { name: "Composite", - className: "StorageAccount", + className: "AzureMachineLearningWebServiceOutputColumn", modelProperties: { - accountName: { - serializedName: "accountName", + name: { + serializedName: "name", type: { name: "String" } }, - accountKey: { - serializedName: "accountKey", + dataType: { + serializedName: "dataType", type: { name: "String" } @@ -1232,95 +884,120 @@ export const StorageAccount: msRest.CompositeMapper = { } }; -export const BlobDataSourceProperties: msRest.CompositeMapper = { - serializedName: "BlobDataSourceProperties", +export const AzureMachineLearningWebServiceInputColumn: msRest.CompositeMapper = { + serializedName: "AzureMachineLearningWebServiceInputColumn", type: { name: "Composite", - className: "BlobDataSourceProperties", + className: "AzureMachineLearningWebServiceInputColumn", modelProperties: { - storageAccounts: { - serializedName: "storageAccounts", + name: { + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "StorageAccount" - } - } + name: "String" } }, - container: { - serializedName: "container", + dataType: { + serializedName: "dataType", type: { name: "String" } }, - pathPattern: { - serializedName: "pathPattern", + mapTo: { + serializedName: "mapTo", type: { - name: "String" + name: "Number" } - }, - dateFormat: { - serializedName: "dateFormat", + } + } + } +}; + +export const AzureMachineLearningWebServiceInputs: msRest.CompositeMapper = { + serializedName: "AzureMachineLearningWebServiceInputs", + type: { + name: "Composite", + className: "AzureMachineLearningWebServiceInputs", + modelProperties: { + name: { + serializedName: "name", type: { name: "String" } }, - timeFormat: { - serializedName: "timeFormat", + columnNames: { + serializedName: "columnNames", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureMachineLearningWebServiceInputColumn" + } + } } } } } }; -export const ServiceBusDataSourceProperties: msRest.CompositeMapper = { - serializedName: "ServiceBusDataSourceProperties", +export const AzureMachineLearningWebServiceFunctionBinding: msRest.CompositeMapper = { + serializedName: "Microsoft.MachineLearning/WebService", type: { name: "Composite", - className: "ServiceBusDataSourceProperties", + polymorphicDiscriminator: FunctionBinding.type.polymorphicDiscriminator, + uberParent: "FunctionBinding", + className: "AzureMachineLearningWebServiceFunctionBinding", modelProperties: { - serviceBusNamespace: { - serializedName: "serviceBusNamespace", + ...FunctionBinding.type.modelProperties, + endpoint: { + serializedName: "properties.endpoint", type: { name: "String" } }, - sharedAccessPolicyName: { - serializedName: "sharedAccessPolicyName", + apiKey: { + serializedName: "properties.apiKey", type: { name: "String" } }, - sharedAccessPolicyKey: { - serializedName: "sharedAccessPolicyKey", + inputs: { + serializedName: "properties.inputs", type: { - name: "String" + name: "Composite", + className: "AzureMachineLearningWebServiceInputs" + } + }, + outputs: { + serializedName: "properties.outputs", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureMachineLearningWebServiceOutputColumn" + } + } } }, - authenticationMode: { - serializedName: "authenticationMode", + batchSize: { + serializedName: "properties.batchSize", type: { - name: "String" + name: "Number" } } } } }; -export const EventHubDataSourceProperties: msRest.CompositeMapper = { - serializedName: "EventHubDataSourceProperties", +export const FunctionOutput: msRest.CompositeMapper = { + serializedName: "FunctionOutput", type: { name: "Composite", - className: "EventHubDataSourceProperties", + className: "FunctionOutput", modelProperties: { - ...ServiceBusDataSourceProperties.type.modelProperties, - eventHubName: { - serializedName: "eventHubName", + dataType: { + serializedName: "dataType", type: { name: "String" } @@ -1329,94 +1006,61 @@ export const EventHubDataSourceProperties: msRest.CompositeMapper = { } }; -export const ParquetSerialization: msRest.CompositeMapper = { - serializedName: "Parquet", - type: { - name: "Composite", - polymorphicDiscriminator: Serialization.type.polymorphicDiscriminator, - uberParent: "Serialization", - className: "ParquetSerialization", - modelProperties: { - ...Serialization.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Object" - } - } - } - } -}; - -export const CustomClrSerialization: msRest.CompositeMapper = { - serializedName: "CustomClr", +export const FunctionInput: msRest.CompositeMapper = { + serializedName: "FunctionInput", type: { name: "Composite", - polymorphicDiscriminator: Serialization.type.polymorphicDiscriminator, - uberParent: "Serialization", - className: "CustomClrSerialization", + className: "FunctionInput", modelProperties: { - ...Serialization.type.modelProperties, - serializationDllPath: { - serializedName: "properties.serializationDllPath", + dataType: { + serializedName: "dataType", type: { name: "String" } }, - serializationClassName: { - serializedName: "properties.serializationClassName", + isConfigurationParameter: { + serializedName: "isConfigurationParameter", type: { - name: "String" + name: "Boolean" } } } } }; -export const CsvSerialization: msRest.CompositeMapper = { - serializedName: "Csv", +export const ScalarFunctionProperties: msRest.CompositeMapper = { + serializedName: "Scalar", type: { name: "Composite", - polymorphicDiscriminator: Serialization.type.polymorphicDiscriminator, - uberParent: "Serialization", - className: "CsvSerialization", + polymorphicDiscriminator: FunctionProperties.type.polymorphicDiscriminator, + uberParent: "FunctionProperties", + className: "ScalarFunctionProperties", modelProperties: { - ...Serialization.type.modelProperties, - fieldDelimiter: { - serializedName: "properties.fieldDelimiter", + ...FunctionProperties.type.modelProperties, + inputs: { + serializedName: "properties.inputs", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FunctionInput" + } + } } }, - encoding: { - serializedName: "properties.encoding", - type: { - name: "String" - } - } - } - } -}; - -export const JsonSerialization: msRest.CompositeMapper = { - serializedName: "Json", - type: { - name: "Composite", - polymorphicDiscriminator: Serialization.type.polymorphicDiscriminator, - uberParent: "Serialization", - className: "JsonSerialization", - modelProperties: { - ...Serialization.type.modelProperties, - encoding: { - serializedName: "properties.encoding", + output: { + serializedName: "properties.output", type: { - name: "String" + name: "Composite", + className: "FunctionOutput" } }, - format: { - serializedName: "properties.format", + binding: { + serializedName: "properties.binding", type: { - name: "String" + name: "Composite", + className: "FunctionBinding" } } } @@ -1442,26 +1086,23 @@ export const AvroSerialization: msRest.CompositeMapper = { } }; -export const Identity: msRest.CompositeMapper = { - serializedName: "Identity", +export const JsonSerialization: msRest.CompositeMapper = { + serializedName: "Json", type: { name: "Composite", - className: "Identity", + polymorphicDiscriminator: Serialization.type.polymorphicDiscriminator, + uberParent: "Serialization", + className: "JsonSerialization", modelProperties: { - tenantId: { - serializedName: "tenantId", - type: { - name: "String" - } - }, - principalId: { - serializedName: "principalId", + ...Serialization.type.modelProperties, + encoding: { + serializedName: "properties.encoding", type: { name: "String" } }, - type: { - serializedName: "type", + format: { + serializedName: "properties.format", type: { name: "String" } @@ -1470,62 +1111,23 @@ export const Identity: msRest.CompositeMapper = { } }; -export const AzureSqlReferenceInputDataSourceProperties: msRest.CompositeMapper = { - serializedName: "AzureSqlReferenceInputDataSourceProperties", +export const CsvSerialization: msRest.CompositeMapper = { + serializedName: "Csv", type: { name: "Composite", - className: "AzureSqlReferenceInputDataSourceProperties", + polymorphicDiscriminator: Serialization.type.polymorphicDiscriminator, + uberParent: "Serialization", + className: "CsvSerialization", modelProperties: { - server: { - serializedName: "server", - type: { - name: "String" - } - }, - database: { - serializedName: "database", - type: { - name: "String" - } - }, - user: { - serializedName: "user", - type: { - name: "String" - } - }, - password: { - serializedName: "password", - type: { - name: "String" - } - }, - table: { - serializedName: "table", - type: { - name: "String" - } - }, - refreshType: { - serializedName: "refreshType", - type: { - name: "String" - } - }, - refreshRate: { - serializedName: "refreshRate", - type: { - name: "String" - } - }, - fullSnapshotQuery: { - serializedName: "fullSnapshotQuery", + ...Serialization.type.modelProperties, + fieldDelimiter: { + serializedName: "properties.fieldDelimiter", type: { name: "String" } }, - deltaSnapshotQuery: { - serializedName: "deltaSnapshotQuery", + encoding: { + serializedName: "properties.encoding", type: { name: "String" } @@ -1534,92 +1136,45 @@ export const AzureSqlReferenceInputDataSourceProperties: msRest.CompositeMapper } }; -export const AzureSqlReferenceInputDataSource: msRest.CompositeMapper = { - serializedName: "Microsoft.Sql/Server/Database", +export const ParquetSerialization: msRest.CompositeMapper = { + serializedName: "Parquet", type: { name: "Composite", - polymorphicDiscriminator: ReferenceInputDataSource.type.polymorphicDiscriminator, - uberParent: "ReferenceInputDataSource", - className: "AzureSqlReferenceInputDataSource", + polymorphicDiscriminator: Serialization.type.polymorphicDiscriminator, + uberParent: "Serialization", + className: "ParquetSerialization", modelProperties: { - ...ReferenceInputDataSource.type.modelProperties, + ...Serialization.type.modelProperties, properties: { serializedName: "properties", type: { - name: "Composite", - className: "AzureSqlReferenceInputDataSourceProperties" - } - } - } - } -}; - -export const OutputDataSource: msRest.CompositeMapper = { - serializedName: "OutputDataSource", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, - uberParent: "OutputDataSource", - className: "OutputDataSource", - modelProperties: { - type: { - required: true, - serializedName: "type", - type: { - name: "String" + name: "Object" } } } } }; -export const Output: msRest.CompositeMapper = { - serializedName: "Output", +export const OAuthBasedDataSourceProperties: msRest.CompositeMapper = { + serializedName: "OAuthBasedDataSourceProperties", type: { name: "Composite", - className: "Output", + className: "OAuthBasedDataSourceProperties", modelProperties: { - ...SubResource.type.modelProperties, - datasource: { - serializedName: "properties.datasource", - type: { - name: "Composite", - className: "OutputDataSource" - } - }, - timeWindow: { - serializedName: "properties.timeWindow", + refreshToken: { + serializedName: "refreshToken", type: { name: "String" } - }, - sizeWindow: { - serializedName: "properties.sizeWindow", - type: { - name: "Number" - } - }, - serialization: { - serializedName: "properties.serialization", - type: { - name: "Composite", - className: "Serialization" - } - }, - diagnostics: { - readOnly: true, - serializedName: "properties.diagnostics", + }, + tokenUserPrincipalName: { + serializedName: "tokenUserPrincipalName", type: { - name: "Composite", - className: "Diagnostics" + name: "String" } }, - etag: { - readOnly: true, - serializedName: "properties.etag", + tokenUserDisplayName: { + serializedName: "tokenUserDisplayName", type: { name: "String" } @@ -1628,35 +1183,47 @@ export const Output: msRest.CompositeMapper = { } }; -export const BlobOutputDataSource: msRest.CompositeMapper = { - serializedName: "Microsoft.Storage/Blob", +export const AzureDataLakeStoreOutputDataSource: msRest.CompositeMapper = { + serializedName: "Microsoft.DataLake/Accounts", type: { name: "Composite", polymorphicDiscriminator: OutputDataSource.type.polymorphicDiscriminator, uberParent: "OutputDataSource", - className: "BlobOutputDataSource", + className: "AzureDataLakeStoreOutputDataSource", modelProperties: { ...OutputDataSource.type.modelProperties, - storageAccounts: { - serializedName: "properties.storageAccounts", + refreshToken: { + serializedName: "properties.refreshToken", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "StorageAccount" - } - } + name: "String" } }, - container: { - serializedName: "properties.container", + tokenUserPrincipalName: { + serializedName: "properties.tokenUserPrincipalName", type: { name: "String" } }, - pathPattern: { - serializedName: "properties.pathPattern", + tokenUserDisplayName: { + serializedName: "properties.tokenUserDisplayName", + type: { + name: "String" + } + }, + accountName: { + serializedName: "properties.accountName", + type: { + name: "String" + } + }, + tenantId: { + serializedName: "properties.tenantId", + type: { + name: "String" + } + }, + filePathPrefix: { + serializedName: "properties.filePathPrefix", type: { name: "String" } @@ -1683,23 +1250,35 @@ export const BlobOutputDataSource: msRest.CompositeMapper = { } }; -export const AzureTableOutputDataSource: msRest.CompositeMapper = { - serializedName: "Microsoft.Storage/Table", +export const PowerBIOutputDataSource: msRest.CompositeMapper = { + serializedName: "PowerBI", type: { name: "Composite", polymorphicDiscriminator: OutputDataSource.type.polymorphicDiscriminator, uberParent: "OutputDataSource", - className: "AzureTableOutputDataSource", + className: "PowerBIOutputDataSource", modelProperties: { ...OutputDataSource.type.modelProperties, - accountName: { - serializedName: "properties.accountName", + refreshToken: { + serializedName: "properties.refreshToken", type: { name: "String" } }, - accountKey: { - serializedName: "properties.accountKey", + tokenUserPrincipalName: { + serializedName: "properties.tokenUserPrincipalName", + type: { + name: "String" + } + }, + tokenUserDisplayName: { + serializedName: "properties.tokenUserDisplayName", + type: { + name: "String" + } + }, + dataset: { + serializedName: "properties.dataset", type: { name: "String" } @@ -1710,46 +1289,86 @@ export const AzureTableOutputDataSource: msRest.CompositeMapper = { name: "String" } }, - partitionKey: { - serializedName: "properties.partitionKey", + groupId: { + serializedName: "properties.groupId", type: { name: "String" } }, - rowKey: { - serializedName: "properties.rowKey", + groupName: { + serializedName: "properties.groupName", type: { name: "String" } }, - columnsToRemove: { - serializedName: "properties.columnsToRemove", + authenticationMode: { + serializedName: "properties.authenticationMode", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" + } + } + } + } +}; + +export const ServiceBusDataSourceProperties: msRest.CompositeMapper = { + serializedName: "ServiceBusDataSourceProperties", + type: { + name: "Composite", + className: "ServiceBusDataSourceProperties", + modelProperties: { + serviceBusNamespace: { + serializedName: "serviceBusNamespace", + type: { + name: "String" } }, - batchSize: { - serializedName: "properties.batchSize", + sharedAccessPolicyName: { + serializedName: "sharedAccessPolicyName", type: { - name: "Number" + name: "String" + } + }, + sharedAccessPolicyKey: { + serializedName: "sharedAccessPolicyKey", + type: { + name: "String" + } + }, + authenticationMode: { + serializedName: "authenticationMode", + type: { + name: "String" } } } } }; -export const EventHubOutputDataSource: msRest.CompositeMapper = { - serializedName: "Microsoft.ServiceBus/EventHub", +export const EventHubDataSourceProperties: msRest.CompositeMapper = { + serializedName: "EventHubDataSourceProperties", + type: { + name: "Composite", + className: "EventHubDataSourceProperties", + modelProperties: { + ...ServiceBusDataSourceProperties.type.modelProperties, + eventHubName: { + serializedName: "eventHubName", + type: { + name: "String" + } + } + } + } +}; + +export const ServiceBusTopicOutputDataSource: msRest.CompositeMapper = { + serializedName: "Microsoft.ServiceBus/Topic", type: { name: "Composite", polymorphicDiscriminator: OutputDataSource.type.polymorphicDiscriminator, uberParent: "OutputDataSource", - className: "EventHubOutputDataSource", + className: "ServiceBusTopicOutputDataSource", modelProperties: { ...OutputDataSource.type.modelProperties, serviceBusNamespace: { @@ -1776,14 +1395,8 @@ export const EventHubOutputDataSource: msRest.CompositeMapper = { name: "String" } }, - eventHubName: { - serializedName: "properties.eventHubName", - type: { - name: "String" - } - }, - partitionKey: { - serializedName: "properties.partitionKey", + topicName: { + serializedName: "properties.topicName", type: { name: "String" } @@ -1798,18 +1411,29 @@ export const EventHubOutputDataSource: msRest.CompositeMapper = { } } } + }, + systemPropertyColumns: { + serializedName: "properties.systemPropertyColumns", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } } } } }; -export const EventHubV2OutputDataSource: msRest.CompositeMapper = { - serializedName: "Microsoft.EventHub/EventHub", +export const ServiceBusQueueOutputDataSource: msRest.CompositeMapper = { + serializedName: "Microsoft.ServiceBus/Queue", type: { name: "Composite", polymorphicDiscriminator: OutputDataSource.type.polymorphicDiscriminator, uberParent: "OutputDataSource", - className: "EventHubV2OutputDataSource", + className: "ServiceBusQueueOutputDataSource", modelProperties: { ...OutputDataSource.type.modelProperties, serviceBusNamespace: { @@ -1836,14 +1460,8 @@ export const EventHubV2OutputDataSource: msRest.CompositeMapper = { name: "String" } }, - eventHubName: { - serializedName: "properties.eventHubName", - type: { - name: "String" - } - }, - partitionKey: { - serializedName: "properties.partitionKey", + queueName: { + serializedName: "properties.queueName", type: { name: "String" } @@ -1858,22 +1476,34 @@ export const EventHubV2OutputDataSource: msRest.CompositeMapper = { } } } + }, + systemPropertyColumns: { + serializedName: "properties.systemPropertyColumns", + type: { + name: "Object" + } } } } }; -export const AzureSqlDatabaseOutputDataSource: msRest.CompositeMapper = { - serializedName: "Microsoft.Sql/Server/Database", +export const DocumentDbOutputDataSource: msRest.CompositeMapper = { + serializedName: "Microsoft.Storage/DocumentDB", type: { name: "Composite", polymorphicDiscriminator: OutputDataSource.type.polymorphicDiscriminator, uberParent: "OutputDataSource", - className: "AzureSqlDatabaseOutputDataSource", + className: "DocumentDbOutputDataSource", modelProperties: { ...OutputDataSource.type.modelProperties, - server: { - serializedName: "properties.server", + accountId: { + serializedName: "properties.accountId", + type: { + name: "String" + } + }, + accountKey: { + serializedName: "properties.accountKey", type: { name: "String" } @@ -1884,38 +1514,60 @@ export const AzureSqlDatabaseOutputDataSource: msRest.CompositeMapper = { name: "String" } }, - user: { - serializedName: "properties.user", + collectionNamePattern: { + serializedName: "properties.collectionNamePattern", type: { name: "String" } }, - password: { - serializedName: "properties.password", + partitionKey: { + serializedName: "properties.partitionKey", type: { name: "String" } }, - table: { - serializedName: "properties.table", + documentId: { + serializedName: "properties.documentId", + type: { + name: "String" + } + } + } + } +}; + +export const AzureSynapseDataSourceProperties: msRest.CompositeMapper = { + serializedName: "AzureSynapseDataSourceProperties", + type: { + name: "Composite", + className: "AzureSynapseDataSourceProperties", + modelProperties: { + server: { + serializedName: "server", type: { name: "String" } }, - maxBatchCount: { - serializedName: "properties.maxBatchCount", + database: { + serializedName: "database", type: { - name: "Number" + name: "String" + } + }, + table: { + serializedName: "table", + type: { + name: "String" } }, - maxWriterCount: { - serializedName: "properties.maxWriterCount", + user: { + serializedName: "user", type: { - name: "Number" + name: "String" } }, - authenticationMode: { - serializedName: "properties.authenticationMode", + password: { + serializedName: "password", type: { name: "String" } @@ -1967,11 +1619,11 @@ export const AzureSynapseOutputDataSource: msRest.CompositeMapper = { } }; -export const AzureSynapseDataSourceProperties: msRest.CompositeMapper = { - serializedName: "AzureSynapseDataSourceProperties", +export const AzureSqlDatabaseDataSourceProperties: msRest.CompositeMapper = { + serializedName: "AzureSqlDatabaseDataSourceProperties", type: { name: "Composite", - className: "AzureSynapseDataSourceProperties", + className: "AzureSqlDatabaseDataSourceProperties", modelProperties: { server: { serializedName: "server", @@ -1985,12 +1637,6 @@ export const AzureSynapseDataSourceProperties: msRest.CompositeMapper = { name: "String" } }, - table: { - serializedName: "table", - type: { - name: "String" - } - }, user: { serializedName: "user", type: { @@ -2002,52 +1648,27 @@ export const AzureSynapseDataSourceProperties: msRest.CompositeMapper = { type: { name: "String" } - } - } - } -}; - -export const DocumentDbOutputDataSource: msRest.CompositeMapper = { - serializedName: "Microsoft.Storage/DocumentDB", - type: { - name: "Composite", - polymorphicDiscriminator: OutputDataSource.type.polymorphicDiscriminator, - uberParent: "OutputDataSource", - className: "DocumentDbOutputDataSource", - modelProperties: { - ...OutputDataSource.type.modelProperties, - accountId: { - serializedName: "properties.accountId", - type: { - name: "String" - } - }, - accountKey: { - serializedName: "properties.accountKey", - type: { - name: "String" - } }, - database: { - serializedName: "properties.database", + table: { + serializedName: "table", type: { name: "String" } }, - collectionNamePattern: { - serializedName: "properties.collectionNamePattern", + maxBatchCount: { + serializedName: "maxBatchCount", type: { - name: "String" + name: "Number" } }, - partitionKey: { - serializedName: "properties.partitionKey", + maxWriterCount: { + serializedName: "maxWriterCount", type: { - name: "String" + name: "Number" } }, - documentId: { - serializedName: "properties.documentId", + authenticationMode: { + serializedName: "authenticationMode", type: { name: "String" } @@ -2056,37 +1677,43 @@ export const DocumentDbOutputDataSource: msRest.CompositeMapper = { } }; -export const AzureFunctionOutputDataSource: msRest.CompositeMapper = { - serializedName: "Microsoft.AzureFunction", +export const AzureSqlDatabaseOutputDataSource: msRest.CompositeMapper = { + serializedName: "Microsoft.Sql/Server/Database", type: { name: "Composite", polymorphicDiscriminator: OutputDataSource.type.polymorphicDiscriminator, uberParent: "OutputDataSource", - className: "AzureFunctionOutputDataSource", + className: "AzureSqlDatabaseOutputDataSource", modelProperties: { ...OutputDataSource.type.modelProperties, - functionAppName: { - serializedName: "properties.functionAppName", + server: { + serializedName: "properties.server", type: { name: "String" } }, - functionName: { - serializedName: "properties.functionName", + database: { + serializedName: "properties.database", type: { name: "String" } }, - apiKey: { - serializedName: "properties.apiKey", + user: { + serializedName: "properties.user", + type: { + name: "String" + } + }, + password: { + serializedName: "properties.password", type: { name: "String" } }, - maxBatchSize: { - serializedName: "properties.maxBatchSize", + table: { + serializedName: "properties.table", type: { - name: "Number" + name: "String" } }, maxBatchCount: { @@ -2094,18 +1721,30 @@ export const AzureFunctionOutputDataSource: msRest.CompositeMapper = { type: { name: "Number" } + }, + maxWriterCount: { + serializedName: "properties.maxWriterCount", + type: { + name: "Number" + } + }, + authenticationMode: { + serializedName: "properties.authenticationMode", + type: { + name: "String" + } } } } }; -export const ServiceBusQueueOutputDataSource: msRest.CompositeMapper = { - serializedName: "Microsoft.ServiceBus/Queue", +export const EventHubV2OutputDataSource: msRest.CompositeMapper = { + serializedName: "Microsoft.EventHub/EventHub", type: { name: "Composite", polymorphicDiscriminator: OutputDataSource.type.polymorphicDiscriminator, uberParent: "OutputDataSource", - className: "ServiceBusQueueOutputDataSource", + className: "EventHubV2OutputDataSource", modelProperties: { ...OutputDataSource.type.modelProperties, serviceBusNamespace: { @@ -2132,8 +1771,14 @@ export const ServiceBusQueueOutputDataSource: msRest.CompositeMapper = { name: "String" } }, - queueName: { - serializedName: "properties.queueName", + eventHubName: { + serializedName: "properties.eventHubName", + type: { + name: "String" + } + }, + partitionKey: { + serializedName: "properties.partitionKey", type: { name: "String" } @@ -2148,29 +1793,18 @@ export const ServiceBusQueueOutputDataSource: msRest.CompositeMapper = { } } } - }, - systemPropertyColumns: { - serializedName: "properties.systemPropertyColumns", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } } } } }; -export const ServiceBusTopicOutputDataSource: msRest.CompositeMapper = { - serializedName: "Microsoft.ServiceBus/Topic", +export const EventHubOutputDataSource: msRest.CompositeMapper = { + serializedName: "Microsoft.ServiceBus/EventHub", type: { name: "Composite", polymorphicDiscriminator: OutputDataSource.type.polymorphicDiscriminator, uberParent: "OutputDataSource", - className: "ServiceBusTopicOutputDataSource", + className: "EventHubOutputDataSource", modelProperties: { ...OutputDataSource.type.modelProperties, serviceBusNamespace: { @@ -2197,8 +1831,14 @@ export const ServiceBusTopicOutputDataSource: msRest.CompositeMapper = { name: "String" } }, - topicName: { - serializedName: "properties.topicName", + eventHubName: { + serializedName: "properties.eventHubName", + type: { + name: "String" + } + }, + partitionKey: { + serializedName: "properties.partitionKey", type: { name: "String" } @@ -2213,142 +1853,109 @@ export const ServiceBusTopicOutputDataSource: msRest.CompositeMapper = { } } } - }, - systemPropertyColumns: { - serializedName: "properties.systemPropertyColumns", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } } } } }; -export const PowerBIOutputDataSource: msRest.CompositeMapper = { - serializedName: "PowerBI", +export const AzureTableOutputDataSource: msRest.CompositeMapper = { + serializedName: "Microsoft.Storage/Table", type: { name: "Composite", polymorphicDiscriminator: OutputDataSource.type.polymorphicDiscriminator, uberParent: "OutputDataSource", - className: "PowerBIOutputDataSource", + className: "AzureTableOutputDataSource", modelProperties: { ...OutputDataSource.type.modelProperties, - refreshToken: { - serializedName: "properties.refreshToken", - type: { - name: "String" - } - }, - tokenUserPrincipalName: { - serializedName: "properties.tokenUserPrincipalName", + accountName: { + serializedName: "properties.accountName", type: { name: "String" } }, - tokenUserDisplayName: { - serializedName: "properties.tokenUserDisplayName", + accountKey: { + serializedName: "properties.accountKey", type: { name: "String" } }, - dataset: { - serializedName: "properties.dataset", + table: { + serializedName: "properties.table", type: { name: "String" } }, - table: { - serializedName: "properties.table", + partitionKey: { + serializedName: "properties.partitionKey", type: { name: "String" } }, - groupId: { - serializedName: "properties.groupId", + rowKey: { + serializedName: "properties.rowKey", type: { name: "String" } }, - groupName: { - serializedName: "properties.groupName", + columnsToRemove: { + serializedName: "properties.columnsToRemove", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - authenticationMode: { - serializedName: "properties.authenticationMode", + batchSize: { + serializedName: "properties.batchSize", type: { - name: "String" + name: "Number" } } } } }; -export const AzureDataLakeStoreOutputDataSource: msRest.CompositeMapper = { - serializedName: "Microsoft.DataLake/Accounts", +export const BlobDataSourceProperties: msRest.CompositeMapper = { + serializedName: "BlobDataSourceProperties", type: { name: "Composite", - polymorphicDiscriminator: OutputDataSource.type.polymorphicDiscriminator, - uberParent: "OutputDataSource", - className: "AzureDataLakeStoreOutputDataSource", + className: "BlobDataSourceProperties", modelProperties: { - ...OutputDataSource.type.modelProperties, - refreshToken: { - serializedName: "properties.refreshToken", - type: { - name: "String" - } - }, - tokenUserPrincipalName: { - serializedName: "properties.tokenUserPrincipalName", - type: { - name: "String" - } - }, - tokenUserDisplayName: { - serializedName: "properties.tokenUserDisplayName", - type: { - name: "String" - } - }, - accountName: { - serializedName: "properties.accountName", - type: { - name: "String" - } - }, - tenantId: { - serializedName: "properties.tenantId", + storageAccounts: { + serializedName: "storageAccounts", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StorageAccount" + } + } } }, - filePathPrefix: { - serializedName: "properties.filePathPrefix", + container: { + serializedName: "container", type: { name: "String" } }, - dateFormat: { - serializedName: "properties.dateFormat", + pathPattern: { + serializedName: "pathPattern", type: { name: "String" } }, - timeFormat: { - serializedName: "properties.timeFormat", + dateFormat: { + serializedName: "dateFormat", type: { name: "String" } }, - authenticationMode: { - serializedName: "properties.authenticationMode", + timeFormat: { + serializedName: "timeFormat", type: { name: "String" } @@ -2357,56 +1964,53 @@ export const AzureDataLakeStoreOutputDataSource: msRest.CompositeMapper = { } }; -export const AzureSqlDatabaseDataSourceProperties: msRest.CompositeMapper = { - serializedName: "AzureSqlDatabaseDataSourceProperties", +export const BlobOutputDataSource: msRest.CompositeMapper = { + serializedName: "Microsoft.Storage/Blob", type: { name: "Composite", - className: "AzureSqlDatabaseDataSourceProperties", + polymorphicDiscriminator: OutputDataSource.type.polymorphicDiscriminator, + uberParent: "OutputDataSource", + className: "BlobOutputDataSource", modelProperties: { - server: { - serializedName: "server", + ...OutputDataSource.type.modelProperties, + storageAccounts: { + serializedName: "properties.storageAccounts", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StorageAccount" + } + } } }, - database: { - serializedName: "database", + container: { + serializedName: "properties.container", type: { name: "String" } }, - user: { - serializedName: "user", + pathPattern: { + serializedName: "properties.pathPattern", type: { name: "String" } }, - password: { - serializedName: "password", + dateFormat: { + serializedName: "properties.dateFormat", type: { name: "String" } }, - table: { - serializedName: "table", + timeFormat: { + serializedName: "properties.timeFormat", type: { name: "String" } }, - maxBatchCount: { - serializedName: "maxBatchCount", - type: { - name: "Number" - } - }, - maxWriterCount: { - serializedName: "maxWriterCount", - type: { - name: "Number" - } - }, authenticationMode: { - serializedName: "authenticationMode", + serializedName: "properties.authenticationMode", type: { name: "String" } @@ -2415,26 +2019,20 @@ export const AzureSqlDatabaseDataSourceProperties: msRest.CompositeMapper = { } }; -export const OAuthBasedDataSourceProperties: msRest.CompositeMapper = { - serializedName: "OAuthBasedDataSourceProperties", +export const ReferenceInputDataSource: msRest.CompositeMapper = { + serializedName: "ReferenceInputDataSource", type: { name: "Composite", - className: "OAuthBasedDataSourceProperties", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, + uberParent: "ReferenceInputDataSource", + className: "ReferenceInputDataSource", modelProperties: { - refreshToken: { - serializedName: "refreshToken", - type: { - name: "String" - } - }, - tokenUserPrincipalName: { - serializedName: "tokenUserPrincipalName", - type: { - name: "String" - } - }, - tokenUserDisplayName: { - serializedName: "tokenUserDisplayName", + type: { + required: true, + serializedName: "type", type: { name: "String" } @@ -2443,106 +2041,65 @@ export const OAuthBasedDataSourceProperties: msRest.CompositeMapper = { } }; -export const External: msRest.CompositeMapper = { - serializedName: "External", +export const AzureSqlReferenceInputDataSource: msRest.CompositeMapper = { + serializedName: "Microsoft.Sql/Server/Database", type: { name: "Composite", - className: "External", + polymorphicDiscriminator: ReferenceInputDataSource.type.polymorphicDiscriminator, + uberParent: "ReferenceInputDataSource", + className: "AzureSqlReferenceInputDataSource", modelProperties: { - storageAccount: { - serializedName: "storageAccount", + ...ReferenceInputDataSource.type.modelProperties, + server: { + serializedName: "properties.server", type: { - name: "Composite", - className: "StorageAccount" + name: "String" } }, - container: { - serializedName: "container", + database: { + serializedName: "properties.database", type: { name: "String" } }, - path: { - serializedName: "path", + user: { + serializedName: "properties.user", type: { name: "String" } - } - } - } -}; - -export const OperationDisplay: msRest.CompositeMapper = { - serializedName: "Operation_display", - type: { - name: "Composite", - className: "OperationDisplay", - modelProperties: { - provider: { - readOnly: true, - serializedName: "provider", + }, + password: { + serializedName: "properties.password", type: { name: "String" } }, - resource: { - readOnly: true, - serializedName: "resource", + table: { + serializedName: "properties.table", type: { name: "String" } }, - operation: { - readOnly: true, - serializedName: "operation", + refreshType: { + serializedName: "properties.refreshType", type: { name: "String" } }, - description: { - readOnly: true, - serializedName: "description", + refreshRate: { + serializedName: "properties.refreshRate", type: { name: "String" } - } - } - } -}; - -export const Operation: msRest.CompositeMapper = { - serializedName: "Operation", - type: { - name: "Composite", - className: "Operation", - modelProperties: { - name: { - readOnly: true, - serializedName: "name", + }, + fullSnapshotQuery: { + serializedName: "properties.fullSnapshotQuery", type: { name: "String" } }, - display: { - readOnly: true, - serializedName: "display", - type: { - name: "Composite", - className: "OperationDisplay" - } - } - } - } -}; - -export const StreamingJobSku: msRest.CompositeMapper = { - serializedName: "StreamingJobSku", - type: { - name: "Composite", - className: "StreamingJobSku", - modelProperties: { - name: { - serializedName: "name", + deltaSnapshotQuery: { + serializedName: "properties.deltaSnapshotQuery", type: { name: "String" } @@ -2551,61 +2108,47 @@ export const StreamingJobSku: msRest.CompositeMapper = { } }; -export const Transformation: msRest.CompositeMapper = { - serializedName: "Transformation", +export const BlobReferenceInputDataSource: msRest.CompositeMapper = { + serializedName: "Microsoft.Storage/Blob", type: { name: "Composite", - className: "Transformation", + polymorphicDiscriminator: ReferenceInputDataSource.type.polymorphicDiscriminator, + uberParent: "ReferenceInputDataSource", + className: "BlobReferenceInputDataSource", modelProperties: { - ...SubResource.type.modelProperties, - streamingUnits: { - serializedName: "properties.streamingUnits", + ...ReferenceInputDataSource.type.modelProperties, + storageAccounts: { + serializedName: "properties.storageAccounts", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StorageAccount" + } + } } }, - query: { - serializedName: "properties.query", + container: { + serializedName: "properties.container", type: { name: "String" } }, - etag: { - readOnly: true, - serializedName: "properties.etag", + pathPattern: { + serializedName: "properties.pathPattern", type: { name: "String" } - } - } - } -}; - -export const JobStorageAccount: msRest.CompositeMapper = { - serializedName: "JobStorageAccount", - type: { - name: "Composite", - className: "JobStorageAccount", - modelProperties: { - ...StorageAccount.type.modelProperties, - authenticationMode: { - serializedName: "authenticationMode", + }, + dateFormat: { + serializedName: "properties.dateFormat", type: { name: "String" } - } - } - } -}; - -export const ClusterInfo: msRest.CompositeMapper = { - serializedName: "ClusterInfo", - type: { - name: "Composite", - className: "ClusterInfo", - modelProperties: { - id: { - serializedName: "id", + }, + timeFormat: { + serializedName: "properties.timeFormat", type: { name: "String" } @@ -2614,57 +2157,40 @@ export const ClusterInfo: msRest.CompositeMapper = { } }; -export const Resource: msRest.CompositeMapper = { - serializedName: "Resource", +export const ReferenceInputProperties: msRest.CompositeMapper = { + serializedName: "Reference", type: { name: "Composite", - className: "Resource", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - type: { - readOnly: true, - serializedName: "type", + polymorphicDiscriminator: InputProperties.type.polymorphicDiscriminator, + uberParent: "InputProperties", + className: "ReferenceInputProperties", + modelProperties: { + ...InputProperties.type.modelProperties, + datasource: { + serializedName: "datasource", type: { - name: "String" + name: "Composite", + className: "ReferenceInputDataSource" } } } } }; -export const TrackedResource: msRest.CompositeMapper = { - serializedName: "TrackedResource", +export const StreamInputDataSource: msRest.CompositeMapper = { + serializedName: "StreamInputDataSource", type: { name: "Composite", - className: "TrackedResource", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, + uberParent: "StreamInputDataSource", + className: "StreamInputDataSource", modelProperties: { - ...Resource.type.modelProperties, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - }, - location: { - serializedName: "location", + type: { + required: true, + serializedName: "type", type: { name: "String" } @@ -2673,213 +2199,216 @@ export const TrackedResource: msRest.CompositeMapper = { } }; -export const StreamingJob: msRest.CompositeMapper = { - serializedName: "StreamingJob", +export const IoTHubStreamInputDataSource: msRest.CompositeMapper = { + serializedName: "Microsoft.Devices/IotHubs", type: { name: "Composite", - className: "StreamingJob", + polymorphicDiscriminator: StreamInputDataSource.type.polymorphicDiscriminator, + uberParent: "StreamInputDataSource", + className: "IoTHubStreamInputDataSource", modelProperties: { - ...TrackedResource.type.modelProperties, - sku: { - serializedName: "properties.sku", - type: { - name: "Composite", - className: "StreamingJobSku" - } - }, - jobId: { - readOnly: true, - serializedName: "properties.jobId", + ...StreamInputDataSource.type.modelProperties, + iotHubNamespace: { + serializedName: "properties.iotHubNamespace", type: { name: "String" } }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + sharedAccessPolicyName: { + serializedName: "properties.sharedAccessPolicyName", type: { name: "String" } }, - jobState: { - readOnly: true, - serializedName: "properties.jobState", + sharedAccessPolicyKey: { + serializedName: "properties.sharedAccessPolicyKey", type: { name: "String" } }, - jobType: { - serializedName: "properties.jobType", + consumerGroupName: { + serializedName: "properties.consumerGroupName", type: { name: "String" } }, - outputStartMode: { - serializedName: "properties.outputStartMode", + endpoint: { + serializedName: "properties.endpoint", type: { name: "String" } - }, - outputStartTime: { - serializedName: "properties.outputStartTime", + } + } + } +}; + +export const EventHubV2StreamInputDataSource: msRest.CompositeMapper = { + serializedName: "Microsoft.EventHub/EventHub", + type: { + name: "Composite", + polymorphicDiscriminator: StreamInputDataSource.type.polymorphicDiscriminator, + uberParent: "StreamInputDataSource", + className: "EventHubV2StreamInputDataSource", + modelProperties: { + ...StreamInputDataSource.type.modelProperties, + serviceBusNamespace: { + serializedName: "properties.serviceBusNamespace", type: { - name: "DateTime" + name: "String" } }, - lastOutputEventTime: { - readOnly: true, - serializedName: "properties.lastOutputEventTime", + sharedAccessPolicyName: { + serializedName: "properties.sharedAccessPolicyName", type: { - name: "DateTime" + name: "String" } }, - eventsOutOfOrderPolicy: { - serializedName: "properties.eventsOutOfOrderPolicy", + sharedAccessPolicyKey: { + serializedName: "properties.sharedAccessPolicyKey", type: { name: "String" } }, - outputErrorPolicy: { - serializedName: "properties.outputErrorPolicy", + authenticationMode: { + serializedName: "properties.authenticationMode", type: { name: "String" } }, - eventsOutOfOrderMaxDelayInSeconds: { - serializedName: "properties.eventsOutOfOrderMaxDelayInSeconds", + eventHubName: { + serializedName: "properties.eventHubName", type: { - name: "Number" + name: "String" } }, - eventsLateArrivalMaxDelayInSeconds: { - serializedName: "properties.eventsLateArrivalMaxDelayInSeconds", + consumerGroupName: { + serializedName: "properties.consumerGroupName", type: { - name: "Number" + name: "String" } - }, - dataLocale: { - serializedName: "properties.dataLocale", + } + } + } +}; + +export const EventHubStreamInputDataSource: msRest.CompositeMapper = { + serializedName: "Microsoft.ServiceBus/EventHub", + type: { + name: "Composite", + polymorphicDiscriminator: StreamInputDataSource.type.polymorphicDiscriminator, + uberParent: "StreamInputDataSource", + className: "EventHubStreamInputDataSource", + modelProperties: { + ...StreamInputDataSource.type.modelProperties, + serviceBusNamespace: { + serializedName: "properties.serviceBusNamespace", type: { name: "String" } }, - compatibilityLevel: { - serializedName: "properties.compatibilityLevel", + sharedAccessPolicyName: { + serializedName: "properties.sharedAccessPolicyName", type: { name: "String" } }, - createdDate: { - readOnly: true, - serializedName: "properties.createdDate", + sharedAccessPolicyKey: { + serializedName: "properties.sharedAccessPolicyKey", type: { - name: "DateTime" + name: "String" } }, - inputs: { - serializedName: "properties.inputs", + authenticationMode: { + serializedName: "properties.authenticationMode", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Input" - } - } + name: "String" } }, - transformation: { - serializedName: "properties.transformation", + eventHubName: { + serializedName: "properties.eventHubName", type: { - name: "Composite", - className: "Transformation" + name: "String" } }, - outputs: { - serializedName: "properties.outputs", + consumerGroupName: { + serializedName: "properties.consumerGroupName", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Output" - } - } + name: "String" } - }, - functions: { - serializedName: "properties.functions", + } + } + } +}; + +export const BlobStreamInputDataSource: msRest.CompositeMapper = { + serializedName: "Microsoft.Storage/Blob", + type: { + name: "Composite", + polymorphicDiscriminator: StreamInputDataSource.type.polymorphicDiscriminator, + uberParent: "StreamInputDataSource", + className: "BlobStreamInputDataSource", + modelProperties: { + ...StreamInputDataSource.type.modelProperties, + storageAccounts: { + serializedName: "properties.storageAccounts", type: { name: "Sequence", element: { type: { name: "Composite", - className: "FunctionModel" + className: "StorageAccount" } } } }, - etag: { - readOnly: true, - serializedName: "properties.etag", + container: { + serializedName: "properties.container", type: { name: "String" } }, - jobStorageAccount: { - serializedName: "properties.jobStorageAccount", - type: { - name: "Composite", - className: "JobStorageAccount" - } - }, - contentStoragePolicy: { - serializedName: "properties.contentStoragePolicy", + pathPattern: { + serializedName: "properties.pathPattern", type: { name: "String" } }, - externals: { - serializedName: "properties.externals", + dateFormat: { + serializedName: "properties.dateFormat", type: { - name: "Composite", - className: "External" + name: "String" } }, - cluster: { - serializedName: "properties.cluster", + timeFormat: { + serializedName: "properties.timeFormat", type: { - name: "Composite", - className: "ClusterInfo" + name: "String" } }, - identity: { - serializedName: "identity", + sourcePartitionCount: { + serializedName: "properties.sourcePartitionCount", type: { - name: "Composite", - className: "Identity" + name: "Number" } } } } }; -export const StartStreamingJobParameters: msRest.CompositeMapper = { - serializedName: "StartStreamingJobParameters", +export const StreamInputProperties: msRest.CompositeMapper = { + serializedName: "Stream", type: { name: "Composite", - className: "StartStreamingJobParameters", + polymorphicDiscriminator: InputProperties.type.polymorphicDiscriminator, + uberParent: "InputProperties", + className: "StreamInputProperties", modelProperties: { - outputStartMode: { - serializedName: "outputStartMode", - type: { - name: "String" - } - }, - outputStartTime: { - serializedName: "outputStartTime", + ...InputProperties.type.modelProperties, + datasource: { + serializedName: "datasource", type: { - name: "DateTime" + name: "Composite", + className: "StreamInputDataSource" } } } @@ -2897,46 +2426,66 @@ export const ProxyResource: msRest.CompositeMapper = { } }; -export const SubscriptionQuota: msRest.CompositeMapper = { - serializedName: "SubscriptionQuota", +export const ErrorDetails: msRest.CompositeMapper = { + serializedName: "ErrorDetails", type: { name: "Composite", - className: "SubscriptionQuota", + className: "ErrorDetails", modelProperties: { - ...SubResource.type.modelProperties, - maxCount: { - readOnly: true, - serializedName: "properties.maxCount", + code: { + serializedName: "code", type: { - name: "Number" + name: "String" } }, - currentCount: { - readOnly: true, - serializedName: "properties.currentCount", + target: { + serializedName: "target", type: { - name: "Number" + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" } } } } }; -export const SubscriptionQuotasListResult: msRest.CompositeMapper = { - serializedName: "SubscriptionQuotasListResult", +export const ErrorError: msRest.CompositeMapper = { + serializedName: "Error_error", type: { name: "Composite", - className: "SubscriptionQuotasListResult", + className: "ErrorError", modelProperties: { - value: { - readOnly: true, - serializedName: "value", + code: { + serializedName: "code", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + }, + target: { + serializedName: "target", + type: { + name: "String" + } + }, + details: { + serializedName: "details", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SubscriptionQuota" + className: "ErrorDetails" } } } @@ -2945,217 +2494,307 @@ export const SubscriptionQuotasListResult: msRest.CompositeMapper = { } }; -export const ClusterSku: msRest.CompositeMapper = { - serializedName: "ClusterSku", +export const ErrorModel: msRest.CompositeMapper = { + serializedName: "Error", type: { name: "Composite", - className: "ClusterSku", + className: "ErrorModel", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - capacity: { - serializedName: "capacity", - constraints: { - InclusiveMaximum: 216, - InclusiveMinimum: 36 - }, + error: { + serializedName: "error", type: { - name: "Number" + name: "Composite", + className: "ErrorError" } } } } }; -export const ClusterProperties: msRest.CompositeMapper = { - serializedName: "ClusterProperties", +export const ErrorResponse: msRest.CompositeMapper = { + serializedName: "ErrorResponse", type: { name: "Composite", - className: "ClusterProperties", + className: "ErrorResponse", modelProperties: { - createdDate: { - readOnly: true, - serializedName: "createdDate", - type: { - name: "DateTime" - } - }, - clusterId: { + code: { readOnly: true, - serializedName: "clusterId", + serializedName: "code", type: { name: "String" } }, - provisioningState: { - serializedName: "provisioningState", + message: { + readOnly: true, + serializedName: "message", type: { name: "String" } - }, - capacityAllocated: { + } + } + } +}; + +export const ResourceTestStatus: msRest.CompositeMapper = { + serializedName: "ResourceTestStatus", + type: { + name: "Composite", + className: "ResourceTestStatus", + modelProperties: { + status: { readOnly: true, - serializedName: "capacityAllocated", + serializedName: "status", type: { - name: "Number" + name: "String" } }, - capacityAssigned: { + error: { readOnly: true, - serializedName: "capacityAssigned", + serializedName: "error", type: { - name: "Number" + name: "Composite", + className: "ErrorResponse" } } } } }; -export const Cluster: msRest.CompositeMapper = { - serializedName: "Cluster", +export const FunctionRetrieveDefaultDefinitionParameters: msRest.CompositeMapper = { + serializedName: "FunctionRetrieveDefaultDefinitionParameters", type: { name: "Composite", - className: "Cluster", + polymorphicDiscriminator: { + serializedName: "bindingType", + clientName: "bindingType" + }, + uberParent: "FunctionRetrieveDefaultDefinitionParameters", + className: "FunctionRetrieveDefaultDefinitionParameters", modelProperties: { - ...TrackedResource.type.modelProperties, - sku: { - serializedName: "sku", + bindingType: { + required: true, + serializedName: "bindingType", type: { - name: "Composite", - className: "ClusterSku" + name: "String" } - }, - etag: { - readOnly: true, - serializedName: "etag", + } + } + } +}; + +export const AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters: msRest.CompositeMapper = { + serializedName: "Microsoft.MachineLearning/WebService", + type: { + name: "Composite", + polymorphicDiscriminator: FunctionRetrieveDefaultDefinitionParameters.type.polymorphicDiscriminator, + uberParent: "FunctionRetrieveDefaultDefinitionParameters", + className: "AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters", + modelProperties: { + ...FunctionRetrieveDefaultDefinitionParameters.type.modelProperties, + executeEndpoint: { + serializedName: "bindingRetrievalProperties.executeEndpoint", type: { name: "String" } }, - properties: { - serializedName: "properties", + udfType: { + serializedName: "bindingRetrievalProperties.udfType", type: { - name: "Composite", - className: "ClusterProperties" + name: "Enum", + allowedValues: [ + "Scalar" + ] } } } } }; -export const ClusterJob: msRest.CompositeMapper = { - serializedName: "ClusterJob", +export const JavaScriptFunctionRetrieveDefaultDefinitionParameters: msRest.CompositeMapper = { + serializedName: "Microsoft.StreamAnalytics/JavascriptUdf", type: { name: "Composite", - className: "ClusterJob", + polymorphicDiscriminator: FunctionRetrieveDefaultDefinitionParameters.type.polymorphicDiscriminator, + uberParent: "FunctionRetrieveDefaultDefinitionParameters", + className: "JavaScriptFunctionRetrieveDefaultDefinitionParameters", modelProperties: { - id: { - readOnly: true, - serializedName: "id", + ...FunctionRetrieveDefaultDefinitionParameters.type.modelProperties, + script: { + serializedName: "bindingRetrievalProperties.script", type: { name: "String" } }, - streamingUnits: { + udfType: { + serializedName: "bindingRetrievalProperties.udfType", + type: { + name: "Enum", + allowedValues: [ + "Scalar" + ] + } + } + } + } +}; + +export const SubscriptionQuota: msRest.CompositeMapper = { + serializedName: "SubscriptionQuota", + type: { + name: "Composite", + className: "SubscriptionQuota", + modelProperties: { + ...SubResource.type.modelProperties, + maxCount: { readOnly: true, - serializedName: "streamingUnits", + serializedName: "properties.maxCount", type: { name: "Number" } }, - jobState: { - serializedName: "jobState", + currentCount: { + readOnly: true, + serializedName: "properties.currentCount", type: { - name: "String" + name: "Number" } } } } }; -export const ErrorDetails: msRest.CompositeMapper = { - serializedName: "ErrorDetails", +export const SubscriptionQuotasListResult: msRest.CompositeMapper = { + serializedName: "SubscriptionQuotasListResult", type: { name: "Composite", - className: "ErrorDetails", + className: "SubscriptionQuotasListResult", modelProperties: { - code: { - serializedName: "code", + value: { + readOnly: true, + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubscriptionQuota" + } + } } - }, - target: { - serializedName: "target", + } + } + } +}; + +export const ClusterSku: msRest.CompositeMapper = { + serializedName: "ClusterSku", + type: { + name: "Composite", + className: "ClusterSku", + modelProperties: { + name: { + serializedName: "name", type: { name: "String" } }, - message: { - serializedName: "message", + capacity: { + serializedName: "capacity", + constraints: { + InclusiveMaximum: 216, + InclusiveMinimum: 36 + }, type: { - name: "String" + name: "Number" } } } } }; -export const ErrorError: msRest.CompositeMapper = { - serializedName: "Error_error", +export const Cluster: msRest.CompositeMapper = { + serializedName: "Cluster", type: { name: "Composite", - className: "ErrorError", + className: "Cluster", modelProperties: { - code: { - serializedName: "code", + ...TrackedResource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "ClusterSku" + } + }, + etag: { + readOnly: true, + serializedName: "etag", type: { name: "String" } }, - message: { - serializedName: "message", + createdDate: { + readOnly: true, + serializedName: "properties.createdDate", + type: { + name: "DateTime" + } + }, + clusterId: { + readOnly: true, + serializedName: "properties.clusterId", type: { name: "String" } }, - target: { - serializedName: "target", + provisioningState: { + serializedName: "properties.provisioningState", type: { name: "String" } }, - details: { - serializedName: "details", + capacityAllocated: { + readOnly: true, + serializedName: "properties.capacityAllocated", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorDetails" - } - } + name: "Number" + } + }, + capacityAssigned: { + readOnly: true, + serializedName: "properties.capacityAssigned", + type: { + name: "Number" } } } } }; -export const ErrorModel: msRest.CompositeMapper = { - serializedName: "Error", +export const ClusterJob: msRest.CompositeMapper = { + serializedName: "ClusterJob", type: { name: "Composite", - className: "ErrorModel", + className: "ClusterJob", modelProperties: { - error: { - serializedName: "error", + id: { + readOnly: true, + serializedName: "id", type: { - name: "Composite", - className: "ErrorError" + name: "String" + } + }, + streamingUnits: { + readOnly: true, + serializedName: "streamingUnits", + type: { + name: "Number" + } + }, + jobState: { + serializedName: "jobState", + type: { + name: "String" } } } @@ -3217,6 +2856,7 @@ export const PrivateLinkServiceConnection: msRest.CompositeMapper = { } }, requestMessage: { + readOnly: true, serializedName: "properties.requestMessage", type: { name: "String" @@ -3233,21 +2873,22 @@ export const PrivateLinkServiceConnection: msRest.CompositeMapper = { } }; -export const PrivateEndpointProperties: msRest.CompositeMapper = { - serializedName: "PrivateEndpointProperties", +export const PrivateEndpoint: msRest.CompositeMapper = { + serializedName: "PrivateEndpoint", type: { name: "Composite", - className: "PrivateEndpointProperties", + className: "PrivateEndpoint", modelProperties: { + ...ProxyResource.type.modelProperties, createdDate: { readOnly: true, - serializedName: "createdDate", + serializedName: "properties.createdDate", type: { name: "String" } }, manualPrivateLinkServiceConnections: { - serializedName: "manualPrivateLinkServiceConnections", + serializedName: "properties.manualPrivateLinkServiceConnections", type: { name: "Sequence", element: { @@ -3257,24 +2898,6 @@ export const PrivateEndpointProperties: msRest.CompositeMapper = { } } } - } - } - } -}; - -export const PrivateEndpoint: msRest.CompositeMapper = { - serializedName: "PrivateEndpoint", - type: { - name: "Composite", - className: "PrivateEndpoint", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "PrivateEndpointProperties" - } }, etag: { readOnly: true, @@ -3287,11 +2910,11 @@ export const PrivateEndpoint: msRest.CompositeMapper = { } }; -export const FunctionsCreateOrReplaceHeaders: msRest.CompositeMapper = { - serializedName: "functions-createorreplace-headers", +export const StreamingJobsCreateOrReplaceHeaders: msRest.CompositeMapper = { + serializedName: "streamingjobs-createorreplace-headers", type: { name: "Composite", - className: "FunctionsCreateOrReplaceHeaders", + className: "StreamingJobsCreateOrReplaceHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -3303,11 +2926,11 @@ export const FunctionsCreateOrReplaceHeaders: msRest.CompositeMapper = { } }; -export const FunctionsUpdateHeaders: msRest.CompositeMapper = { - serializedName: "functions-update-headers", +export const StreamingJobsUpdateHeaders: msRest.CompositeMapper = { + serializedName: "streamingjobs-update-headers", type: { name: "Composite", - className: "FunctionsUpdateHeaders", + className: "StreamingJobsUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -3319,11 +2942,11 @@ export const FunctionsUpdateHeaders: msRest.CompositeMapper = { } }; -export const FunctionsGetHeaders: msRest.CompositeMapper = { - serializedName: "functions-get-headers", +export const StreamingJobsGetHeaders: msRest.CompositeMapper = { + serializedName: "streamingjobs-get-headers", type: { name: "Composite", - className: "FunctionsGetHeaders", + className: "StreamingJobsGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -3431,11 +3054,11 @@ export const OutputsGetHeaders: msRest.CompositeMapper = { } }; -export const StreamingJobsCreateOrReplaceHeaders: msRest.CompositeMapper = { - serializedName: "streamingjobs-createorreplace-headers", +export const TransformationsCreateOrReplaceHeaders: msRest.CompositeMapper = { + serializedName: "transformations-createorreplace-headers", type: { name: "Composite", - className: "StreamingJobsCreateOrReplaceHeaders", + className: "TransformationsCreateOrReplaceHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -3447,11 +3070,11 @@ export const StreamingJobsCreateOrReplaceHeaders: msRest.CompositeMapper = { } }; -export const StreamingJobsUpdateHeaders: msRest.CompositeMapper = { - serializedName: "streamingjobs-update-headers", +export const TransformationsUpdateHeaders: msRest.CompositeMapper = { + serializedName: "transformations-update-headers", type: { name: "Composite", - className: "StreamingJobsUpdateHeaders", + className: "TransformationsUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -3463,11 +3086,11 @@ export const StreamingJobsUpdateHeaders: msRest.CompositeMapper = { } }; -export const StreamingJobsGetHeaders: msRest.CompositeMapper = { - serializedName: "streamingjobs-get-headers", +export const TransformationsGetHeaders: msRest.CompositeMapper = { + serializedName: "transformations-get-headers", type: { name: "Composite", - className: "StreamingJobsGetHeaders", + className: "TransformationsGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -3479,11 +3102,11 @@ export const StreamingJobsGetHeaders: msRest.CompositeMapper = { } }; -export const TransformationsCreateOrReplaceHeaders: msRest.CompositeMapper = { - serializedName: "transformations-createorreplace-headers", +export const FunctionsCreateOrReplaceHeaders: msRest.CompositeMapper = { + serializedName: "functions-createorreplace-headers", type: { name: "Composite", - className: "TransformationsCreateOrReplaceHeaders", + className: "FunctionsCreateOrReplaceHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -3495,11 +3118,11 @@ export const TransformationsCreateOrReplaceHeaders: msRest.CompositeMapper = { } }; -export const TransformationsUpdateHeaders: msRest.CompositeMapper = { - serializedName: "transformations-update-headers", +export const FunctionsUpdateHeaders: msRest.CompositeMapper = { + serializedName: "functions-update-headers", type: { name: "Composite", - className: "TransformationsUpdateHeaders", + className: "FunctionsUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -3511,11 +3134,11 @@ export const TransformationsUpdateHeaders: msRest.CompositeMapper = { } }; -export const TransformationsGetHeaders: msRest.CompositeMapper = { - serializedName: "transformations-get-headers", +export const FunctionsGetHeaders: msRest.CompositeMapper = { + serializedName: "functions-get-headers", type: { name: "Composite", - className: "TransformationsGetHeaders", + className: "FunctionsGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -3527,11 +3150,11 @@ export const TransformationsGetHeaders: msRest.CompositeMapper = { } }; -export const FunctionListResult: msRest.CompositeMapper = { - serializedName: "FunctionListResult", +export const OperationListResult: msRest.CompositeMapper = { + serializedName: "OperationListResult", type: { name: "Composite", - className: "FunctionListResult", + className: "OperationListResult", modelProperties: { value: { readOnly: true, @@ -3541,7 +3164,7 @@ export const FunctionListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "FunctionModel" + className: "Operation" } } } @@ -3557,11 +3180,11 @@ export const FunctionListResult: msRest.CompositeMapper = { } }; -export const InputListResult: msRest.CompositeMapper = { - serializedName: "InputListResult", +export const StreamingJobListResult: msRest.CompositeMapper = { + serializedName: "StreamingJobListResult", type: { name: "Composite", - className: "InputListResult", + className: "StreamingJobListResult", modelProperties: { value: { readOnly: true, @@ -3571,7 +3194,7 @@ export const InputListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Input" + className: "StreamingJob" } } } @@ -3587,11 +3210,11 @@ export const InputListResult: msRest.CompositeMapper = { } }; -export const OutputListResult: msRest.CompositeMapper = { - serializedName: "OutputListResult", +export const InputListResult: msRest.CompositeMapper = { + serializedName: "InputListResult", type: { name: "Composite", - className: "OutputListResult", + className: "InputListResult", modelProperties: { value: { readOnly: true, @@ -3601,7 +3224,7 @@ export const OutputListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Output" + className: "Input" } } } @@ -3617,11 +3240,11 @@ export const OutputListResult: msRest.CompositeMapper = { } }; -export const StreamingJobListResult: msRest.CompositeMapper = { - serializedName: "StreamingJobListResult", +export const OutputListResult: msRest.CompositeMapper = { + serializedName: "OutputListResult", type: { name: "Composite", - className: "StreamingJobListResult", + className: "OutputListResult", modelProperties: { value: { readOnly: true, @@ -3631,7 +3254,7 @@ export const StreamingJobListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "StreamingJob" + className: "Output" } } } @@ -3647,11 +3270,11 @@ export const StreamingJobListResult: msRest.CompositeMapper = { } }; -export const OperationListResult: msRest.CompositeMapper = { - serializedName: "OperationListResult", +export const FunctionListResult: msRest.CompositeMapper = { + serializedName: "FunctionListResult", type: { name: "Composite", - className: "OperationListResult", + className: "FunctionListResult", modelProperties: { value: { readOnly: true, @@ -3661,7 +3284,7 @@ export const OperationListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" + className: "FunctionModel" } } } @@ -3768,48 +3391,41 @@ export const PrivateEndpointListResult: msRest.CompositeMapper = { }; export const discriminators = { - 'FunctionBinding' : FunctionBinding, - 'FunctionProperties' : FunctionProperties, - 'FunctionProperties.Scalar' : ScalarFunctionProperties, - 'FunctionBinding.Microsoft.MachineLearning/WebService' : AzureMachineLearningStudioFunctionBinding, - 'FunctionBinding.Microsoft.StreamAnalytics/JavascriptUdf' : JavaScriptFunctionBinding, - 'FunctionBinding.Microsoft.StreamAnalytics/CLRUdf' : CSharpFunctionBinding, - 'FunctionRetrieveDefaultDefinitionParameters' : FunctionRetrieveDefaultDefinitionParameters, - 'FunctionRetrieveDefaultDefinitionParameters.Microsoft.MachineLearning/WebService' : AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters, - 'FunctionRetrieveDefaultDefinitionParameters.Microsoft.MachineLearningServices' : AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters, - 'FunctionRetrieveDefaultDefinitionParameters.Microsoft.StreamAnalytics/JavascriptUdf' : JavaScriptFunctionRetrieveDefaultDefinitionParameters, - 'FunctionRetrieveDefaultDefinitionParameters.Microsoft.StreamAnalytics/CLRUdf' : CSharpFunctionRetrieveDefaultDefinitionParameters, - 'FunctionBinding.Microsoft.MachineLearningServices' : AzureMachineLearningServiceFunctionBinding, - 'FunctionProperties.Aggregate' : AggregateFunctionProperties, 'Serialization' : Serialization, 'InputProperties' : InputProperties, - 'StreamInputDataSource' : StreamInputDataSource, - 'InputProperties.Stream' : StreamInputProperties, + 'OutputDataSource' : OutputDataSource, + 'FunctionProperties' : FunctionProperties, + 'FunctionBinding.Microsoft.StreamAnalytics/JavascriptUdf' : JavaScriptFunctionBinding, + 'FunctionBinding.Microsoft.MachineLearning/WebService' : AzureMachineLearningWebServiceFunctionBinding, + 'FunctionBinding' : FunctionBinding, + 'FunctionProperties.Scalar' : ScalarFunctionProperties, + 'Serialization.Avro' : AvroSerialization, + 'Serialization.Json' : JsonSerialization, + 'Serialization.Csv' : CsvSerialization, + 'Serialization.Parquet' : ParquetSerialization, + 'OutputDataSource.Microsoft.DataLake/Accounts' : AzureDataLakeStoreOutputDataSource, + 'OutputDataSource.PowerBI' : PowerBIOutputDataSource, + 'OutputDataSource.Microsoft.ServiceBus/Topic' : ServiceBusTopicOutputDataSource, + 'OutputDataSource.Microsoft.ServiceBus/Queue' : ServiceBusQueueOutputDataSource, + 'OutputDataSource.Microsoft.Storage/DocumentDB' : DocumentDbOutputDataSource, + 'OutputDataSource.Microsoft.Sql/Server/DataWarehouse' : AzureSynapseOutputDataSource, + 'OutputDataSource.Microsoft.Sql/Server/Database' : AzureSqlDatabaseOutputDataSource, + 'OutputDataSource.Microsoft.EventHub/EventHub' : EventHubV2OutputDataSource, + 'OutputDataSource.Microsoft.ServiceBus/EventHub' : EventHubOutputDataSource, + 'OutputDataSource.Microsoft.Storage/Table' : AzureTableOutputDataSource, + 'OutputDataSource.Microsoft.Storage/Blob' : BlobOutputDataSource, + 'ReferenceInputDataSource.Microsoft.Sql/Server/Database' : AzureSqlReferenceInputDataSource, + 'ReferenceInputDataSource.Microsoft.Storage/Blob' : BlobReferenceInputDataSource, 'ReferenceInputDataSource' : ReferenceInputDataSource, 'InputProperties.Reference' : ReferenceInputProperties, - 'StreamInputDataSource.Microsoft.Storage/Blob' : BlobStreamInputDataSource, - 'StreamInputDataSource.Microsoft.ServiceBus/EventHub' : EventHubStreamInputDataSource, - 'StreamInputDataSource.Microsoft.EventHub/EventHub' : EventHubV2StreamInputDataSource, 'StreamInputDataSource.Microsoft.Devices/IotHubs' : IoTHubStreamInputDataSource, - 'ReferenceInputDataSource.Microsoft.Storage/Blob' : BlobReferenceInputDataSource, - 'Serialization.Parquet' : ParquetSerialization, - 'Serialization.CustomClr' : CustomClrSerialization, - 'Serialization.Csv' : CsvSerialization, - 'Serialization.Json' : JsonSerialization, - 'Serialization.Avro' : AvroSerialization, - 'ReferenceInputDataSource.Microsoft.Sql/Server/Database' : AzureSqlReferenceInputDataSource, - 'OutputDataSource' : OutputDataSource, - 'OutputDataSource.Microsoft.Storage/Blob' : BlobOutputDataSource, - 'OutputDataSource.Microsoft.Storage/Table' : AzureTableOutputDataSource, - 'OutputDataSource.Microsoft.ServiceBus/EventHub' : EventHubOutputDataSource, - 'OutputDataSource.Microsoft.EventHub/EventHub' : EventHubV2OutputDataSource, - 'OutputDataSource.Microsoft.Sql/Server/Database' : AzureSqlDatabaseOutputDataSource, - 'OutputDataSource.Microsoft.Sql/Server/DataWarehouse' : AzureSynapseOutputDataSource, - 'OutputDataSource.Microsoft.Storage/DocumentDB' : DocumentDbOutputDataSource, - 'OutputDataSource.Microsoft.AzureFunction' : AzureFunctionOutputDataSource, - 'OutputDataSource.Microsoft.ServiceBus/Queue' : ServiceBusQueueOutputDataSource, - 'OutputDataSource.Microsoft.ServiceBus/Topic' : ServiceBusTopicOutputDataSource, - 'OutputDataSource.PowerBI' : PowerBIOutputDataSource, - 'OutputDataSource.Microsoft.DataLake/Accounts' : AzureDataLakeStoreOutputDataSource + 'StreamInputDataSource.Microsoft.EventHub/EventHub' : EventHubV2StreamInputDataSource, + 'StreamInputDataSource.Microsoft.ServiceBus/EventHub' : EventHubStreamInputDataSource, + 'StreamInputDataSource.Microsoft.Storage/Blob' : BlobStreamInputDataSource, + 'StreamInputDataSource' : StreamInputDataSource, + 'InputProperties.Stream' : StreamInputProperties, + 'FunctionRetrieveDefaultDefinitionParameters' : FunctionRetrieveDefaultDefinitionParameters, + 'FunctionRetrieveDefaultDefinitionParameters.Microsoft.MachineLearning/WebService' : AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters, + 'FunctionRetrieveDefaultDefinitionParameters.Microsoft.StreamAnalytics/JavascriptUdf' : JavaScriptFunctionRetrieveDefaultDefinitionParameters }; diff --git a/sdk/streamanalytics/arm-streamanalytics/src/models/operationsMappers.ts b/sdk/streamanalytics/arm-streamanalytics/src/models/operationsMappers.ts index 1cf01eeef205..d51d240ac3e9 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/models/operationsMappers.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/models/operationsMappers.ts @@ -8,7 +8,9 @@ export { discriminators, - CloudError, + ErrorDetails, + ErrorError, + ErrorModel, Operation, OperationDisplay, OperationListResult diff --git a/sdk/streamanalytics/arm-streamanalytics/src/models/outputsMappers.ts b/sdk/streamanalytics/arm-streamanalytics/src/models/outputsMappers.ts index b6e62ffa6cf4..132a045c7e7b 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/models/outputsMappers.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/models/outputsMappers.ts @@ -8,44 +8,36 @@ export { discriminators, - AggregateFunctionProperties, AvroSerialization, AzureDataLakeStoreOutputDataSource, - AzureFunctionOutputDataSource, - AzureMachineLearningServiceFunctionBinding, - AzureMachineLearningServiceInputColumn, - AzureMachineLearningServiceOutputColumn, - AzureMachineLearningStudioFunctionBinding, - AzureMachineLearningStudioInputColumn, - AzureMachineLearningStudioInputs, - AzureMachineLearningStudioOutputColumn, + AzureMachineLearningWebServiceFunctionBinding, + AzureMachineLearningWebServiceInputColumn, + AzureMachineLearningWebServiceInputs, + AzureMachineLearningWebServiceOutputColumn, AzureSqlDatabaseOutputDataSource, AzureSqlReferenceInputDataSource, - AzureSqlReferenceInputDataSourceProperties, AzureSynapseOutputDataSource, AzureTableOutputDataSource, BaseResource, BlobOutputDataSource, BlobReferenceInputDataSource, BlobStreamInputDataSource, - CloudError, Cluster, ClusterInfo, - ClusterProperties, ClusterSku, Compression, - CSharpFunctionBinding, CsvSerialization, - CustomClrSerialization, DiagnosticCondition, Diagnostics, DocumentDbOutputDataSource, + ErrorDetails, + ErrorError, + ErrorModel, ErrorResponse, EventHubOutputDataSource, EventHubStreamInputDataSource, EventHubV2OutputDataSource, EventHubV2StreamInputDataSource, - External, FunctionBinding, FunctionInput, FunctionModel, @@ -67,7 +59,6 @@ export { ParquetSerialization, PowerBIOutputDataSource, PrivateEndpoint, - PrivateEndpointProperties, PrivateLinkConnectionState, PrivateLinkServiceConnection, ProxyResource, @@ -79,9 +70,9 @@ export { Serialization, ServiceBusQueueOutputDataSource, ServiceBusTopicOutputDataSource, + Sku, StorageAccount, StreamingJob, - StreamingJobSku, StreamInputDataSource, StreamInputProperties, SubResource, diff --git a/sdk/streamanalytics/arm-streamanalytics/src/models/parameters.ts b/sdk/streamanalytics/arm-streamanalytics/src/models/parameters.ts index 13854c895521..ad715dea0e44 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/models/parameters.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/models/parameters.ts @@ -19,28 +19,11 @@ export const acceptLanguage: msRest.OperationParameter = { } } }; -export const apiVersion0: msRest.OperationQueryParameter = { +export const apiVersion: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { required: true, - isConstant: true, serializedName: "api-version", - defaultValue: '2017-04-01-preview', - constraints: { - MinLength: 1 - }, - type: { - name: "String" - } - } -}; -export const apiVersion1: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - required: true, - isConstant: true, - serializedName: "api-version", - defaultValue: '2020-03-01-preview', constraints: { MinLength: 1 }, diff --git a/sdk/streamanalytics/arm-streamanalytics/src/models/privateEndpointsMappers.ts b/sdk/streamanalytics/arm-streamanalytics/src/models/privateEndpointsMappers.ts index a78d71313130..d1498ed8dd14 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/models/privateEndpointsMappers.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/models/privateEndpointsMappers.ts @@ -8,20 +8,14 @@ export { discriminators, - AggregateFunctionProperties, AvroSerialization, AzureDataLakeStoreOutputDataSource, - AzureFunctionOutputDataSource, - AzureMachineLearningServiceFunctionBinding, - AzureMachineLearningServiceInputColumn, - AzureMachineLearningServiceOutputColumn, - AzureMachineLearningStudioFunctionBinding, - AzureMachineLearningStudioInputColumn, - AzureMachineLearningStudioInputs, - AzureMachineLearningStudioOutputColumn, + AzureMachineLearningWebServiceFunctionBinding, + AzureMachineLearningWebServiceInputColumn, + AzureMachineLearningWebServiceInputs, + AzureMachineLearningWebServiceOutputColumn, AzureSqlDatabaseOutputDataSource, AzureSqlReferenceInputDataSource, - AzureSqlReferenceInputDataSourceProperties, AzureSynapseOutputDataSource, AzureTableOutputDataSource, BaseResource, @@ -30,12 +24,9 @@ export { BlobStreamInputDataSource, Cluster, ClusterInfo, - ClusterProperties, ClusterSku, Compression, - CSharpFunctionBinding, CsvSerialization, - CustomClrSerialization, DiagnosticCondition, Diagnostics, DocumentDbOutputDataSource, @@ -46,7 +37,6 @@ export { EventHubStreamInputDataSource, EventHubV2OutputDataSource, EventHubV2StreamInputDataSource, - External, FunctionBinding, FunctionInput, FunctionModel, @@ -65,7 +55,6 @@ export { PowerBIOutputDataSource, PrivateEndpoint, PrivateEndpointListResult, - PrivateEndpointProperties, PrivateLinkConnectionState, PrivateLinkServiceConnection, ProxyResource, @@ -76,9 +65,9 @@ export { Serialization, ServiceBusQueueOutputDataSource, ServiceBusTopicOutputDataSource, + Sku, StorageAccount, StreamingJob, - StreamingJobSku, StreamInputDataSource, StreamInputProperties, SubResource, diff --git a/sdk/streamanalytics/arm-streamanalytics/src/models/streamingJobsMappers.ts b/sdk/streamanalytics/arm-streamanalytics/src/models/streamingJobsMappers.ts index 707c1ef3bdad..a48bba81fe36 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/models/streamingJobsMappers.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/models/streamingJobsMappers.ts @@ -8,43 +8,35 @@ export { discriminators, - AggregateFunctionProperties, AvroSerialization, AzureDataLakeStoreOutputDataSource, - AzureFunctionOutputDataSource, - AzureMachineLearningServiceFunctionBinding, - AzureMachineLearningServiceInputColumn, - AzureMachineLearningServiceOutputColumn, - AzureMachineLearningStudioFunctionBinding, - AzureMachineLearningStudioInputColumn, - AzureMachineLearningStudioInputs, - AzureMachineLearningStudioOutputColumn, + AzureMachineLearningWebServiceFunctionBinding, + AzureMachineLearningWebServiceInputColumn, + AzureMachineLearningWebServiceInputs, + AzureMachineLearningWebServiceOutputColumn, AzureSqlDatabaseOutputDataSource, AzureSqlReferenceInputDataSource, - AzureSqlReferenceInputDataSourceProperties, AzureSynapseOutputDataSource, AzureTableOutputDataSource, BaseResource, BlobOutputDataSource, BlobReferenceInputDataSource, BlobStreamInputDataSource, - CloudError, Cluster, ClusterInfo, - ClusterProperties, ClusterSku, Compression, - CSharpFunctionBinding, CsvSerialization, - CustomClrSerialization, DiagnosticCondition, Diagnostics, DocumentDbOutputDataSource, + ErrorDetails, + ErrorError, + ErrorModel, EventHubOutputDataSource, EventHubStreamInputDataSource, EventHubV2OutputDataSource, EventHubV2StreamInputDataSource, - External, FunctionBinding, FunctionInput, FunctionModel, @@ -62,7 +54,6 @@ export { ParquetSerialization, PowerBIOutputDataSource, PrivateEndpoint, - PrivateEndpointProperties, PrivateLinkConnectionState, PrivateLinkServiceConnection, ProxyResource, @@ -70,16 +61,17 @@ export { ReferenceInputProperties, Resource, ScalarFunctionProperties, + ScaleStreamingJobParameters, Serialization, ServiceBusQueueOutputDataSource, ServiceBusTopicOutputDataSource, + Sku, StartStreamingJobParameters, StorageAccount, StreamingJob, StreamingJobListResult, StreamingJobsCreateOrReplaceHeaders, StreamingJobsGetHeaders, - StreamingJobSku, StreamingJobsUpdateHeaders, StreamInputDataSource, StreamInputProperties, diff --git a/sdk/streamanalytics/arm-streamanalytics/src/models/subscriptionsMappers.ts b/sdk/streamanalytics/arm-streamanalytics/src/models/subscriptionsMappers.ts index fa584c6bd5fd..9bb4c72cd100 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/models/subscriptionsMappers.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/models/subscriptionsMappers.ts @@ -8,43 +8,35 @@ export { discriminators, - AggregateFunctionProperties, AvroSerialization, AzureDataLakeStoreOutputDataSource, - AzureFunctionOutputDataSource, - AzureMachineLearningServiceFunctionBinding, - AzureMachineLearningServiceInputColumn, - AzureMachineLearningServiceOutputColumn, - AzureMachineLearningStudioFunctionBinding, - AzureMachineLearningStudioInputColumn, - AzureMachineLearningStudioInputs, - AzureMachineLearningStudioOutputColumn, + AzureMachineLearningWebServiceFunctionBinding, + AzureMachineLearningWebServiceInputColumn, + AzureMachineLearningWebServiceInputs, + AzureMachineLearningWebServiceOutputColumn, AzureSqlDatabaseOutputDataSource, AzureSqlReferenceInputDataSource, - AzureSqlReferenceInputDataSourceProperties, AzureSynapseOutputDataSource, AzureTableOutputDataSource, BaseResource, BlobOutputDataSource, BlobReferenceInputDataSource, BlobStreamInputDataSource, - CloudError, Cluster, ClusterInfo, - ClusterProperties, ClusterSku, Compression, - CSharpFunctionBinding, CsvSerialization, - CustomClrSerialization, DiagnosticCondition, Diagnostics, DocumentDbOutputDataSource, + ErrorDetails, + ErrorError, + ErrorModel, EventHubOutputDataSource, EventHubStreamInputDataSource, EventHubV2OutputDataSource, EventHubV2StreamInputDataSource, - External, FunctionBinding, FunctionInput, FunctionModel, @@ -62,7 +54,6 @@ export { ParquetSerialization, PowerBIOutputDataSource, PrivateEndpoint, - PrivateEndpointProperties, PrivateLinkConnectionState, PrivateLinkServiceConnection, ProxyResource, @@ -73,9 +64,9 @@ export { Serialization, ServiceBusQueueOutputDataSource, ServiceBusTopicOutputDataSource, + Sku, StorageAccount, StreamingJob, - StreamingJobSku, StreamInputDataSource, StreamInputProperties, SubResource, diff --git a/sdk/streamanalytics/arm-streamanalytics/src/models/transformationsMappers.ts b/sdk/streamanalytics/arm-streamanalytics/src/models/transformationsMappers.ts index b985cb821ba5..bc3702080a95 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/models/transformationsMappers.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/models/transformationsMappers.ts @@ -8,43 +8,35 @@ export { discriminators, - AggregateFunctionProperties, AvroSerialization, AzureDataLakeStoreOutputDataSource, - AzureFunctionOutputDataSource, - AzureMachineLearningServiceFunctionBinding, - AzureMachineLearningServiceInputColumn, - AzureMachineLearningServiceOutputColumn, - AzureMachineLearningStudioFunctionBinding, - AzureMachineLearningStudioInputColumn, - AzureMachineLearningStudioInputs, - AzureMachineLearningStudioOutputColumn, + AzureMachineLearningWebServiceFunctionBinding, + AzureMachineLearningWebServiceInputColumn, + AzureMachineLearningWebServiceInputs, + AzureMachineLearningWebServiceOutputColumn, AzureSqlDatabaseOutputDataSource, AzureSqlReferenceInputDataSource, - AzureSqlReferenceInputDataSourceProperties, AzureSynapseOutputDataSource, AzureTableOutputDataSource, BaseResource, BlobOutputDataSource, BlobReferenceInputDataSource, BlobStreamInputDataSource, - CloudError, Cluster, ClusterInfo, - ClusterProperties, ClusterSku, Compression, - CSharpFunctionBinding, CsvSerialization, - CustomClrSerialization, DiagnosticCondition, Diagnostics, DocumentDbOutputDataSource, + ErrorDetails, + ErrorError, + ErrorModel, EventHubOutputDataSource, EventHubStreamInputDataSource, EventHubV2OutputDataSource, EventHubV2StreamInputDataSource, - External, FunctionBinding, FunctionInput, FunctionModel, @@ -62,7 +54,6 @@ export { ParquetSerialization, PowerBIOutputDataSource, PrivateEndpoint, - PrivateEndpointProperties, PrivateLinkConnectionState, PrivateLinkServiceConnection, ProxyResource, @@ -73,9 +64,9 @@ export { Serialization, ServiceBusQueueOutputDataSource, ServiceBusTopicOutputDataSource, + Sku, StorageAccount, StreamingJob, - StreamingJobSku, StreamInputDataSource, StreamInputProperties, SubResource, diff --git a/sdk/streamanalytics/arm-streamanalytics/src/operations/clusters.ts b/sdk/streamanalytics/arm-streamanalytics/src/operations/clusters.ts index f850e9fd9371..4485fac71436 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/operations/clusters.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/operations/clusters.ts @@ -340,7 +340,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.clusterName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -363,7 +363,7 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -387,7 +387,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -412,7 +412,7 @@ const listStreamingJobsOperationSpec: msRest.OperationSpec = { Parameters.clusterName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -437,7 +437,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.clusterName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.ifMatch, @@ -474,7 +474,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.clusterName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.ifMatch, @@ -508,7 +508,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.clusterName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -532,7 +532,7 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { Parameters.nextPageLink ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -556,7 +556,7 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { Parameters.nextPageLink ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -580,7 +580,7 @@ const listStreamingJobsNextOperationSpec: msRest.OperationSpec = { Parameters.nextPageLink ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/streamanalytics/arm-streamanalytics/src/operations/functions.ts b/sdk/streamanalytics/arm-streamanalytics/src/operations/functions.ts index 98b7a81f248b..fe7762c682ec 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/operations/functions.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/operations/functions.ts @@ -338,7 +338,7 @@ const createOrReplaceOperationSpec: msRest.OperationSpec = { Parameters.functionName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.ifMatch, @@ -362,7 +362,7 @@ const createOrReplaceOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.FunctionsCreateOrReplaceHeaders }, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.ErrorModel, headersMapper: Mappers.FunctionsCreateOrReplaceHeaders } }, @@ -379,7 +379,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.functionName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.ifMatch, @@ -398,7 +398,7 @@ const updateOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.FunctionsUpdateHeaders }, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.ErrorModel, headersMapper: Mappers.FunctionsUpdateHeaders } }, @@ -415,7 +415,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.functionName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -424,7 +424,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorModel } }, serializer @@ -440,7 +440,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.functionName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -451,7 +451,7 @@ const getOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.FunctionsGetHeaders }, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.ErrorModel, headersMapper: Mappers.FunctionsGetHeaders } }, @@ -468,7 +468,7 @@ const listByStreamingJobOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.select, - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -478,7 +478,7 @@ const listByStreamingJobOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.FunctionListResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorModel } }, serializer @@ -486,7 +486,7 @@ const listByStreamingJobOperationSpec: msRest.OperationSpec = { const retrieveDefaultDefinitionOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}/RetrieveDefaultDefinition", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}/retrieveDefaultDefinition", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -494,7 +494,7 @@ const retrieveDefaultDefinitionOperationSpec: msRest.OperationSpec = { Parameters.functionName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -511,7 +511,7 @@ const retrieveDefaultDefinitionOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.FunctionModel }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorModel } }, serializer @@ -527,7 +527,7 @@ const beginTestOperationSpec: msRest.OperationSpec = { Parameters.functionName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -545,7 +545,7 @@ const beginTestOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorModel } }, serializer @@ -560,7 +560,7 @@ const listByStreamingJobNextOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.select, - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -570,7 +570,7 @@ const listByStreamingJobNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.FunctionListResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorModel } }, serializer diff --git a/sdk/streamanalytics/arm-streamanalytics/src/operations/index.ts b/sdk/streamanalytics/arm-streamanalytics/src/operations/index.ts index 9b057ba5e9f6..75dd6c1bff1f 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/operations/index.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/operations/index.ts @@ -7,12 +7,12 @@ * regenerated. */ -export * from "./functions"; +export * from "./operations"; +export * from "./streamingJobs"; export * from "./inputs"; export * from "./outputs"; -export * from "./streamingJobs"; -export * from "./subscriptions"; export * from "./transformations"; -export * from "./operations"; +export * from "./functions"; +export * from "./subscriptions"; export * from "./clusters"; export * from "./privateEndpoints"; diff --git a/sdk/streamanalytics/arm-streamanalytics/src/operations/inputs.ts b/sdk/streamanalytics/arm-streamanalytics/src/operations/inputs.ts index a8ab680d6f2f..193f9e0189b1 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/operations/inputs.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/operations/inputs.ts @@ -300,7 +300,7 @@ const createOrReplaceOperationSpec: msRest.OperationSpec = { Parameters.inputName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.ifMatch, @@ -324,7 +324,7 @@ const createOrReplaceOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.InputsCreateOrReplaceHeaders }, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.ErrorModel, headersMapper: Mappers.InputsCreateOrReplaceHeaders } }, @@ -341,7 +341,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.inputName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.ifMatch, @@ -360,7 +360,7 @@ const updateOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.InputsUpdateHeaders }, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.ErrorModel, headersMapper: Mappers.InputsUpdateHeaders } }, @@ -377,7 +377,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.inputName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -386,7 +386,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorModel } }, serializer @@ -402,7 +402,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.inputName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -413,7 +413,7 @@ const getOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.InputsGetHeaders }, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.ErrorModel, headersMapper: Mappers.InputsGetHeaders } }, @@ -430,7 +430,7 @@ const listByStreamingJobOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.select, - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -440,7 +440,7 @@ const listByStreamingJobOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.InputListResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorModel } }, serializer @@ -456,7 +456,7 @@ const beginTestOperationSpec: msRest.OperationSpec = { Parameters.inputName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -474,7 +474,7 @@ const beginTestOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorModel } }, serializer @@ -489,7 +489,7 @@ const listByStreamingJobNextOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.select, - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -499,7 +499,7 @@ const listByStreamingJobNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.InputListResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorModel } }, serializer diff --git a/sdk/streamanalytics/arm-streamanalytics/src/operations/operations.ts b/sdk/streamanalytics/arm-streamanalytics/src/operations/operations.ts index 1d5b82af8451..d46271b2e2ab 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/operations/operations.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/operations/operations.ts @@ -84,7 +84,7 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "providers/Microsoft.StreamAnalytics/operations", queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -94,7 +94,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.OperationListResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorModel } }, serializer @@ -108,7 +108,7 @@ const listNextOperationSpec: msRest.OperationSpec = { Parameters.nextPageLink ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -118,7 +118,7 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.OperationListResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorModel } }, serializer diff --git a/sdk/streamanalytics/arm-streamanalytics/src/operations/outputs.ts b/sdk/streamanalytics/arm-streamanalytics/src/operations/outputs.ts index 010e28d56d11..4862480dbacb 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/operations/outputs.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/operations/outputs.ts @@ -300,7 +300,7 @@ const createOrReplaceOperationSpec: msRest.OperationSpec = { Parameters.outputName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.ifMatch, @@ -324,7 +324,7 @@ const createOrReplaceOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.OutputsCreateOrReplaceHeaders }, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.ErrorModel, headersMapper: Mappers.OutputsCreateOrReplaceHeaders } }, @@ -341,7 +341,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.outputName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.ifMatch, @@ -360,7 +360,7 @@ const updateOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.OutputsUpdateHeaders }, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.ErrorModel, headersMapper: Mappers.OutputsUpdateHeaders } }, @@ -377,7 +377,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.outputName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -386,7 +386,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorModel } }, serializer @@ -402,7 +402,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.outputName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -413,7 +413,7 @@ const getOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.OutputsGetHeaders }, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.ErrorModel, headersMapper: Mappers.OutputsGetHeaders } }, @@ -430,7 +430,7 @@ const listByStreamingJobOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.select, - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -440,7 +440,7 @@ const listByStreamingJobOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.OutputListResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorModel } }, serializer @@ -456,7 +456,7 @@ const beginTestOperationSpec: msRest.OperationSpec = { Parameters.outputName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -474,7 +474,7 @@ const beginTestOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorModel } }, serializer @@ -489,7 +489,7 @@ const listByStreamingJobNextOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.select, - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -499,7 +499,7 @@ const listByStreamingJobNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.OutputListResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorModel } }, serializer diff --git a/sdk/streamanalytics/arm-streamanalytics/src/operations/privateEndpoints.ts b/sdk/streamanalytics/arm-streamanalytics/src/operations/privateEndpoints.ts index a4a8585ba86a..fdda211f1c7a 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/operations/privateEndpoints.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/operations/privateEndpoints.ts @@ -211,7 +211,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.privateEndpointName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.ifMatch, @@ -249,7 +249,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.privateEndpointName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -274,7 +274,7 @@ const listByClusterOperationSpec: msRest.OperationSpec = { Parameters.clusterName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -300,7 +300,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.privateEndpointName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -324,7 +324,7 @@ const listByClusterNextOperationSpec: msRest.OperationSpec = { Parameters.nextPageLink ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/streamanalytics/arm-streamanalytics/src/operations/streamingJobs.ts b/sdk/streamanalytics/arm-streamanalytics/src/operations/streamingJobs.ts index 4d3beadf7014..6711fc8f51c6 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/operations/streamingJobs.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/operations/streamingJobs.ts @@ -208,6 +208,18 @@ export class StreamingJobs { .then(lroPoller => lroPoller.pollUntilFinished()); } + /** + * Scales a streaming job when the job is running. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param jobName The name of the streaming job. + * @param [options] The optional parameters + * @returns Promise + */ + scale(resourceGroupName: string, jobName: string, options?: Models.StreamingJobsScaleOptionalParams): Promise { + return this.beginScale(resourceGroupName,jobName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + /** * Creates a streaming job or replaces an already existing streaming job. * @param streamingJob The definition of the streaming job that will be used to create a new @@ -285,6 +297,24 @@ export class StreamingJobs { options); } + /** + * Scales a streaming job when the job is running. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param jobName The name of the streaming job. + * @param [options] The optional parameters + * @returns Promise + */ + beginScale(resourceGroupName: string, jobName: string, options?: Models.StreamingJobsBeginScaleOptionalParams): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + jobName, + options + }, + beginScaleOperationSpec, + options); + } + /** * Lists all of the streaming jobs in the specified resource group. * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -353,7 +383,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.jobName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.ifMatch, @@ -372,7 +402,7 @@ const updateOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.StreamingJobsUpdateHeaders }, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.ErrorModel, headersMapper: Mappers.StreamingJobsUpdateHeaders } }, @@ -389,7 +419,7 @@ const getOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.expand, - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -400,7 +430,7 @@ const getOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.StreamingJobsGetHeaders }, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.ErrorModel, headersMapper: Mappers.StreamingJobsGetHeaders } }, @@ -416,7 +446,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.expand, - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -426,7 +456,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.StreamingJobListResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorModel } }, serializer @@ -440,7 +470,7 @@ const listOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.expand, - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -450,7 +480,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.StreamingJobListResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorModel } }, serializer @@ -465,7 +495,7 @@ const beginCreateOrReplaceOperationSpec: msRest.OperationSpec = { Parameters.jobName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.ifMatch, @@ -489,7 +519,7 @@ const beginCreateOrReplaceOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.StreamingJobsCreateOrReplaceHeaders }, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.ErrorModel, headersMapper: Mappers.StreamingJobsCreateOrReplaceHeaders } }, @@ -505,7 +535,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.jobName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -515,7 +545,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorModel } }, serializer @@ -530,7 +560,7 @@ const beginStartOperationSpec: msRest.OperationSpec = { Parameters.jobName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -546,7 +576,7 @@ const beginStartOperationSpec: msRest.OperationSpec = { 200: {}, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorModel } }, serializer @@ -561,7 +591,7 @@ const beginStopOperationSpec: msRest.OperationSpec = { Parameters.jobName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -570,7 +600,37 @@ const beginStopOperationSpec: msRest.OperationSpec = { 200: {}, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const beginScaleOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/scale", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.jobName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "scaleJobParameters" + ], + mapper: Mappers.ScaleStreamingJobParameters + }, + responses: { + 202: {}, + default: { + bodyMapper: Mappers.ErrorModel } }, serializer @@ -585,7 +645,7 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.expand, - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -595,7 +655,7 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.StreamingJobListResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorModel } }, serializer @@ -610,7 +670,7 @@ const listNextOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.expand, - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -620,7 +680,7 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.StreamingJobListResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorModel } }, serializer diff --git a/sdk/streamanalytics/arm-streamanalytics/src/operations/subscriptions.ts b/sdk/streamanalytics/arm-streamanalytics/src/operations/subscriptions.ts index ad6d97775975..345d64d9c04d 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/operations/subscriptions.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/operations/subscriptions.ts @@ -70,7 +70,7 @@ const listQuotasOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -80,7 +80,7 @@ const listQuotasOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.SubscriptionQuotasListResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorModel } }, serializer diff --git a/sdk/streamanalytics/arm-streamanalytics/src/operations/transformations.ts b/sdk/streamanalytics/arm-streamanalytics/src/operations/transformations.ts index 1ff76b4ca508..e9457d049ab0 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/operations/transformations.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/operations/transformations.ts @@ -169,7 +169,7 @@ const createOrReplaceOperationSpec: msRest.OperationSpec = { Parameters.transformationName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.ifMatch, @@ -193,7 +193,7 @@ const createOrReplaceOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.TransformationsCreateOrReplaceHeaders }, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.ErrorModel, headersMapper: Mappers.TransformationsCreateOrReplaceHeaders } }, @@ -210,7 +210,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.transformationName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.ifMatch, @@ -229,7 +229,7 @@ const updateOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.TransformationsUpdateHeaders }, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.ErrorModel, headersMapper: Mappers.TransformationsUpdateHeaders } }, @@ -246,7 +246,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.transformationName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -257,7 +257,7 @@ const getOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.TransformationsGetHeaders }, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.ErrorModel, headersMapper: Mappers.TransformationsGetHeaders } }, diff --git a/sdk/streamanalytics/arm-streamanalytics/src/streamAnalyticsManagementClient.ts b/sdk/streamanalytics/arm-streamanalytics/src/streamAnalyticsManagementClient.ts index 38328160afb4..046005a8ac69 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/streamAnalyticsManagementClient.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/streamAnalyticsManagementClient.ts @@ -17,13 +17,13 @@ import { StreamAnalyticsManagementClientContext } from "./streamAnalyticsManagem class StreamAnalyticsManagementClient extends StreamAnalyticsManagementClientContext { // Operation groups - functions: operations.Functions; + operations: operations.Operations; + streamingJobs: operations.StreamingJobs; inputs: operations.Inputs; outputs: operations.Outputs; - streamingJobs: operations.StreamingJobs; - subscriptions: operations.Subscriptions; transformations: operations.Transformations; - operations: operations.Operations; + functions: operations.Functions; + subscriptions: operations.Subscriptions; clusters: operations.Clusters; privateEndpoints: operations.PrivateEndpoints; @@ -40,13 +40,13 @@ class StreamAnalyticsManagementClient extends StreamAnalyticsManagementClientCon */ constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.StreamAnalyticsManagementClientOptions) { super(credentials, subscriptionId, options); - this.functions = new operations.Functions(this); + this.operations = new operations.Operations(this); + this.streamingJobs = new operations.StreamingJobs(this); this.inputs = new operations.Inputs(this); this.outputs = new operations.Outputs(this); - this.streamingJobs = new operations.StreamingJobs(this); - this.subscriptions = new operations.Subscriptions(this); this.transformations = new operations.Transformations(this); - this.operations = new operations.Operations(this); + this.functions = new operations.Functions(this); + this.subscriptions = new operations.Subscriptions(this); this.clusters = new operations.Clusters(this); this.privateEndpoints = new operations.PrivateEndpoints(this); } diff --git a/sdk/streamanalytics/arm-streamanalytics/src/streamAnalyticsManagementClientContext.ts b/sdk/streamanalytics/arm-streamanalytics/src/streamAnalyticsManagementClientContext.ts index 890f4dcaf30c..4d20a47bce20 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/streamAnalyticsManagementClientContext.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/streamAnalyticsManagementClientContext.ts @@ -9,8 +9,8 @@ import * as Models from "./models"; import * as msRest from "@azure/ms-rest-js"; -import { TokenCredential } from "@azure/core-auth"; import * as msRestAzure from "@azure/ms-rest-azure-js"; +import { TokenCredential } from "@azure/core-auth"; const packageName = "@azure/arm-streamanalytics"; const packageVersion = "2.1.1"; @@ -18,6 +18,7 @@ const packageVersion = "2.1.1"; export class StreamAnalyticsManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; + apiVersion?: string; /** * Initializes a new instance of the StreamAnalyticsManagementClient class. @@ -48,6 +49,7 @@ export class StreamAnalyticsManagementClientContext extends msRestAzure.AzureSer super(credentials, options); + this.apiVersion = '2020-03-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";