diff --git a/sdk/streamanalytics/arm-streamanalytics/LICENSE.txt b/sdk/streamanalytics/arm-streamanalytics/LICENSE.txt index b73b4a1293c3..ea8fb1516028 100644 --- a/sdk/streamanalytics/arm-streamanalytics/LICENSE.txt +++ b/sdk/streamanalytics/arm-streamanalytics/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2019 Microsoft +Copyright (c) 2020 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/streamanalytics/arm-streamanalytics/README.md b/sdk/streamanalytics/arm-streamanalytics/README.md index 5cfed7eabea9..9a7ba43bf422 100644 --- a/sdk/streamanalytics/arm-streamanalytics/README.md +++ b/sdk/streamanalytics/arm-streamanalytics/README.md @@ -15,26 +15,29 @@ npm install @azure/arm-streamanalytics ### How to use -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. +#### nodejs - client creation and get functions as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth +- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. ```bash -npm install @azure/ms-rest-nodeauth +npm install @azure/ms-rest-nodeauth@"^3.0.0" ``` ##### Sample code +While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package ```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { StreamAnalyticsManagementClient, StreamAnalyticsManagementModels, StreamAnalyticsManagementMappers } from "@azure/arm-streamanalytics"; +const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +const { StreamAnalyticsManagementClient } = require("@azure/arm-streamanalytics"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { const client = new StreamAnalyticsManagementClient(creds, subscriptionId); - client.operations.list().then((result) => { + const resourceGroupName = "testresourceGroupName"; + const jobName = "testjobName"; + const functionName = "testfunctionName"; + client.functions.get(resourceGroupName, jobName, functionName).then((result) => { console.log("The result is:"); console.log(result); }); @@ -43,7 +46,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { }); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. +#### browser - Authentication, client creation and get functions as an example written in JavaScript. ##### Install @azure/ms-rest-browserauth @@ -77,7 +80,10 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to authManager.login(); } const client = new Azure.ArmStreamanalytics.StreamAnalyticsManagementClient(res.creds, subscriptionId); - client.operations.list().then((result) => { + const resourceGroupName = "testresourceGroupName"; + const jobName = "testjobName"; + const functionName = "testfunctionName"; + client.functions.get(resourceGroupName, jobName, functionName).then((result) => { console.log("The result is:"); console.log(result); }).catch((err) => { @@ -95,4 +101,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fstreamanalytics%2Farm-streamanalytics%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/streamanalytics/arm-streamanalytics/README.png) diff --git a/sdk/streamanalytics/arm-streamanalytics/package.json b/sdk/streamanalytics/arm-streamanalytics/package.json index 76d7b9bde097..66a16739cbb8 100644 --- a/sdk/streamanalytics/arm-streamanalytics/package.json +++ b/sdk/streamanalytics/arm-streamanalytics/package.json @@ -4,8 +4,8 @@ "description": "StreamAnalyticsManagementClient Library with typescript type definitions for node.js and browser.", "version": "1.1.1", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.0", - "@azure/ms-rest-js": "^2.0.3", + "@azure/ms-rest-azure-js": "^2.0.1", + "@azure/ms-rest-js": "^2.0.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,11 +20,11 @@ "module": "./esm/streamAnalyticsManagementClient.js", "types": "./esm/streamAnalyticsManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", - "rollup": "^0.66.2", - "rollup-plugin-node-resolve": "^3.4.0", + "typescript": "^3.5.3", + "rollup": "^1.18.0", + "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", - "uglify-js": "^3.4.9" + "uglify-js": "^3.6.0" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/streamanalytics/arm-streamanalytics", "repository": { diff --git a/sdk/streamanalytics/arm-streamanalytics/rollup.config.js b/sdk/streamanalytics/arm-streamanalytics/rollup.config.js index bb8afd2ed8b8..d4185d1be9c8 100644 --- a/sdk/streamanalytics/arm-streamanalytics/rollup.config.js +++ b/sdk/streamanalytics/arm-streamanalytics/rollup.config.js @@ -21,15 +21,15 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, plugins: [ - nodeResolve({ module: true }), + nodeResolve({ mainFields: ['module', 'main'] }), sourcemaps() ] }; diff --git a/sdk/streamanalytics/arm-streamanalytics/src/models/clustersMappers.ts b/sdk/streamanalytics/arm-streamanalytics/src/models/clustersMappers.ts new file mode 100644 index 000000000000..5b7ba13d4529 --- /dev/null +++ b/sdk/streamanalytics/arm-streamanalytics/src/models/clustersMappers.ts @@ -0,0 +1,90 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AggregateFunctionProperties, + AvroSerialization, + AzureDataLakeStoreOutputDataSource, + AzureFunctionOutputDataSource, + AzureMachineLearningServiceFunctionBinding, + AzureMachineLearningServiceInputColumn, + AzureMachineLearningServiceOutputColumn, + AzureMachineLearningStudioFunctionBinding, + AzureMachineLearningStudioInputColumn, + AzureMachineLearningStudioInputs, + AzureMachineLearningStudioOutputColumn, + AzureSqlDatabaseOutputDataSource, + AzureSqlReferenceInputDataSource, + AzureSqlReferenceInputDataSourceProperties, + AzureSynapseOutputDataSource, + AzureTableOutputDataSource, + BaseResource, + BlobOutputDataSource, + BlobReferenceInputDataSource, + BlobStreamInputDataSource, + Cluster, + ClusterInfo, + ClusterJob, + ClusterJobListResult, + ClusterListResult, + ClusterProperties, + ClusterSku, + Compression, + CSharpFunctionBinding, + CsvSerialization, + CustomClrSerialization, + DiagnosticCondition, + Diagnostics, + DocumentDbOutputDataSource, + ErrorDetails, + ErrorError, + ErrorModel, + EventHubOutputDataSource, + EventHubStreamInputDataSource, + EventHubV2OutputDataSource, + EventHubV2StreamInputDataSource, + External, + FunctionBinding, + FunctionInput, + FunctionModel, + FunctionOutput, + FunctionProperties, + Identity, + Input, + InputProperties, + IoTHubStreamInputDataSource, + JavaScriptFunctionBinding, + JobStorageAccount, + JsonSerialization, + Output, + OutputDataSource, + ParquetSerialization, + PowerBIOutputDataSource, + PrivateEndpoint, + PrivateEndpointProperties, + PrivateLinkConnectionState, + PrivateLinkServiceConnection, + ProxyResource, + ReferenceInputDataSource, + ReferenceInputProperties, + Resource, + ScalarFunctionProperties, + Serialization, + ServiceBusQueueOutputDataSource, + ServiceBusTopicOutputDataSource, + StorageAccount, + StreamingJob, + StreamingJobSku, + StreamInputDataSource, + StreamInputProperties, + SubResource, + SubscriptionQuota, + TrackedResource, + Transformation +} from "../models/mappers"; diff --git a/sdk/streamanalytics/arm-streamanalytics/src/models/functionsMappers.ts b/sdk/streamanalytics/arm-streamanalytics/src/models/functionsMappers.ts index 02c1d2e9080c..df53151085b8 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/models/functionsMappers.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/models/functionsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,27 +8,47 @@ export { discriminators, + AggregateFunctionProperties, AvroSerialization, AzureDataLakeStoreOutputDataSource, - AzureMachineLearningWebServiceFunctionBinding, - AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters, - AzureMachineLearningWebServiceInputColumn, - AzureMachineLearningWebServiceInputs, - AzureMachineLearningWebServiceOutputColumn, + AzureFunctionOutputDataSource, + AzureMachineLearningServiceFunctionBinding, + AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters, + AzureMachineLearningServiceInputColumn, + AzureMachineLearningServiceOutputColumn, + AzureMachineLearningStudioFunctionBinding, + AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters, + AzureMachineLearningStudioInputColumn, + AzureMachineLearningStudioInputs, + AzureMachineLearningStudioOutputColumn, AzureSqlDatabaseOutputDataSource, + AzureSqlReferenceInputDataSource, + AzureSqlReferenceInputDataSourceProperties, + AzureSynapseOutputDataSource, AzureTableOutputDataSource, BaseResource, BlobOutputDataSource, BlobReferenceInputDataSource, BlobStreamInputDataSource, CloudError, + Cluster, + ClusterInfo, + ClusterProperties, + ClusterSku, + Compression, + CSharpFunctionBinding, + CSharpFunctionRetrieveDefaultDefinitionParameters, CsvSerialization, + CustomClrSerialization, DiagnosticCondition, Diagnostics, DocumentDbOutputDataSource, ErrorResponse, EventHubOutputDataSource, EventHubStreamInputDataSource, + EventHubV2OutputDataSource, + EventHubV2StreamInputDataSource, + External, FunctionBinding, FunctionInput, FunctionListResult, @@ -39,15 +59,23 @@ export { FunctionsCreateOrReplaceHeaders, FunctionsGetHeaders, FunctionsUpdateHeaders, + Identity, Input, InputProperties, IoTHubStreamInputDataSource, JavaScriptFunctionBinding, JavaScriptFunctionRetrieveDefaultDefinitionParameters, + JobStorageAccount, JsonSerialization, Output, OutputDataSource, + ParquetSerialization, PowerBIOutputDataSource, + PrivateEndpoint, + PrivateEndpointProperties, + PrivateLinkConnectionState, + PrivateLinkServiceConnection, + ProxyResource, ReferenceInputDataSource, ReferenceInputProperties, Resource, @@ -56,12 +84,13 @@ export { Serialization, ServiceBusQueueOutputDataSource, ServiceBusTopicOutputDataSource, - Sku, StorageAccount, StreamingJob, + StreamingJobSku, StreamInputDataSource, StreamInputProperties, SubResource, SubscriptionQuota, + TrackedResource, Transformation } from "../models/mappers"; diff --git a/sdk/streamanalytics/arm-streamanalytics/src/models/index.ts b/sdk/streamanalytics/arm-streamanalytics/src/models/index.ts index 3fb7ebbfe54a..774507c085a7 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/models/index.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -12,503 +12,352 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; /** - * Contains the localized display information for this particular operation / action. + * Describes one input parameter of a function. */ -export interface OperationDisplay { - /** - * The localized friendly form of the resource provider name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provider?: 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.** - */ - readonly resource?: string; +export interface FunctionInput { /** - * The localized friendly name for the operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * 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 */ - readonly operation?: string; + dataType?: string; /** - * The localized friendly description for the operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * A flag indicating if the parameter is a configuration parameter. True if this input parameter + * is expected to be a constant. Default is false. */ - readonly description?: string; + isConfigurationParameter?: boolean; } /** - * A Stream Analytics REST API operation + * Describes the output of a function. */ -export interface Operation { - /** - * 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.** - */ - readonly name?: string; +export interface FunctionOutput { /** - * 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.** + * 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 */ - readonly display?: OperationDisplay; + dataType?: string; } /** - * The properties that are associated with a SKU. + * 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. */ -export interface Sku { +export interface FunctionBinding { /** - * The name of the SKU. Required on PUT (CreateOrReplace) requests. Possible values include: - * 'Standard' + * Polymorphic Discriminator */ - name?: SkuName; + type: "FunctionBinding"; } /** - * Contains the possible cases for Serialization. + * Contains the possible cases for FunctionProperties. */ -export type SerializationUnion = Serialization | AvroSerialization | JsonSerialization | CsvSerialization; +export type FunctionPropertiesUnion = FunctionProperties | ScalarFunctionProperties | AggregateFunctionProperties; /** - * Describes how data from an input is serialized or how data is serialized when written to an - * output. + * The properties that are associated with a function. */ -export interface Serialization { +export interface FunctionProperties { /** * Polymorphic Discriminator */ - type: "Serialization"; + 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; } /** - * Condition applicable to the resource, or to the job overall, that warrant customer attention. + * The base sub-resource model definition. */ -export interface DiagnosticCondition { +export interface SubResource extends BaseResource { /** - * The UTC timestamp of when the condition started. Customers should be able to find a - * corresponding event in the ops log around this time. + * Resource Id * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly since?: string; + readonly id?: string; /** - * The opaque diagnostic code. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Resource name */ - readonly code?: string; + name?: string; /** - * The human-readable message describing the condition in detail. Localized in the - * Accept-Language of the client request. + * Resource type * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly message?: string; + readonly type?: string; } /** - * Describes conditions applicable to the Input, Output, or the job overall, that warrant customer - * attention. + * A function object, containing all information associated with the named function. All functions + * are contained under a streaming job. */ -export interface Diagnostics { +export interface FunctionModel extends SubResource { /** - * 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.** + * The properties that are associated with a function. */ - readonly conditions?: DiagnosticCondition[]; + properties?: FunctionPropertiesUnion; } /** - * Contains the possible cases for InputProperties. - */ -export type InputPropertiesUnion = InputProperties | ReferenceInputProperties | StreamInputProperties; - -/** - * The properties that are associated with an input. + * The properties that are associated with a scalar function. */ -export interface InputProperties { +export interface ScalarFunctionProperties { /** * Polymorphic Discriminator */ - type: "InputProperties"; - /** - * 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; + 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; + inputs?: FunctionInput[]; + output?: FunctionOutput; + binding?: FunctionBindingUnion; } /** - * The base sub-resource model definition. + * Describes an input column for the Azure Machine Learning Studio endpoint. */ -export interface SubResource extends BaseResource { +export interface AzureMachineLearningStudioInputColumn { /** - * Resource Id - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The name of the input column. */ - readonly id?: string; + name?: string; /** - * Resource name + * 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 . */ - name?: string; + dataType?: string; /** - * Resource type - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The zero based index of the function parameter this input maps to. */ - readonly type?: string; + mapTo?: number; } /** - * An input object, containing all information associated with the named input. All inputs are - * contained under a streaming job. + * The inputs for the Azure Machine Learning Studio endpoint. */ -export interface Input extends SubResource { +export interface AzureMachineLearningStudioInputs { /** - * The properties that are associated with an input. Required on PUT (CreateOrReplace) requests. + * The name of the input. This is the name provided while authoring the endpoint. */ - properties?: InputPropertiesUnion; + name?: string; + /** + * A list of input columns for the Azure Machine Learning Studio endpoint. + */ + columnNames?: AzureMachineLearningStudioInputColumn[]; } /** - * A transformation object, containing all information associated with the named transformation. - * All transformations are contained under a streaming job. + * Describes an output column for the Azure Machine Learning Studio endpoint. */ -export interface Transformation extends SubResource { - /** - * Specifies the number of streaming units that the streaming job uses. - */ - streamingUnits?: number; +export interface AzureMachineLearningStudioOutputColumn { /** - * 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 name of the output column. */ - query?: string; + name?: 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 (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 . */ - readonly etag?: string; + dataType?: string; } /** - * Contains the possible cases for OutputDataSource. + * The binding to an Azure Machine Learning Studio. */ -export type OutputDataSourceUnion = OutputDataSource | AzureDataLakeStoreOutputDataSource | PowerBIOutputDataSource | ServiceBusTopicOutputDataSource | ServiceBusQueueOutputDataSource | DocumentDbOutputDataSource | AzureSqlDatabaseOutputDataSource | EventHubOutputDataSource | AzureTableOutputDataSource | BlobOutputDataSource; +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; + /** + * The API key used to authenticate with Request-Response endpoint. + */ + apiKey?: string; + /** + * The inputs for the Azure Machine Learning Studio endpoint. + */ + inputs?: AzureMachineLearningStudioInputs; + /** + * A list of outputs from the Azure Machine Learning Studio endpoint execution. + */ + outputs?: AzureMachineLearningStudioOutputColumn[]; + /** + * Number between 1 and 10000 describing maximum number of rows for every Azure ML RRS execute + * request. Default is 1000. + */ + batchSize?: number; +} /** - * Describes the data source that output will be written to. + * The binding to a JavaScript function. */ -export interface OutputDataSource { +export interface JavaScriptFunctionBinding { /** * Polymorphic Discriminator */ - type: "OutputDataSource"; + type: "Microsoft.StreamAnalytics/JavascriptUdf"; + /** + * The JavaScript code containing a single function definition. For example: 'function (x, y) { + * return x + y; }' + */ + script?: string; } /** - * An output object, containing all information associated with the named output. All outputs are - * contained under a streaming job. + * The binding to a CSharp function. */ -export interface Output extends SubResource { +export interface CSharpFunctionBinding { /** - * Describes the data source that output will be written to. Required on PUT (CreateOrReplace) - * requests. + * Polymorphic Discriminator */ - datasource?: OutputDataSourceUnion; + type: "Microsoft.StreamAnalytics/CLRUdf"; /** - * Describes how data from an input is serialized or how data is serialized when written to an - * output. Required on PUT (CreateOrReplace) requests. + * The Csharp code containing a single function definition. */ - serialization?: SerializationUnion; + script?: 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 Csharp code containing a single function definition. */ - readonly diagnostics?: Diagnostics; + dllPath?: 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 Csharp code containing a single function definition. */ - readonly etag?: string; + classProperty?: string; + /** + * The Csharp code containing a single function definition. + */ + method?: string; } /** - * Contains the possible cases for FunctionProperties. + * Contains the possible cases for FunctionRetrieveDefaultDefinitionParameters. */ -export type FunctionPropertiesUnion = FunctionProperties | ScalarFunctionProperties; +export type FunctionRetrieveDefaultDefinitionParametersUnion = FunctionRetrieveDefaultDefinitionParameters | AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters | AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters | JavaScriptFunctionRetrieveDefaultDefinitionParameters | CSharpFunctionRetrieveDefaultDefinitionParameters; /** - * The properties that are associated with a function. + * Parameters used to specify the type of function to retrieve the default definition for. */ -export interface FunctionProperties { +export interface FunctionRetrieveDefaultDefinitionParameters { /** * 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; + bindingType: "FunctionRetrieveDefaultDefinitionParameters"; } /** - * A function object, containing all information associated with the named function. All functions - * are contained under a streaming job. + * The parameters needed to retrieve the default function definition for an Azure Machine Learning + * Studio function. */ -export interface FunctionModel extends SubResource { +export interface AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters { /** - * The properties that are associated with a function. - */ - properties?: FunctionPropertiesUnion; -} - -/** - * The base resource model definition. - */ -export interface Resource extends BaseResource { - /** - * Resource Id - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly id?: string; - /** - * Resource name - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * Resource type - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Polymorphic Discriminator */ - readonly type?: string; + bindingType: "Microsoft.MachineLearning/WebService"; /** - * Resource location. Required on PUT (CreateOrReplace) requests. + * 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 */ - location?: string; + executeEndpoint?: string; /** - * Resource tags + * The function type. Possible values include: 'Scalar' */ - tags?: { [propertyName: string]: string }; + udfType?: UdfType; } /** - * A streaming job object, containing all information associated with the named streaming job. + * The parameters needed to retrieve the default function definition for an Azure Machine Learning + * web service function. */ -export interface StreamingJob extends Resource { - /** - * Describes the SKU of the streaming job. Required on PUT (CreateOrReplace) requests. - */ - sku?: Sku; - /** - * 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; - /** - * 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; - /** - * 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; - /** - * 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.** - */ - readonly lastOutputEventTime?: Date; - /** - * Indicates the policy to apply to events that arrive out of order in the input event stream. - * Possible values include: 'Adjust', 'Drop' - */ - eventsOutOfOrderPolicy?: EventsOutOfOrderPolicy; - /** - * 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' - */ - outputErrorPolicy?: OutputErrorPolicy; - /** - * The maximum tolerable delay in seconds where out-of-order events can be adjusted to be back in - * order. - */ - eventsOutOfOrderMaxDelayInSeconds?: number; - /** - * 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. - */ - eventsLateArrivalMaxDelayInSeconds?: number; - /** - * 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. - */ - dataLocale?: string; - /** - * Controls certain runtime behaviors of the streaming job. Possible values include: '1.0' - */ - compatibilityLevel?: CompatibilityLevel; - /** - * 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 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[]; +export interface AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters { /** - * 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; - /** - * 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. + * Polymorphic Discriminator */ - outputs?: Output[]; + bindingType: "Microsoft.MachineLearningServices"; /** - * 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 Request-Response execute endpoint of the Azure Machine Learning web service. */ - functions?: FunctionModel[]; + executeEndpoint?: 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. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The function type. Possible values include: 'Scalar' */ - readonly etag?: string; + 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; -} - -/** - * Contains the possible cases for FunctionBinding. - */ -export type FunctionBindingUnion = FunctionBinding | JavaScriptFunctionBinding | AzureMachineLearningWebServiceFunctionBinding; - -/** - * The physical binding of the function. For example, in the Azure Machine Learning web service’s - * case, this describes the endpoint. - */ -export interface FunctionBinding { + script?: string; /** - * Polymorphic Discriminator + * The function type. Possible values include: 'Scalar' */ - type: "FunctionBinding"; + udfType?: UdfType; } /** - * The binding to a JavaScript function. + * The parameters needed to retrieve the default function definition for a CSharp function. */ -export interface JavaScriptFunctionBinding { +export interface CSharpFunctionRetrieveDefaultDefinitionParameters { /** * Polymorphic Discriminator */ - type: "Microsoft.StreamAnalytics/JavascriptUdf"; + bindingType: "Microsoft.StreamAnalytics/CLRUdf"; /** - * The JavaScript code containing a single function definition. For example: 'function (x, y) { - * return x + y; }' + * The CSharp code containing a single function definition. */ script?: string; -} - -/** - * Describes an output column for the Azure Machine Learning web service endpoint. - */ -export interface AzureMachineLearningWebServiceOutputColumn { - /** - * The name of the output column. - */ - name?: string; /** - * 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 function type. Possible values include: 'Scalar' */ - dataType?: string; + udfType?: UdfType; } /** * Describes an input column for the Azure Machine Learning web service endpoint. */ -export interface AzureMachineLearningWebServiceInputColumn { +export interface AzureMachineLearningServiceInputColumn { /** * 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 . + * The (Azure Machine Learning supported) data type of the input column. */ dataType?: string; /** @@ -518,31 +367,33 @@ export interface AzureMachineLearningWebServiceInputColumn { } /** - * The inputs for the Azure Machine Learning web service endpoint. + * Describes an output column for the Azure Machine Learning web service endpoint. */ -export interface AzureMachineLearningWebServiceInputs { +export interface AzureMachineLearningServiceOutputColumn { /** - * The name of the input. This is the name provided while authoring the endpoint. + * The name of the output column. */ name?: string; /** - * A list of input columns for the Azure Machine Learning web service endpoint. + * The (Azure Machine Learning supported) data type of the output column. + */ + dataType?: string; + /** + * The zero based index of the function parameter this input maps to. */ - columnNames?: AzureMachineLearningWebServiceInputColumn[]; + mapTo?: number; } /** * The binding to an Azure Machine Learning web service. */ -export interface AzureMachineLearningWebServiceFunctionBinding { +export interface AzureMachineLearningServiceFunctionBinding { /** * Polymorphic Discriminator */ - type: "Microsoft.MachineLearning/WebService"; + type: "Microsoft.MachineLearningServices"; /** - * 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 + * The Request-Response execute endpoint of the Azure Machine Learning web service. */ endpoint?: string; /** @@ -552,55 +403,45 @@ export interface AzureMachineLearningWebServiceFunctionBinding { /** * The inputs for the Azure Machine Learning web service endpoint. */ - inputs?: AzureMachineLearningWebServiceInputs; + inputs?: AzureMachineLearningServiceInputColumn[]; /** * A list of outputs from the Azure Machine Learning web service endpoint execution. */ - outputs?: AzureMachineLearningWebServiceOutputColumn[]; + outputs?: AzureMachineLearningServiceOutputColumn[]; /** * Number between 1 and 10000 describing maximum number of rows for every Azure ML RRS execute * request. Default is 1000. */ batchSize?: number; -} - -/** - * Describes the output of a function. - */ -export interface FunctionOutput { /** - * 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 number of parallel requests that will be sent per partition of your job to the machine + * learning service. Default is 1. */ - dataType?: string; + numberOfParallelRequests?: number; } /** - * Describes one input parameter of a function. + * The inputs for the Azure Machine Learning web service endpoint. */ -export interface FunctionInput { +export interface AzureMachineLearningServiceInputs { /** - * 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 name of the input. This is the name provided while authoring the endpoint. */ - dataType?: string; + name?: 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. + * A list of input columns for the Azure Machine Learning web service endpoint. */ - isConfigurationParameter?: boolean; + columnNames?: AzureMachineLearningServiceInputColumn[]; } /** - * The properties that are associated with a scalar function. + * The properties that are associated with an aggregate function. */ -export interface ScalarFunctionProperties { +export interface AggregateFunctionProperties { /** * Polymorphic Discriminator */ - type: "Scalar"; + type: "Aggregate"; /** * 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 @@ -608,429 +449,394 @@ export interface ScalarFunctionProperties { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly etag?: string; - /** - * A list of inputs describing the parameters of the function. - */ inputs?: FunctionInput[]; - /** - * The output of the function. - */ 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 how data from an input is serialized or how data is serialized when written to an - * output in Avro format. + * Describes the error that occurred. */ -export interface AvroSerialization { +export interface ErrorResponse { /** - * Polymorphic Discriminator + * Error code associated with the error that occurred. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - type: "Avro"; + readonly code?: string; /** - * The properties that are associated with the Avro serialization type. Required on PUT - * (CreateOrReplace) requests. + * Describes the error in detail. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - properties?: any; + readonly message?: string; } /** - * Describes how data from an input is serialized or how data is serialized when written to an - * output in JSON format. + * Describes the status of the test operation along with error information, if applicable. */ -export interface JsonSerialization { - /** - * Polymorphic Discriminator - */ - type: "Json"; +export interface ResourceTestStatus { /** - * 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 status of the test operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - encoding?: Encoding; + readonly status?: 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' + * Describes the error that occurred. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - format?: JsonOutputSerializationFormat; + 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 in CSV format. + * output. */ -export interface CsvSerialization { +export interface Serialization { /** * Polymorphic Discriminator */ - type: "Csv"; - /** - * 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. - */ - fieldDelimiter?: 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' - */ - encoding?: Encoding; + type: "Serialization"; } /** - * The properties that are associated with data sources that use OAuth as their authentication - * model. + * Condition applicable to the resource, or to the job overall, that warrant customer attention. */ -export interface OAuthBasedDataSourceProperties { +export interface DiagnosticCondition { /** - * 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. + * 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.** */ - refreshToken?: string; + readonly since?: 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. + * The opaque diagnostic code. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - tokenUserPrincipalName?: string; + readonly code?: 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 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.** */ - tokenUserDisplayName?: string; + readonly message?: string; } /** - * Describes an Azure Data Lake Store output data source. + * Describes conditions applicable to the Input, Output, or the job overall, that warrant customer + * attention. */ -export interface AzureDataLakeStoreOutputDataSource { - /** - * Polymorphic Discriminator - */ - type: "Microsoft.DataLake/Accounts"; +export interface Diagnostics { /** - * 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. + * 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.** */ - refreshToken?: string; + readonly conditions?: DiagnosticCondition[]; +} + +/** + * Describes how input data is compressed + */ +export interface Compression { + type: string; +} + +/** + * Contains the possible cases for InputProperties. + */ +export type InputPropertiesUnion = InputProperties | StreamInputProperties | ReferenceInputProperties; + +/** + * The properties that are associated with an input. + */ +export interface InputProperties { /** - * 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. + * Polymorphic Discriminator */ - tokenUserPrincipalName?: string; + type: "InputProperties"; /** - * 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 Azure Data Lake Store account. 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.** */ - accountName?: string; + readonly diagnostics?: Diagnostics; /** - * The tenant id of the user used to obtain the refresh token. 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.** */ - tenantId?: string; + readonly etag?: string; + compression?: Compression; /** - * The location of the file to which the output should be written to. Required on PUT - * (CreateOrReplace) requests. + * partitionKey Describes a key in the input data which is used for partitioning the input data */ - filePathPrefix?: string; + partitionKey?: string; +} + +/** + * An input object, containing all information associated with the named input. All inputs are + * contained under a streaming job. + */ +export interface Input extends SubResource { /** - * The date format. Wherever {date} appears in filePathPrefix, the value of this property is used - * as the date format instead. + * The properties that are associated with an input. Required on PUT (CreateOrReplace) requests. */ - dateFormat?: string; + properties?: InputPropertiesUnion; +} + +/** + * Contains the possible cases for StreamInputDataSource. + */ +export type StreamInputDataSourceUnion = StreamInputDataSource | BlobStreamInputDataSource | EventHubStreamInputDataSource | EventHubV2StreamInputDataSource | IoTHubStreamInputDataSource; + +/** + * Describes an input data source that contains stream data. + */ +export interface StreamInputDataSource { /** - * The time format. Wherever {time} appears in filePathPrefix, the value of this property is used - * as the time format instead. + * Polymorphic Discriminator */ - timeFormat?: string; + type: "StreamInputDataSource"; } /** - * Describes a Power BI output data source. + * The properties that are associated with an input containing stream data. */ -export interface PowerBIOutputDataSource { +export interface StreamInputProperties { /** * Polymorphic Discriminator */ - type: "PowerBI"; + type: "Stream"; /** - * 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. + * Describes how data from an input is serialized or how data is serialized when written to an + * output. Required on PUT (CreateOrReplace) requests. */ - refreshToken?: string; + serialization?: SerializationUnion; /** - * 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. + * 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.** */ - tokenUserPrincipalName?: string; + readonly diagnostics?: Diagnostics; /** - * 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 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.** */ - tokenUserDisplayName?: string; + readonly etag?: string; + compression?: Compression; /** - * The name of the Power BI dataset. Required on PUT (CreateOrReplace) requests. + * partitionKey Describes a key in the input data which is used for partitioning the input data */ - dataset?: string; + partitionKey?: string; /** - * The name of the Power BI table under the specified dataset. Required on PUT (CreateOrReplace) + * Describes an input data source that contains stream data. Required on PUT (CreateOrReplace) * requests. */ - table?: string; - /** - * The ID of the Power BI group. - */ - 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; + datasource?: StreamInputDataSourceUnion; } /** - * The common properties that are associated with Service Bus data sources (Queues, Topics, Event - * Hubs, etc.). + * Contains the possible cases for ReferenceInputDataSource. */ -export interface ServiceBusDataSourceProperties { - /** - * 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; -} +export type ReferenceInputDataSourceUnion = ReferenceInputDataSource | BlobReferenceInputDataSource | AzureSqlReferenceInputDataSource; /** - * The common properties that are associated with Event Hub data sources. + * Describes an input data source that contains reference data. */ -export interface EventHubDataSourceProperties extends ServiceBusDataSourceProperties { +export interface ReferenceInputDataSource { /** - * The name of the Event Hub. Required on PUT (CreateOrReplace) requests. + * Polymorphic Discriminator */ - eventHubName?: string; + type: "ReferenceInputDataSource"; } /** - * Describes a Service Bus Topic output data source. + * The properties that are associated with an input containing reference data. */ -export interface ServiceBusTopicOutputDataSource { +export interface ReferenceInputProperties { /** * Polymorphic Discriminator */ - type: "Microsoft.ServiceBus/Topic"; + type: "Reference"; /** - * The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus - * Topic, etc. Required on PUT (CreateOrReplace) requests. + * Describes how data from an input is serialized or how data is serialized when written to an + * output. Required on PUT (CreateOrReplace) requests. */ - serviceBusNamespace?: string; + serialization?: SerializationUnion; /** - * The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. - * 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.** */ - sharedAccessPolicyName?: string; + readonly diagnostics?: Diagnostics; /** - * The shared access policy key for the specified shared access policy. 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.** */ - sharedAccessPolicyKey?: string; + readonly etag?: string; + compression?: Compression; /** - * The name of the Service Bus Topic. Required on PUT (CreateOrReplace) requests. + * partitionKey Describes a key in the input data which is used for partitioning the input data */ - topicName?: string; + partitionKey?: string; /** - * A string array of the names of output columns to be attached to Service Bus messages as custom - * properties. + * Describes an input data source that contains reference data. Required on PUT (CreateOrReplace) + * requests. */ - propertyColumns?: string[]; + datasource?: ReferenceInputDataSourceUnion; } /** - * Describes a Service Bus Queue output data source. + * Describes a blob input data source that contains stream data. */ -export interface ServiceBusQueueOutputDataSource { +export interface BlobStreamInputDataSource { /** * Polymorphic Discriminator */ - type: "Microsoft.ServiceBus/Queue"; + type: "Microsoft.Storage/Blob"; /** - * The namespace that is associated with the desired 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. */ - serviceBusNamespace?: string; + storageAccounts?: StorageAccount[]; /** - * The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. - * 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. */ - sharedAccessPolicyName?: string; + container?: string; /** - * The shared access policy key for the specified shared access policy. 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. */ - sharedAccessPolicyKey?: string; + pathPattern?: string; /** - * The name of the Service Bus Queue. 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. */ - queueName?: 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[]; + timeFormat?: string; + /** + * The partition count of the blob input data source. Range 1 - 256. + */ + sourcePartitionCount?: number; } /** - * Describes a DocumentDB output data source. + * Describes an Event Hub input data source that contains stream data. */ -export interface DocumentDbOutputDataSource { +export interface EventHubStreamInputDataSource { /** * Polymorphic Discriminator */ - type: "Microsoft.Storage/DocumentDB"; - /** - * The DocumentDB account name or ID. Required on PUT (CreateOrReplace) requests. - */ - accountId?: string; - /** - * The account key for the DocumentDB account. Required on PUT (CreateOrReplace) requests. - */ - accountKey?: string; - /** - * The name of the DocumentDB database. Required on PUT (CreateOrReplace) requests. - */ - database?: 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. - */ - collectionNamePattern?: string; + type: "Microsoft.ServiceBus/EventHub"; /** - * 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 namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus + * Topic, etc. Required on PUT (CreateOrReplace) requests. */ - partitionKey?: string; + serviceBusNamespace?: string; /** - * The name of the field in output events used to specify the primary key which insert or update - * operations are based on. + * The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. + * Required on PUT (CreateOrReplace) requests. */ - documentId?: string; -} - -/** - * The properties that are associated with an Azure SQL database data source. - */ -export interface AzureSqlDatabaseDataSourceProperties { + sharedAccessPolicyName?: string; /** - * The name of the SQL server containing the Azure SQL database. Required on PUT + * The shared access policy key for the specified shared access policy. Required on PUT * (CreateOrReplace) requests. */ - server?: string; - /** - * The name of the Azure SQL database. Required on PUT (CreateOrReplace) requests. - */ - database?: string; + sharedAccessPolicyKey?: string; /** - * The user name that will be used to connect to the Azure SQL database. Required on PUT - * (CreateOrReplace) requests. + * Authentication Mode. Possible values include: 'Msi', 'UserToken', 'ConnectionString' */ - user?: string; + authenticationMode?: AuthenticationMode; /** - * The password that will be used to connect to the Azure SQL database. Required on PUT - * (CreateOrReplace) requests. + * The name of the Event Hub. Required on PUT (CreateOrReplace) requests. */ - password?: string; + eventHubName?: string; /** - * The name of the table in the Azure SQL database. Required on PUT (CreateOrReplace) requests. + * 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. */ - table?: string; + consumerGroupName?: string; } /** - * Describes an Azure SQL database output data source. + * Describes an Event Hub input data source that contains stream data. */ -export interface AzureSqlDatabaseOutputDataSource { +export interface EventHubV2StreamInputDataSource { /** * Polymorphic Discriminator */ - type: "Microsoft.Sql/Server/Database"; + type: "Microsoft.EventHub/EventHub"; /** - * The name of the SQL server containing 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. */ - server?: string; + serviceBusNamespace?: string; /** - * The name of 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. */ - database?: string; + sharedAccessPolicyName?: string; /** - * The user name 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. */ - user?: string; + sharedAccessPolicyKey?: string; /** - * The password that will be used to connect to the Azure SQL database. Required on PUT - * (CreateOrReplace) requests. + * Authentication Mode. Possible values include: 'Msi', 'UserToken', 'ConnectionString' */ - password?: string; + authenticationMode?: AuthenticationMode; /** - * The name of the table in the Azure SQL database. Required on PUT (CreateOrReplace) requests. + * The name of the Event Hub. Required on PUT (CreateOrReplace) requests. */ - table?: string; + eventHubName?: 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. + */ + consumerGroupName?: string; } /** - * Describes an Event Hub output data source. + * Describes an IoT Hub input data source that contains stream data. */ -export interface EventHubOutputDataSource { +export interface IoTHubStreamInputDataSource { /** * Polymorphic Discriminator */ - type: "Microsoft.ServiceBus/EventHub"; + type: "Microsoft.Devices/IotHubs"; /** - * The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus - * Topic, etc. Required on PUT (CreateOrReplace) requests. + * The name or the URI of the IoT Hub. Required on PUT (CreateOrReplace) requests. */ - serviceBusNamespace?: string; + iotHubNamespace?: string; /** - * The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. - * 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. */ sharedAccessPolicyName?: string; /** @@ -1039,54 +845,53 @@ export interface EventHubOutputDataSource { */ sharedAccessPolicyKey?: string; /** - * The name of the Event Hub. Required on PUT (CreateOrReplace) requests. + * 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. */ - eventHubName?: string; + consumerGroupName?: string; /** - * The key/column that is used to determine to which partition to send event data. + * The IoT Hub endpoint to connect to (ie. messages/events, messages/operationsMonitoringEvents, + * etc.). */ - partitionKey?: string; + endpoint?: string; } /** - * Describes an Azure Table output data source. + * Describes a blob input data source that contains reference data. */ -export interface AzureTableOutputDataSource { +export interface BlobReferenceInputDataSource { /** * Polymorphic Discriminator */ - type: "Microsoft.Storage/Table"; - /** - * The name of the Azure Storage account. Required on PUT (CreateOrReplace) requests. - */ - accountName?: string; - /** - * The account key for the Azure Storage account. Required on PUT (CreateOrReplace) requests. - */ - accountKey?: string; + type: "Microsoft.Storage/Blob"; /** - * The name of the Azure Table. Required on PUT (CreateOrReplace) requests. + * A list of one or more Azure Storage accounts. Required on PUT (CreateOrReplace) requests. */ - table?: string; + storageAccounts?: StorageAccount[]; /** - * 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 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. */ - partitionKey?: string; + container?: 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. + * 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. */ - rowKey?: string; + pathPattern?: string; /** - * If specified, each item in the array is the name of a column to remove (if present) from - * output event entities. + * The date format. Wherever {date} appears in pathPattern, the value of this property is used as + * the date format instead. */ - columnsToRemove?: string[]; + dateFormat?: string; /** - * The number of rows to write to the Azure Table at a time. + * The time format. Wherever {time} appears in pathPattern, the value of this property is used as + * the time format instead. */ - batchSize?: number; + timeFormat?: string; } /** @@ -1138,218 +943,266 @@ export interface BlobDataSourceProperties { } /** - * Describes a blob output data source. + * The common properties that are associated with Service Bus data sources (Queues, Topics, Event + * Hubs, etc.). */ -export interface BlobOutputDataSource { +export interface ServiceBusDataSourceProperties { /** - * Polymorphic Discriminator + * The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus + * Topic, etc. Required on PUT (CreateOrReplace) requests. */ - type: "Microsoft.Storage/Blob"; + serviceBusNamespace?: string; /** - * A list of one or more Azure Storage accounts. 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. */ - storageAccounts?: StorageAccount[]; + sharedAccessPolicyName?: 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. - */ - container?: 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. - */ - pathPattern?: string; - /** - * The date format. Wherever {date} appears in pathPattern, the value of this property is used as - * the date format instead. + * The shared access policy key for the specified shared access policy. Required on PUT + * (CreateOrReplace) requests. */ - dateFormat?: string; + sharedAccessPolicyKey?: string; /** - * The time format. Wherever {time} appears in pathPattern, the value of this property is used as - * the time format instead. + * Authentication Mode. Possible values include: 'Msi', 'UserToken', 'ConnectionString' */ - timeFormat?: string; + authenticationMode?: AuthenticationMode; } /** - * Contains the possible cases for ReferenceInputDataSource. + * The common properties that are associated with Event Hub data sources. */ -export type ReferenceInputDataSourceUnion = ReferenceInputDataSource | BlobReferenceInputDataSource; +export interface EventHubDataSourceProperties extends ServiceBusDataSourceProperties { + /** + * The name of the Event Hub. Required on PUT (CreateOrReplace) requests. + */ + eventHubName?: string; +} /** - * Describes an input data source that contains reference data. + * Describes how data from an input is serialized or how data is serialized when written to an + * output in Parquet format. */ -export interface ReferenceInputDataSource { +export interface ParquetSerialization { /** * Polymorphic Discriminator */ - type: "ReferenceInputDataSource"; + type: "Parquet"; + /** + * The properties that are associated with the Parquet serialization type. Required on PUT + * (CreateOrReplace) requests. + */ + properties?: any; } /** - * Describes a blob input data source that contains reference data. + * Describes how data from an input is serialized or how data is serialized when written to an + * output in custom format. */ -export interface BlobReferenceInputDataSource { +export interface CustomClrSerialization { /** * Polymorphic Discriminator */ - type: "Microsoft.Storage/Blob"; + type: "CustomClr"; /** - * A list of one or more Azure Storage accounts. Required on PUT (CreateOrReplace) requests. + * The serialization library path. */ - storageAccounts?: StorageAccount[]; + serializationDllPath?: 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 serialization class name. */ - container?: string; + 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 { /** - * 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. + * Polymorphic Discriminator */ - pathPattern?: string; + type: "Csv"; /** - * The date format. Wherever {date} appears in pathPattern, the value of this property is used as - * the date format instead. + * 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. */ - dateFormat?: string; + fieldDelimiter?: string; /** - * The time format. Wherever {time} appears in pathPattern, the value of this property is used as - * the time format instead. + * 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' */ - timeFormat?: string; + encoding?: Encoding; } /** - * The properties that are associated with an input containing reference data. + * Describes how data from an input is serialized or how data is serialized when written to an + * output in JSON format. */ -export interface ReferenceInputProperties { +export interface JsonSerialization { /** * Polymorphic Discriminator */ - type: "Reference"; + type: "Json"; /** - * Describes how data from an input is serialized or how data is serialized when written to an - * output. Required on PUT (CreateOrReplace) requests. + * 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' */ - serialization?: SerializationUnion; + encoding?: Encoding; /** - * 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.** + * 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' */ - readonly diagnostics?: Diagnostics; + 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 { /** - * 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.** + * Polymorphic Discriminator */ - readonly etag?: string; + type: "Avro"; /** - * Describes an input data source that contains reference data. Required on PUT (CreateOrReplace) - * requests. + * The properties that are associated with the Avro serialization type. Required on PUT + * (CreateOrReplace) requests. */ - datasource?: ReferenceInputDataSourceUnion; + properties?: any; } /** - * Contains the possible cases for StreamInputDataSource. + * Describes how identity is verified */ -export type StreamInputDataSourceUnion = StreamInputDataSource | IoTHubStreamInputDataSource | EventHubStreamInputDataSource | BlobStreamInputDataSource; +export interface Identity { + tenantId?: string; + principalId?: string; + type?: string; +} /** - * Describes an input data source that contains stream data. + * An interface representing AzureSqlReferenceInputDataSourceProperties. */ -export interface StreamInputDataSource { +export interface AzureSqlReferenceInputDataSourceProperties { /** - * Polymorphic Discriminator + * This element is associated with the datasource element. This is the name of the server that + * contains the database that will be written to. */ - type: "StreamInputDataSource"; -} - -/** - * Describes an IoT Hub input data source that contains stream data. - */ -export interface IoTHubStreamInputDataSource { + server?: string; /** - * Polymorphic Discriminator + * This element is associated with the datasource element. This is the name of the database that + * output will be written to. */ - type: "Microsoft.Devices/IotHubs"; + database?: string; /** - * The name or the URI of the IoT Hub. Required on PUT (CreateOrReplace) requests. + * This element is associated with the datasource element. This is the user name that will be + * used to connect to the SQL Database instance. */ - iotHubNamespace?: string; + user?: 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. + * This element is associated with the datasource element. This is the password that will be used + * to connect to the SQL Database instance. */ - sharedAccessPolicyName?: string; + password?: string; /** - * The shared access policy key for the specified shared access policy. Required on PUT - * (CreateOrReplace) requests. + * This element is associated with the datasource element. The name of the table in the Azure SQL + * database.. */ - sharedAccessPolicyKey?: string; + table?: string; /** - * 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. + * 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 */ - consumerGroupName?: string; + refreshType?: string; /** - * The IoT Hub endpoint to connect to (ie. messages/events, messages/operationsMonitoringEvents, - * etc.). + * 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. */ - endpoint?: string; + refreshRate?: string; + /** + * This element is associated with the datasource element. This query is used to fetch data from + * the sql database. + */ + fullSnapshotQuery?: 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. + */ + deltaSnapshotQuery?: string; } /** - * Describes an Event Hub input data source that contains stream data. + * Describes an Azure SQL database reference input data source. */ -export interface EventHubStreamInputDataSource { +export interface AzureSqlReferenceInputDataSource { /** * Polymorphic Discriminator */ - type: "Microsoft.ServiceBus/EventHub"; + type: "Microsoft.Sql/Server/Database"; + properties?: AzureSqlReferenceInputDataSourceProperties; +} + +/** + * 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. + */ +export interface OutputDataSource { /** - * The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus - * Topic, etc. Required on PUT (CreateOrReplace) requests. + * Polymorphic Discriminator */ - serviceBusNamespace?: string; + 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 { /** - * The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. - * Required on PUT (CreateOrReplace) requests. + * Describes the data source that output will be written to. Required on PUT (CreateOrReplace) + * requests. */ - sharedAccessPolicyName?: string; + datasource?: OutputDataSourceUnion; + timeWindow?: string; + sizeWindow?: number; /** - * The shared access policy key for the specified shared access policy. Required on PUT - * (CreateOrReplace) requests. + * Describes how data from an input is serialized or how data is serialized when written to an + * output. Required on PUT (CreateOrReplace) requests. */ - sharedAccessPolicyKey?: string; + serialization?: SerializationUnion; /** - * The name of the Event Hub. 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.** */ - eventHubName?: string; + readonly diagnostics?: Diagnostics; /** - * 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 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.** */ - consumerGroupName?: string; + readonly etag?: string; } /** - * Describes a blob input data source that contains stream data. + * Describes a blob output data source. */ -export interface BlobStreamInputDataSource { +export interface BlobOutputDataSource { /** * Polymorphic Discriminator */ @@ -1383,822 +1236,2304 @@ export interface BlobStreamInputDataSource { */ timeFormat?: string; /** - * The partition count of the blob input data source. Range 1 - 256. + * Authentication Mode. Possible values include: 'Msi', 'UserToken', 'ConnectionString' */ - sourcePartitionCount?: number; + authenticationMode?: AuthenticationMode; } /** - * The properties that are associated with an input containing stream data. + * Describes an Azure Table output data source. */ -export interface StreamInputProperties { +export interface AzureTableOutputDataSource { /** * Polymorphic Discriminator */ - type: "Stream"; + type: "Microsoft.Storage/Table"; /** - * 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 Azure Storage account. Required on PUT (CreateOrReplace) requests. */ - serialization?: SerializationUnion; + accountName?: 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 account key for the Azure Storage account. Required on PUT (CreateOrReplace) requests. */ - readonly diagnostics?: Diagnostics; + accountKey?: 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 name of the Azure Table. Required on PUT (CreateOrReplace) requests. */ - readonly etag?: string; + table?: string; /** - * Describes an input data source that contains stream data. 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. */ - datasource?: StreamInputDataSourceUnion; -} - -/** - * Describes the error that occurred. - */ -export interface ErrorResponse { + partitionKey?: string; /** - * Error code associated with the error that occurred. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * 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. */ - readonly code?: string; + rowKey?: string; /** - * Describes the error in detail. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * If specified, each item in the array is the name of a column to remove (if present) from + * output event entities. */ - readonly message?: string; + columnsToRemove?: string[]; + /** + * The number of rows to write to the Azure Table at a time. + */ + batchSize?: number; } /** - * Describes the status of the test operation along with error information, if applicable. + * Describes an Event Hub output data source. */ -export interface ResourceTestStatus { +export interface EventHubOutputDataSource { /** - * The status of the test operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Polymorphic Discriminator */ - readonly status?: string; + type: "Microsoft.ServiceBus/EventHub"; /** - * Describes the error that occurred. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus + * Topic, etc. Required on PUT (CreateOrReplace) requests. */ - 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 { + 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. */ - bindingType: "FunctionRetrieveDefaultDefinitionParameters"; -} - -/** - * The parameters needed to retrieve the default function definition for an Azure Machine Learning - * web service function. - */ -export interface AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters { + sharedAccessPolicyName?: string; /** - * Polymorphic Discriminator + * The shared access policy key for the specified shared access policy. Required on PUT + * (CreateOrReplace) requests. */ - bindingType: "Microsoft.MachineLearning/WebService"; + sharedAccessPolicyKey?: string; /** - * 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 + * Authentication Mode. Possible values include: 'Msi', 'UserToken', 'ConnectionString' */ - executeEndpoint?: string; + authenticationMode?: AuthenticationMode; /** - * The function type. Possible values include: 'Scalar' + * The name of the Event Hub. Required on PUT (CreateOrReplace) requests. */ - udfType?: UdfType; + eventHubName?: string; + /** + * The key/column that is used to determine to which partition to send event data. + */ + partitionKey?: string; + propertyColumns?: string[]; } /** - * The parameters needed to retrieve the default function definition for a JavaScript function. + * Describes an Event Hub output data source. */ -export interface JavaScriptFunctionRetrieveDefaultDefinitionParameters { +export interface EventHubV2OutputDataSource { /** * Polymorphic Discriminator */ - bindingType: "Microsoft.StreamAnalytics/JavascriptUdf"; + type: "Microsoft.EventHub/EventHub"; /** - * The JavaScript code containing a single function definition. For example: 'function (x, y) { - * return x + y; }'. + * The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus + * Topic, etc. Required on PUT (CreateOrReplace) requests. */ - script?: string; + serviceBusNamespace?: string; /** - * The function type. Possible values include: 'Scalar' + * The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. + * Required on PUT (CreateOrReplace) requests. */ - udfType?: UdfType; -} - -/** - * Describes the current quota for the subscription. - */ -export interface SubscriptionQuota extends SubResource { + sharedAccessPolicyName?: string; /** - * The max permitted usage of this resource. - * **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 maxCount?: number; + sharedAccessPolicyKey?: string; /** - * The current usage of this resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Authentication Mode. Possible values include: 'Msi', 'UserToken', 'ConnectionString' */ - readonly currentCount?: number; -} - -/** - * Result of the GetQuotas operation. It contains a list of quotas for the subscription in a - * particular region. - */ -export interface SubscriptionQuotasListResult { + authenticationMode?: AuthenticationMode; /** - * List of quotas for the subscription in a particular region. - * **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 value?: SubscriptionQuota[]; + eventHubName?: string; + /** + * The key/column that is used to determine to which partition to send event data. + */ + partitionKey?: string; + propertyColumns?: string[]; } /** - * Optional Parameters. + * Describes an Azure SQL database output data source. */ -export interface StreamingJobsCreateOrReplaceOptionalParams extends msRest.RequestOptionsBase { +export interface AzureSqlDatabaseOutputDataSource { /** - * 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. + * Polymorphic Discriminator */ - ifMatch?: string; + type: "Microsoft.Sql/Server/Database"; /** - * 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. + * The name of the SQL server containing the Azure SQL database. Required on PUT + * (CreateOrReplace) requests. */ - ifNoneMatch?: string; -} - -/** - * Optional Parameters. - */ -export interface StreamingJobsUpdateOptionalParams extends msRest.RequestOptionsBase { + server?: string; /** - * 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 name of the Azure SQL database. Required on PUT (CreateOrReplace) requests. */ - ifMatch?: string; -} - -/** - * Optional Parameters. - */ -export interface StreamingJobsGetOptionalParams extends msRest.RequestOptionsBase { + database?: string; /** - * 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 user name that will be used to connect to the Azure SQL database. Required on PUT + * (CreateOrReplace) requests. */ - expand?: string; -} - -/** - * Optional Parameters. - */ -export interface StreamingJobsListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + user?: string; /** - * 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 password that will be used to connect to the Azure SQL database. Required on PUT + * (CreateOrReplace) requests. */ - expand?: string; -} - -/** - * Optional Parameters. - */ -export interface StreamingJobsListOptionalParams extends msRest.RequestOptionsBase { + password?: string; /** - * 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 name of the table in the Azure SQL database. Required on PUT (CreateOrReplace) requests. */ - expand?: string; -} - -/** - * Optional Parameters. - */ -export interface StreamingJobsStartOptionalParams extends msRest.RequestOptionsBase { + table?: string; /** - * Parameters applicable to a start streaming job operation. + * Max Batch count for write to Sql database, the default value is 10,000. Optional on PUT + * requests. */ - startJobParameters?: StartStreamingJobParameters; -} - -/** - * Optional Parameters. - */ -export interface StreamingJobsBeginCreateOrReplaceOptionalParams extends msRest.RequestOptionsBase { + maxBatchCount?: number; /** - * 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. + * Max Write r count, currently only 1(single writer) and 0(based on query partition) are + * available. Optional on PUT requests. */ - ifMatch?: string; + maxWriterCount?: number; /** - * 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. + * Authentication Mode. Possible values include: 'Msi', 'UserToken', 'ConnectionString' */ - ifNoneMatch?: string; + authenticationMode?: AuthenticationMode; } /** - * Optional Parameters. + * Describes an Azure Synapse output data source. */ -export interface StreamingJobsBeginStartOptionalParams extends msRest.RequestOptionsBase { +export interface AzureSynapseOutputDataSource { /** - * Parameters applicable to a start streaming job operation. + * Polymorphic Discriminator */ - startJobParameters?: StartStreamingJobParameters; -} - -/** - * Optional Parameters. - */ -export interface InputsCreateOrReplaceOptionalParams extends msRest.RequestOptionsBase { + type: "Microsoft.Sql/Server/DataWarehouse"; /** - * The ETag of the input. Omit this value to always overwrite the current input. Specify the - * last-seen ETag value to prevent accidentally overwriting concurrent changes. + * The name of the SQL server containing the Azure SQL database. Required on PUT + * (CreateOrReplace) requests. */ - ifMatch?: string; + server?: string; /** - * Set to '*' to allow a new input to be created, but to prevent updating an existing input. - * Other values will result in a 412 Pre-condition Failed response. + * The name of the Azure SQL database. Required on PUT (CreateOrReplace) requests. */ - ifNoneMatch?: string; -} - -/** - * Optional Parameters. - */ -export interface InputsUpdateOptionalParams extends msRest.RequestOptionsBase { + database?: string; /** - * The ETag of the input. Omit this value to always overwrite the current input. Specify the - * last-seen ETag value to prevent accidentally overwriting concurrent changes. + * The name of the table in the Azure SQL database. Required on PUT (CreateOrReplace) requests. */ - ifMatch?: string; + table?: string; + /** + * The user name that will be used to connect to the Azure SQL database. Required on PUT + * (CreateOrReplace) requests. + */ + user?: string; + /** + * The password that will be used to connect to the Azure SQL database. Required on PUT + * (CreateOrReplace) requests. + */ + password?: string; } /** - * Optional Parameters. + * The properties that are associated with an Azure SQL database data source. */ -export interface InputsListByStreamingJobOptionalParams extends msRest.RequestOptionsBase { +export interface AzureSynapseDataSourceProperties { /** - * 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 name of the SQL server containing the Azure SQL database. Required on PUT + * (CreateOrReplace) requests. */ - select?: string; -} - -/** - * Optional Parameters. - */ -export interface InputsTestOptionalParams extends msRest.RequestOptionsBase { + server?: string; /** - * If the input specified does not already exist, this parameter must contain the full input - * definition intended to be tested. If the input specified already exists, this parameter can be - * left null to test the existing input as is or if specified, the properties specified will - * overwrite the corresponding properties in the existing input (exactly like a PATCH operation) - * and the resulting input will be tested. + * The name of the Azure SQL database. Required on PUT (CreateOrReplace) requests. */ - input?: Input; -} - -/** - * Optional Parameters. - */ -export interface InputsBeginTestOptionalParams extends msRest.RequestOptionsBase { + database?: string; /** - * If the input specified does not already exist, this parameter must contain the full input - * definition intended to be tested. If the input specified already exists, this parameter can be - * left null to test the existing input as is or if specified, the properties specified will - * overwrite the corresponding properties in the existing input (exactly like a PATCH operation) - * and the resulting input will be tested. + * The name of the table in the Azure SQL database. Required on PUT (CreateOrReplace) requests. */ - input?: Input; -} - -/** - * Optional Parameters. - */ -export interface OutputsCreateOrReplaceOptionalParams extends msRest.RequestOptionsBase { + table?: string; /** - * The ETag of the output. Omit this value to always overwrite the current output. Specify the - * last-seen ETag value to prevent accidentally overwriting concurrent changes. + * The user name that will be used to connect to the Azure SQL database. Required on PUT + * (CreateOrReplace) requests. */ - ifMatch?: string; + user?: string; /** - * Set to '*' to allow a new output to be created, but to prevent updating an existing output. - * Other values will result in a 412 Pre-condition Failed response. + * The password that will be used to connect to the Azure SQL database. Required on PUT + * (CreateOrReplace) requests. */ - ifNoneMatch?: string; + password?: string; } /** - * Optional Parameters. + * Describes a DocumentDB output data source. */ -export interface OutputsUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface DocumentDbOutputDataSource { /** - * The ETag of the output. Omit this value to always overwrite the current output. Specify the - * last-seen ETag value to prevent accidentally overwriting concurrent changes. + * Polymorphic Discriminator */ - ifMatch?: string; -} - -/** - * Optional Parameters. - */ -export interface OutputsListByStreamingJobOptionalParams extends msRest.RequestOptionsBase { + type: "Microsoft.Storage/DocumentDB"; /** - * 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 DocumentDB account name or ID. Required on PUT (CreateOrReplace) requests. */ - select?: string; -} - -/** - * Optional Parameters. - */ -export interface OutputsTestOptionalParams extends msRest.RequestOptionsBase { + accountId?: string; /** - * If the output specified does not already exist, this parameter must contain the full output - * definition intended to be tested. If the output specified already exists, this parameter can - * be left null to test the existing output as is or if specified, the properties specified will - * overwrite the corresponding properties in the existing output (exactly like a PATCH operation) - * and the resulting output will be tested. + * The account key for the DocumentDB account. Required on PUT (CreateOrReplace) requests. */ - output?: Output; -} - -/** - * Optional Parameters. - */ -export interface OutputsBeginTestOptionalParams extends msRest.RequestOptionsBase { + accountKey?: string; /** - * If the output specified does not already exist, this parameter must contain the full output - * definition intended to be tested. If the output specified already exists, this parameter can - * be left null to test the existing output as is or if specified, the properties specified will - * overwrite the corresponding properties in the existing output (exactly like a PATCH operation) - * and the resulting output will be tested. + * The name of the DocumentDB database. Required on PUT (CreateOrReplace) requests. */ - output?: Output; -} - -/** - * Optional Parameters. - */ -export interface TransformationsCreateOrReplaceOptionalParams extends msRest.RequestOptionsBase { + database?: string; /** - * 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 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. */ - ifMatch?: string; + collectionNamePattern?: string; /** - * 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. + * 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. */ - ifNoneMatch?: string; -} - -/** - * Optional Parameters. - */ -export interface TransformationsUpdateOptionalParams extends msRest.RequestOptionsBase { + partitionKey?: string; /** - * 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 name of the field in output events used to specify the primary key which insert or update + * operations are based on. */ - ifMatch?: string; + documentId?: string; } /** - * Optional Parameters. + * Defines the metadata of AzureFunctionOutputDataSource */ -export interface FunctionsCreateOrReplaceOptionalParams extends msRest.RequestOptionsBase { +export interface AzureFunctionOutputDataSource { /** - * 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. + * Polymorphic Discriminator */ - ifMatch?: string; + type: "Microsoft.AzureFunction"; /** - * 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. + * The name of your Azure Functions app. */ - ifNoneMatch?: string; -} - -/** - * Optional Parameters. - */ -export interface FunctionsUpdateOptionalParams extends msRest.RequestOptionsBase { + functionAppName?: string; /** - * 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 name of the function in your Azure Functions app. */ - ifMatch?: string; -} - -/** - * Optional Parameters. - */ -export interface FunctionsListByStreamingJobOptionalParams extends msRest.RequestOptionsBase { + functionName?: string; /** - * 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. + * If you want to use an Azure Function from another subscription, you can do so by providing the + * key to access your function. */ - select?: string; -} - -/** - * Optional Parameters. - */ -export interface FunctionsTestOptionalParams extends msRest.RequestOptionsBase { + apiKey?: string; /** - * 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. + * 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). */ - functionParameter?: FunctionModel; -} - -/** - * Optional Parameters. - */ -export interface FunctionsRetrieveDefaultDefinitionOptionalParams extends msRest.RequestOptionsBase { + maxBatchSize?: number; /** - * Parameters used to specify the type of function to retrieve the default definition for. + * 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. */ - functionRetrieveDefaultDefinitionParameters?: FunctionRetrieveDefaultDefinitionParametersUnion; + maxBatchCount?: number; } /** - * Optional Parameters. + * Describes a Service Bus Queue output data source. */ -export interface FunctionsBeginTestOptionalParams extends msRest.RequestOptionsBase { +export interface ServiceBusQueueOutputDataSource { /** - * 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. + * Polymorphic Discriminator */ - functionParameter?: FunctionModel; -} - -/** - * An interface representing StreamAnalyticsManagementClientOptions. - */ -export interface StreamAnalyticsManagementClientOptions extends AzureServiceClientOptions { - baseUri?: string; -} - -/** - * Defines headers for CreateOrReplace operation. - */ -export interface StreamingJobsCreateOrReplaceHeaders { + type: "Microsoft.ServiceBus/Queue"; /** - * 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. + * The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus + * Topic, etc. Required on PUT (CreateOrReplace) requests. */ - eTag: string; -} - -/** - * Defines headers for Update operation. - */ -export interface StreamingJobsUpdateHeaders { + serviceBusNamespace?: 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. + * The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. + * Required on PUT (CreateOrReplace) requests. */ - eTag: string; -} - -/** - * Defines headers for Get operation. - */ -export interface StreamingJobsGetHeaders { + sharedAccessPolicyName?: 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. + * The shared access policy key for the specified shared access policy. Required on PUT + * (CreateOrReplace) requests. */ - eTag: string; + sharedAccessPolicyKey?: string; + /** + * Authentication Mode. Possible values include: 'Msi', 'UserToken', 'ConnectionString' + */ + authenticationMode?: AuthenticationMode; + /** + * The name of the Service Bus Queue. Required on PUT (CreateOrReplace) requests. + */ + queueName?: string; + /** + * A string array of the names of output columns to be attached to Service Bus messages as custom + * properties. + */ + propertyColumns?: string[]; + systemPropertyColumns?: { [propertyName: string]: string }; } /** - * Defines headers for CreateOrReplace operation. + * Describes a Service Bus Topic output data source. */ -export interface InputsCreateOrReplaceHeaders { +export interface ServiceBusTopicOutputDataSource { /** - * 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. + * Polymorphic Discriminator */ - eTag: string; + 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; + /** + * 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; + /** + * The name of the Service Bus Topic. Required on PUT (CreateOrReplace) requests. + */ + topicName?: string; + /** + * A string array of the names of output columns to be attached to Service Bus messages as custom + * properties. + */ + propertyColumns?: string[]; + systemPropertyColumns?: { [propertyName: string]: string }; } /** - * Defines headers for Update operation. + * Describes a Power BI output data source. */ -export interface InputsUpdateHeaders { +export interface PowerBIOutputDataSource { /** - * 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. + * Polymorphic Discriminator */ - eTag: string; + 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; + /** + * 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. + */ + tokenUserDisplayName?: string; + /** + * The name of the Power BI dataset. Required on PUT (CreateOrReplace) requests. + */ + dataset?: string; + /** + * The name of the Power BI table under the specified dataset. Required on PUT (CreateOrReplace) + * requests. + */ + table?: string; + /** + * The ID of the Power BI group. + */ + 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; } /** - * Defines headers for Get operation. + * Describes an Azure Data Lake Store output data source. */ -export interface InputsGetHeaders { +export interface AzureDataLakeStoreOutputDataSource { /** - * 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. + * Polymorphic Discriminator */ - eTag: string; + 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; + /** + * 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. + */ + tokenUserDisplayName?: string; + /** + * The name of the Azure Data Lake Store account. Required on PUT (CreateOrReplace) requests. + */ + accountName?: string; + /** + * The tenant id of the user used to obtain the refresh token. Required on PUT (CreateOrReplace) + * requests. + */ + tenantId?: string; + /** + * The location of the file to which the output should be written to. 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; + /** + * 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; } /** - * Defines headers for CreateOrReplace operation. + * The properties that are associated with an Azure SQL database data source. */ -export interface OutputsCreateOrReplaceHeaders { +export interface AzureSqlDatabaseDataSourceProperties { /** - * 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. + * The name of the SQL server containing the Azure SQL database. Required on PUT + * (CreateOrReplace) requests. */ - eTag: string; + server?: string; + /** + * The name of the Azure SQL database. Required on PUT (CreateOrReplace) requests. + */ + database?: string; + /** + * The user name that will be used to connect to the Azure SQL database. Required on PUT + * (CreateOrReplace) requests. + */ + user?: string; + /** + * The password that will be used to connect to the Azure SQL database. Required on PUT + * (CreateOrReplace) requests. + */ + password?: string; + /** + * The name of the table in the Azure SQL database. Required on PUT (CreateOrReplace) requests. + */ + table?: string; + /** + * Max Batch count for write to Sql database, the default value is 10,000. Optional on PUT + * requests. + */ + maxBatchCount?: number; + /** + * 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' + */ + authenticationMode?: AuthenticationMode; } /** - * Defines headers for Update operation. + * The properties that are associated with data sources that use OAuth as their authentication + * model. */ -export interface OutputsUpdateHeaders { +export interface OAuthBasedDataSourceProperties { /** - * 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. + * 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. */ - eTag: string; + 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; + /** + * 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. + */ + tokenUserDisplayName?: string; } /** - * Defines headers for Get operation. + * The storage account where the custom code artifacts are located. */ -export interface OutputsGetHeaders { - /** - * 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. - */ - eTag: string; +export interface External { + storageAccount?: StorageAccount; + container?: string; + path?: string; } /** - * Defines headers for CreateOrReplace operation. + * Contains the localized display information for this particular operation / action. */ -export interface TransformationsCreateOrReplaceHeaders { +export interface OperationDisplay { /** - * 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 localized friendly form of the resource provider name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - eTag: string; + readonly provider?: 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.** + */ + 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; } /** - * Defines headers for Update operation. + * A Stream Analytics REST API operation */ -export interface TransformationsUpdateHeaders { +export interface Operation { /** - * 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 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.** */ - eTag: string; + readonly name?: string; + /** + * 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; } /** - * Defines headers for Get operation. + * The properties that are associated with a SKU. */ -export interface TransformationsGetHeaders { +export interface StreamingJobSku { /** - * 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 name of the SKU. Required on PUT (CreateOrReplace) requests. Possible values include: + * 'Standard' */ - eTag: string; + name?: StreamingJobSkuName; } /** - * Defines headers for CreateOrReplace operation. + * A transformation object, containing all information associated with the named transformation. + * All transformations are contained under a streaming job. */ -export interface FunctionsCreateOrReplaceHeaders { +export interface Transformation extends SubResource { /** - * 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. + * Specifies the number of streaming units that the streaming job uses. */ - eTag: string; + streamingUnits?: number; + /** + * 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. + */ + query?: 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.** + */ + readonly etag?: string; } /** - * Defines headers for Update operation. + * The properties that are associated with an Azure Storage account with MSI */ -export interface FunctionsUpdateHeaders { +export interface JobStorageAccount extends StorageAccount { /** - * 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. + * Authentication Mode. Possible values include: 'Msi', 'UserToken', 'ConnectionString' */ - eTag: string; + authenticationMode?: AuthenticationMode; } /** - * Defines headers for Get operation. + * The properties associated with a Stream Analytics cluster. */ -export interface FunctionsGetHeaders { +export interface ClusterInfo { /** - * 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 resource id of cluster. */ - eTag: string; + id?: string; } /** - * @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 + * An interface representing Resource. */ -export interface OperationListResult extends Array { +export interface Resource extends BaseResource { /** - * URL to get the next set of operation list results if there are any. + * 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.** */ - readonly nextLink?: string; + readonly id?: string; + /** + * The name of the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * 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.** + */ + readonly type?: string; } /** - * @interface - * Object containing a list of streaming jobs. - * @extends Array + * The resource model definition for a ARM tracked top level resource */ -export interface StreamingJobListResult extends Array { +export interface TrackedResource extends Resource { /** - * The link (url) to the next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Resource tags. */ - readonly nextLink?: string; + tags?: { [propertyName: string]: string }; + /** + * The geo-location where the resource lives + */ + location?: string; } /** - * @interface - * Object containing a list of inputs under a streaming job. - * @extends Array + * A streaming job object, containing all information associated with the named streaming job. */ -export interface InputListResult extends Array { +export interface StreamingJob extends TrackedResource { /** - * The link (url) to the next page of results. + * 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 nextLink?: string; + 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; + /** + * 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; + /** + * 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.** + */ + readonly lastOutputEventTime?: Date; + /** + * Indicates the policy to apply to events that arrive out of order in the input event stream. + * Possible values include: 'Adjust', 'Drop' + */ + eventsOutOfOrderPolicy?: EventsOutOfOrderPolicy; + /** + * 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' + */ + outputErrorPolicy?: OutputErrorPolicy; + /** + * The maximum tolerable delay in seconds where out-of-order events can be adjusted to be back in + * order. + */ + eventsOutOfOrderMaxDelayInSeconds?: number; + /** + * 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. + */ + eventsLateArrivalMaxDelayInSeconds?: number; + /** + * 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. + */ + dataLocale?: string; + /** + * Controls certain runtime behaviors of the streaming job. Possible values include: '1.0' + */ + compatibilityLevel?: CompatibilityLevel; + /** + * 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 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; + /** + * 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. + */ + outputs?: Output[]; + /** + * 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; + 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 storage account where the custom code artifacts are located. + */ + externals?: External; + /** + * 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; } /** - * @interface - * Object containing a list of outputs under a streaming job. - * @extends Array + * Parameters supplied to the Start Streaming Job operation. */ -export interface OutputListResult extends Array { +export interface StartStreamingJobParameters { /** - * The link (url) to the next page of results. - * **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 nextLink?: string; + 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; } /** - * @interface - * Object containing a list of functions under a streaming job. - * @extends Array + * The resource model definition for a ARM proxy resource. It will have everything other than + * required location and tags */ -export interface FunctionListResult extends Array { +export interface ProxyResource extends Resource { +} + +/** + * Describes the current quota for the subscription. + */ +export interface SubscriptionQuota extends SubResource { /** - * The link (url) to the next page of results. + * The max permitted usage of this resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly maxCount?: number; + /** + * The current usage of this resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly currentCount?: number; } /** - * Defines values for SkuName. - * Possible values include: 'Standard' - * @readonly - * @enum {string} + * Result of the GetQuotas operation. It contains a list of quotas for the subscription in a + * particular region. */ -export type SkuName = 'Standard'; +export interface SubscriptionQuotasListResult { + /** + * List of quotas for the subscription in a particular region. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly value?: SubscriptionQuota[]; +} /** - * Defines values for OutputStartMode. - * Possible values include: 'JobStartTime', 'CustomTime', 'LastOutputEventTime' - * @readonly - * @enum {string} + * The SKU of the cluster. This determines the size/capacity of the cluster. Required on PUT + * (CreateOrUpdate) requests. */ -export type OutputStartMode = 'JobStartTime' | 'CustomTime' | 'LastOutputEventTime'; +export interface ClusterSku { + /** + * Specifies the SKU name of the cluster. Required on PUT (CreateOrUpdate) requests. Possible + * values include: 'Default' + */ + name?: ClusterSkuName; + /** + * Denotes the number of streaming units the cluster can support. Valid values for this property + * are multiples of 36 with a minimum value of 36 and maximum value of 216. Required on PUT + * (CreateOrUpdate) requests. + */ + capacity?: number; +} /** - * Defines values for EventsOutOfOrderPolicy. - * Possible values include: 'Adjust', 'Drop' - * @readonly - * @enum {string} + * The properties associated with a Stream Analytics cluster. */ -export type EventsOutOfOrderPolicy = 'Adjust' | 'Drop'; - -/** +export interface ClusterProperties { + /** + * The date this cluster was created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly createdDate?: Date; + /** + * Unique identifier for the cluster. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly clusterId?: string; + /** + * Possible values include: 'Succeeded', 'Failed', 'Canceled', 'InProgress' + */ + provisioningState?: ClusterProvisioningState; + /** + * Represents the number of streaming units currently being used on the cluster. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly capacityAllocated?: number; + /** + * Represents the sum of the SUs of all streaming jobs associated with the cluster. If all of the + * jobs were running, this would be the capacity allocated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + 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. + */ +export interface ClusterJob { + /** + * Resource ID of the streaming job. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The number of streaming units that are used by the streaming job. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly streamingUnits?: number; + /** + * Possible values include: 'Created', 'Starting', 'Running', 'Stopping', 'Stopped', 'Deleting', + * 'Failed', 'Degraded', 'Restarting', 'Scaling' + */ + 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. + */ +export interface PrivateLinkConnectionState { + /** + * Indicates whether the connection has been Approved/Rejected/Removed by the owner of the remote + * resource/service. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: string; + /** + * The reason for approval/rejection of the connection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly description?: string; + /** + * A message indicating if changes on the service provider require any updates on the consumer. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly actionsRequired?: string; +} + +/** + * A grouping of information about the connection to the remote resource. + */ +export interface PrivateLinkServiceConnection { + /** + * The resource id of the private link service. Required on PUT (CreateOrUpdate) requests. + */ + privateLinkServiceId?: string; + /** + * The ID(s) of the group(s) obtained from the remote resource that this private endpoint should + * connect to. Required on PUT (CreateOrUpdate) requests. + */ + groupIds?: string[]; + /** + * A message passed to the owner of the remote resource with this connection request. Restricted + * to 140 chars. + */ + requestMessage?: string; + /** + * A collection of read-only information about the state of the connection to the private remote + * resource. + */ + privateLinkServiceConnectionState?: PrivateLinkConnectionState; +} + +/** + * The properties associated with a private endpoint. + */ +export interface PrivateEndpointProperties { + /** + * The date when this private endpoint was created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly createdDate?: string; + /** + * 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 + * (CreateOrUpdate) requests. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly etag?: string; +} + +/** + * Optional Parameters. + */ +export interface FunctionsCreateOrReplaceOptionalParams 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. + */ + 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. + */ + ifNoneMatch?: string; +} + +/** + * Optional Parameters. + */ +export interface FunctionsUpdateOptionalParams 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. + */ + ifMatch?: string; +} + +/** + * Optional Parameters. + */ +export interface FunctionsListByStreamingJobOptionalParams 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. + */ + select?: string; +} + +/** + * Optional Parameters. + */ +export interface FunctionsTestOptionalParams 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. + */ + functionParameter?: FunctionModel; +} + +/** + * Optional Parameters. + */ +export interface FunctionsRetrieveDefaultDefinitionOptionalParams extends msRest.RequestOptionsBase { + /** + * Parameters used to specify the type of function to retrieve the default definition for. + */ + functionRetrieveDefaultDefinitionParameters?: FunctionRetrieveDefaultDefinitionParametersUnion; +} + +/** + * Optional Parameters. + */ +export interface FunctionsBeginTestOptionalParams 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. + */ + functionParameter?: FunctionModel; +} + +/** + * Optional Parameters. + */ +export interface FunctionsListByStreamingJobNextOptionalParams 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. + */ + select?: string; +} + +/** + * Optional Parameters. + */ +export interface InputsCreateOrReplaceOptionalParams extends msRest.RequestOptionsBase { + /** + * The ETag of the input. Omit this value to always overwrite the current input. Specify the + * last-seen ETag value to prevent accidentally overwriting concurrent changes. + */ + ifMatch?: string; + /** + * Set to '*' to allow a new input to be created, but to prevent updating an existing input. + * Other values will result in a 412 Pre-condition Failed response. + */ + ifNoneMatch?: string; +} + +/** + * Optional Parameters. + */ +export interface InputsUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * The ETag of the input. Omit this value to always overwrite the current input. Specify the + * last-seen ETag value to prevent accidentally overwriting concurrent changes. + */ + ifMatch?: string; +} + +/** + * Optional Parameters. + */ +export interface InputsListByStreamingJobOptionalParams 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. + */ + select?: string; +} + +/** + * Optional Parameters. + */ +export interface InputsTestOptionalParams extends msRest.RequestOptionsBase { + /** + * If the input specified does not already exist, this parameter must contain the full input + * definition intended to be tested. If the input specified already exists, this parameter can be + * left null to test the existing input as is or if specified, the properties specified will + * overwrite the corresponding properties in the existing input (exactly like a PATCH operation) + * and the resulting input will be tested. + */ + input?: Input; +} + +/** + * Optional Parameters. + */ +export interface InputsBeginTestOptionalParams extends msRest.RequestOptionsBase { + /** + * If the input specified does not already exist, this parameter must contain the full input + * definition intended to be tested. If the input specified already exists, this parameter can be + * left null to test the existing input as is or if specified, the properties specified will + * overwrite the corresponding properties in the existing input (exactly like a PATCH operation) + * and the resulting input will be tested. + */ + input?: Input; +} + +/** + * Optional Parameters. + */ +export interface InputsListByStreamingJobNextOptionalParams 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. + */ + select?: string; +} + +/** + * Optional Parameters. + */ +export interface OutputsCreateOrReplaceOptionalParams extends msRest.RequestOptionsBase { + /** + * The ETag of the output. Omit this value to always overwrite the current output. Specify the + * last-seen ETag value to prevent accidentally overwriting concurrent changes. + */ + ifMatch?: string; + /** + * Set to '*' to allow a new output to be created, but to prevent updating an existing output. + * Other values will result in a 412 Pre-condition Failed response. + */ + ifNoneMatch?: string; +} + +/** + * Optional Parameters. + */ +export interface OutputsUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * The ETag of the output. Omit this value to always overwrite the current output. Specify the + * last-seen ETag value to prevent accidentally overwriting concurrent changes. + */ + ifMatch?: string; +} + +/** + * Optional Parameters. + */ +export interface OutputsListByStreamingJobOptionalParams 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. + */ + select?: string; +} + +/** + * Optional Parameters. + */ +export interface OutputsTestOptionalParams extends msRest.RequestOptionsBase { + /** + * If the output specified does not already exist, this parameter must contain the full output + * definition intended to be tested. If the output specified already exists, this parameter can + * be left null to test the existing output as is or if specified, the properties specified will + * overwrite the corresponding properties in the existing output (exactly like a PATCH operation) + * and the resulting output will be tested. + */ + output?: Output; +} + +/** + * Optional Parameters. + */ +export interface OutputsBeginTestOptionalParams extends msRest.RequestOptionsBase { + /** + * If the output specified does not already exist, this parameter must contain the full output + * definition intended to be tested. If the output specified already exists, this parameter can + * be left null to test the existing output as is or if specified, the properties specified will + * overwrite the corresponding properties in the existing output (exactly like a PATCH operation) + * and the resulting output will be tested. + */ + output?: Output; +} + +/** + * Optional Parameters. + */ +export interface OutputsListByStreamingJobNextOptionalParams 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. + */ + select?: string; +} + +/** + * Optional Parameters. + */ +export interface StreamingJobsCreateOrReplaceOptionalParams 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 StreamingJobsUpdateOptionalParams 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; +} + +/** + * 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 { + /** + * 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 StreamingJobsStartOptionalParams extends msRest.RequestOptionsBase { + /** + * Parameters applicable to a start streaming job operation. + */ + startJobParameters?: StartStreamingJobParameters; +} + +/** + * 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 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'. + */ + expand?: string; +} + +/** + * 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; + /** + * 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; +} + +/** + * Optional Parameters. + */ +export interface TransformationsUpdateOptionalParams 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; +} + +/** + * Optional Parameters. + */ +export interface ClustersCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * The ETag of the resource. 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 resource 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 ClustersUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * The ETag of the resource. Omit this value to always overwrite the current record set. Specify + * the last-seen ETag value to prevent accidentally overwriting concurrent changes. + */ + ifMatch?: string; +} + +/** + * Optional Parameters. + */ +export interface ClustersBeginCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * The ETag of the resource. 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 resource 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 ClustersBeginUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * The ETag of the resource. Omit this value to always overwrite the current record set. Specify + * the last-seen ETag value to prevent accidentally overwriting concurrent changes. + */ + ifMatch?: string; +} + +/** + * Optional Parameters. + */ +export interface PrivateEndpointsCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * The ETag of the resource. 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 resource to be created, but to prevent updating an existing record + * set. Other values will result in a 412 Pre-condition Failed response. + */ + ifNoneMatch?: string; +} + +/** + * An interface representing StreamAnalyticsManagementClientOptions. + */ +export interface StreamAnalyticsManagementClientOptions extends AzureServiceClientOptions { + baseUri?: string; +} + +/** + * Defines headers for CreateOrReplace operation. + */ +export interface FunctionsCreateOrReplaceHeaders { + /** + * 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; +} + +/** + * Defines headers for Update operation. + */ +export interface FunctionsUpdateHeaders { + /** + * 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; +} + +/** + * Defines headers for Get operation. + */ +export interface FunctionsGetHeaders { + /** + * 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; +} + +/** + * Defines headers for CreateOrReplace operation. + */ +export interface InputsCreateOrReplaceHeaders { + /** + * 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. + */ + eTag: string; +} + +/** + * Defines headers for Update operation. + */ +export interface InputsUpdateHeaders { + /** + * 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. + */ + eTag: string; +} + +/** + * Defines headers for Get operation. + */ +export interface InputsGetHeaders { + /** + * 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. + */ + eTag: string; +} + +/** + * Defines headers for CreateOrReplace operation. + */ +export interface OutputsCreateOrReplaceHeaders { + /** + * 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. + */ + eTag: string; +} + +/** + * Defines headers for Update operation. + */ +export interface OutputsUpdateHeaders { + /** + * 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. + */ + eTag: string; +} + +/** + * Defines headers for Get operation. + */ +export interface OutputsGetHeaders { + /** + * 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. + */ + eTag: string; +} + +/** + * Defines headers for CreateOrReplace operation. + */ +export interface StreamingJobsCreateOrReplaceHeaders { + /** + * 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; +} + +/** + * Defines headers for Update operation. + */ +export interface StreamingJobsUpdateHeaders { + /** + * 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; +} + +/** + * Defines headers for Get operation. + */ +export interface StreamingJobsGetHeaders { + /** + * 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; +} + +/** + * Defines headers for CreateOrReplace operation. + */ +export interface TransformationsCreateOrReplaceHeaders { + /** + * 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. + */ + eTag: string; +} + +/** + * Defines headers for Update operation. + */ +export interface TransformationsUpdateHeaders { + /** + * 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. + */ + eTag: string; +} + +/** + * Defines headers for Get operation. + */ +export interface TransformationsGetHeaders { + /** + * 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. + */ + eTag: string; +} + +/** + * @interface + * Object containing a list of functions under a streaming job. + * @extends Array + */ +export interface FunctionListResult 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.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Object containing a list of inputs under a streaming job. + * @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.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Object containing a list of outputs under a streaming job. + * @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.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Object containing a list of streaming jobs. + * @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.** + */ + readonly nextLink?: string; +} + +/** + * @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 + */ +export interface OperationListResult extends Array { + /** + * 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; +} + +/** + * @interface + * A list of clusters populated by a 'list' operation. + * @extends Array + */ +export interface ClusterListResult extends Array { + /** + * The URL to fetch the next set of clusters. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of streaming jobs. Populated by a List operation. + * @extends Array + */ +export interface ClusterJobListResult extends Array { + /** + * The URL to fetch the next set of streaming jobs. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * 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; +} + +/** + * Defines values for UdfType. + * Possible values include: 'Scalar' + * @readonly + * @enum {string} + */ +export type UdfType = 'Scalar'; + +/** + * Defines values for AuthenticationMode. + * Possible values include: 'Msi', 'UserToken', 'ConnectionString' + * @readonly + * @enum {string} + */ +export type AuthenticationMode = 'Msi' | 'UserToken' | 'ConnectionString'; + +/** + * Defines values for Encoding. + * Possible values include: 'UTF8' + * @readonly + * @enum {string} + */ +export type Encoding = 'UTF8'; + +/** + * Defines values for JsonOutputSerializationFormat. + * Possible values include: 'LineSeparated', 'Array' + * @readonly + * @enum {string} + */ +export type JsonOutputSerializationFormat = 'LineSeparated' | 'Array'; + +/** + * Defines values for EventSerializationType. + * Possible values include: 'Csv', 'Avro', 'Json', 'CustomClr', 'Parquet' + * @readonly + * @enum {string} + */ +export type EventSerializationType = 'Csv' | 'Avro' | 'Json' | 'CustomClr' | 'Parquet'; + +/** + * Defines values for StreamingJobSkuName. + * Possible values include: 'Standard' + * @readonly + * @enum {string} + */ +export type StreamingJobSkuName = 'Standard'; + +/** + * Defines values for JobType. + * Possible values include: 'Cloud', 'Edge' + * @readonly + * @enum {string} + */ +export type JobType = 'Cloud' | 'Edge'; + +/** + * Defines values for OutputStartMode. + * Possible values include: 'JobStartTime', 'CustomTime', 'LastOutputEventTime' + * @readonly + * @enum {string} + */ +export type OutputStartMode = 'JobStartTime' | 'CustomTime' | 'LastOutputEventTime'; + +/** + * Defines values for EventsOutOfOrderPolicy. + * Possible values include: 'Adjust', 'Drop' + * @readonly + * @enum {string} + */ +export type EventsOutOfOrderPolicy = 'Adjust' | 'Drop'; + +/** * Defines values for OutputErrorPolicy. * Possible values include: 'Stop', 'Drop' * @readonly * @enum {string} */ -export type OutputErrorPolicy = 'Stop' | 'Drop'; +export type OutputErrorPolicy = 'Stop' | 'Drop'; + +/** + * Defines values for CompatibilityLevel. + * Possible values include: '1.0' + * @readonly + * @enum {string} + */ +export type CompatibilityLevel = '1.0'; + +/** + * Defines values for ContentStoragePolicy. + * Possible values include: 'SystemAccount', 'JobStorageAccount' + * @readonly + * @enum {string} + */ +export type ContentStoragePolicy = 'SystemAccount' | 'JobStorageAccount'; + +/** + * Defines values for ClusterSkuName. + * Possible values include: 'Default' + * @readonly + * @enum {string} + */ +export type ClusterSkuName = 'Default'; + +/** + * Defines values for ClusterProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Canceled', 'InProgress' + * @readonly + * @enum {string} + */ +export type ClusterProvisioningState = 'Succeeded' | 'Failed' | 'Canceled' | 'InProgress'; + +/** + * Defines values for JobState. + * Possible values include: 'Created', 'Starting', 'Running', 'Stopping', 'Stopped', 'Deleting', + * 'Failed', 'Degraded', 'Restarting', 'Scaling' + * @readonly + * @enum {string} + */ +export type JobState = 'Created' | 'Starting' | 'Running' | 'Stopping' | 'Stopped' | 'Deleting' | 'Failed' | 'Degraded' | 'Restarting' | 'Scaling'; + +/** + * Contains response data for the createOrReplace operation. + */ +export type FunctionsCreateOrReplaceResponse = FunctionModel & FunctionsCreateOrReplaceHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: FunctionsCreateOrReplaceHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: FunctionModel; + }; +}; + +/** + * Contains response data for the update operation. + */ +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) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: FunctionModel; + }; +}; /** - * Defines values for CompatibilityLevel. - * Possible values include: '1.0' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type CompatibilityLevel = '1.0'; +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) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: FunctionModel; + }; +}; /** - * Defines values for JsonOutputSerializationFormat. - * Possible values include: 'LineSeparated', 'Array' - * @readonly - * @enum {string} + * Contains response data for the listByStreamingJob operation. */ -export type JsonOutputSerializationFormat = 'LineSeparated' | 'Array'; +export type FunctionsListByStreamingJobResponse = FunctionListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: FunctionListResult; + }; +}; /** - * Defines values for Encoding. - * Possible values include: 'UTF8' - * @readonly - * @enum {string} + * Contains response data for the test operation. */ -export type Encoding = 'UTF8'; +export type FunctionsTestResponse = ResourceTestStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceTestStatus; + }; +}; + +/** + * Contains response data for the retrieveDefaultDefinition operation. + */ +export type FunctionsRetrieveDefaultDefinitionResponse = FunctionModel & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: FunctionModel; + }; +}; + +/** + * Contains response data for the beginTest operation. + */ +export type FunctionsBeginTestResponse = ResourceTestStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceTestStatus; + }; +}; + +/** + * Contains response data for the listByStreamingJobNext operation. + */ +export type FunctionsListByStreamingJobNextResponse = FunctionListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: FunctionListResult; + }; +}; + +/** + * Contains response data for the createOrReplace operation. + */ +export type InputsCreateOrReplaceResponse = Input & InputsCreateOrReplaceHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: InputsCreateOrReplaceHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Input; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type InputsUpdateResponse = Input & InputsUpdateHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: InputsUpdateHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Input; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type InputsGetResponse = Input & InputsGetHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: InputsGetHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Input; + }; +}; + +/** + * Contains response data for the listByStreamingJob operation. + */ +export type InputsListByStreamingJobResponse = InputListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: InputListResult; + }; +}; /** - * Defines values for UdfType. - * Possible values include: 'Scalar' - * @readonly - * @enum {string} + * Contains response data for the test operation. */ -export type UdfType = 'Scalar'; +export type InputsTestResponse = ResourceTestStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ResourceTestStatus; + }; +}; /** - * Contains response data for the list operation. + * Contains response data for the beginTest operation. */ -export type OperationsListResponse = OperationListResult & { +export type InputsBeginTestResponse = ResourceTestStatus & { /** * The underlying HTTP response. */ @@ -2211,14 +3546,14 @@ export type OperationsListResponse = OperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationListResult; + parsedBody: ResourceTestStatus; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByStreamingJobNext operation. */ -export type OperationsListNextResponse = OperationListResult & { +export type InputsListByStreamingJobNextResponse = InputListResult & { /** * The underlying HTTP response. */ @@ -2231,14 +3566,14 @@ export type OperationsListNextResponse = OperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationListResult; + parsedBody: InputListResult; }; }; /** * Contains response data for the createOrReplace operation. */ -export type StreamingJobsCreateOrReplaceResponse = StreamingJob & StreamingJobsCreateOrReplaceHeaders & { +export type OutputsCreateOrReplaceResponse = Output & OutputsCreateOrReplaceHeaders & { /** * The underlying HTTP response. */ @@ -2246,7 +3581,7 @@ export type StreamingJobsCreateOrReplaceResponse = StreamingJob & StreamingJobsC /** * The parsed HTTP response headers. */ - parsedHeaders: StreamingJobsCreateOrReplaceHeaders; + parsedHeaders: OutputsCreateOrReplaceHeaders; /** * The response body as text (string format) @@ -2256,14 +3591,14 @@ export type StreamingJobsCreateOrReplaceResponse = StreamingJob & StreamingJobsC /** * The response body as parsed JSON or XML */ - parsedBody: StreamingJob; + parsedBody: Output; }; }; /** * Contains response data for the update operation. */ -export type StreamingJobsUpdateResponse = StreamingJob & StreamingJobsUpdateHeaders & { +export type OutputsUpdateResponse = Output & OutputsUpdateHeaders & { /** * The underlying HTTP response. */ @@ -2271,7 +3606,7 @@ export type StreamingJobsUpdateResponse = StreamingJob & StreamingJobsUpdateHead /** * The parsed HTTP response headers. */ - parsedHeaders: StreamingJobsUpdateHeaders; + parsedHeaders: OutputsUpdateHeaders; /** * The response body as text (string format) @@ -2281,14 +3616,14 @@ export type StreamingJobsUpdateResponse = StreamingJob & StreamingJobsUpdateHead /** * The response body as parsed JSON or XML */ - parsedBody: StreamingJob; + parsedBody: Output; }; }; /** * Contains response data for the get operation. */ -export type StreamingJobsGetResponse = StreamingJob & StreamingJobsGetHeaders & { +export type OutputsGetResponse = Output & OutputsGetHeaders & { /** * The underlying HTTP response. */ @@ -2296,7 +3631,7 @@ export type StreamingJobsGetResponse = StreamingJob & StreamingJobsGetHeaders & /** * The parsed HTTP response headers. */ - parsedHeaders: StreamingJobsGetHeaders; + parsedHeaders: OutputsGetHeaders; /** * The response body as text (string format) @@ -2306,14 +3641,14 @@ export type StreamingJobsGetResponse = StreamingJob & StreamingJobsGetHeaders & /** * The response body as parsed JSON or XML */ - parsedBody: StreamingJob; + parsedBody: Output; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the listByStreamingJob operation. */ -export type StreamingJobsListByResourceGroupResponse = StreamingJobListResult & { +export type OutputsListByStreamingJobResponse = OutputListResult & { /** * The underlying HTTP response. */ @@ -2326,14 +3661,14 @@ export type StreamingJobsListByResourceGroupResponse = StreamingJobListResult & /** * The response body as parsed JSON or XML */ - parsedBody: StreamingJobListResult; + parsedBody: OutputListResult; }; }; /** - * Contains response data for the list operation. + * Contains response data for the test operation. */ -export type StreamingJobsListResponse = StreamingJobListResult & { +export type OutputsTestResponse = ResourceTestStatus & { /** * The underlying HTTP response. */ @@ -2346,14 +3681,14 @@ export type StreamingJobsListResponse = StreamingJobListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: StreamingJobListResult; + parsedBody: ResourceTestStatus; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the beginTest operation. */ -export type StreamingJobsListByResourceGroupNextResponse = StreamingJobListResult & { +export type OutputsBeginTestResponse = ResourceTestStatus & { /** * The underlying HTTP response. */ @@ -2366,14 +3701,14 @@ export type StreamingJobsListByResourceGroupNextResponse = StreamingJobListResul /** * The response body as parsed JSON or XML */ - parsedBody: StreamingJobListResult; + parsedBody: ResourceTestStatus; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByStreamingJobNext operation. */ -export type StreamingJobsListNextResponse = StreamingJobListResult & { +export type OutputsListByStreamingJobNextResponse = OutputListResult & { /** * The underlying HTTP response. */ @@ -2386,14 +3721,14 @@ export type StreamingJobsListNextResponse = StreamingJobListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: StreamingJobListResult; + parsedBody: OutputListResult; }; }; /** * Contains response data for the createOrReplace operation. */ -export type InputsCreateOrReplaceResponse = Input & InputsCreateOrReplaceHeaders & { +export type StreamingJobsCreateOrReplaceResponse = StreamingJob & StreamingJobsCreateOrReplaceHeaders & { /** * The underlying HTTP response. */ @@ -2401,7 +3736,7 @@ export type InputsCreateOrReplaceResponse = Input & InputsCreateOrReplaceHeaders /** * The parsed HTTP response headers. */ - parsedHeaders: InputsCreateOrReplaceHeaders; + parsedHeaders: StreamingJobsCreateOrReplaceHeaders; /** * The response body as text (string format) @@ -2411,14 +3746,14 @@ export type InputsCreateOrReplaceResponse = Input & InputsCreateOrReplaceHeaders /** * The response body as parsed JSON or XML */ - parsedBody: Input; + parsedBody: StreamingJob; }; }; /** * Contains response data for the update operation. */ -export type InputsUpdateResponse = Input & InputsUpdateHeaders & { +export type StreamingJobsUpdateResponse = StreamingJob & StreamingJobsUpdateHeaders & { /** * The underlying HTTP response. */ @@ -2426,7 +3761,7 @@ export type InputsUpdateResponse = Input & InputsUpdateHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: InputsUpdateHeaders; + parsedHeaders: StreamingJobsUpdateHeaders; /** * The response body as text (string format) @@ -2436,14 +3771,14 @@ export type InputsUpdateResponse = Input & InputsUpdateHeaders & { /** * The response body as parsed JSON or XML */ - parsedBody: Input; + parsedBody: StreamingJob; }; }; /** * Contains response data for the get operation. */ -export type InputsGetResponse = Input & InputsGetHeaders & { +export type StreamingJobsGetResponse = StreamingJob & StreamingJobsGetHeaders & { /** * The underlying HTTP response. */ @@ -2451,7 +3786,7 @@ export type InputsGetResponse = Input & InputsGetHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: InputsGetHeaders; + parsedHeaders: StreamingJobsGetHeaders; /** * The response body as text (string format) @@ -2461,14 +3796,14 @@ export type InputsGetResponse = Input & InputsGetHeaders & { /** * The response body as parsed JSON or XML */ - parsedBody: Input; + parsedBody: StreamingJob; }; }; /** - * Contains response data for the listByStreamingJob operation. + * Contains response data for the listByResourceGroup operation. */ -export type InputsListByStreamingJobResponse = InputListResult & { +export type StreamingJobsListByResourceGroupResponse = StreamingJobListResult & { /** * The underlying HTTP response. */ @@ -2481,14 +3816,14 @@ export type InputsListByStreamingJobResponse = InputListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: InputListResult; + parsedBody: StreamingJobListResult; }; }; /** - * Contains response data for the test operation. + * Contains response data for the list operation. */ -export type InputsTestResponse = ResourceTestStatus & { +export type StreamingJobsListResponse = StreamingJobListResult & { /** * The underlying HTTP response. */ @@ -2501,14 +3836,14 @@ export type InputsTestResponse = ResourceTestStatus & { /** * The response body as parsed JSON or XML */ - parsedBody: ResourceTestStatus; + parsedBody: StreamingJobListResult; }; }; /** - * Contains response data for the beginTest operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type InputsBeginTestResponse = ResourceTestStatus & { +export type StreamingJobsListByResourceGroupNextResponse = StreamingJobListResult & { /** * The underlying HTTP response. */ @@ -2521,14 +3856,14 @@ export type InputsBeginTestResponse = 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 InputsListByStreamingJobNextResponse = InputListResult & { +export type StreamingJobsListNextResponse = StreamingJobListResult & { /** * The underlying HTTP response. */ @@ -2541,14 +3876,34 @@ export type InputsListByStreamingJobNextResponse = InputListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: InputListResult; + parsedBody: StreamingJobListResult; + }; +}; + +/** + * Contains response data for the listQuotas operation. + */ +export type SubscriptionsListQuotasResponse = SubscriptionQuotasListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SubscriptionQuotasListResult; }; }; /** * Contains response data for the createOrReplace operation. */ -export type OutputsCreateOrReplaceResponse = Output & OutputsCreateOrReplaceHeaders & { +export type TransformationsCreateOrReplaceResponse = Transformation & TransformationsCreateOrReplaceHeaders & { /** * The underlying HTTP response. */ @@ -2556,7 +3911,7 @@ export type OutputsCreateOrReplaceResponse = Output & OutputsCreateOrReplaceHead /** * The parsed HTTP response headers. */ - parsedHeaders: OutputsCreateOrReplaceHeaders; + parsedHeaders: TransformationsCreateOrReplaceHeaders; /** * The response body as text (string format) @@ -2566,14 +3921,14 @@ export type OutputsCreateOrReplaceResponse = Output & OutputsCreateOrReplaceHead /** * The response body as parsed JSON or XML */ - parsedBody: Output; + parsedBody: Transformation; }; }; /** * Contains response data for the update operation. */ -export type OutputsUpdateResponse = Output & OutputsUpdateHeaders & { +export type TransformationsUpdateResponse = Transformation & TransformationsUpdateHeaders & { /** * The underlying HTTP response. */ @@ -2581,7 +3936,7 @@ export type OutputsUpdateResponse = Output & OutputsUpdateHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: OutputsUpdateHeaders; + parsedHeaders: TransformationsUpdateHeaders; /** * The response body as text (string format) @@ -2591,14 +3946,14 @@ export type OutputsUpdateResponse = Output & OutputsUpdateHeaders & { /** * The response body as parsed JSON or XML */ - parsedBody: Output; + parsedBody: Transformation; }; }; /** * Contains response data for the get operation. */ -export type OutputsGetResponse = Output & OutputsGetHeaders & { +export type TransformationsGetResponse = Transformation & TransformationsGetHeaders & { /** * The underlying HTTP response. */ @@ -2606,7 +3961,7 @@ export type OutputsGetResponse = Output & OutputsGetHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: OutputsGetHeaders; + parsedHeaders: TransformationsGetHeaders; /** * The response body as text (string format) @@ -2616,14 +3971,14 @@ export type OutputsGetResponse = Output & OutputsGetHeaders & { /** * The response body as parsed JSON or XML */ - parsedBody: Output; + parsedBody: Transformation; }; }; /** - * Contains response data for the listByStreamingJob operation. + * Contains response data for the list operation. */ -export type OutputsListByStreamingJobResponse = OutputListResult & { +export type OperationsListResponse = OperationListResult & { /** * The underlying HTTP response. */ @@ -2636,14 +3991,14 @@ export type OutputsListByStreamingJobResponse = OutputListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OutputListResult; + parsedBody: OperationListResult; }; }; /** - * Contains response data for the test operation. + * Contains response data for the listNext operation. */ -export type OutputsTestResponse = ResourceTestStatus & { +export type OperationsListNextResponse = OperationListResult & { /** * The underlying HTTP response. */ @@ -2656,14 +4011,14 @@ export type OutputsTestResponse = ResourceTestStatus & { /** * The response body as parsed JSON or XML */ - parsedBody: ResourceTestStatus; + parsedBody: OperationListResult; }; }; /** - * Contains response data for the beginTest operation. + * Contains response data for the createOrUpdate operation. */ -export type OutputsBeginTestResponse = ResourceTestStatus & { +export type ClustersCreateOrUpdateResponse = Cluster & { /** * The underlying HTTP response. */ @@ -2676,14 +4031,14 @@ export type OutputsBeginTestResponse = ResourceTestStatus & { /** * The response body as parsed JSON or XML */ - parsedBody: ResourceTestStatus; + parsedBody: Cluster; }; }; /** - * Contains response data for the listByStreamingJobNext operation. + * Contains response data for the update operation. */ -export type OutputsListByStreamingJobNextResponse = OutputListResult & { +export type ClustersUpdateResponse = Cluster & { /** * The underlying HTTP response. */ @@ -2696,23 +4051,18 @@ export type OutputsListByStreamingJobNextResponse = OutputListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OutputListResult; + parsedBody: Cluster; }; }; /** - * Contains response data for the createOrReplace operation. + * Contains response data for the get operation. */ -export type TransformationsCreateOrReplaceResponse = Transformation & TransformationsCreateOrReplaceHeaders & { +export type ClustersGetResponse = Cluster & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: TransformationsCreateOrReplaceHeaders; - /** * The response body as text (string format) */ @@ -2721,23 +4071,18 @@ export type TransformationsCreateOrReplaceResponse = Transformation & Transforma /** * The response body as parsed JSON or XML */ - parsedBody: Transformation; + parsedBody: Cluster; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listBySubscription operation. */ -export type TransformationsUpdateResponse = Transformation & TransformationsUpdateHeaders & { +export type ClustersListBySubscriptionResponse = ClusterListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: TransformationsUpdateHeaders; - /** * The response body as text (string format) */ @@ -2746,23 +4091,18 @@ export type TransformationsUpdateResponse = Transformation & TransformationsUpda /** * The response body as parsed JSON or XML */ - parsedBody: Transformation; + parsedBody: ClusterListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByResourceGroup operation. */ -export type TransformationsGetResponse = Transformation & TransformationsGetHeaders & { +export type ClustersListByResourceGroupResponse = ClusterListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: TransformationsGetHeaders; - /** * The response body as text (string format) */ @@ -2771,23 +4111,18 @@ export type TransformationsGetResponse = Transformation & TransformationsGetHead /** * The response body as parsed JSON or XML */ - parsedBody: Transformation; + parsedBody: ClusterListResult; }; }; /** - * Contains response data for the createOrReplace operation. + * Contains response data for the listStreamingJobs operation. */ -export type FunctionsCreateOrReplaceResponse = FunctionModel & FunctionsCreateOrReplaceHeaders & { +export type ClustersListStreamingJobsResponse = ClusterJobListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: FunctionsCreateOrReplaceHeaders; - /** * The response body as text (string format) */ @@ -2796,23 +4131,18 @@ export type FunctionsCreateOrReplaceResponse = FunctionModel & FunctionsCreateOr /** * The response body as parsed JSON or XML */ - parsedBody: FunctionModel; + parsedBody: ClusterJobListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type FunctionsUpdateResponse = FunctionModel & FunctionsUpdateHeaders & { +export type ClustersBeginCreateOrUpdateResponse = Cluster & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: FunctionsUpdateHeaders; - /** * The response body as text (string format) */ @@ -2821,23 +4151,38 @@ export type FunctionsUpdateResponse = FunctionModel & FunctionsUpdateHeaders & { /** * The response body as parsed JSON or XML */ - parsedBody: FunctionModel; + parsedBody: Cluster; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginUpdate operation. */ -export type FunctionsGetResponse = FunctionModel & FunctionsGetHeaders & { +export type ClustersBeginUpdateResponse = Cluster & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { /** - * The parsed HTTP response headers. + * The response body as text (string format) */ - parsedHeaders: FunctionsGetHeaders; + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Cluster; + }; +}; +/** + * Contains response data for the listBySubscriptionNext operation. + */ +export type ClustersListBySubscriptionNextResponse = ClusterListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { /** * The response body as text (string format) */ @@ -2846,14 +4191,14 @@ export type FunctionsGetResponse = FunctionModel & FunctionsGetHeaders & { /** * The response body as parsed JSON or XML */ - parsedBody: FunctionModel; + parsedBody: ClusterListResult; }; }; /** - * Contains response data for the listByStreamingJob operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type FunctionsListByStreamingJobResponse = FunctionListResult & { +export type ClustersListByResourceGroupNextResponse = ClusterListResult & { /** * The underlying HTTP response. */ @@ -2866,14 +4211,14 @@ export type FunctionsListByStreamingJobResponse = FunctionListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: FunctionListResult; + parsedBody: ClusterListResult; }; }; /** - * Contains response data for the test operation. + * Contains response data for the listStreamingJobsNext operation. */ -export type FunctionsTestResponse = ResourceTestStatus & { +export type ClustersListStreamingJobsNextResponse = ClusterJobListResult & { /** * The underlying HTTP response. */ @@ -2886,14 +4231,14 @@ export type FunctionsTestResponse = ResourceTestStatus & { /** * The response body as parsed JSON or XML */ - parsedBody: ResourceTestStatus; + parsedBody: ClusterJobListResult; }; }; /** - * Contains response data for the retrieveDefaultDefinition operation. + * Contains response data for the createOrUpdate operation. */ -export type FunctionsRetrieveDefaultDefinitionResponse = FunctionModel & { +export type PrivateEndpointsCreateOrUpdateResponse = PrivateEndpoint & { /** * The underlying HTTP response. */ @@ -2906,14 +4251,14 @@ export type FunctionsRetrieveDefaultDefinitionResponse = FunctionModel & { /** * The response body as parsed JSON or XML */ - parsedBody: FunctionModel; + parsedBody: PrivateEndpoint; }; }; /** - * Contains response data for the beginTest operation. + * Contains response data for the get operation. */ -export type FunctionsBeginTestResponse = ResourceTestStatus & { +export type PrivateEndpointsGetResponse = PrivateEndpoint & { /** * The underlying HTTP response. */ @@ -2926,14 +4271,14 @@ export type FunctionsBeginTestResponse = ResourceTestStatus & { /** * The response body as parsed JSON or XML */ - parsedBody: ResourceTestStatus; + parsedBody: PrivateEndpoint; }; }; /** - * Contains response data for the listByStreamingJobNext operation. + * Contains response data for the listByCluster operation. */ -export type FunctionsListByStreamingJobNextResponse = FunctionListResult & { +export type PrivateEndpointsListByClusterResponse = PrivateEndpointListResult & { /** * The underlying HTTP response. */ @@ -2946,14 +4291,14 @@ export type FunctionsListByStreamingJobNextResponse = FunctionListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: FunctionListResult; + parsedBody: PrivateEndpointListResult; }; }; /** - * Contains response data for the listQuotas operation. + * Contains response data for the listByClusterNext operation. */ -export type SubscriptionsListQuotasResponse = SubscriptionQuotasListResult & { +export type PrivateEndpointsListByClusterNextResponse = PrivateEndpointListResult & { /** * The underlying HTTP response. */ @@ -2966,6 +4311,6 @@ export type SubscriptionsListQuotasResponse = SubscriptionQuotasListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SubscriptionQuotasListResult; + parsedBody: PrivateEndpointListResult; }; }; diff --git a/sdk/streamanalytics/arm-streamanalytics/src/models/inputsMappers.ts b/sdk/streamanalytics/arm-streamanalytics/src/models/inputsMappers.ts index 7807d9034d67..307adf85834f 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/models/inputsMappers.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/models/inputsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,31 +8,50 @@ export { discriminators, + AggregateFunctionProperties, AvroSerialization, AzureDataLakeStoreOutputDataSource, - AzureMachineLearningWebServiceFunctionBinding, - AzureMachineLearningWebServiceInputColumn, - AzureMachineLearningWebServiceInputs, - AzureMachineLearningWebServiceOutputColumn, + AzureFunctionOutputDataSource, + AzureMachineLearningServiceFunctionBinding, + AzureMachineLearningServiceInputColumn, + AzureMachineLearningServiceOutputColumn, + AzureMachineLearningStudioFunctionBinding, + AzureMachineLearningStudioInputColumn, + AzureMachineLearningStudioInputs, + AzureMachineLearningStudioOutputColumn, AzureSqlDatabaseOutputDataSource, + AzureSqlReferenceInputDataSource, + AzureSqlReferenceInputDataSourceProperties, + AzureSynapseOutputDataSource, AzureTableOutputDataSource, BaseResource, BlobOutputDataSource, BlobReferenceInputDataSource, BlobStreamInputDataSource, CloudError, + Cluster, + ClusterInfo, + ClusterProperties, + ClusterSku, + Compression, + CSharpFunctionBinding, CsvSerialization, + CustomClrSerialization, DiagnosticCondition, Diagnostics, DocumentDbOutputDataSource, ErrorResponse, EventHubOutputDataSource, EventHubStreamInputDataSource, + EventHubV2OutputDataSource, + EventHubV2StreamInputDataSource, + External, FunctionBinding, FunctionInput, FunctionModel, FunctionOutput, FunctionProperties, + Identity, Input, InputListResult, InputProperties, @@ -41,10 +60,17 @@ export { InputsUpdateHeaders, IoTHubStreamInputDataSource, JavaScriptFunctionBinding, + JobStorageAccount, JsonSerialization, Output, OutputDataSource, + ParquetSerialization, PowerBIOutputDataSource, + PrivateEndpoint, + PrivateEndpointProperties, + PrivateLinkConnectionState, + PrivateLinkServiceConnection, + ProxyResource, ReferenceInputDataSource, ReferenceInputProperties, Resource, @@ -53,12 +79,13 @@ export { Serialization, ServiceBusQueueOutputDataSource, ServiceBusTopicOutputDataSource, - Sku, StorageAccount, StreamingJob, + StreamingJobSku, StreamInputDataSource, StreamInputProperties, SubResource, SubscriptionQuota, + TrackedResource, Transformation } from "../models/mappers"; diff --git a/sdk/streamanalytics/arm-streamanalytics/src/models/mappers.ts b/sdk/streamanalytics/arm-streamanalytics/src/models/mappers.ts index f9a47ff8d12a..c80dfa931abb 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/models/mappers.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/models/mappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -12,77 +12,36 @@ import * as msRest from "@azure/ms-rest-js"; export const CloudError = CloudErrorMapper; export const BaseResource = BaseResourceMapper; -export const OperationDisplay: msRest.CompositeMapper = { - serializedName: "Operation_display", - type: { - name: "Composite", - className: "OperationDisplay", - modelProperties: { - provider: { - readOnly: true, - serializedName: "provider", - type: { - name: "String" - } - }, - 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", +export const FunctionInput: msRest.CompositeMapper = { + serializedName: "FunctionInput", type: { name: "Composite", - className: "Operation", + className: "FunctionInput", modelProperties: { - name: { - readOnly: true, - serializedName: "name", + dataType: { + serializedName: "dataType", type: { name: "String" } }, - display: { - readOnly: true, - serializedName: "display", + isConfigurationParameter: { + serializedName: "isConfigurationParameter", type: { - name: "Composite", - className: "OperationDisplay" + name: "Boolean" } } } } }; -export const Sku: msRest.CompositeMapper = { - serializedName: "Sku", +export const FunctionOutput: msRest.CompositeMapper = { + serializedName: "FunctionOutput", type: { name: "Composite", - className: "Sku", + className: "FunctionOutput", modelProperties: { - name: { - serializedName: "name", + dataType: { + serializedName: "dataType", type: { name: "String" } @@ -91,16 +50,16 @@ export const Sku: msRest.CompositeMapper = { } }; -export const Serialization: msRest.CompositeMapper = { - serializedName: "Serialization", +export const FunctionBinding: msRest.CompositeMapper = { + serializedName: "FunctionBinding", type: { name: "Composite", polymorphicDiscriminator: { serializedName: "type", clientName: "type" }, - uberParent: "Serialization", - className: "Serialization", + uberParent: "FunctionBinding", + className: "FunctionBinding", modelProperties: { type: { required: true, @@ -113,98 +72,55 @@ export const Serialization: msRest.CompositeMapper = { } }; -export const DiagnosticCondition: msRest.CompositeMapper = { - serializedName: "DiagnosticCondition", +export const FunctionProperties: msRest.CompositeMapper = { + serializedName: "FunctionProperties", type: { name: "Composite", - className: "DiagnosticCondition", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, + uberParent: "FunctionProperties", + className: "FunctionProperties", modelProperties: { - since: { + etag: { readOnly: true, - serializedName: "since", + serializedName: "etag", type: { name: "String" } }, - code: { - readOnly: true, - serializedName: "code", + type: { + required: true, + serializedName: "type", type: { name: "String" } }, - 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", + inputs: { + serializedName: "properties.inputs", type: { name: "Sequence", element: { type: { name: "Composite", - className: "DiagnosticCondition" + className: "FunctionInput" } } } - } - } - } -}; - -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", + output: { + serializedName: "properties.output", type: { name: "Composite", - className: "Diagnostics" - } - }, - etag: { - readOnly: true, - serializedName: "etag", - type: { - name: "String" + className: "FunctionOutput" } }, - type: { - required: true, - serializedName: "type", + binding: { + serializedName: "properties.binding", type: { - name: "String" + name: "Composite", + className: "FunctionBinding" } } } @@ -241,134 +157,1414 @@ export const SubResource: msRest.CompositeMapper = { } }; -export const Input: msRest.CompositeMapper = { - serializedName: "Input", +export const FunctionModel: msRest.CompositeMapper = { + serializedName: "Function", type: { name: "Composite", - className: "Input", + className: "FunctionModel", modelProperties: { ...SubResource.type.modelProperties, properties: { serializedName: "properties", type: { name: "Composite", - className: "InputProperties" + className: "FunctionProperties" } } } } }; -export const Transformation: msRest.CompositeMapper = { - serializedName: "Transformation", +export const ScalarFunctionProperties: msRest.CompositeMapper = { + serializedName: "Scalar", type: { name: "Composite", - className: "Transformation", + polymorphicDiscriminator: FunctionProperties.type.polymorphicDiscriminator, + uberParent: "FunctionProperties", + className: "ScalarFunctionProperties", modelProperties: { - ...SubResource.type.modelProperties, - streamingUnits: { - serializedName: "properties.streamingUnits", + ...FunctionProperties.type.modelProperties + } + } +}; + +export const AzureMachineLearningStudioInputColumn: msRest.CompositeMapper = { + serializedName: "AzureMachineLearningStudioInputColumn", + type: { + name: "Composite", + className: "AzureMachineLearningStudioInputColumn", + modelProperties: { + name: { + serializedName: "name", type: { - name: "Number" + name: "String" } }, - query: { - serializedName: "properties.query", + dataType: { + serializedName: "dataType", type: { name: "String" } }, - etag: { - readOnly: true, - serializedName: "properties.etag", + mapTo: { + serializedName: "mapTo", type: { - name: "String" + name: "Number" } } } } }; -export const OutputDataSource: msRest.CompositeMapper = { - serializedName: "OutputDataSource", +export const AzureMachineLearningStudioInputs: msRest.CompositeMapper = { + serializedName: "AzureMachineLearningStudioInputs", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, - uberParent: "OutputDataSource", - className: "OutputDataSource", + className: "AzureMachineLearningStudioInputs", modelProperties: { - type: { - required: true, - serializedName: "type", + name: { + serializedName: "name", type: { name: "String" } + }, + columnNames: { + serializedName: "columnNames", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureMachineLearningStudioInputColumn" + } + } + } } } } }; -export const Output: msRest.CompositeMapper = { - serializedName: "Output", +export const AzureMachineLearningStudioOutputColumn: msRest.CompositeMapper = { + serializedName: "AzureMachineLearningStudioOutputColumn", type: { name: "Composite", - className: "Output", + className: "AzureMachineLearningStudioOutputColumn", modelProperties: { - ...SubResource.type.modelProperties, - datasource: { - serializedName: "properties.datasource", - type: { - name: "Composite", - className: "OutputDataSource" - } - }, - serialization: { - serializedName: "properties.serialization", + name: { + serializedName: "name", type: { - name: "Composite", - className: "Serialization" + name: "String" } }, - diagnostics: { - readOnly: true, - serializedName: "properties.diagnostics", + dataType: { + serializedName: "dataType", type: { - name: "Composite", - className: "Diagnostics" + name: "String" } - }, - etag: { - readOnly: true, - serializedName: "properties.etag", + } + } + } +}; + +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", + type: { + name: "String" + } + }, + apiKey: { + serializedName: "properties.apiKey", + type: { + name: "String" + } + }, + inputs: { + serializedName: "properties.inputs", + type: { + name: "Composite", + className: "AzureMachineLearningStudioInputs" + } + }, + outputs: { + serializedName: "properties.outputs", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureMachineLearningStudioOutputColumn" + } + } + } + }, + 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", + type: { + name: "String" + } + } + } + } +}; + +export const CSharpFunctionBinding: msRest.CompositeMapper = { + serializedName: "Microsoft.StreamAnalytics/CLRUdf", + type: { + name: "Composite", + polymorphicDiscriminator: FunctionBinding.type.polymorphicDiscriminator, + uberParent: "FunctionBinding", + className: "CSharpFunctionBinding", + modelProperties: { + ...FunctionBinding.type.modelProperties, + script: { + serializedName: "properties.script", + type: { + name: "String" + } + }, + dllPath: { + serializedName: "properties.dllPath", + type: { + name: "String" + } + }, + classProperty: { + serializedName: "properties.class", + type: { + name: "String" + } + }, + method: { + serializedName: "properties.method", + type: { + name: "String" + } + } + } + } +}; + +export const FunctionRetrieveDefaultDefinitionParameters: msRest.CompositeMapper = { + serializedName: "FunctionRetrieveDefaultDefinitionParameters", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "bindingType", + clientName: "bindingType" + }, + uberParent: "FunctionRetrieveDefaultDefinitionParameters", + className: "FunctionRetrieveDefaultDefinitionParameters", + modelProperties: { + bindingType: { + required: true, + serializedName: "bindingType", + type: { + name: "String" + } + } + } + } +}; + +export const AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters: msRest.CompositeMapper = { + serializedName: "Microsoft.MachineLearning/WebService", + type: { + name: "Composite", + polymorphicDiscriminator: FunctionRetrieveDefaultDefinitionParameters.type.polymorphicDiscriminator, + uberParent: "FunctionRetrieveDefaultDefinitionParameters", + className: "AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters", + modelProperties: { + ...FunctionRetrieveDefaultDefinitionParameters.type.modelProperties, + executeEndpoint: { + serializedName: "bindingRetrievalProperties.executeEndpoint", + type: { + name: "String" + } + }, + udfType: { + serializedName: "bindingRetrievalProperties.udfType", + type: { + name: "Enum", + allowedValues: [ + "Scalar" + ] + } + } + } + } +}; + +export const AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters: msRest.CompositeMapper = { + serializedName: "Microsoft.MachineLearningServices", + type: { + name: "Composite", + polymorphicDiscriminator: FunctionRetrieveDefaultDefinitionParameters.type.polymorphicDiscriminator, + uberParent: "FunctionRetrieveDefaultDefinitionParameters", + className: "AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters", + modelProperties: { + ...FunctionRetrieveDefaultDefinitionParameters.type.modelProperties, + executeEndpoint: { + serializedName: "bindingRetrievalProperties.executeEndpoint", + type: { + name: "String" + } + }, + udfType: { + serializedName: "bindingRetrievalProperties.udfType", + type: { + name: "Enum", + allowedValues: [ + "Scalar" + ] + } + } + } + } +}; + +export const JavaScriptFunctionRetrieveDefaultDefinitionParameters: msRest.CompositeMapper = { + serializedName: "Microsoft.StreamAnalytics/JavascriptUdf", + type: { + name: "Composite", + polymorphicDiscriminator: FunctionRetrieveDefaultDefinitionParameters.type.polymorphicDiscriminator, + uberParent: "FunctionRetrieveDefaultDefinitionParameters", + className: "JavaScriptFunctionRetrieveDefaultDefinitionParameters", + modelProperties: { + ...FunctionRetrieveDefaultDefinitionParameters.type.modelProperties, + script: { + serializedName: "bindingRetrievalProperties.script", + type: { + name: "String" + } + }, + udfType: { + serializedName: "bindingRetrievalProperties.udfType", + type: { + name: "Enum", + allowedValues: [ + "Scalar" + ] + } + } + } + } +}; + +export const CSharpFunctionRetrieveDefaultDefinitionParameters: msRest.CompositeMapper = { + serializedName: "Microsoft.StreamAnalytics/CLRUdf", + type: { + name: "Composite", + polymorphicDiscriminator: FunctionRetrieveDefaultDefinitionParameters.type.polymorphicDiscriminator, + uberParent: "FunctionRetrieveDefaultDefinitionParameters", + className: "CSharpFunctionRetrieveDefaultDefinitionParameters", + modelProperties: { + ...FunctionRetrieveDefaultDefinitionParameters.type.modelProperties, + script: { + serializedName: "bindingRetrievalProperties.script", + type: { + name: "String" + } + }, + udfType: { + serializedName: "bindingRetrievalProperties.udfType", + type: { + name: "Enum", + allowedValues: [ + "Scalar" + ] + } + } + } + } +}; + +export const AzureMachineLearningServiceInputColumn: msRest.CompositeMapper = { + serializedName: "AzureMachineLearningServiceInputColumn", + type: { + name: "Composite", + className: "AzureMachineLearningServiceInputColumn", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + dataType: { + serializedName: "dataType", + type: { + name: "String" + } + }, + mapTo: { + serializedName: "mapTo", + type: { + name: "Number" + } + } + } + } +}; + +export const AzureMachineLearningServiceOutputColumn: msRest.CompositeMapper = { + serializedName: "AzureMachineLearningServiceOutputColumn", + type: { + name: "Composite", + className: "AzureMachineLearningServiceOutputColumn", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + dataType: { + serializedName: "dataType", + 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: { + type: { + name: "Composite", + className: "AzureMachineLearningServiceOutputColumn" + } + } + } + }, + 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", + 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", + type: { + name: "Composite", + className: "ErrorResponse", + modelProperties: { + code: { + readOnly: true, + serializedName: "code", + type: { + name: "String" + } + }, + message: { + readOnly: true, + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceTestStatus: msRest.CompositeMapper = { + serializedName: "ResourceTestStatus", + type: { + name: "Composite", + className: "ResourceTestStatus", + modelProperties: { + status: { + readOnly: true, + serializedName: "status", + 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: { + readOnly: true, + serializedName: "since", + type: { + name: "String" + } + }, + code: { + readOnly: true, + serializedName: "code", + type: { + name: "String" + } + }, + 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: "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" + } + }, + diagnostics: { + readOnly: true, + serializedName: "diagnostics", + type: { + name: "Composite", + className: "Diagnostics" + } + }, + etag: { + readOnly: true, + serializedName: "etag", + type: { + name: "String" + } + }, + compression: { + serializedName: "compression", + type: { + name: "Composite", + className: "Compression" + } + }, + partitionKey: { + serializedName: "partitionKey", + type: { + name: "String" + } + }, + type: { + required: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const Input: msRest.CompositeMapper = { + serializedName: "Input", + type: { + name: "Composite", + className: "Input", + modelProperties: { + ...SubResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "InputProperties" + } + } + } + } +}; + +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", + 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", + 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", + type: { + name: "Composite", + className: "ReferenceInputDataSource" + } + } + } + } +}; + +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: "StorageAccount" + } + } + } + }, + container: { + serializedName: "properties.container", + type: { + name: "String" + } + }, + pathPattern: { + serializedName: "properties.pathPattern", + type: { + name: "String" + } + }, + dateFormat: { + serializedName: "properties.dateFormat", + type: { + name: "String" + } + }, + timeFormat: { + serializedName: "properties.timeFormat", + type: { + name: "String" + } + }, + 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", + 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", + type: { + name: "String" + } + }, + consumerGroupName: { + serializedName: "properties.consumerGroupName", + type: { + name: "String" + } + } + } + } +}; + +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: "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", + type: { + name: "String" + } + }, + consumerGroupName: { + serializedName: "properties.consumerGroupName", + type: { + name: "String" + } + } + } + } +}; + +export const IoTHubStreamInputDataSource: msRest.CompositeMapper = { + serializedName: "Microsoft.Devices/IotHubs", + type: { + name: "Composite", + polymorphicDiscriminator: StreamInputDataSource.type.polymorphicDiscriminator, + uberParent: "StreamInputDataSource", + className: "IoTHubStreamInputDataSource", + 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", + type: { + name: "String" + } + } + } + } +}; + +export const BlobReferenceInputDataSource: msRest.CompositeMapper = { + serializedName: "Microsoft.Storage/Blob", + type: { + name: "Composite", + polymorphicDiscriminator: ReferenceInputDataSource.type.polymorphicDiscriminator, + uberParent: "ReferenceInputDataSource", + className: "BlobReferenceInputDataSource", + 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: { + name: "String" + } + }, + timeFormat: { + serializedName: "properties.timeFormat", + type: { + name: "String" + } + } + } + } +}; + +export const StorageAccount: msRest.CompositeMapper = { + serializedName: "StorageAccount", + type: { + name: "Composite", + className: "StorageAccount", + modelProperties: { + accountName: { + serializedName: "accountName", + type: { + name: "String" + } + }, + accountKey: { + serializedName: "accountKey", + type: { + name: "String" + } + } + } + } +}; + +export const BlobDataSourceProperties: msRest.CompositeMapper = { + serializedName: "BlobDataSourceProperties", + type: { + name: "Composite", + className: "BlobDataSourceProperties", + modelProperties: { + storageAccounts: { + serializedName: "storageAccounts", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StorageAccount" + } + } + } + }, + container: { + serializedName: "container", + type: { + name: "String" + } + }, + pathPattern: { + serializedName: "pathPattern", + type: { + name: "String" + } + }, + dateFormat: { + serializedName: "dateFormat", + type: { + name: "String" + } + }, + timeFormat: { + serializedName: "timeFormat", + type: { + name: "String" + } + } + } + } +}; + +export const ServiceBusDataSourceProperties: msRest.CompositeMapper = { + serializedName: "ServiceBusDataSourceProperties", + type: { + name: "Composite", + className: "ServiceBusDataSourceProperties", + modelProperties: { + serviceBusNamespace: { + serializedName: "serviceBusNamespace", + type: { + name: "String" + } + }, + sharedAccessPolicyName: { + serializedName: "sharedAccessPolicyName", + type: { + name: "String" + } + }, + sharedAccessPolicyKey: { + serializedName: "sharedAccessPolicyKey", + type: { + name: "String" + } + }, + authenticationMode: { + serializedName: "authenticationMode", + type: { + name: "String" + } + } + } + } +}; + +export const EventHubDataSourceProperties: msRest.CompositeMapper = { + serializedName: "EventHubDataSourceProperties", + type: { + name: "Composite", + className: "EventHubDataSourceProperties", + modelProperties: { + ...ServiceBusDataSourceProperties.type.modelProperties, + eventHubName: { + serializedName: "eventHubName", + type: { + name: "String" + } + } + } + } +}; + +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", + type: { + name: "Composite", + polymorphicDiscriminator: Serialization.type.polymorphicDiscriminator, + uberParent: "Serialization", + className: "CustomClrSerialization", + modelProperties: { + ...Serialization.type.modelProperties, + serializationDllPath: { + serializedName: "properties.serializationDllPath", + type: { + name: "String" + } + }, + serializationClassName: { + serializedName: "properties.serializationClassName", + type: { + name: "String" + } + } + } + } +}; + +export const CsvSerialization: msRest.CompositeMapper = { + serializedName: "Csv", + type: { + name: "Composite", + polymorphicDiscriminator: Serialization.type.polymorphicDiscriminator, + uberParent: "Serialization", + className: "CsvSerialization", + modelProperties: { + ...Serialization.type.modelProperties, + fieldDelimiter: { + serializedName: "properties.fieldDelimiter", + type: { + name: "String" + } + }, + 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", + type: { + name: "String" + } + }, + format: { + serializedName: "properties.format", + type: { + name: "String" + } + } + } + } +}; + +export const AvroSerialization: msRest.CompositeMapper = { + serializedName: "Avro", + type: { + name: "Composite", + polymorphicDiscriminator: Serialization.type.polymorphicDiscriminator, + uberParent: "Serialization", + className: "AvroSerialization", + modelProperties: { + ...Serialization.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Object" + } + } + } + } +}; + +export const Identity: msRest.CompositeMapper = { + serializedName: "Identity", + type: { + name: "Composite", + className: "Identity", + modelProperties: { + tenantId: { + serializedName: "tenantId", + type: { + name: "String" + } + }, + principalId: { + serializedName: "principalId", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const AzureSqlReferenceInputDataSourceProperties: msRest.CompositeMapper = { + serializedName: "AzureSqlReferenceInputDataSourceProperties", + type: { + name: "Composite", + className: "AzureSqlReferenceInputDataSourceProperties", + 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", + type: { + name: "String" + } + }, + deltaSnapshotQuery: { + serializedName: "deltaSnapshotQuery", + type: { + name: "String" + } + } + } + } +}; + +export const AzureSqlReferenceInputDataSource: msRest.CompositeMapper = { + serializedName: "Microsoft.Sql/Server/Database", + type: { + name: "Composite", + polymorphicDiscriminator: ReferenceInputDataSource.type.polymorphicDiscriminator, + uberParent: "ReferenceInputDataSource", + className: "AzureSqlReferenceInputDataSource", + modelProperties: { + ...ReferenceInputDataSource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "AzureSqlReferenceInputDataSourceProperties" } } } } }; -export const FunctionProperties: msRest.CompositeMapper = { - serializedName: "FunctionProperties", +export const OutputDataSource: msRest.CompositeMapper = { + serializedName: "OutputDataSource", type: { name: "Composite", polymorphicDiscriminator: { serializedName: "type", clientName: "type" }, - uberParent: "FunctionProperties", - className: "FunctionProperties", + uberParent: "OutputDataSource", + className: "OutputDataSource", modelProperties: { - etag: { - readOnly: true, - serializedName: "etag", - type: { - name: "String" - } - }, type: { required: true, serializedName: "type", @@ -380,300 +1576,346 @@ export const FunctionProperties: msRest.CompositeMapper = { } }; -export const FunctionModel: msRest.CompositeMapper = { - serializedName: "Function", +export const Output: msRest.CompositeMapper = { + serializedName: "Output", type: { name: "Composite", - className: "FunctionModel", + className: "Output", modelProperties: { ...SubResource.type.modelProperties, - properties: { - serializedName: "properties", + datasource: { + serializedName: "properties.datasource", type: { name: "Composite", - className: "FunctionProperties" + className: "OutputDataSource" + } + }, + timeWindow: { + serializedName: "properties.timeWindow", + 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", + type: { + name: "Composite", + className: "Diagnostics" + } + }, + etag: { + readOnly: true, + serializedName: "properties.etag", + type: { + name: "String" } } } } }; -export const Resource: msRest.CompositeMapper = { - serializedName: "Resource", +export const BlobOutputDataSource: msRest.CompositeMapper = { + serializedName: "Microsoft.Storage/Blob", type: { name: "Composite", - className: "Resource", + polymorphicDiscriminator: OutputDataSource.type.polymorphicDiscriminator, + uberParent: "OutputDataSource", + className: "BlobOutputDataSource", modelProperties: { - id: { - readOnly: true, - serializedName: "id", + ...OutputDataSource.type.modelProperties, + storageAccounts: { + serializedName: "properties.storageAccounts", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StorageAccount" + } + } + } + }, + container: { + serializedName: "properties.container", type: { name: "String" } }, - name: { - readOnly: true, - serializedName: "name", + pathPattern: { + serializedName: "properties.pathPattern", type: { name: "String" } }, - type: { - readOnly: true, - serializedName: "type", + dateFormat: { + serializedName: "properties.dateFormat", type: { name: "String" } }, - location: { - serializedName: "location", + timeFormat: { + serializedName: "properties.timeFormat", type: { name: "String" } }, - tags: { - serializedName: "tags", + authenticationMode: { + serializedName: "properties.authenticationMode", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const StreamingJob: msRest.CompositeMapper = { - serializedName: "StreamingJob", +export const AzureTableOutputDataSource: msRest.CompositeMapper = { + serializedName: "Microsoft.Storage/Table", type: { name: "Composite", - className: "StreamingJob", + polymorphicDiscriminator: OutputDataSource.type.polymorphicDiscriminator, + uberParent: "OutputDataSource", + className: "AzureTableOutputDataSource", modelProperties: { - ...Resource.type.modelProperties, - sku: { - serializedName: "properties.sku", + ...OutputDataSource.type.modelProperties, + accountName: { + serializedName: "properties.accountName", type: { - name: "Composite", - className: "Sku" + name: "String" } }, - jobId: { - readOnly: true, - serializedName: "properties.jobId", + accountKey: { + serializedName: "properties.accountKey", type: { name: "String" } }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + table: { + serializedName: "properties.table", type: { name: "String" } }, - jobState: { - readOnly: true, - serializedName: "properties.jobState", + partitionKey: { + serializedName: "properties.partitionKey", type: { name: "String" } }, - outputStartMode: { - serializedName: "properties.outputStartMode", + rowKey: { + serializedName: "properties.rowKey", type: { name: "String" } }, - outputStartTime: { - serializedName: "properties.outputStartTime", + columnsToRemove: { + serializedName: "properties.columnsToRemove", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - lastOutputEventTime: { - readOnly: true, - serializedName: "properties.lastOutputEventTime", + batchSize: { + serializedName: "properties.batchSize", type: { - name: "DateTime" + name: "Number" } - }, - eventsOutOfOrderPolicy: { - serializedName: "properties.eventsOutOfOrderPolicy", + } + } + } +}; + +export const EventHubOutputDataSource: msRest.CompositeMapper = { + serializedName: "Microsoft.ServiceBus/EventHub", + type: { + name: "Composite", + polymorphicDiscriminator: OutputDataSource.type.polymorphicDiscriminator, + uberParent: "OutputDataSource", + className: "EventHubOutputDataSource", + modelProperties: { + ...OutputDataSource.type.modelProperties, + serviceBusNamespace: { + serializedName: "properties.serviceBusNamespace", type: { name: "String" } }, - outputErrorPolicy: { - serializedName: "properties.outputErrorPolicy", + sharedAccessPolicyName: { + serializedName: "properties.sharedAccessPolicyName", type: { name: "String" } }, - eventsOutOfOrderMaxDelayInSeconds: { - serializedName: "properties.eventsOutOfOrderMaxDelayInSeconds", - type: { - name: "Number" - } - }, - eventsLateArrivalMaxDelayInSeconds: { - serializedName: "properties.eventsLateArrivalMaxDelayInSeconds", + sharedAccessPolicyKey: { + serializedName: "properties.sharedAccessPolicyKey", type: { - name: "Number" + name: "String" } }, - dataLocale: { - serializedName: "properties.dataLocale", + authenticationMode: { + serializedName: "properties.authenticationMode", type: { name: "String" } }, - compatibilityLevel: { - serializedName: "properties.compatibilityLevel", + eventHubName: { + serializedName: "properties.eventHubName", type: { name: "String" } }, - createdDate: { - readOnly: true, - serializedName: "properties.createdDate", + partitionKey: { + serializedName: "properties.partitionKey", type: { - name: "DateTime" + name: "String" } }, - inputs: { - serializedName: "properties.inputs", + propertyColumns: { + serializedName: "properties.propertyColumns", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "Input" + name: "String" } } } + } + } + } +}; + +export const EventHubV2OutputDataSource: msRest.CompositeMapper = { + serializedName: "Microsoft.EventHub/EventHub", + type: { + name: "Composite", + polymorphicDiscriminator: OutputDataSource.type.polymorphicDiscriminator, + uberParent: "OutputDataSource", + className: "EventHubV2OutputDataSource", + modelProperties: { + ...OutputDataSource.type.modelProperties, + serviceBusNamespace: { + serializedName: "properties.serviceBusNamespace", + type: { + name: "String" + } }, - transformation: { - serializedName: "properties.transformation", + sharedAccessPolicyName: { + serializedName: "properties.sharedAccessPolicyName", type: { - name: "Composite", - className: "Transformation" + name: "String" + } + }, + sharedAccessPolicyKey: { + serializedName: "properties.sharedAccessPolicyKey", + type: { + name: "String" + } + }, + authenticationMode: { + serializedName: "properties.authenticationMode", + type: { + name: "String" + } + }, + eventHubName: { + serializedName: "properties.eventHubName", + type: { + name: "String" } }, - outputs: { - serializedName: "properties.outputs", + partitionKey: { + serializedName: "properties.partitionKey", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Output" - } - } + name: "String" } }, - functions: { - serializedName: "properties.functions", + propertyColumns: { + serializedName: "properties.propertyColumns", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "FunctionModel" + name: "String" } } } - }, - etag: { - readOnly: true, - serializedName: "properties.etag", - type: { - name: "String" - } } } } }; -export const StartStreamingJobParameters: msRest.CompositeMapper = { - serializedName: "StartStreamingJobParameters", +export const AzureSqlDatabaseOutputDataSource: msRest.CompositeMapper = { + serializedName: "Microsoft.Sql/Server/Database", type: { name: "Composite", - className: "StartStreamingJobParameters", + polymorphicDiscriminator: OutputDataSource.type.polymorphicDiscriminator, + uberParent: "OutputDataSource", + className: "AzureSqlDatabaseOutputDataSource", modelProperties: { - outputStartMode: { - serializedName: "outputStartMode", + ...OutputDataSource.type.modelProperties, + server: { + serializedName: "properties.server", type: { name: "String" } }, - outputStartTime: { - serializedName: "outputStartTime", + database: { + serializedName: "properties.database", type: { - name: "DateTime" + name: "String" } - } - } - } -}; - -export const FunctionBinding: msRest.CompositeMapper = { - serializedName: "FunctionBinding", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, - uberParent: "FunctionBinding", - className: "FunctionBinding", - modelProperties: { - type: { - required: true, - serializedName: "type", + }, + user: { + serializedName: "properties.user", type: { name: "String" } - } - } - } -}; - -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", + }, + password: { + serializedName: "properties.password", type: { name: "String" } - } - } - } -}; - -export const AzureMachineLearningWebServiceOutputColumn: msRest.CompositeMapper = { - serializedName: "AzureMachineLearningWebServiceOutputColumn", - type: { - name: "Composite", - className: "AzureMachineLearningWebServiceOutputColumn", - modelProperties: { - name: { - serializedName: "name", + }, + table: { + serializedName: "properties.table", type: { name: "String" } }, - dataType: { - serializedName: "dataType", + maxBatchCount: { + serializedName: "properties.maxBatchCount", + type: { + name: "Number" + } + }, + maxWriterCount: { + serializedName: "properties.maxWriterCount", + type: { + name: "Number" + } + }, + authenticationMode: { + serializedName: "properties.authenticationMode", type: { name: "String" } @@ -682,341 +1924,305 @@ export const AzureMachineLearningWebServiceOutputColumn: msRest.CompositeMapper } }; -export const AzureMachineLearningWebServiceInputColumn: msRest.CompositeMapper = { - serializedName: "AzureMachineLearningWebServiceInputColumn", +export const AzureSynapseOutputDataSource: msRest.CompositeMapper = { + serializedName: "Microsoft.Sql/Server/DataWarehouse", type: { name: "Composite", - className: "AzureMachineLearningWebServiceInputColumn", + polymorphicDiscriminator: OutputDataSource.type.polymorphicDiscriminator, + uberParent: "OutputDataSource", + className: "AzureSynapseOutputDataSource", modelProperties: { - name: { - serializedName: "name", + ...OutputDataSource.type.modelProperties, + server: { + serializedName: "properties.server", type: { name: "String" } }, - dataType: { - serializedName: "dataType", + database: { + serializedName: "properties.database", type: { name: "String" } }, - mapTo: { - serializedName: "mapTo", + table: { + serializedName: "properties.table", type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const AzureMachineLearningWebServiceInputs: msRest.CompositeMapper = { - serializedName: "AzureMachineLearningWebServiceInputs", - type: { - name: "Composite", - className: "AzureMachineLearningWebServiceInputs", - modelProperties: { - name: { - serializedName: "name", + }, + user: { + serializedName: "properties.user", type: { name: "String" } }, - columnNames: { - serializedName: "columnNames", + password: { + serializedName: "properties.password", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AzureMachineLearningWebServiceInputColumn" - } - } + name: "String" } } } } }; -export const AzureMachineLearningWebServiceFunctionBinding: msRest.CompositeMapper = { - serializedName: "Microsoft.MachineLearning/WebService", +export const AzureSynapseDataSourceProperties: msRest.CompositeMapper = { + serializedName: "AzureSynapseDataSourceProperties", type: { name: "Composite", - polymorphicDiscriminator: FunctionBinding.type.polymorphicDiscriminator, - uberParent: "FunctionBinding", - className: "AzureMachineLearningWebServiceFunctionBinding", + className: "AzureSynapseDataSourceProperties", modelProperties: { - ...FunctionBinding.type.modelProperties, - endpoint: { - serializedName: "properties.endpoint", + server: { + serializedName: "server", type: { name: "String" } }, - apiKey: { - serializedName: "properties.apiKey", + database: { + serializedName: "database", type: { name: "String" } }, - inputs: { - serializedName: "properties.inputs", + table: { + serializedName: "table", type: { - name: "Composite", - className: "AzureMachineLearningWebServiceInputs" + name: "String" } }, - outputs: { - serializedName: "properties.outputs", + user: { + serializedName: "user", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AzureMachineLearningWebServiceOutputColumn" - } - } + name: "String" } }, - batchSize: { - serializedName: "properties.batchSize", + password: { + serializedName: "password", type: { - name: "Number" + name: "String" } } } } }; -export const FunctionOutput: msRest.CompositeMapper = { - serializedName: "FunctionOutput", +export const DocumentDbOutputDataSource: msRest.CompositeMapper = { + serializedName: "Microsoft.Storage/DocumentDB", type: { name: "Composite", - className: "FunctionOutput", + polymorphicDiscriminator: OutputDataSource.type.polymorphicDiscriminator, + uberParent: "OutputDataSource", + className: "DocumentDbOutputDataSource", modelProperties: { - dataType: { - serializedName: "dataType", + ...OutputDataSource.type.modelProperties, + accountId: { + serializedName: "properties.accountId", type: { name: "String" } - } - } - } -}; - -export const FunctionInput: msRest.CompositeMapper = { - serializedName: "FunctionInput", - type: { - name: "Composite", - className: "FunctionInput", - modelProperties: { - dataType: { - serializedName: "dataType", + }, + accountKey: { + serializedName: "properties.accountKey", type: { name: "String" } }, - isConfigurationParameter: { - serializedName: "isConfigurationParameter", + database: { + serializedName: "properties.database", type: { - name: "Boolean" + name: "String" } - } - } - } -}; - -export const ScalarFunctionProperties: msRest.CompositeMapper = { - serializedName: "Scalar", - type: { - name: "Composite", - polymorphicDiscriminator: FunctionProperties.type.polymorphicDiscriminator, - uberParent: "FunctionProperties", - className: "ScalarFunctionProperties", - modelProperties: { - ...FunctionProperties.type.modelProperties, - inputs: { - serializedName: "properties.inputs", + }, + collectionNamePattern: { + serializedName: "properties.collectionNamePattern", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "FunctionInput" - } - } + name: "String" } }, - output: { - serializedName: "properties.output", + partitionKey: { + serializedName: "properties.partitionKey", type: { - name: "Composite", - className: "FunctionOutput" + name: "String" } - }, - binding: { - serializedName: "properties.binding", + }, + documentId: { + serializedName: "properties.documentId", type: { - name: "Composite", - className: "FunctionBinding" + name: "String" } } } } }; -export const AvroSerialization: msRest.CompositeMapper = { - serializedName: "Avro", +export const AzureFunctionOutputDataSource: msRest.CompositeMapper = { + serializedName: "Microsoft.AzureFunction", type: { name: "Composite", - polymorphicDiscriminator: Serialization.type.polymorphicDiscriminator, - uberParent: "Serialization", - className: "AvroSerialization", + polymorphicDiscriminator: OutputDataSource.type.polymorphicDiscriminator, + uberParent: "OutputDataSource", + className: "AzureFunctionOutputDataSource", modelProperties: { - ...Serialization.type.modelProperties, - properties: { - serializedName: "properties", + ...OutputDataSource.type.modelProperties, + functionAppName: { + serializedName: "properties.functionAppName", type: { - name: "Object" + 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", + }, + functionName: { + serializedName: "properties.functionName", type: { name: "String" } }, - format: { - serializedName: "properties.format", + apiKey: { + serializedName: "properties.apiKey", type: { name: "String" } + }, + maxBatchSize: { + serializedName: "properties.maxBatchSize", + type: { + name: "Number" + } + }, + maxBatchCount: { + serializedName: "properties.maxBatchCount", + type: { + name: "Number" + } } } } }; -export const CsvSerialization: msRest.CompositeMapper = { - serializedName: "Csv", +export const ServiceBusQueueOutputDataSource: msRest.CompositeMapper = { + serializedName: "Microsoft.ServiceBus/Queue", type: { name: "Composite", - polymorphicDiscriminator: Serialization.type.polymorphicDiscriminator, - uberParent: "Serialization", - className: "CsvSerialization", + polymorphicDiscriminator: OutputDataSource.type.polymorphicDiscriminator, + uberParent: "OutputDataSource", + className: "ServiceBusQueueOutputDataSource", modelProperties: { - ...Serialization.type.modelProperties, - fieldDelimiter: { - serializedName: "properties.fieldDelimiter", + ...OutputDataSource.type.modelProperties, + serviceBusNamespace: { + serializedName: "properties.serviceBusNamespace", type: { name: "String" } }, - encoding: { - serializedName: "properties.encoding", + sharedAccessPolicyName: { + serializedName: "properties.sharedAccessPolicyName", type: { name: "String" } - } - } - } -}; - -export const OAuthBasedDataSourceProperties: msRest.CompositeMapper = { - serializedName: "OAuthBasedDataSourceProperties", - type: { - name: "Composite", - className: "OAuthBasedDataSourceProperties", - modelProperties: { - refreshToken: { - serializedName: "refreshToken", + }, + sharedAccessPolicyKey: { + serializedName: "properties.sharedAccessPolicyKey", type: { name: "String" } }, - tokenUserPrincipalName: { - serializedName: "tokenUserPrincipalName", + authenticationMode: { + serializedName: "properties.authenticationMode", type: { name: "String" } }, - tokenUserDisplayName: { - serializedName: "tokenUserDisplayName", + queueName: { + serializedName: "properties.queueName", type: { name: "String" } + }, + propertyColumns: { + serializedName: "properties.propertyColumns", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + systemPropertyColumns: { + serializedName: "properties.systemPropertyColumns", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } } } } }; -export const AzureDataLakeStoreOutputDataSource: msRest.CompositeMapper = { - serializedName: "Microsoft.DataLake/Accounts", +export const ServiceBusTopicOutputDataSource: msRest.CompositeMapper = { + serializedName: "Microsoft.ServiceBus/Topic", type: { name: "Composite", polymorphicDiscriminator: OutputDataSource.type.polymorphicDiscriminator, uberParent: "OutputDataSource", - className: "AzureDataLakeStoreOutputDataSource", + className: "ServiceBusTopicOutputDataSource", modelProperties: { ...OutputDataSource.type.modelProperties, - refreshToken: { - serializedName: "properties.refreshToken", - type: { - name: "String" - } - }, - tokenUserPrincipalName: { - serializedName: "properties.tokenUserPrincipalName", + serviceBusNamespace: { + serializedName: "properties.serviceBusNamespace", type: { name: "String" } }, - tokenUserDisplayName: { - serializedName: "properties.tokenUserDisplayName", + sharedAccessPolicyName: { + serializedName: "properties.sharedAccessPolicyName", type: { name: "String" } }, - accountName: { - serializedName: "properties.accountName", + sharedAccessPolicyKey: { + serializedName: "properties.sharedAccessPolicyKey", type: { name: "String" } }, - tenantId: { - serializedName: "properties.tenantId", + authenticationMode: { + serializedName: "properties.authenticationMode", type: { name: "String" } }, - filePathPrefix: { - serializedName: "properties.filePathPrefix", + topicName: { + serializedName: "properties.topicName", type: { name: "String" } }, - dateFormat: { - serializedName: "properties.dateFormat", + propertyColumns: { + serializedName: "properties.propertyColumns", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - timeFormat: { - serializedName: "properties.timeFormat", + systemPropertyColumns: { + serializedName: "properties.systemPropertyColumns", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } } } @@ -1073,193 +2279,191 @@ export const PowerBIOutputDataSource: msRest.CompositeMapper = { type: { name: "String" } + }, + authenticationMode: { + serializedName: "properties.authenticationMode", + type: { + name: "String" + } } } } }; -export const ServiceBusDataSourceProperties: msRest.CompositeMapper = { - serializedName: "ServiceBusDataSourceProperties", +export const AzureDataLakeStoreOutputDataSource: msRest.CompositeMapper = { + serializedName: "Microsoft.DataLake/Accounts", type: { name: "Composite", - className: "ServiceBusDataSourceProperties", + polymorphicDiscriminator: OutputDataSource.type.polymorphicDiscriminator, + uberParent: "OutputDataSource", + className: "AzureDataLakeStoreOutputDataSource", modelProperties: { - serviceBusNamespace: { - serializedName: "serviceBusNamespace", + ...OutputDataSource.type.modelProperties, + refreshToken: { + serializedName: "properties.refreshToken", type: { name: "String" } }, - sharedAccessPolicyName: { - serializedName: "sharedAccessPolicyName", + tokenUserPrincipalName: { + serializedName: "properties.tokenUserPrincipalName", type: { name: "String" } }, - sharedAccessPolicyKey: { - serializedName: "sharedAccessPolicyKey", + tokenUserDisplayName: { + serializedName: "properties.tokenUserDisplayName", type: { name: "String" } - } - } - } -}; - -export const EventHubDataSourceProperties: msRest.CompositeMapper = { - serializedName: "EventHubDataSourceProperties", - type: { - name: "Composite", - className: "EventHubDataSourceProperties", - modelProperties: { - ...ServiceBusDataSourceProperties.type.modelProperties, - eventHubName: { - serializedName: "eventHubName", + }, + accountName: { + serializedName: "properties.accountName", type: { name: "String" } - } - } - } -}; - -export const ServiceBusTopicOutputDataSource: msRest.CompositeMapper = { - serializedName: "Microsoft.ServiceBus/Topic", - type: { - name: "Composite", - polymorphicDiscriminator: OutputDataSource.type.polymorphicDiscriminator, - uberParent: "OutputDataSource", - className: "ServiceBusTopicOutputDataSource", - modelProperties: { - ...OutputDataSource.type.modelProperties, - serviceBusNamespace: { - serializedName: "properties.serviceBusNamespace", + }, + tenantId: { + serializedName: "properties.tenantId", type: { name: "String" } }, - sharedAccessPolicyName: { - serializedName: "properties.sharedAccessPolicyName", + filePathPrefix: { + serializedName: "properties.filePathPrefix", type: { name: "String" } }, - sharedAccessPolicyKey: { - serializedName: "properties.sharedAccessPolicyKey", + dateFormat: { + serializedName: "properties.dateFormat", type: { name: "String" } }, - topicName: { - serializedName: "properties.topicName", + timeFormat: { + serializedName: "properties.timeFormat", type: { name: "String" } }, - propertyColumns: { - serializedName: "properties.propertyColumns", + authenticationMode: { + serializedName: "properties.authenticationMode", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const ServiceBusQueueOutputDataSource: msRest.CompositeMapper = { - serializedName: "Microsoft.ServiceBus/Queue", +export const AzureSqlDatabaseDataSourceProperties: msRest.CompositeMapper = { + serializedName: "AzureSqlDatabaseDataSourceProperties", type: { name: "Composite", - polymorphicDiscriminator: OutputDataSource.type.polymorphicDiscriminator, - uberParent: "OutputDataSource", - className: "ServiceBusQueueOutputDataSource", + className: "AzureSqlDatabaseDataSourceProperties", modelProperties: { - ...OutputDataSource.type.modelProperties, - serviceBusNamespace: { - serializedName: "properties.serviceBusNamespace", + server: { + serializedName: "server", + type: { + name: "String" + } + }, + database: { + serializedName: "database", type: { name: "String" } }, - sharedAccessPolicyName: { - serializedName: "properties.sharedAccessPolicyName", + user: { + serializedName: "user", type: { name: "String" } }, - sharedAccessPolicyKey: { - serializedName: "properties.sharedAccessPolicyKey", + password: { + serializedName: "password", type: { name: "String" } }, - queueName: { - serializedName: "properties.queueName", + table: { + serializedName: "table", type: { name: "String" } }, - propertyColumns: { - serializedName: "properties.propertyColumns", + maxBatchCount: { + serializedName: "maxBatchCount", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" + } + }, + maxWriterCount: { + serializedName: "maxWriterCount", + type: { + name: "Number" + } + }, + authenticationMode: { + serializedName: "authenticationMode", + type: { + name: "String" } } } } }; -export const DocumentDbOutputDataSource: msRest.CompositeMapper = { - serializedName: "Microsoft.Storage/DocumentDB", +export const OAuthBasedDataSourceProperties: msRest.CompositeMapper = { + serializedName: "OAuthBasedDataSourceProperties", type: { name: "Composite", - polymorphicDiscriminator: OutputDataSource.type.polymorphicDiscriminator, - uberParent: "OutputDataSource", - className: "DocumentDbOutputDataSource", + className: "OAuthBasedDataSourceProperties", modelProperties: { - ...OutputDataSource.type.modelProperties, - accountId: { - serializedName: "properties.accountId", + refreshToken: { + serializedName: "refreshToken", type: { name: "String" } }, - accountKey: { - serializedName: "properties.accountKey", + tokenUserPrincipalName: { + serializedName: "tokenUserPrincipalName", type: { name: "String" } }, - database: { - serializedName: "properties.database", + tokenUserDisplayName: { + serializedName: "tokenUserDisplayName", type: { name: "String" } - }, - collectionNamePattern: { - serializedName: "properties.collectionNamePattern", + } + } + } +}; + +export const External: msRest.CompositeMapper = { + serializedName: "External", + type: { + name: "Composite", + className: "External", + modelProperties: { + storageAccount: { + serializedName: "storageAccount", type: { - name: "String" + name: "Composite", + className: "StorageAccount" } }, - partitionKey: { - serializedName: "properties.partitionKey", + container: { + serializedName: "container", type: { name: "String" } }, - documentId: { - serializedName: "properties.documentId", + path: { + serializedName: "path", type: { name: "String" } @@ -1268,81 +2472,124 @@ export const DocumentDbOutputDataSource: msRest.CompositeMapper = { } }; -export const AzureSqlDatabaseDataSourceProperties: msRest.CompositeMapper = { - serializedName: "AzureSqlDatabaseDataSourceProperties", +export const OperationDisplay: msRest.CompositeMapper = { + serializedName: "Operation_display", type: { name: "Composite", - className: "AzureSqlDatabaseDataSourceProperties", + className: "OperationDisplay", modelProperties: { - server: { - serializedName: "server", + provider: { + readOnly: true, + serializedName: "provider", type: { name: "String" } }, - database: { - serializedName: "database", + resource: { + readOnly: true, + serializedName: "resource", type: { name: "String" } }, - user: { - serializedName: "user", + operation: { + readOnly: true, + serializedName: "operation", type: { name: "String" } }, - password: { - serializedName: "password", + description: { + readOnly: true, + serializedName: "description", type: { name: "String" } - }, - table: { - serializedName: "table", + } + } + } +}; + +export const Operation: msRest.CompositeMapper = { + serializedName: "Operation", + type: { + name: "Composite", + className: "Operation", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } + }, + display: { + readOnly: true, + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay" + } } } } }; -export const AzureSqlDatabaseOutputDataSource: msRest.CompositeMapper = { - serializedName: "Microsoft.Sql/Server/Database", +export const StreamingJobSku: msRest.CompositeMapper = { + serializedName: "StreamingJobSku", type: { name: "Composite", - polymorphicDiscriminator: OutputDataSource.type.polymorphicDiscriminator, - uberParent: "OutputDataSource", - className: "AzureSqlDatabaseOutputDataSource", + className: "StreamingJobSku", modelProperties: { - ...OutputDataSource.type.modelProperties, - server: { - serializedName: "properties.server", + name: { + serializedName: "name", type: { name: "String" } - }, - database: { - serializedName: "properties.database", + } + } + } +}; + +export const Transformation: msRest.CompositeMapper = { + serializedName: "Transformation", + type: { + name: "Composite", + className: "Transformation", + modelProperties: { + ...SubResource.type.modelProperties, + streamingUnits: { + serializedName: "properties.streamingUnits", type: { - name: "String" + name: "Number" } }, - user: { - serializedName: "properties.user", + query: { + serializedName: "properties.query", type: { name: "String" } }, - password: { - serializedName: "properties.password", + etag: { + readOnly: true, + serializedName: "properties.etag", type: { name: "String" } - }, - table: { - serializedName: "properties.table", + } + } + } +}; + +export const JobStorageAccount: msRest.CompositeMapper = { + serializedName: "JobStorageAccount", + type: { + name: "Composite", + className: "JobStorageAccount", + modelProperties: { + ...StorageAccount.type.modelProperties, + authenticationMode: { + serializedName: "authenticationMode", type: { name: "String" } @@ -1351,41 +2598,73 @@ export const AzureSqlDatabaseOutputDataSource: msRest.CompositeMapper = { } }; -export const EventHubOutputDataSource: msRest.CompositeMapper = { - serializedName: "Microsoft.ServiceBus/EventHub", +export const ClusterInfo: msRest.CompositeMapper = { + serializedName: "ClusterInfo", type: { name: "Composite", - polymorphicDiscriminator: OutputDataSource.type.polymorphicDiscriminator, - uberParent: "OutputDataSource", - className: "EventHubOutputDataSource", + className: "ClusterInfo", modelProperties: { - ...OutputDataSource.type.modelProperties, - serviceBusNamespace: { - serializedName: "properties.serviceBusNamespace", + id: { + serializedName: "id", type: { name: "String" } - }, - sharedAccessPolicyName: { - serializedName: "properties.sharedAccessPolicyName", + } + } + } +}; + +export const Resource: msRest.CompositeMapper = { + serializedName: "Resource", + type: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", type: { name: "String" } }, - sharedAccessPolicyKey: { - serializedName: "properties.sharedAccessPolicyKey", + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, - eventHubName: { - serializedName: "properties.eventHubName", + type: { + readOnly: true, + serializedName: "type", type: { name: "String" } + } + } + } +}; + +export const TrackedResource: msRest.CompositeMapper = { + serializedName: "TrackedResource", + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } }, - partitionKey: { - serializedName: "properties.partitionKey", + location: { + serializedName: "location", type: { name: "String" } @@ -1394,637 +2673,625 @@ export const EventHubOutputDataSource: msRest.CompositeMapper = { } }; -export const AzureTableOutputDataSource: msRest.CompositeMapper = { - serializedName: "Microsoft.Storage/Table", +export const StreamingJob: msRest.CompositeMapper = { + serializedName: "StreamingJob", type: { name: "Composite", - polymorphicDiscriminator: OutputDataSource.type.polymorphicDiscriminator, - uberParent: "OutputDataSource", - className: "AzureTableOutputDataSource", + className: "StreamingJob", modelProperties: { - ...OutputDataSource.type.modelProperties, - accountName: { - serializedName: "properties.accountName", + ...TrackedResource.type.modelProperties, + sku: { + serializedName: "properties.sku", + type: { + name: "Composite", + className: "StreamingJobSku" + } + }, + jobId: { + readOnly: true, + serializedName: "properties.jobId", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", type: { name: "String" } }, - accountKey: { - serializedName: "properties.accountKey", + jobState: { + readOnly: true, + serializedName: "properties.jobState", type: { name: "String" } }, - table: { - serializedName: "properties.table", + jobType: { + serializedName: "properties.jobType", type: { name: "String" } }, - partitionKey: { - serializedName: "properties.partitionKey", + outputStartMode: { + serializedName: "properties.outputStartMode", type: { name: "String" } }, - rowKey: { - serializedName: "properties.rowKey", + outputStartTime: { + serializedName: "properties.outputStartTime", + type: { + name: "DateTime" + } + }, + lastOutputEventTime: { + readOnly: true, + serializedName: "properties.lastOutputEventTime", + type: { + name: "DateTime" + } + }, + eventsOutOfOrderPolicy: { + serializedName: "properties.eventsOutOfOrderPolicy", type: { name: "String" } }, - columnsToRemove: { - serializedName: "properties.columnsToRemove", + outputErrorPolicy: { + serializedName: "properties.outputErrorPolicy", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - batchSize: { - serializedName: "properties.batchSize", + eventsOutOfOrderMaxDelayInSeconds: { + serializedName: "properties.eventsOutOfOrderMaxDelayInSeconds", type: { name: "Number" } - } - } - } -}; - -export const StorageAccount: msRest.CompositeMapper = { - serializedName: "StorageAccount", - type: { - name: "Composite", - className: "StorageAccount", - modelProperties: { - accountName: { - serializedName: "accountName", + }, + eventsLateArrivalMaxDelayInSeconds: { + serializedName: "properties.eventsLateArrivalMaxDelayInSeconds", + type: { + name: "Number" + } + }, + dataLocale: { + serializedName: "properties.dataLocale", type: { name: "String" } }, - accountKey: { - serializedName: "accountKey", + compatibilityLevel: { + serializedName: "properties.compatibilityLevel", type: { name: "String" } - } - } - } -}; - -export const BlobDataSourceProperties: msRest.CompositeMapper = { - serializedName: "BlobDataSourceProperties", - type: { - name: "Composite", - className: "BlobDataSourceProperties", - modelProperties: { - storageAccounts: { - serializedName: "storageAccounts", + }, + createdDate: { + readOnly: true, + serializedName: "properties.createdDate", + type: { + name: "DateTime" + } + }, + inputs: { + serializedName: "properties.inputs", type: { name: "Sequence", element: { type: { name: "Composite", - className: "StorageAccount" + className: "Input" } } } }, - container: { - serializedName: "container", - type: { - name: "String" - } - }, - pathPattern: { - serializedName: "pathPattern", + transformation: { + serializedName: "properties.transformation", type: { - name: "String" + name: "Composite", + className: "Transformation" } }, - dateFormat: { - serializedName: "dateFormat", + outputs: { + serializedName: "properties.outputs", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Output" + } + } } }, - timeFormat: { - serializedName: "timeFormat", - type: { - name: "String" - } - } - } - } -}; - -export const BlobOutputDataSource: msRest.CompositeMapper = { - serializedName: "Microsoft.Storage/Blob", - type: { - name: "Composite", - polymorphicDiscriminator: OutputDataSource.type.polymorphicDiscriminator, - uberParent: "OutputDataSource", - className: "BlobOutputDataSource", - modelProperties: { - ...OutputDataSource.type.modelProperties, - storageAccounts: { - serializedName: "properties.storageAccounts", + functions: { + serializedName: "properties.functions", type: { name: "Sequence", element: { type: { name: "Composite", - className: "StorageAccount" + className: "FunctionModel" } } } }, - container: { - serializedName: "properties.container", + etag: { + readOnly: true, + serializedName: "properties.etag", type: { name: "String" } }, - pathPattern: { - serializedName: "properties.pathPattern", + jobStorageAccount: { + serializedName: "properties.jobStorageAccount", type: { - name: "String" + name: "Composite", + className: "JobStorageAccount" } }, - dateFormat: { - serializedName: "properties.dateFormat", + contentStoragePolicy: { + serializedName: "properties.contentStoragePolicy", type: { name: "String" } }, - timeFormat: { - serializedName: "properties.timeFormat", + externals: { + serializedName: "properties.externals", type: { - name: "String" + name: "Composite", + className: "External" + } + }, + cluster: { + serializedName: "properties.cluster", + type: { + name: "Composite", + className: "ClusterInfo" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "Identity" } } } } }; -export const ReferenceInputDataSource: msRest.CompositeMapper = { - serializedName: "ReferenceInputDataSource", +export const StartStreamingJobParameters: msRest.CompositeMapper = { + serializedName: "StartStreamingJobParameters", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, - uberParent: "ReferenceInputDataSource", - className: "ReferenceInputDataSource", + className: "StartStreamingJobParameters", modelProperties: { - type: { - required: true, - serializedName: "type", + outputStartMode: { + serializedName: "outputStartMode", type: { name: "String" } + }, + outputStartTime: { + serializedName: "outputStartTime", + type: { + name: "DateTime" + } } } } }; -export const BlobReferenceInputDataSource: msRest.CompositeMapper = { - serializedName: "Microsoft.Storage/Blob", +export const ProxyResource: msRest.CompositeMapper = { + serializedName: "ProxyResource", type: { name: "Composite", - polymorphicDiscriminator: ReferenceInputDataSource.type.polymorphicDiscriminator, - uberParent: "ReferenceInputDataSource", - className: "BlobReferenceInputDataSource", + className: "ProxyResource", 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: { - name: "String" - } - }, - timeFormat: { - serializedName: "properties.timeFormat", - type: { - name: "String" - } - } + ...Resource.type.modelProperties } } }; -export const ReferenceInputProperties: msRest.CompositeMapper = { - serializedName: "Reference", +export const SubscriptionQuota: msRest.CompositeMapper = { + serializedName: "SubscriptionQuota", type: { name: "Composite", - polymorphicDiscriminator: InputProperties.type.polymorphicDiscriminator, - uberParent: "InputProperties", - className: "ReferenceInputProperties", + className: "SubscriptionQuota", modelProperties: { - ...InputProperties.type.modelProperties, - datasource: { - serializedName: "datasource", + ...SubResource.type.modelProperties, + maxCount: { + readOnly: true, + serializedName: "properties.maxCount", + type: { + name: "Number" + } + }, + currentCount: { + readOnly: true, + serializedName: "properties.currentCount", type: { - name: "Composite", - className: "ReferenceInputDataSource" + name: "Number" } } } } }; -export const StreamInputDataSource: msRest.CompositeMapper = { - serializedName: "StreamInputDataSource", +export const SubscriptionQuotasListResult: msRest.CompositeMapper = { + serializedName: "SubscriptionQuotasListResult", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, - uberParent: "StreamInputDataSource", - className: "StreamInputDataSource", + className: "SubscriptionQuotasListResult", modelProperties: { - type: { - required: true, - serializedName: "type", + value: { + readOnly: true, + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubscriptionQuota" + } + } } } } } }; -export const IoTHubStreamInputDataSource: msRest.CompositeMapper = { - serializedName: "Microsoft.Devices/IotHubs", +export const ClusterSku: msRest.CompositeMapper = { + serializedName: "ClusterSku", type: { name: "Composite", - polymorphicDiscriminator: StreamInputDataSource.type.polymorphicDiscriminator, - uberParent: "StreamInputDataSource", - className: "IoTHubStreamInputDataSource", + className: "ClusterSku", 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", + name: { + serializedName: "name", type: { name: "String" } }, - endpoint: { - serializedName: "properties.endpoint", + capacity: { + serializedName: "capacity", + constraints: { + InclusiveMaximum: 216, + InclusiveMinimum: 36 + }, type: { - name: "String" + name: "Number" } } } } }; -export const EventHubStreamInputDataSource: msRest.CompositeMapper = { - serializedName: "Microsoft.ServiceBus/EventHub", +export const ClusterProperties: msRest.CompositeMapper = { + serializedName: "ClusterProperties", type: { name: "Composite", - polymorphicDiscriminator: StreamInputDataSource.type.polymorphicDiscriminator, - uberParent: "StreamInputDataSource", - className: "EventHubStreamInputDataSource", + className: "ClusterProperties", modelProperties: { - ...StreamInputDataSource.type.modelProperties, - serviceBusNamespace: { - serializedName: "properties.serviceBusNamespace", + createdDate: { + readOnly: true, + serializedName: "createdDate", type: { - name: "String" + name: "DateTime" } }, - sharedAccessPolicyName: { - serializedName: "properties.sharedAccessPolicyName", + clusterId: { + readOnly: true, + serializedName: "clusterId", type: { name: "String" } }, - sharedAccessPolicyKey: { - serializedName: "properties.sharedAccessPolicyKey", + provisioningState: { + serializedName: "provisioningState", type: { name: "String" } }, - eventHubName: { - serializedName: "properties.eventHubName", + capacityAllocated: { + readOnly: true, + serializedName: "capacityAllocated", type: { - name: "String" + name: "Number" } }, - consumerGroupName: { - serializedName: "properties.consumerGroupName", + capacityAssigned: { + readOnly: true, + serializedName: "capacityAssigned", type: { - name: "String" + name: "Number" } } } } }; -export const BlobStreamInputDataSource: msRest.CompositeMapper = { - serializedName: "Microsoft.Storage/Blob", +export const Cluster: msRest.CompositeMapper = { + serializedName: "Cluster", type: { name: "Composite", - polymorphicDiscriminator: StreamInputDataSource.type.polymorphicDiscriminator, - uberParent: "StreamInputDataSource", - className: "BlobStreamInputDataSource", + className: "Cluster", modelProperties: { - ...StreamInputDataSource.type.modelProperties, - storageAccounts: { - serializedName: "properties.storageAccounts", + ...TrackedResource.type.modelProperties, + sku: { + serializedName: "sku", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "StorageAccount" - } - } + name: "Composite", + className: "ClusterSku" } }, - container: { - serializedName: "properties.container", + etag: { + readOnly: true, + serializedName: "etag", type: { name: "String" } }, - pathPattern: { - serializedName: "properties.pathPattern", + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "ClusterProperties" } - }, - dateFormat: { - serializedName: "properties.dateFormat", + } + } + } +}; + +export const ClusterJob: msRest.CompositeMapper = { + serializedName: "ClusterJob", + type: { + name: "Composite", + className: "ClusterJob", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", type: { name: "String" } }, - timeFormat: { - serializedName: "properties.timeFormat", + streamingUnits: { + readOnly: true, + serializedName: "streamingUnits", type: { - name: "String" + name: "Number" } }, - sourcePartitionCount: { - serializedName: "properties.sourcePartitionCount", + jobState: { + serializedName: "jobState", type: { - name: "Number" + name: "String" } } } } }; -export const StreamInputProperties: msRest.CompositeMapper = { - serializedName: "Stream", +export const ErrorDetails: msRest.CompositeMapper = { + serializedName: "ErrorDetails", type: { name: "Composite", - polymorphicDiscriminator: InputProperties.type.polymorphicDiscriminator, - uberParent: "InputProperties", - className: "StreamInputProperties", + className: "ErrorDetails", modelProperties: { - ...InputProperties.type.modelProperties, - datasource: { - serializedName: "datasource", + code: { + serializedName: "code", type: { - name: "Composite", - className: "StreamInputDataSource" + name: "String" + } + }, + target: { + serializedName: "target", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" } } } } }; -export const ErrorResponse: msRest.CompositeMapper = { - serializedName: "ErrorResponse", +export const ErrorError: msRest.CompositeMapper = { + serializedName: "Error_error", type: { name: "Composite", - className: "ErrorResponse", + className: "ErrorError", modelProperties: { code: { - readOnly: true, serializedName: "code", type: { name: "String" } }, message: { - readOnly: true, serializedName: "message", type: { name: "String" } - } - } - } -}; - -export const ResourceTestStatus: msRest.CompositeMapper = { - serializedName: "ResourceTestStatus", - type: { - name: "Composite", - className: "ResourceTestStatus", - modelProperties: { - status: { - readOnly: true, - serializedName: "status", + }, + target: { + serializedName: "target", type: { name: "String" } }, - error: { - readOnly: true, - serializedName: "error", + details: { + serializedName: "details", type: { - name: "Composite", - className: "ErrorResponse" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetails" + } + } } } } } }; -export const FunctionRetrieveDefaultDefinitionParameters: msRest.CompositeMapper = { - serializedName: "FunctionRetrieveDefaultDefinitionParameters", +export const ErrorModel: msRest.CompositeMapper = { + serializedName: "Error", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "bindingType", - clientName: "bindingType" - }, - uberParent: "FunctionRetrieveDefaultDefinitionParameters", - className: "FunctionRetrieveDefaultDefinitionParameters", + className: "ErrorModel", modelProperties: { - bindingType: { - required: true, - serializedName: "bindingType", + error: { + serializedName: "error", type: { - name: "String" + name: "Composite", + className: "ErrorError" } } } } }; -export const AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters: msRest.CompositeMapper = { - serializedName: "Microsoft.MachineLearning/WebService", +export const PrivateLinkConnectionState: msRest.CompositeMapper = { + serializedName: "PrivateLinkConnectionState", type: { name: "Composite", - polymorphicDiscriminator: FunctionRetrieveDefaultDefinitionParameters.type.polymorphicDiscriminator, - uberParent: "FunctionRetrieveDefaultDefinitionParameters", - className: "AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters", + className: "PrivateLinkConnectionState", modelProperties: { - ...FunctionRetrieveDefaultDefinitionParameters.type.modelProperties, - executeEndpoint: { - serializedName: "bindingRetrievalProperties.executeEndpoint", + status: { + readOnly: true, + serializedName: "status", type: { name: "String" } }, - udfType: { - serializedName: "bindingRetrievalProperties.udfType", + description: { + readOnly: true, + serializedName: "description", type: { - name: "Enum", - allowedValues: [ - "Scalar" - ] + name: "String" + } + }, + actionsRequired: { + readOnly: true, + serializedName: "actionsRequired", + type: { + name: "String" } } } } }; -export const JavaScriptFunctionRetrieveDefaultDefinitionParameters: msRest.CompositeMapper = { - serializedName: "Microsoft.StreamAnalytics/JavascriptUdf", +export const PrivateLinkServiceConnection: msRest.CompositeMapper = { + serializedName: "PrivateLinkServiceConnection", type: { name: "Composite", - polymorphicDiscriminator: FunctionRetrieveDefaultDefinitionParameters.type.polymorphicDiscriminator, - uberParent: "FunctionRetrieveDefaultDefinitionParameters", - className: "JavaScriptFunctionRetrieveDefaultDefinitionParameters", + className: "PrivateLinkServiceConnection", modelProperties: { - ...FunctionRetrieveDefaultDefinitionParameters.type.modelProperties, - script: { - serializedName: "bindingRetrievalProperties.script", + privateLinkServiceId: { + serializedName: "properties.privateLinkServiceId", + type: { + name: "String" + } + }, + groupIds: { + serializedName: "properties.groupIds", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + requestMessage: { + serializedName: "properties.requestMessage", type: { name: "String" } }, - udfType: { - serializedName: "bindingRetrievalProperties.udfType", + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", type: { - name: "Enum", - allowedValues: [ - "Scalar" - ] + name: "Composite", + className: "PrivateLinkConnectionState" } } } } }; -export const SubscriptionQuota: msRest.CompositeMapper = { - serializedName: "SubscriptionQuota", +export const PrivateEndpointProperties: msRest.CompositeMapper = { + serializedName: "PrivateEndpointProperties", type: { name: "Composite", - className: "SubscriptionQuota", + className: "PrivateEndpointProperties", modelProperties: { - ...SubResource.type.modelProperties, - maxCount: { + createdDate: { readOnly: true, - serializedName: "properties.maxCount", + serializedName: "createdDate", type: { - name: "Number" + name: "String" } }, - currentCount: { - readOnly: true, - serializedName: "properties.currentCount", + manualPrivateLinkServiceConnections: { + serializedName: "manualPrivateLinkServiceConnections", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkServiceConnection" + } + } } } } } }; -export const SubscriptionQuotasListResult: msRest.CompositeMapper = { - serializedName: "SubscriptionQuotasListResult", +export const PrivateEndpoint: msRest.CompositeMapper = { + serializedName: "PrivateEndpoint", type: { name: "Composite", - className: "SubscriptionQuotasListResult", + className: "PrivateEndpoint", modelProperties: { - value: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "PrivateEndpointProperties" + } + }, + etag: { readOnly: true, - serializedName: "value", + serializedName: "etag", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubscriptionQuota" - } - } + name: "String" } } } } }; -export const StreamingJobsCreateOrReplaceHeaders: msRest.CompositeMapper = { - serializedName: "streamingjobs-createorreplace-headers", +export const FunctionsCreateOrReplaceHeaders: msRest.CompositeMapper = { + serializedName: "functions-createorreplace-headers", type: { name: "Composite", - className: "StreamingJobsCreateOrReplaceHeaders", + className: "FunctionsCreateOrReplaceHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -2036,11 +3303,11 @@ export const StreamingJobsCreateOrReplaceHeaders: msRest.CompositeMapper = { } }; -export const StreamingJobsUpdateHeaders: msRest.CompositeMapper = { - serializedName: "streamingjobs-update-headers", +export const FunctionsUpdateHeaders: msRest.CompositeMapper = { + serializedName: "functions-update-headers", type: { name: "Composite", - className: "StreamingJobsUpdateHeaders", + className: "FunctionsUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -2052,11 +3319,11 @@ export const StreamingJobsUpdateHeaders: msRest.CompositeMapper = { } }; -export const StreamingJobsGetHeaders: msRest.CompositeMapper = { - serializedName: "streamingjobs-get-headers", +export const FunctionsGetHeaders: msRest.CompositeMapper = { + serializedName: "functions-get-headers", type: { name: "Composite", - className: "StreamingJobsGetHeaders", + className: "FunctionsGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -2164,11 +3431,11 @@ export const OutputsGetHeaders: msRest.CompositeMapper = { } }; -export const TransformationsCreateOrReplaceHeaders: msRest.CompositeMapper = { - serializedName: "transformations-createorreplace-headers", +export const StreamingJobsCreateOrReplaceHeaders: msRest.CompositeMapper = { + serializedName: "streamingjobs-createorreplace-headers", type: { name: "Composite", - className: "TransformationsCreateOrReplaceHeaders", + className: "StreamingJobsCreateOrReplaceHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -2180,11 +3447,11 @@ export const TransformationsCreateOrReplaceHeaders: msRest.CompositeMapper = { } }; -export const TransformationsUpdateHeaders: msRest.CompositeMapper = { - serializedName: "transformations-update-headers", +export const StreamingJobsUpdateHeaders: msRest.CompositeMapper = { + serializedName: "streamingjobs-update-headers", type: { name: "Composite", - className: "TransformationsUpdateHeaders", + className: "StreamingJobsUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -2196,11 +3463,11 @@ export const TransformationsUpdateHeaders: msRest.CompositeMapper = { } }; -export const TransformationsGetHeaders: msRest.CompositeMapper = { - serializedName: "transformations-get-headers", +export const StreamingJobsGetHeaders: msRest.CompositeMapper = { + serializedName: "streamingjobs-get-headers", type: { name: "Composite", - className: "TransformationsGetHeaders", + className: "StreamingJobsGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -2212,11 +3479,11 @@ export const TransformationsGetHeaders: msRest.CompositeMapper = { } }; -export const FunctionsCreateOrReplaceHeaders: msRest.CompositeMapper = { - serializedName: "functions-createorreplace-headers", +export const TransformationsCreateOrReplaceHeaders: msRest.CompositeMapper = { + serializedName: "transformations-createorreplace-headers", type: { name: "Composite", - className: "FunctionsCreateOrReplaceHeaders", + className: "TransformationsCreateOrReplaceHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -2228,11 +3495,11 @@ export const FunctionsCreateOrReplaceHeaders: msRest.CompositeMapper = { } }; -export const FunctionsUpdateHeaders: msRest.CompositeMapper = { - serializedName: "functions-update-headers", +export const TransformationsUpdateHeaders: msRest.CompositeMapper = { + serializedName: "transformations-update-headers", type: { name: "Composite", - className: "FunctionsUpdateHeaders", + className: "TransformationsUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -2244,11 +3511,11 @@ export const FunctionsUpdateHeaders: msRest.CompositeMapper = { } }; -export const FunctionsGetHeaders: msRest.CompositeMapper = { - serializedName: "functions-get-headers", +export const TransformationsGetHeaders: msRest.CompositeMapper = { + serializedName: "transformations-get-headers", type: { name: "Composite", - className: "FunctionsGetHeaders", + className: "TransformationsGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -2260,11 +3527,11 @@ export const FunctionsGetHeaders: 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, @@ -2274,7 +3541,67 @@ export const OperationListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" + className: "FunctionModel" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const InputListResult: msRest.CompositeMapper = { + serializedName: "InputListResult", + type: { + name: "Composite", + className: "InputListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Input" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const OutputListResult: msRest.CompositeMapper = { + serializedName: "OutputListResult", + type: { + name: "Composite", + className: "OutputListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Output" } } } @@ -2320,11 +3647,11 @@ export const StreamingJobListResult: msRest.CompositeMapper = { } }; -export const InputListResult: msRest.CompositeMapper = { - serializedName: "InputListResult", +export const OperationListResult: msRest.CompositeMapper = { + serializedName: "OperationListResult", type: { name: "Composite", - className: "InputListResult", + className: "OperationListResult", modelProperties: { value: { readOnly: true, @@ -2334,7 +3661,7 @@ export const InputListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Input" + className: "Operation" } } } @@ -2350,11 +3677,11 @@ export const InputListResult: msRest.CompositeMapper = { } }; -export const OutputListResult: msRest.CompositeMapper = { - serializedName: "OutputListResult", +export const ClusterListResult: msRest.CompositeMapper = { + serializedName: "ClusterListResult", type: { name: "Composite", - className: "OutputListResult", + className: "ClusterListResult", modelProperties: { value: { readOnly: true, @@ -2364,7 +3691,7 @@ export const OutputListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Output" + className: "Cluster" } } } @@ -2380,11 +3707,11 @@ export const OutputListResult: msRest.CompositeMapper = { } }; -export const FunctionListResult: msRest.CompositeMapper = { - serializedName: "FunctionListResult", +export const ClusterJobListResult: msRest.CompositeMapper = { + serializedName: "ClusterJobListResult", type: { name: "Composite", - className: "FunctionListResult", + className: "ClusterJobListResult", modelProperties: { value: { readOnly: true, @@ -2394,7 +3721,37 @@ export const FunctionListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "FunctionModel" + className: "ClusterJob" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointListResult: msRest.CompositeMapper = { + serializedName: "PrivateEndpointListResult", + type: { + name: "Composite", + className: "PrivateEndpointListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpoint" } } } @@ -2411,36 +3768,48 @@ export const FunctionListResult: msRest.CompositeMapper = { }; export const discriminators = { - 'Serialization' : Serialization, - 'InputProperties' : InputProperties, - 'OutputDataSource' : OutputDataSource, - 'FunctionProperties' : FunctionProperties, - 'FunctionBinding.Microsoft.StreamAnalytics/JavascriptUdf' : JavaScriptFunctionBinding, - 'FunctionBinding.Microsoft.MachineLearning/WebService' : AzureMachineLearningWebServiceFunctionBinding, 'FunctionBinding' : FunctionBinding, + 'FunctionProperties' : FunctionProperties, 'FunctionProperties.Scalar' : ScalarFunctionProperties, - 'Serialization.Avro' : AvroSerialization, - 'Serialization.Json' : JsonSerialization, - 'Serialization.Csv' : CsvSerialization, - '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/Database' : AzureSqlDatabaseOutputDataSource, - 'OutputDataSource.Microsoft.ServiceBus/EventHub' : EventHubOutputDataSource, - 'OutputDataSource.Microsoft.Storage/Table' : AzureTableOutputDataSource, - 'OutputDataSource.Microsoft.Storage/Blob' : BlobOutputDataSource, - 'ReferenceInputDataSource.Microsoft.Storage/Blob' : BlobReferenceInputDataSource, + '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, 'ReferenceInputDataSource' : ReferenceInputDataSource, 'InputProperties.Reference' : ReferenceInputProperties, - 'StreamInputDataSource.Microsoft.Devices/IotHubs' : IoTHubStreamInputDataSource, - '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 + '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 }; diff --git a/sdk/streamanalytics/arm-streamanalytics/src/models/operationsMappers.ts b/sdk/streamanalytics/arm-streamanalytics/src/models/operationsMappers.ts index 65fc7dd1800a..1cf01eeef205 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/models/operationsMappers.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/models/operationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/streamanalytics/arm-streamanalytics/src/models/outputsMappers.ts b/sdk/streamanalytics/arm-streamanalytics/src/models/outputsMappers.ts index 2da53ff25c75..b6e62ffa6cf4 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/models/outputsMappers.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/models/outputsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,35 +8,55 @@ export { discriminators, + AggregateFunctionProperties, AvroSerialization, AzureDataLakeStoreOutputDataSource, - AzureMachineLearningWebServiceFunctionBinding, - AzureMachineLearningWebServiceInputColumn, - AzureMachineLearningWebServiceInputs, - AzureMachineLearningWebServiceOutputColumn, + AzureFunctionOutputDataSource, + AzureMachineLearningServiceFunctionBinding, + AzureMachineLearningServiceInputColumn, + AzureMachineLearningServiceOutputColumn, + AzureMachineLearningStudioFunctionBinding, + AzureMachineLearningStudioInputColumn, + AzureMachineLearningStudioInputs, + AzureMachineLearningStudioOutputColumn, AzureSqlDatabaseOutputDataSource, + AzureSqlReferenceInputDataSource, + AzureSqlReferenceInputDataSourceProperties, + AzureSynapseOutputDataSource, AzureTableOutputDataSource, BaseResource, BlobOutputDataSource, BlobReferenceInputDataSource, BlobStreamInputDataSource, CloudError, + Cluster, + ClusterInfo, + ClusterProperties, + ClusterSku, + Compression, + CSharpFunctionBinding, CsvSerialization, + CustomClrSerialization, DiagnosticCondition, Diagnostics, DocumentDbOutputDataSource, ErrorResponse, EventHubOutputDataSource, EventHubStreamInputDataSource, + EventHubV2OutputDataSource, + EventHubV2StreamInputDataSource, + External, FunctionBinding, FunctionInput, FunctionModel, FunctionOutput, FunctionProperties, + Identity, Input, InputProperties, IoTHubStreamInputDataSource, JavaScriptFunctionBinding, + JobStorageAccount, JsonSerialization, Output, OutputDataSource, @@ -44,7 +64,13 @@ export { OutputsCreateOrReplaceHeaders, OutputsGetHeaders, OutputsUpdateHeaders, + ParquetSerialization, PowerBIOutputDataSource, + PrivateEndpoint, + PrivateEndpointProperties, + PrivateLinkConnectionState, + PrivateLinkServiceConnection, + ProxyResource, ReferenceInputDataSource, ReferenceInputProperties, Resource, @@ -53,12 +79,13 @@ export { Serialization, ServiceBusQueueOutputDataSource, ServiceBusTopicOutputDataSource, - Sku, StorageAccount, StreamingJob, + StreamingJobSku, StreamInputDataSource, StreamInputProperties, SubResource, SubscriptionQuota, + TrackedResource, Transformation } from "../models/mappers"; diff --git a/sdk/streamanalytics/arm-streamanalytics/src/models/parameters.ts b/sdk/streamanalytics/arm-streamanalytics/src/models/parameters.ts index 9304d3dddba5..13854c895521 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/models/parameters.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/models/parameters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -20,11 +19,41 @@ export const acceptLanguage: msRest.OperationParameter = { } } }; -export const apiVersion: msRest.OperationQueryParameter = { +export const apiVersion0: 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 + }, + type: { + name: "String" + } + } +}; +export const clusterName: msRest.OperationURLParameter = { + parameterPath: "clusterName", + mapper: { + required: true, + serializedName: "clusterName", type: { name: "String" } @@ -127,11 +156,26 @@ export const outputName: msRest.OperationURLParameter = { } } }; +export const privateEndpointName: msRest.OperationURLParameter = { + parameterPath: "privateEndpointName", + mapper: { + required: true, + serializedName: "privateEndpointName", + type: { + name: "String" + } + } +}; export const resourceGroupName: msRest.OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { required: true, serializedName: "resourceGroupName", + constraints: { + MaxLength: 90, + MinLength: 1, + Pattern: /^[-\w\._\(\)]+$/ + }, type: { name: "String" } @@ -154,6 +198,9 @@ export const subscriptionId: msRest.OperationURLParameter = { mapper: { required: true, serializedName: "subscriptionId", + constraints: { + MinLength: 1 + }, type: { name: "String" } diff --git a/sdk/streamanalytics/arm-streamanalytics/src/models/privateEndpointsMappers.ts b/sdk/streamanalytics/arm-streamanalytics/src/models/privateEndpointsMappers.ts new file mode 100644 index 000000000000..a78d71313130 --- /dev/null +++ b/sdk/streamanalytics/arm-streamanalytics/src/models/privateEndpointsMappers.ts @@ -0,0 +1,88 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AggregateFunctionProperties, + AvroSerialization, + AzureDataLakeStoreOutputDataSource, + AzureFunctionOutputDataSource, + AzureMachineLearningServiceFunctionBinding, + AzureMachineLearningServiceInputColumn, + AzureMachineLearningServiceOutputColumn, + AzureMachineLearningStudioFunctionBinding, + AzureMachineLearningStudioInputColumn, + AzureMachineLearningStudioInputs, + AzureMachineLearningStudioOutputColumn, + AzureSqlDatabaseOutputDataSource, + AzureSqlReferenceInputDataSource, + AzureSqlReferenceInputDataSourceProperties, + AzureSynapseOutputDataSource, + AzureTableOutputDataSource, + BaseResource, + BlobOutputDataSource, + BlobReferenceInputDataSource, + BlobStreamInputDataSource, + Cluster, + ClusterInfo, + ClusterProperties, + ClusterSku, + Compression, + CSharpFunctionBinding, + CsvSerialization, + CustomClrSerialization, + DiagnosticCondition, + Diagnostics, + DocumentDbOutputDataSource, + ErrorDetails, + ErrorError, + ErrorModel, + EventHubOutputDataSource, + EventHubStreamInputDataSource, + EventHubV2OutputDataSource, + EventHubV2StreamInputDataSource, + External, + FunctionBinding, + FunctionInput, + FunctionModel, + FunctionOutput, + FunctionProperties, + Identity, + Input, + InputProperties, + IoTHubStreamInputDataSource, + JavaScriptFunctionBinding, + JobStorageAccount, + JsonSerialization, + Output, + OutputDataSource, + ParquetSerialization, + PowerBIOutputDataSource, + PrivateEndpoint, + PrivateEndpointListResult, + PrivateEndpointProperties, + PrivateLinkConnectionState, + PrivateLinkServiceConnection, + ProxyResource, + ReferenceInputDataSource, + ReferenceInputProperties, + Resource, + ScalarFunctionProperties, + Serialization, + ServiceBusQueueOutputDataSource, + ServiceBusTopicOutputDataSource, + StorageAccount, + StreamingJob, + StreamingJobSku, + StreamInputDataSource, + StreamInputProperties, + SubResource, + SubscriptionQuota, + TrackedResource, + Transformation +} from "../models/mappers"; diff --git a/sdk/streamanalytics/arm-streamanalytics/src/models/streamingJobsMappers.ts b/sdk/streamanalytics/arm-streamanalytics/src/models/streamingJobsMappers.ts index f46edca15416..707c1ef3bdad 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/models/streamingJobsMappers.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/models/streamingJobsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,38 +8,64 @@ export { discriminators, + AggregateFunctionProperties, AvroSerialization, AzureDataLakeStoreOutputDataSource, - AzureMachineLearningWebServiceFunctionBinding, - AzureMachineLearningWebServiceInputColumn, - AzureMachineLearningWebServiceInputs, - AzureMachineLearningWebServiceOutputColumn, + AzureFunctionOutputDataSource, + AzureMachineLearningServiceFunctionBinding, + AzureMachineLearningServiceInputColumn, + AzureMachineLearningServiceOutputColumn, + AzureMachineLearningStudioFunctionBinding, + AzureMachineLearningStudioInputColumn, + AzureMachineLearningStudioInputs, + AzureMachineLearningStudioOutputColumn, AzureSqlDatabaseOutputDataSource, + AzureSqlReferenceInputDataSource, + AzureSqlReferenceInputDataSourceProperties, + AzureSynapseOutputDataSource, AzureTableOutputDataSource, BaseResource, BlobOutputDataSource, BlobReferenceInputDataSource, BlobStreamInputDataSource, CloudError, + Cluster, + ClusterInfo, + ClusterProperties, + ClusterSku, + Compression, + CSharpFunctionBinding, CsvSerialization, + CustomClrSerialization, DiagnosticCondition, Diagnostics, DocumentDbOutputDataSource, EventHubOutputDataSource, EventHubStreamInputDataSource, + EventHubV2OutputDataSource, + EventHubV2StreamInputDataSource, + External, FunctionBinding, FunctionInput, FunctionModel, FunctionOutput, FunctionProperties, + Identity, Input, InputProperties, IoTHubStreamInputDataSource, JavaScriptFunctionBinding, + JobStorageAccount, JsonSerialization, Output, OutputDataSource, + ParquetSerialization, PowerBIOutputDataSource, + PrivateEndpoint, + PrivateEndpointProperties, + PrivateLinkConnectionState, + PrivateLinkServiceConnection, + ProxyResource, ReferenceInputDataSource, ReferenceInputProperties, Resource, @@ -47,17 +73,18 @@ export { Serialization, ServiceBusQueueOutputDataSource, ServiceBusTopicOutputDataSource, - Sku, StartStreamingJobParameters, StorageAccount, StreamingJob, StreamingJobListResult, StreamingJobsCreateOrReplaceHeaders, StreamingJobsGetHeaders, + StreamingJobSku, StreamingJobsUpdateHeaders, StreamInputDataSource, StreamInputProperties, SubResource, SubscriptionQuota, + TrackedResource, Transformation } from "../models/mappers"; diff --git a/sdk/streamanalytics/arm-streamanalytics/src/models/subscriptionsMappers.ts b/sdk/streamanalytics/arm-streamanalytics/src/models/subscriptionsMappers.ts index 8aba592aa1c8..fa584c6bd5fd 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/models/subscriptionsMappers.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/models/subscriptionsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,38 +8,64 @@ export { discriminators, + AggregateFunctionProperties, AvroSerialization, AzureDataLakeStoreOutputDataSource, - AzureMachineLearningWebServiceFunctionBinding, - AzureMachineLearningWebServiceInputColumn, - AzureMachineLearningWebServiceInputs, - AzureMachineLearningWebServiceOutputColumn, + AzureFunctionOutputDataSource, + AzureMachineLearningServiceFunctionBinding, + AzureMachineLearningServiceInputColumn, + AzureMachineLearningServiceOutputColumn, + AzureMachineLearningStudioFunctionBinding, + AzureMachineLearningStudioInputColumn, + AzureMachineLearningStudioInputs, + AzureMachineLearningStudioOutputColumn, AzureSqlDatabaseOutputDataSource, + AzureSqlReferenceInputDataSource, + AzureSqlReferenceInputDataSourceProperties, + AzureSynapseOutputDataSource, AzureTableOutputDataSource, BaseResource, BlobOutputDataSource, BlobReferenceInputDataSource, BlobStreamInputDataSource, CloudError, + Cluster, + ClusterInfo, + ClusterProperties, + ClusterSku, + Compression, + CSharpFunctionBinding, CsvSerialization, + CustomClrSerialization, DiagnosticCondition, Diagnostics, DocumentDbOutputDataSource, EventHubOutputDataSource, EventHubStreamInputDataSource, + EventHubV2OutputDataSource, + EventHubV2StreamInputDataSource, + External, FunctionBinding, FunctionInput, FunctionModel, FunctionOutput, FunctionProperties, + Identity, Input, InputProperties, IoTHubStreamInputDataSource, JavaScriptFunctionBinding, + JobStorageAccount, JsonSerialization, Output, OutputDataSource, + ParquetSerialization, PowerBIOutputDataSource, + PrivateEndpoint, + PrivateEndpointProperties, + PrivateLinkConnectionState, + PrivateLinkServiceConnection, + ProxyResource, ReferenceInputDataSource, ReferenceInputProperties, Resource, @@ -47,13 +73,14 @@ export { Serialization, ServiceBusQueueOutputDataSource, ServiceBusTopicOutputDataSource, - Sku, StorageAccount, StreamingJob, + StreamingJobSku, StreamInputDataSource, StreamInputProperties, SubResource, SubscriptionQuota, SubscriptionQuotasListResult, + TrackedResource, Transformation } from "../models/mappers"; diff --git a/sdk/streamanalytics/arm-streamanalytics/src/models/transformationsMappers.ts b/sdk/streamanalytics/arm-streamanalytics/src/models/transformationsMappers.ts index 24e56f320ca8..b985cb821ba5 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/models/transformationsMappers.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/models/transformationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,38 +8,64 @@ export { discriminators, + AggregateFunctionProperties, AvroSerialization, AzureDataLakeStoreOutputDataSource, - AzureMachineLearningWebServiceFunctionBinding, - AzureMachineLearningWebServiceInputColumn, - AzureMachineLearningWebServiceInputs, - AzureMachineLearningWebServiceOutputColumn, + AzureFunctionOutputDataSource, + AzureMachineLearningServiceFunctionBinding, + AzureMachineLearningServiceInputColumn, + AzureMachineLearningServiceOutputColumn, + AzureMachineLearningStudioFunctionBinding, + AzureMachineLearningStudioInputColumn, + AzureMachineLearningStudioInputs, + AzureMachineLearningStudioOutputColumn, AzureSqlDatabaseOutputDataSource, + AzureSqlReferenceInputDataSource, + AzureSqlReferenceInputDataSourceProperties, + AzureSynapseOutputDataSource, AzureTableOutputDataSource, BaseResource, BlobOutputDataSource, BlobReferenceInputDataSource, BlobStreamInputDataSource, CloudError, + Cluster, + ClusterInfo, + ClusterProperties, + ClusterSku, + Compression, + CSharpFunctionBinding, CsvSerialization, + CustomClrSerialization, DiagnosticCondition, Diagnostics, DocumentDbOutputDataSource, EventHubOutputDataSource, EventHubStreamInputDataSource, + EventHubV2OutputDataSource, + EventHubV2StreamInputDataSource, + External, FunctionBinding, FunctionInput, FunctionModel, FunctionOutput, FunctionProperties, + Identity, Input, InputProperties, IoTHubStreamInputDataSource, JavaScriptFunctionBinding, + JobStorageAccount, JsonSerialization, Output, OutputDataSource, + ParquetSerialization, PowerBIOutputDataSource, + PrivateEndpoint, + PrivateEndpointProperties, + PrivateLinkConnectionState, + PrivateLinkServiceConnection, + ProxyResource, ReferenceInputDataSource, ReferenceInputProperties, Resource, @@ -47,13 +73,14 @@ export { Serialization, ServiceBusQueueOutputDataSource, ServiceBusTopicOutputDataSource, - Sku, StorageAccount, StreamingJob, + StreamingJobSku, StreamInputDataSource, StreamInputProperties, SubResource, SubscriptionQuota, + TrackedResource, Transformation, TransformationsCreateOrReplaceHeaders, TransformationsGetHeaders, diff --git a/sdk/streamanalytics/arm-streamanalytics/src/operations/clusters.ts b/sdk/streamanalytics/arm-streamanalytics/src/operations/clusters.ts new file mode 100644 index 000000000000..f850e9fd9371 --- /dev/null +++ b/sdk/streamanalytics/arm-streamanalytics/src/operations/clusters.ts @@ -0,0 +1,597 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/clustersMappers"; +import * as Parameters from "../models/parameters"; +import { StreamAnalyticsManagementClientContext } from "../streamAnalyticsManagementClientContext"; + +/** Class representing a Clusters. */ +export class Clusters { + private readonly client: StreamAnalyticsManagementClientContext; + + /** + * Create a Clusters. + * @param {StreamAnalyticsManagementClientContext} client Reference to the service client. + */ + constructor(client: StreamAnalyticsManagementClientContext) { + this.client = client; + } + + /** + * Creates a Stream Analytics Cluster or replaces an already existing cluster. + * @param cluster The definition of the cluster that will be used to create a new cluster or + * replace the existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(cluster: Models.Cluster, resourceGroupName: string, clusterName: string, options?: Models.ClustersCreateOrUpdateOptionalParams): Promise { + return this.beginCreateOrUpdate(cluster,resourceGroupName,clusterName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Updates an existing cluster. This can be used to partially update (ie. update one or two + * properties) a cluster without affecting the rest of the cluster definition. + * @param cluster The properties specified here will overwrite the corresponding properties in the + * existing cluster (ie. Those properties will be updated). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param [options] The optional parameters + * @returns Promise + */ + update(cluster: Models.Cluster, resourceGroupName: string, clusterName: string, options?: Models.ClustersUpdateOptionalParams): Promise { + return this.beginUpdate(cluster,resourceGroupName,clusterName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets information about the specified cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param callback The callback + */ + get(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + clusterName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Deletes the specified cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,clusterName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Lists all of the clusters in the given subscription. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscription(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listBySubscription(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listBySubscription(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscription(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listBySubscriptionOperationSpec, + callback) as Promise; + } + + /** + * Lists all of the clusters in the given resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * Lists all of the streaming jobs in the given cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param [options] The optional parameters + * @returns Promise + */ + listStreamingJobs(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param callback The callback + */ + listStreamingJobs(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param options The optional parameters + * @param callback The callback + */ + listStreamingJobs(resourceGroupName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listStreamingJobs(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + clusterName, + options + }, + listStreamingJobsOperationSpec, + callback) as Promise; + } + + /** + * Creates a Stream Analytics Cluster or replaces an already existing cluster. + * @param cluster The definition of the cluster that will be used to create a new cluster or + * replace the existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(cluster: Models.Cluster, resourceGroupName: string, clusterName: string, options?: Models.ClustersBeginCreateOrUpdateOptionalParams): Promise { + return this.client.sendLRORequest( + { + cluster, + resourceGroupName, + clusterName, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Updates an existing cluster. This can be used to partially update (ie. update one or two + * properties) a cluster without affecting the rest of the cluster definition. + * @param cluster The properties specified here will overwrite the corresponding properties in the + * existing cluster (ie. Those properties will be updated). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(cluster: Models.Cluster, resourceGroupName: string, clusterName: string, options?: Models.ClustersBeginUpdateOptionalParams): Promise { + return this.client.sendLRORequest( + { + cluster, + resourceGroupName, + clusterName, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * Deletes the specified cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + clusterName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Lists all of the clusters in the given subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listBySubscriptionNextOperationSpec, + callback) as Promise; + } + + /** + * Lists all of the clusters in the given resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupNextOperationSpec, + callback) as Promise; + } + + /** + * Lists all of the streaming jobs in the given cluster. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listStreamingJobsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listStreamingJobsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listStreamingJobsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listStreamingJobsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listStreamingJobsNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/clusters/{clusterName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Cluster + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const listBySubscriptionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.StreamAnalytics/clusters", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ClusterListResult + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/clusters", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ClusterListResult + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const listStreamingJobsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/clusters/{clusterName}/listStreamingJobs", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ClusterJobListResult + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/clusters/{clusterName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.ifMatch, + Parameters.ifNoneMatch, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "cluster", + mapper: { + ...Mappers.Cluster, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Cluster + }, + 201: { + bodyMapper: Mappers.Cluster + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/clusters/{clusterName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.ifMatch, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "cluster", + mapper: { + ...Mappers.Cluster, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Cluster + }, + 202: {}, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/clusters/{clusterName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ClusterListResult + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ClusterListResult + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const listStreamingJobsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ClusterJobListResult + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; diff --git a/sdk/streamanalytics/arm-streamanalytics/src/operations/functions.ts b/sdk/streamanalytics/arm-streamanalytics/src/operations/functions.ts index dfb226dfad85..98b7a81f248b 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/operations/functions.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/operations/functions.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -31,8 +30,7 @@ export class Functions { * Creates a function or replaces an already existing function under an existing streaming job. * @param functionParameter The definition of the function that will be used to create a new * function or replace the existing one under the streaming job. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param functionName The name of the function. * @param [options] The optional parameters @@ -42,8 +40,7 @@ export class Functions { /** * @param functionParameter The definition of the function that will be used to create a new * function or replace the existing one under the streaming job. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param functionName The name of the function. * @param callback The callback @@ -52,8 +49,7 @@ export class Functions { /** * @param functionParameter The definition of the function that will be used to create a new * function or replace the existing one under the streaming job. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param functionName The name of the function. * @param options The optional parameters @@ -81,8 +77,7 @@ export class Functions { * corresponding properties in the existing function (ie. Those properties will be updated). Any * properties that are set to null here will mean that the corresponding property in the existing * function will remain the same and not change as a result of this PATCH operation. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param functionName The name of the function. * @param [options] The optional parameters @@ -94,8 +89,7 @@ export class Functions { * corresponding properties in the existing function (ie. Those properties will be updated). Any * properties that are set to null here will mean that the corresponding property in the existing * function will remain the same and not change as a result of this PATCH operation. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param functionName The name of the function. * @param callback The callback @@ -106,8 +100,7 @@ export class Functions { * corresponding properties in the existing function (ie. Those properties will be updated). Any * properties that are set to null here will mean that the corresponding property in the existing * function will remain the same and not change as a result of this PATCH operation. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param functionName The name of the function. * @param options The optional parameters @@ -129,8 +122,7 @@ export class Functions { /** * Deletes a function from the streaming job. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param functionName The name of the function. * @param [options] The optional parameters @@ -138,16 +130,14 @@ export class Functions { */ deleteMethod(resourceGroupName: string, jobName: string, functionName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param functionName The name of the function. * @param callback The callback */ deleteMethod(resourceGroupName: string, jobName: string, functionName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param functionName The name of the function. * @param options The optional parameters @@ -168,8 +158,7 @@ export class Functions { /** * Gets details about the specified function. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param functionName The name of the function. * @param [options] The optional parameters @@ -177,16 +166,14 @@ export class Functions { */ get(resourceGroupName: string, jobName: string, functionName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param functionName The name of the function. * @param callback The callback */ get(resourceGroupName: string, jobName: string, functionName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param functionName The name of the function. * @param options The optional parameters @@ -207,23 +194,20 @@ export class Functions { /** * Lists all of the functions under the specified streaming job. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @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 */ listByStreamingJob(resourceGroupName: string, jobName: string, options?: Models.FunctionsListByStreamingJobOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param callback The callback */ listByStreamingJob(resourceGroupName: string, jobName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @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 * @param callback The callback @@ -244,8 +228,7 @@ export class Functions { * Tests if the information provided for a function is valid. This can range from testing the * connection to the underlying web service behind the function or making sure the function code * provided is syntactically correct. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param functionName The name of the function. * @param [options] The optional parameters @@ -258,8 +241,7 @@ export class Functions { /** * Retrieves the default definition of a function based on the parameters specified. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param functionName The name of the function. * @param [options] The optional parameters @@ -267,16 +249,14 @@ export class Functions { */ retrieveDefaultDefinition(resourceGroupName: string, jobName: string, functionName: string, options?: Models.FunctionsRetrieveDefaultDefinitionOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param functionName The name of the function. * @param callback The callback */ retrieveDefaultDefinition(resourceGroupName: string, jobName: string, functionName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param functionName The name of the function. * @param options The optional parameters @@ -299,8 +279,7 @@ export class Functions { * Tests if the information provided for a function is valid. This can range from testing the * connection to the underlying web service behind the function or making sure the function code * provided is syntactically correct. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param functionName The name of the function. * @param [options] The optional parameters @@ -324,7 +303,7 @@ export class Functions { * @param [options] The optional parameters * @returns Promise */ - listByStreamingJobNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByStreamingJobNext(nextPageLink: string, options?: Models.FunctionsListByStreamingJobNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -335,8 +314,8 @@ export class Functions { * @param options The optional parameters * @param callback The callback */ - listByStreamingJobNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByStreamingJobNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByStreamingJobNext(nextPageLink: string, options: Models.FunctionsListByStreamingJobNextOptionalParams, callback: msRest.ServiceCallback): void; + listByStreamingJobNext(nextPageLink: string, options?: Models.FunctionsListByStreamingJobNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -359,7 +338,7 @@ const createOrReplaceOperationSpec: msRest.OperationSpec = { Parameters.functionName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.ifMatch, @@ -383,7 +362,8 @@ const createOrReplaceOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.FunctionsCreateOrReplaceHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.FunctionsCreateOrReplaceHeaders } }, serializer @@ -399,7 +379,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.functionName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.ifMatch, @@ -418,7 +398,8 @@ const updateOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.FunctionsUpdateHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.FunctionsUpdateHeaders } }, serializer @@ -434,7 +415,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.functionName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -459,7 +440,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.functionName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -470,7 +451,8 @@ const getOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.FunctionsGetHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.FunctionsGetHeaders } }, serializer @@ -486,7 +468,7 @@ const listByStreamingJobOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.select, - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -512,7 +494,7 @@ const retrieveDefaultDefinitionOperationSpec: msRest.OperationSpec = { Parameters.functionName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -545,7 +527,7 @@ const beginTestOperationSpec: msRest.OperationSpec = { Parameters.functionName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -576,6 +558,10 @@ const listByStreamingJobNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.select, + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/streamanalytics/arm-streamanalytics/src/operations/index.ts b/sdk/streamanalytics/arm-streamanalytics/src/operations/index.ts index f3826bd21bf0..9b057ba5e9f6 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/operations/index.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/operations/index.ts @@ -1,17 +1,18 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ -export * from "./operations"; -export * from "./streamingJobs"; +export * from "./functions"; export * from "./inputs"; export * from "./outputs"; -export * from "./transformations"; -export * from "./functions"; +export * from "./streamingJobs"; export * from "./subscriptions"; +export * from "./transformations"; +export * from "./operations"; +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 76c73c50aeb9..a8ab680d6f2f 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/operations/inputs.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/operations/inputs.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -31,8 +30,7 @@ export class Inputs { * Creates an input or replaces an already existing input under an existing streaming job. * @param input The definition of the input that will be used to create a new input or replace the * existing one under the streaming job. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param inputName The name of the input. * @param [options] The optional parameters @@ -42,8 +40,7 @@ export class Inputs { /** * @param input The definition of the input that will be used to create a new input or replace the * existing one under the streaming job. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param inputName The name of the input. * @param callback The callback @@ -52,8 +49,7 @@ export class Inputs { /** * @param input The definition of the input that will be used to create a new input or replace the * existing one under the streaming job. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param inputName The name of the input. * @param options The optional parameters @@ -81,8 +77,7 @@ export class Inputs { * properties in the existing input (ie. Those properties will be updated). Any properties that are * set to null here will mean that the corresponding property in the existing input will remain the * same and not change as a result of this PATCH operation. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param inputName The name of the input. * @param [options] The optional parameters @@ -94,8 +89,7 @@ export class Inputs { * properties in the existing input (ie. Those properties will be updated). Any properties that are * set to null here will mean that the corresponding property in the existing input will remain the * same and not change as a result of this PATCH operation. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param inputName The name of the input. * @param callback The callback @@ -106,8 +100,7 @@ export class Inputs { * properties in the existing input (ie. Those properties will be updated). Any properties that are * set to null here will mean that the corresponding property in the existing input will remain the * same and not change as a result of this PATCH operation. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param inputName The name of the input. * @param options The optional parameters @@ -129,8 +122,7 @@ export class Inputs { /** * Deletes an input from the streaming job. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param inputName The name of the input. * @param [options] The optional parameters @@ -138,16 +130,14 @@ export class Inputs { */ deleteMethod(resourceGroupName: string, jobName: string, inputName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param inputName The name of the input. * @param callback The callback */ deleteMethod(resourceGroupName: string, jobName: string, inputName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param inputName The name of the input. * @param options The optional parameters @@ -168,8 +158,7 @@ export class Inputs { /** * Gets details about the specified input. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param inputName The name of the input. * @param [options] The optional parameters @@ -177,16 +166,14 @@ export class Inputs { */ get(resourceGroupName: string, jobName: string, inputName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param inputName The name of the input. * @param callback The callback */ get(resourceGroupName: string, jobName: string, inputName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param inputName The name of the input. * @param options The optional parameters @@ -207,23 +194,20 @@ export class Inputs { /** * Lists all of the inputs under the specified streaming job. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @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 */ listByStreamingJob(resourceGroupName: string, jobName: string, options?: Models.InputsListByStreamingJobOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param callback The callback */ listByStreamingJob(resourceGroupName: string, jobName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @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 * @param callback The callback @@ -243,8 +227,7 @@ export class Inputs { /** * Tests whether an input’s datasource is reachable and usable by the Azure Stream Analytics * service. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param inputName The name of the input. * @param [options] The optional parameters @@ -258,8 +241,7 @@ export class Inputs { /** * Tests whether an input’s datasource is reachable and usable by the Azure Stream Analytics * service. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param inputName The name of the input. * @param [options] The optional parameters @@ -283,7 +265,7 @@ export class Inputs { * @param [options] The optional parameters * @returns Promise */ - listByStreamingJobNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByStreamingJobNext(nextPageLink: string, options?: Models.InputsListByStreamingJobNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -294,8 +276,8 @@ export class Inputs { * @param options The optional parameters * @param callback The callback */ - listByStreamingJobNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByStreamingJobNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByStreamingJobNext(nextPageLink: string, options: Models.InputsListByStreamingJobNextOptionalParams, callback: msRest.ServiceCallback): void; + listByStreamingJobNext(nextPageLink: string, options?: Models.InputsListByStreamingJobNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -318,7 +300,7 @@ const createOrReplaceOperationSpec: msRest.OperationSpec = { Parameters.inputName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.ifMatch, @@ -342,7 +324,8 @@ const createOrReplaceOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.InputsCreateOrReplaceHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.InputsCreateOrReplaceHeaders } }, serializer @@ -358,7 +341,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.inputName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.ifMatch, @@ -377,7 +360,8 @@ const updateOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.InputsUpdateHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.InputsUpdateHeaders } }, serializer @@ -393,7 +377,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.inputName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -418,7 +402,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.inputName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -429,7 +413,8 @@ const getOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.InputsGetHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.InputsGetHeaders } }, serializer @@ -445,7 +430,7 @@ const listByStreamingJobOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.select, - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -471,7 +456,7 @@ const beginTestOperationSpec: msRest.OperationSpec = { Parameters.inputName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -502,6 +487,10 @@ const listByStreamingJobNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.select, + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/streamanalytics/arm-streamanalytics/src/operations/operations.ts b/sdk/streamanalytics/arm-streamanalytics/src/operations/operations.ts index cb991f763fc5..1d5b82af8451 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/operations/operations.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/operations/operations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -85,7 +84,7 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "providers/Microsoft.StreamAnalytics/operations", queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -108,6 +107,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/streamanalytics/arm-streamanalytics/src/operations/outputs.ts b/sdk/streamanalytics/arm-streamanalytics/src/operations/outputs.ts index b342ddef09cb..010e28d56d11 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/operations/outputs.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/operations/outputs.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -31,8 +30,7 @@ export class Outputs { * Creates an output or replaces an already existing output under an existing streaming job. * @param output The definition of the output that will be used to create a new output or replace * the existing one under the streaming job. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param outputName The name of the output. * @param [options] The optional parameters @@ -42,8 +40,7 @@ export class Outputs { /** * @param output The definition of the output that will be used to create a new output or replace * the existing one under the streaming job. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param outputName The name of the output. * @param callback The callback @@ -52,8 +49,7 @@ export class Outputs { /** * @param output The definition of the output that will be used to create a new output or replace * the existing one under the streaming job. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param outputName The name of the output. * @param options The optional parameters @@ -81,8 +77,7 @@ export class Outputs { * properties in the existing output (ie. Those properties will be updated). Any properties that * are set to null here will mean that the corresponding property in the existing output will * remain the same and not change as a result of this PATCH operation. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param outputName The name of the output. * @param [options] The optional parameters @@ -94,8 +89,7 @@ export class Outputs { * properties in the existing output (ie. Those properties will be updated). Any properties that * are set to null here will mean that the corresponding property in the existing output will * remain the same and not change as a result of this PATCH operation. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param outputName The name of the output. * @param callback The callback @@ -106,8 +100,7 @@ export class Outputs { * properties in the existing output (ie. Those properties will be updated). Any properties that * are set to null here will mean that the corresponding property in the existing output will * remain the same and not change as a result of this PATCH operation. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param outputName The name of the output. * @param options The optional parameters @@ -129,8 +122,7 @@ export class Outputs { /** * Deletes an output from the streaming job. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param outputName The name of the output. * @param [options] The optional parameters @@ -138,16 +130,14 @@ export class Outputs { */ deleteMethod(resourceGroupName: string, jobName: string, outputName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param outputName The name of the output. * @param callback The callback */ deleteMethod(resourceGroupName: string, jobName: string, outputName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param outputName The name of the output. * @param options The optional parameters @@ -168,8 +158,7 @@ export class Outputs { /** * Gets details about the specified output. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param outputName The name of the output. * @param [options] The optional parameters @@ -177,16 +166,14 @@ export class Outputs { */ get(resourceGroupName: string, jobName: string, outputName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param outputName The name of the output. * @param callback The callback */ get(resourceGroupName: string, jobName: string, outputName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param outputName The name of the output. * @param options The optional parameters @@ -207,23 +194,20 @@ export class Outputs { /** * Lists all of the outputs under the specified streaming job. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @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 */ listByStreamingJob(resourceGroupName: string, jobName: string, options?: Models.OutputsListByStreamingJobOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param callback The callback */ listByStreamingJob(resourceGroupName: string, jobName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @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 * @param callback The callback @@ -243,8 +227,7 @@ export class Outputs { /** * Tests whether an output’s datasource is reachable and usable by the Azure Stream Analytics * service. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param outputName The name of the output. * @param [options] The optional parameters @@ -258,8 +241,7 @@ export class Outputs { /** * Tests whether an output’s datasource is reachable and usable by the Azure Stream Analytics * service. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param outputName The name of the output. * @param [options] The optional parameters @@ -283,7 +265,7 @@ export class Outputs { * @param [options] The optional parameters * @returns Promise */ - listByStreamingJobNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByStreamingJobNext(nextPageLink: string, options?: Models.OutputsListByStreamingJobNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -294,8 +276,8 @@ export class Outputs { * @param options The optional parameters * @param callback The callback */ - listByStreamingJobNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByStreamingJobNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByStreamingJobNext(nextPageLink: string, options: Models.OutputsListByStreamingJobNextOptionalParams, callback: msRest.ServiceCallback): void; + listByStreamingJobNext(nextPageLink: string, options?: Models.OutputsListByStreamingJobNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -318,7 +300,7 @@ const createOrReplaceOperationSpec: msRest.OperationSpec = { Parameters.outputName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.ifMatch, @@ -342,7 +324,8 @@ const createOrReplaceOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.OutputsCreateOrReplaceHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.OutputsCreateOrReplaceHeaders } }, serializer @@ -358,7 +341,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.outputName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.ifMatch, @@ -377,7 +360,8 @@ const updateOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.OutputsUpdateHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.OutputsUpdateHeaders } }, serializer @@ -393,7 +377,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.outputName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -418,7 +402,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.outputName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -429,7 +413,8 @@ const getOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.OutputsGetHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.OutputsGetHeaders } }, serializer @@ -445,7 +430,7 @@ const listByStreamingJobOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.select, - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -471,7 +456,7 @@ const beginTestOperationSpec: msRest.OperationSpec = { Parameters.outputName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -502,6 +487,10 @@ const listByStreamingJobNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.select, + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/streamanalytics/arm-streamanalytics/src/operations/privateEndpoints.ts b/sdk/streamanalytics/arm-streamanalytics/src/operations/privateEndpoints.ts new file mode 100644 index 000000000000..a4a8585ba86a --- /dev/null +++ b/sdk/streamanalytics/arm-streamanalytics/src/operations/privateEndpoints.ts @@ -0,0 +1,341 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/privateEndpointsMappers"; +import * as Parameters from "../models/parameters"; +import { StreamAnalyticsManagementClientContext } from "../streamAnalyticsManagementClientContext"; + +/** Class representing a PrivateEndpoints. */ +export class PrivateEndpoints { + private readonly client: StreamAnalyticsManagementClientContext; + + /** + * Create a PrivateEndpoints. + * @param {StreamAnalyticsManagementClientContext} client Reference to the service client. + */ + constructor(client: StreamAnalyticsManagementClientContext) { + this.client = client; + } + + /** + * Creates a Stream Analytics Private Endpoint or replaces an already existing Private Endpoint. + * @param privateEndpoint The definition of the private endpoint that will be used to create a new + * cluster or replace the existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param privateEndpointName The name of the private endpoint. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(privateEndpoint: Models.PrivateEndpoint, resourceGroupName: string, clusterName: string, privateEndpointName: string, options?: Models.PrivateEndpointsCreateOrUpdateOptionalParams): Promise; + /** + * @param privateEndpoint The definition of the private endpoint that will be used to create a new + * cluster or replace the existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param privateEndpointName The name of the private endpoint. + * @param callback The callback + */ + createOrUpdate(privateEndpoint: Models.PrivateEndpoint, resourceGroupName: string, clusterName: string, privateEndpointName: string, callback: msRest.ServiceCallback): void; + /** + * @param privateEndpoint The definition of the private endpoint that will be used to create a new + * cluster or replace the existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param privateEndpointName The name of the private endpoint. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(privateEndpoint: Models.PrivateEndpoint, resourceGroupName: string, clusterName: string, privateEndpointName: string, options: Models.PrivateEndpointsCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(privateEndpoint: Models.PrivateEndpoint, resourceGroupName: string, clusterName: string, privateEndpointName: string, options?: Models.PrivateEndpointsCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + privateEndpoint, + resourceGroupName, + clusterName, + privateEndpointName, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Gets information about the specified Private Endpoint. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param privateEndpointName The name of the private endpoint. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, clusterName: string, privateEndpointName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param privateEndpointName The name of the private endpoint. + * @param callback The callback + */ + get(resourceGroupName: string, clusterName: string, privateEndpointName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param privateEndpointName The name of the private endpoint. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, clusterName: string, privateEndpointName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, clusterName: string, privateEndpointName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + clusterName, + privateEndpointName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Delete the specified private endpoint. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param privateEndpointName The name of the private endpoint. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, clusterName: string, privateEndpointName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,clusterName,privateEndpointName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Lists the private endpoints in the cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param [options] The optional parameters + * @returns Promise + */ + listByCluster(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param callback The callback + */ + listByCluster(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param options The optional parameters + * @param callback The callback + */ + listByCluster(resourceGroupName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByCluster(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + clusterName, + options + }, + listByClusterOperationSpec, + callback) as Promise; + } + + /** + * Delete the specified private endpoint. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param privateEndpointName The name of the private endpoint. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, clusterName: string, privateEndpointName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + clusterName, + privateEndpointName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Lists the private endpoints in the cluster. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByClusterNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByClusterNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByClusterNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByClusterNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByClusterNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/clusters/{clusterName}/privateEndpoints/{privateEndpointName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, + Parameters.privateEndpointName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.ifMatch, + Parameters.ifNoneMatch, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "privateEndpoint", + mapper: { + ...Mappers.PrivateEndpoint, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpoint + }, + 201: { + bodyMapper: Mappers.PrivateEndpoint + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/clusters/{clusterName}/privateEndpoints/{privateEndpointName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, + Parameters.privateEndpointName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpoint + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const listByClusterOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/clusters/{clusterName}/privateEndpoints", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointListResult + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/clusters/{clusterName}/privateEndpoints/{privateEndpointName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, + Parameters.privateEndpointName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const listByClusterNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointListResult + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; diff --git a/sdk/streamanalytics/arm-streamanalytics/src/operations/streamingJobs.ts b/sdk/streamanalytics/arm-streamanalytics/src/operations/streamingJobs.ts index fe6f5010f3c3..4d3beadf7014 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/operations/streamingJobs.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/operations/streamingJobs.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -31,8 +30,7 @@ export class StreamingJobs { * 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 * streaming job or replace the existing one. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @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 @@ -49,8 +47,7 @@ export class StreamingJobs { * corresponding properties in the existing streaming job (ie. Those properties will be updated). * Any properties that are set to null here will mean that the corresponding property in the * existing input will remain the same and not change as a result of this PATCH operation. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @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 @@ -61,8 +58,7 @@ export class StreamingJobs { * corresponding properties in the existing streaming job (ie. Those properties will be updated). * Any properties that are set to null here will mean that the corresponding property in the * existing input will remain the same and not change as a result of this PATCH operation. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param callback The callback */ @@ -72,8 +68,7 @@ export class StreamingJobs { * corresponding properties in the existing streaming job (ie. Those properties will be updated). * Any properties that are set to null here will mean that the corresponding property in the * existing input will remain the same and not change as a result of this PATCH operation. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @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 * @param callback The callback @@ -93,8 +88,7 @@ export class StreamingJobs { /** * Deletes a streaming job. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @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 @@ -106,23 +100,20 @@ export class StreamingJobs { /** * Gets details about the specified streaming job. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @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 */ get(resourceGroupName: string, jobName: string, options?: Models.StreamingJobsGetOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param callback The callback */ get(resourceGroupName: string, jobName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @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 * @param callback The callback @@ -141,21 +132,18 @@ export class StreamingJobs { /** * Lists all of the streaming jobs in the specified resource group. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param [options] The optional parameters * @returns Promise */ listByResourceGroup(resourceGroupName: string, options?: Models.StreamingJobsListByResourceGroupOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param callback The callback */ listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The optional parameters * @param callback The callback */ @@ -197,8 +185,7 @@ export class StreamingJobs { /** * Starts a streaming job. Once a job is started it will start processing input events and produce * output. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @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 @@ -211,8 +198,7 @@ export class StreamingJobs { /** * Stops a running streaming job. This will cause a running streaming job to stop processing input * events and producing output. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @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 @@ -226,8 +212,7 @@ export class StreamingJobs { * 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 * streaming job or replace the existing one. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @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 @@ -246,8 +231,7 @@ export class StreamingJobs { /** * Deletes a streaming job. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @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 @@ -266,8 +250,7 @@ export class StreamingJobs { /** * Starts a streaming job. Once a job is started it will start processing input events and produce * output. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @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 @@ -286,8 +269,7 @@ export class StreamingJobs { /** * Stops a running streaming job. This will cause a running streaming job to stop processing input * events and producing output. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @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 @@ -309,7 +291,7 @@ export class StreamingJobs { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByResourceGroupNext(nextPageLink: string, options?: Models.StreamingJobsListByResourceGroupNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -320,8 +302,8 @@ export class StreamingJobs { * @param options The optional parameters * @param callback The callback */ - listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupNext(nextPageLink: string, options: Models.StreamingJobsListByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: Models.StreamingJobsListByResourceGroupNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -337,7 +319,7 @@ export class StreamingJobs { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.StreamingJobsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -348,8 +330,8 @@ export class StreamingJobs { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.StreamingJobsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.StreamingJobsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -371,7 +353,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.jobName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.ifMatch, @@ -390,7 +372,8 @@ const updateOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.StreamingJobsUpdateHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.StreamingJobsUpdateHeaders } }, serializer @@ -406,7 +389,7 @@ const getOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.expand, - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -417,7 +400,8 @@ const getOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.StreamingJobsGetHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.StreamingJobsGetHeaders } }, serializer @@ -432,7 +416,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.expand, - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -456,7 +440,7 @@ const listOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.expand, - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -481,7 +465,7 @@ const beginCreateOrReplaceOperationSpec: msRest.OperationSpec = { Parameters.jobName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.ifMatch, @@ -505,7 +489,8 @@ const beginCreateOrReplaceOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.StreamingJobsCreateOrReplaceHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.StreamingJobsCreateOrReplaceHeaders } }, serializer @@ -520,7 +505,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.jobName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -545,7 +530,7 @@ const beginStartOperationSpec: msRest.OperationSpec = { Parameters.jobName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -576,7 +561,7 @@ const beginStopOperationSpec: msRest.OperationSpec = { Parameters.jobName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -598,6 +583,10 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.expand, + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -619,6 +608,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.expand, + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/streamanalytics/arm-streamanalytics/src/operations/subscriptions.ts b/sdk/streamanalytics/arm-streamanalytics/src/operations/subscriptions.ts index c11387981c72..ad6d97775975 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/operations/subscriptions.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/operations/subscriptions.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -71,7 +70,7 @@ const listQuotasOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/streamanalytics/arm-streamanalytics/src/operations/transformations.ts b/sdk/streamanalytics/arm-streamanalytics/src/operations/transformations.ts index 99f1290edb8d..1ff76b4ca508 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/operations/transformations.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/operations/transformations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -31,8 +30,7 @@ export class Transformations { * streaming job. * @param transformation The definition of the transformation that will be used to create a new * transformation or replace the existing one under the streaming job. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param transformationName The name of the transformation. * @param [options] The optional parameters @@ -42,8 +40,7 @@ export class Transformations { /** * @param transformation The definition of the transformation that will be used to create a new * transformation or replace the existing one under the streaming job. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param transformationName The name of the transformation. * @param callback The callback @@ -52,8 +49,7 @@ export class Transformations { /** * @param transformation The definition of the transformation that will be used to create a new * transformation or replace the existing one under the streaming job. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param transformationName The name of the transformation. * @param options The optional parameters @@ -81,8 +77,7 @@ export class Transformations { * corresponding properties in the existing transformation (ie. Those properties will be updated). * Any properties that are set to null here will mean that the corresponding property in the * existing transformation will remain the same and not change as a result of this PATCH operation. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param transformationName The name of the transformation. * @param [options] The optional parameters @@ -94,8 +89,7 @@ export class Transformations { * corresponding properties in the existing transformation (ie. Those properties will be updated). * Any properties that are set to null here will mean that the corresponding property in the * existing transformation will remain the same and not change as a result of this PATCH operation. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param transformationName The name of the transformation. * @param callback The callback @@ -106,8 +100,7 @@ export class Transformations { * corresponding properties in the existing transformation (ie. Those properties will be updated). * Any properties that are set to null here will mean that the corresponding property in the * existing transformation will remain the same and not change as a result of this PATCH operation. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param transformationName The name of the transformation. * @param options The optional parameters @@ -129,8 +122,7 @@ export class Transformations { /** * Gets details about the specified transformation. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param transformationName The name of the transformation. * @param [options] The optional parameters @@ -138,16 +130,14 @@ export class Transformations { */ get(resourceGroupName: string, jobName: string, transformationName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param transformationName The name of the transformation. * @param callback The callback */ get(resourceGroupName: string, jobName: string, transformationName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param jobName The name of the streaming job. * @param transformationName The name of the transformation. * @param options The optional parameters @@ -179,7 +169,7 @@ const createOrReplaceOperationSpec: msRest.OperationSpec = { Parameters.transformationName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.ifMatch, @@ -203,7 +193,8 @@ const createOrReplaceOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.TransformationsCreateOrReplaceHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.TransformationsCreateOrReplaceHeaders } }, serializer @@ -219,7 +210,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.transformationName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.ifMatch, @@ -238,7 +229,8 @@ const updateOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.TransformationsUpdateHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.TransformationsUpdateHeaders } }, serializer @@ -254,7 +246,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.transformationName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -265,7 +257,8 @@ const getOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.TransformationsGetHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.TransformationsGetHeaders } }, serializer diff --git a/sdk/streamanalytics/arm-streamanalytics/src/streamAnalyticsManagementClient.ts b/sdk/streamanalytics/arm-streamanalytics/src/streamAnalyticsManagementClient.ts index af3155ad2a32..64d4307d04e4 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/streamAnalyticsManagementClient.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/streamAnalyticsManagementClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -17,30 +16,33 @@ import { StreamAnalyticsManagementClientContext } from "./streamAnalyticsManagem class StreamAnalyticsManagementClient extends StreamAnalyticsManagementClientContext { // Operation groups - operations: operations.Operations; - streamingJobs: operations.StreamingJobs; + functions: operations.Functions; inputs: operations.Inputs; outputs: operations.Outputs; - transformations: operations.Transformations; - functions: operations.Functions; + streamingJobs: operations.StreamingJobs; subscriptions: operations.Subscriptions; + transformations: operations.Transformations; + operations: operations.Operations; + clusters: operations.Clusters; + privateEndpoints: operations.PrivateEndpoints; /** * Initializes a new instance of the StreamAnalyticsManagementClient class. * @param credentials Credentials needed for the client to connect to Azure. - * @param subscriptionId GUID which uniquely identify Microsoft Azure subscription. The - * subscription ID forms part of the URI for every service call. + * @param subscriptionId The ID of the target subscription. * @param [options] The parameter options */ constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.StreamAnalyticsManagementClientOptions) { super(credentials, subscriptionId, options); - this.operations = new operations.Operations(this); - this.streamingJobs = new operations.StreamingJobs(this); + this.functions = new operations.Functions(this); this.inputs = new operations.Inputs(this); this.outputs = new operations.Outputs(this); - this.transformations = new operations.Transformations(this); - this.functions = new operations.Functions(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.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 755e1351b70a..a9ecff5c8b9d 100644 --- a/sdk/streamanalytics/arm-streamanalytics/src/streamAnalyticsManagementClientContext.ts +++ b/sdk/streamanalytics/arm-streamanalytics/src/streamAnalyticsManagementClientContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -18,13 +17,11 @@ const packageVersion = "1.1.1"; export class StreamAnalyticsManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; subscriptionId: string; - apiVersion?: string; /** * Initializes a new instance of the StreamAnalyticsManagementClient class. * @param credentials Credentials needed for the client to connect to Azure. - * @param subscriptionId GUID which uniquely identify Microsoft Azure subscription. The - * subscription ID forms part of the URI for every service call. + * @param subscriptionId The ID of the target subscription. * @param [options] The parameter options */ constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.StreamAnalyticsManagementClientOptions) { @@ -45,7 +42,6 @@ export class StreamAnalyticsManagementClientContext extends msRestAzure.AzureSer super(credentials, options); - this.apiVersion = '2016-03-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";