From 965899b3b4ca79020cec5b0d8ffba3292598ee27 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 23 Mar 2021 16:12:08 +0000 Subject: [PATCH] CodeGen from PR 13306 in Azure/azure-rest-api-specs Merge d6f7028b498c5faccd8de258dea7eb5acbed5ee6 into 5c2185adda8aa915a391ae182c1f02cc587f4f79 --- sdk/kusto/arm-kusto/LICENSE.txt | 2 +- sdk/kusto/arm-kusto/README.md | 9 +- sdk/kusto/arm-kusto/rollup.config.js | 4 +- .../arm-kusto/src/kustoManagementClient.ts | 9 +- .../src/kustoManagementClientContext.ts | 7 +- .../attachedDatabaseConfigurationsMappers.ts | 7 +- .../clusterPrincipalAssignmentsMappers.ts | 7 +- .../arm-kusto/src/models/clustersMappers.ts | 7 +- .../src/models/dataConnectionsMappers.ts | 7 +- .../databasePrincipalAssignmentsMappers.ts | 7 +- .../arm-kusto/src/models/databasesMappers.ts | 7 +- sdk/kusto/arm-kusto/src/models/index.ts | 523 ++++++++++++++++-- sdk/kusto/arm-kusto/src/models/mappers.ts | 331 ++++++++++- .../arm-kusto/src/models/operationsMappers.ts | 4 +- .../src/models/operationsResultsMappers.ts | 13 + sdk/kusto/arm-kusto/src/models/parameters.ts | 49 +- .../arm-kusto/src/models/scriptsMappers.ts | 45 ++ .../attachedDatabaseConfigurations.ts | 5 +- .../operations/clusterPrincipalAssignments.ts | 5 +- .../arm-kusto/src/operations/clusters.ts | 22 +- .../src/operations/dataConnections.ts | 5 +- .../databasePrincipalAssignments.ts | 5 +- .../arm-kusto/src/operations/databases.ts | 5 +- sdk/kusto/arm-kusto/src/operations/index.ts | 7 +- .../arm-kusto/src/operations/operations.ts | 8 +- .../src/operations/operationsResults.ts | 86 +++ sdk/kusto/arm-kusto/src/operations/scripts.ts | 450 +++++++++++++++ 27 files changed, 1500 insertions(+), 136 deletions(-) create mode 100644 sdk/kusto/arm-kusto/src/models/operationsResultsMappers.ts create mode 100644 sdk/kusto/arm-kusto/src/models/scriptsMappers.ts create mode 100644 sdk/kusto/arm-kusto/src/operations/operationsResults.ts create mode 100644 sdk/kusto/arm-kusto/src/operations/scripts.ts diff --git a/sdk/kusto/arm-kusto/LICENSE.txt b/sdk/kusto/arm-kusto/LICENSE.txt index ea8fb1516028..2d3163745319 100644 --- a/sdk/kusto/arm-kusto/LICENSE.txt +++ b/sdk/kusto/arm-kusto/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2020 Microsoft +Copyright (c) 2021 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/kusto/arm-kusto/README.md b/sdk/kusto/arm-kusto/README.md index e747d74db4d4..e79b537a658f 100644 --- a/sdk/kusto/arm-kusto/README.md +++ b/sdk/kusto/arm-kusto/README.md @@ -15,7 +15,7 @@ npm install @azure/arm-kusto ### How to use -#### nodejs - Authentication, client creation and get clusters as an example written in TypeScript. +#### nodejs - client creation and get clusters as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth @@ -26,11 +26,10 @@ 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 { KustoManagementClient, KustoManagementModels, KustoManagementMappers } from "@azure/arm-kusto"; +const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +const { KustoManagementClient } = require("@azure/arm-kusto"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { diff --git a/sdk/kusto/arm-kusto/rollup.config.js b/sdk/kusto/arm-kusto/rollup.config.js index d9b1bf7ceeb6..7cdacd3bd768 100644 --- a/sdk/kusto/arm-kusto/rollup.config.js +++ b/sdk/kusto/arm-kusto/rollup.config.js @@ -21,8 +21,8 @@ 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. diff --git a/sdk/kusto/arm-kusto/src/kustoManagementClient.ts b/sdk/kusto/arm-kusto/src/kustoManagementClient.ts index fab4f45845a0..8fed05158d5b 100644 --- a/sdk/kusto/arm-kusto/src/kustoManagementClient.ts +++ b/sdk/kusto/arm-kusto/src/kustoManagementClient.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 @@ -21,9 +20,11 @@ class KustoManagementClient extends KustoManagementClientContext { clusterPrincipalAssignments: operations.ClusterPrincipalAssignments; databases: operations.Databases; databasePrincipalAssignments: operations.DatabasePrincipalAssignments; + scripts: operations.Scripts; attachedDatabaseConfigurations: operations.AttachedDatabaseConfigurations; dataConnections: operations.DataConnections; operations: operations.Operations; + operationsResults: operations.OperationsResults; /** * Initializes a new instance of the KustoManagementClient class. @@ -38,9 +39,11 @@ class KustoManagementClient extends KustoManagementClientContext { this.clusterPrincipalAssignments = new operations.ClusterPrincipalAssignments(this); this.databases = new operations.Databases(this); this.databasePrincipalAssignments = new operations.DatabasePrincipalAssignments(this); + this.scripts = new operations.Scripts(this); this.attachedDatabaseConfigurations = new operations.AttachedDatabaseConfigurations(this); this.dataConnections = new operations.DataConnections(this); this.operations = new operations.Operations(this); + this.operationsResults = new operations.OperationsResults(this); } } diff --git a/sdk/kusto/arm-kusto/src/kustoManagementClientContext.ts b/sdk/kusto/arm-kusto/src/kustoManagementClientContext.ts index cd1d2b8ada6b..e98cbc4eeaf8 100644 --- a/sdk/kusto/arm-kusto/src/kustoManagementClientContext.ts +++ b/sdk/kusto/arm-kusto/src/kustoManagementClientContext.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 @@ -45,7 +44,7 @@ export class KustoManagementClientContext extends msRestAzure.AzureServiceClient super(credentials, options); - this.apiVersion = '2020-09-18'; + this.apiVersion = '2021-01-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/sdk/kusto/arm-kusto/src/models/attachedDatabaseConfigurationsMappers.ts b/sdk/kusto/arm-kusto/src/models/attachedDatabaseConfigurationsMappers.ts index 5c6b47fcf1b4..d2b47f8e42dd 100644 --- a/sdk/kusto/arm-kusto/src/models/attachedDatabaseConfigurationsMappers.ts +++ b/sdk/kusto/arm-kusto/src/models/attachedDatabaseConfigurationsMappers.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. @@ -34,6 +34,9 @@ export { ReadOnlyFollowingDatabase, ReadWriteDatabase, Resource, + Script, + SystemData, + TableLevelSharingProperties, TrackedResource, TrustedExternalTenant, VirtualNetworkConfiguration diff --git a/sdk/kusto/arm-kusto/src/models/clusterPrincipalAssignmentsMappers.ts b/sdk/kusto/arm-kusto/src/models/clusterPrincipalAssignmentsMappers.ts index 77f41b661bf2..3bc71718313c 100644 --- a/sdk/kusto/arm-kusto/src/models/clusterPrincipalAssignmentsMappers.ts +++ b/sdk/kusto/arm-kusto/src/models/clusterPrincipalAssignmentsMappers.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. @@ -36,6 +36,9 @@ export { ReadOnlyFollowingDatabase, ReadWriteDatabase, Resource, + Script, + SystemData, + TableLevelSharingProperties, TrackedResource, TrustedExternalTenant, VirtualNetworkConfiguration diff --git a/sdk/kusto/arm-kusto/src/models/clustersMappers.ts b/sdk/kusto/arm-kusto/src/models/clustersMappers.ts index 18fb06fa1d97..c2523c82a42a 100644 --- a/sdk/kusto/arm-kusto/src/models/clustersMappers.ts +++ b/sdk/kusto/arm-kusto/src/models/clustersMappers.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. @@ -42,9 +42,12 @@ export { ReadOnlyFollowingDatabase, ReadWriteDatabase, Resource, + Script, SkuDescription, SkuDescriptionList, SkuLocationInfoItem, + SystemData, + TableLevelSharingProperties, TrackedResource, TrustedExternalTenant, VirtualNetworkConfiguration diff --git a/sdk/kusto/arm-kusto/src/models/dataConnectionsMappers.ts b/sdk/kusto/arm-kusto/src/models/dataConnectionsMappers.ts index 047f2f7c3730..6a6abdfc6229 100644 --- a/sdk/kusto/arm-kusto/src/models/dataConnectionsMappers.ts +++ b/sdk/kusto/arm-kusto/src/models/dataConnectionsMappers.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. @@ -39,6 +39,9 @@ export { ReadOnlyFollowingDatabase, ReadWriteDatabase, Resource, + Script, + SystemData, + TableLevelSharingProperties, TrackedResource, TrustedExternalTenant, VirtualNetworkConfiguration diff --git a/sdk/kusto/arm-kusto/src/models/databasePrincipalAssignmentsMappers.ts b/sdk/kusto/arm-kusto/src/models/databasePrincipalAssignmentsMappers.ts index f74b49c78e91..c31f64df4dec 100644 --- a/sdk/kusto/arm-kusto/src/models/databasePrincipalAssignmentsMappers.ts +++ b/sdk/kusto/arm-kusto/src/models/databasePrincipalAssignmentsMappers.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. @@ -36,6 +36,9 @@ export { ReadOnlyFollowingDatabase, ReadWriteDatabase, Resource, + Script, + SystemData, + TableLevelSharingProperties, TrackedResource, TrustedExternalTenant, VirtualNetworkConfiguration diff --git a/sdk/kusto/arm-kusto/src/models/databasesMappers.ts b/sdk/kusto/arm-kusto/src/models/databasesMappers.ts index 0221928cda90..926fd8c9859e 100644 --- a/sdk/kusto/arm-kusto/src/models/databasesMappers.ts +++ b/sdk/kusto/arm-kusto/src/models/databasesMappers.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. @@ -39,6 +39,9 @@ export { ReadOnlyFollowingDatabase, ReadWriteDatabase, Resource, + Script, + SystemData, + TableLevelSharingProperties, TrackedResource, TrustedExternalTenant, VirtualNetworkConfiguration diff --git a/sdk/kusto/arm-kusto/src/models/index.ts b/sdk/kusto/arm-kusto/src/models/index.ts index d3a7d3abd935..82a98061f1ed 100644 --- a/sdk/kusto/arm-kusto/src/models/index.ts +++ b/sdk/kusto/arm-kusto/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. @@ -100,9 +100,10 @@ export interface AzureSku { /** * SKU name. Possible values include: 'Standard_DS13_v2+1TB_PS', 'Standard_DS13_v2+2TB_PS', * 'Standard_DS14_v2+3TB_PS', 'Standard_DS14_v2+4TB_PS', 'Standard_D13_v2', 'Standard_D14_v2', - * 'Standard_L8s', 'Standard_L16s', 'Standard_D11_v2', 'Standard_D12_v2', 'Standard_L4s', 'Dev(No - * SLA)_Standard_D11_v2', 'Standard_E64i_v3', 'Standard_E2a_v4', 'Standard_E4a_v4', - * 'Standard_E8a_v4', 'Standard_E16a_v4', 'Standard_E8as_v4+1TB_PS', 'Standard_E8as_v4+2TB_PS', + * 'Standard_L8s', 'Standard_L16s', 'Standard_L8s_v2', 'Standard_L16s_v2', 'Standard_D11_v2', + * 'Standard_D12_v2', 'Standard_L4s', 'Dev(No SLA)_Standard_D11_v2', 'Standard_E64i_v3', + * 'Standard_E80ids_v4', 'Standard_E2a_v4', 'Standard_E4a_v4', 'Standard_E8a_v4', + * 'Standard_E16a_v4', 'Standard_E8as_v4+1TB_PS', 'Standard_E8as_v4+2TB_PS', * 'Standard_E16as_v4+3TB_PS', 'Standard_E16as_v4+4TB_PS', 'Dev(No SLA)_Standard_E2a_v4' */ name: AzureSkuName; @@ -216,6 +217,36 @@ export interface DatabaseStatistics { size?: number; } +/** + * Tables that will be included and excluded in the follower database + */ +export interface TableLevelSharingProperties { + /** + * List of tables to include in the follower database + */ + tablesToInclude?: string[]; + /** + * List of tables to exclude from the follower database + */ + tablesToExclude?: string[]; + /** + * List of external tables to include in the follower database + */ + externalTablesToInclude?: string[]; + /** + * List of external tables exclude from the follower database + */ + externalTablesToExclude?: string[]; + /** + * List of materialized views to include in the follower database + */ + materializedViewsToInclude?: string[]; + /** + * List of materialized views exclude from the follower database + */ + materializedViewsToExclude?: string[]; +} + /** * An interface representing IdentityUserAssignedIdentitiesValue. */ @@ -262,11 +293,12 @@ export interface Identity { } /** - * An interface representing Resource. + * Common fields that are returned in the response for all Azure Resource Manager resources + * @summary Resource */ export interface Resource extends BaseResource { /** - * Fully qualified resource Id for the resource. Ex - + * 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.** */ @@ -277,15 +309,17 @@ export interface Resource extends BaseResource { */ readonly name?: string; /** - * The type of the resource. Ex- Microsoft.Compute/virtualMachines or - * Microsoft.Storage/storageAccounts. + * The type of the resource. E.g. "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; } /** - * The resource model definition for a ARM tracked top level resource + * The resource model definition for an Azure Resource Manager tracked top level resource which has + * 'tags' and a 'location' + * @summary Tracked Resource */ export interface TrackedResource extends Resource { /** @@ -323,9 +357,8 @@ export interface Cluster extends TrackedResource { /** * The provisioned state of the resource. Possible values include: 'Running', 'Creating', * 'Deleting', 'Succeeded', 'Failed', 'Moving' - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provisioningState?: ProvisioningState; + provisioningState?: ProvisioningState; /** * The cluster URI. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -382,6 +415,11 @@ export interface Cluster extends TrackedResource { * The engine type. Possible values include: 'V2', 'V3' */ engineType?: EngineType; + /** + * A unique read-only string that changes whenever the resource is updated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly etag?: string; } /** @@ -413,9 +451,8 @@ export interface ClusterUpdate extends Resource { /** * The provisioned state of the resource. Possible values include: 'Running', 'Creating', * 'Deleting', 'Succeeded', 'Failed', 'Moving' - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provisioningState?: ProvisioningState; + provisioningState?: ProvisioningState; /** * The cluster URI. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -475,8 +512,9 @@ export interface ClusterUpdate extends Resource { } /** - * The resource model definition for a ARM proxy resource. It will have everything other than - * required location and tags + * The resource model definition for a Azure Resource Manager proxy resource. It will not have tags + * and a location + * @summary Proxy Resource */ export interface ProxyResource extends Resource { } @@ -492,9 +530,8 @@ export interface AttachedDatabaseConfiguration extends ProxyResource { /** * The provisioned state of the resource. Possible values include: 'Running', 'Creating', * 'Deleting', 'Succeeded', 'Failed', 'Moving' - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provisioningState?: ProvisioningState; + provisioningState?: ProvisioningState; /** * The name of the database which you would like to attach, use * if you want to follow all * current and future databases. @@ -513,6 +550,10 @@ export interface AttachedDatabaseConfiguration extends ProxyResource { * The default principals modification kind. Possible values include: 'Union', 'Replace', 'None' */ defaultPrincipalsModificationKind: DefaultPrincipalsModificationKind; + /** + * Table level sharing specifications + */ + tableLevelSharingProperties?: TableLevelSharingProperties; } /** @@ -529,7 +570,7 @@ export interface Database { */ kind: "Database"; /** - * Fully qualified resource Id for the resource. Ex - + * 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.** */ @@ -540,8 +581,8 @@ export interface Database { */ readonly name?: string; /** - * The type of the resource. Ex- Microsoft.Compute/virtualMachines or - * Microsoft.Storage/storageAccounts. + * The type of the resource. E.g. "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; @@ -560,7 +601,7 @@ export interface ReadWriteDatabase { */ kind: "ReadWrite"; /** - * Fully qualified resource Id for the resource. Ex - + * 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.** */ @@ -571,8 +612,8 @@ export interface ReadWriteDatabase { */ readonly name?: string; /** - * The type of the resource. Ex- Microsoft.Compute/virtualMachines or - * Microsoft.Storage/storageAccounts. + * The type of the resource. E.g. "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; @@ -583,9 +624,8 @@ export interface ReadWriteDatabase { /** * The provisioned state of the resource. Possible values include: 'Running', 'Creating', * 'Deleting', 'Succeeded', 'Failed', 'Moving' - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provisioningState?: ProvisioningState; + provisioningState?: ProvisioningState; /** * The time the data should be kept before it stops being accessible to queries in TimeSpan. */ @@ -614,7 +654,7 @@ export interface ReadOnlyFollowingDatabase { */ kind: "ReadOnlyFollowing"; /** - * Fully qualified resource Id for the resource. Ex - + * 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.** */ @@ -625,8 +665,8 @@ export interface ReadOnlyFollowingDatabase { */ readonly name?: string; /** - * The type of the resource. Ex- Microsoft.Compute/virtualMachines or - * Microsoft.Storage/storageAccounts. + * The type of the resource. E.g. "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; @@ -637,9 +677,8 @@ export interface ReadOnlyFollowingDatabase { /** * The provisioned state of the resource. Possible values include: 'Running', 'Creating', * 'Deleting', 'Succeeded', 'Failed', 'Moving' - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provisioningState?: ProvisioningState; + provisioningState?: ProvisioningState; /** * The time the data should be kept before it stops being accessible to queries in TimeSpan. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -677,7 +716,7 @@ export interface ReadOnlyFollowingDatabase { export interface DatabasePrincipal { /** * Database principal role. Possible values include: 'Admin', 'Ingestor', 'Monitor', 'User', - * 'UnrestrictedViewers', 'Viewer' + * 'UnrestrictedViewer', 'Viewer' */ role: DatabasePrincipalRole; /** @@ -718,7 +757,7 @@ export interface DatabasePrincipalAssignment extends ProxyResource { principalId: string; /** * Database principal role. Possible values include: 'Admin', 'Ingestor', 'Monitor', 'User', - * 'UnrestrictedViewers', 'Viewer' + * 'UnrestrictedViewer', 'Viewer' */ role: DatabasePrincipalRole; /** @@ -742,9 +781,8 @@ export interface DatabasePrincipalAssignment extends ProxyResource { /** * The provisioned state of the resource. Possible values include: 'Running', 'Creating', * 'Deleting', 'Succeeded', 'Failed', 'Moving' - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provisioningState?: ProvisioningState; + provisioningState?: ProvisioningState; } /** @@ -781,9 +819,71 @@ export interface ClusterPrincipalAssignment extends ProxyResource { /** * The provisioned state of the resource. Possible values include: 'Running', 'Creating', * 'Deleting', 'Succeeded', 'Failed', 'Moving' + */ + provisioningState?: ProvisioningState; +} + +/** + * Metadata pertaining to creation and last modification of the resource. + */ +export interface SystemData { + /** + * The identity that created the resource. + */ + createdBy?: string; + /** + * The type of identity that created the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + createdByType?: CreatedByType; + /** + * The timestamp of resource creation (UTC). + */ + createdAt?: Date; + /** + * The identity that last modified the resource. + */ + lastModifiedBy?: string; + /** + * The type of identity that last modified the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + lastModifiedByType?: CreatedByType; + /** + * The timestamp of resource last modification (UTC) + */ + lastModifiedAt?: Date; +} + +/** + * Class representing a database script. + */ +export interface Script extends ProxyResource { + /** + * The url to the KQL script blob file. + */ + scriptUrl: string; + /** + * The SaS token. + */ + scriptUrlSasToken: string; + /** + * A unique string. If changed the script will be applied again. + */ + forceUpdateTag?: string; + /** + * Flag that indicates whether to continue if one of the command fails. + */ + continueOnErrors?: boolean; + /** + * The provisioned state of the resource. Possible values include: 'Running', 'Creating', + * 'Deleting', 'Succeeded', 'Failed', 'Moving' + */ + provisioningState?: ProvisioningState; + /** * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provisioningState?: ProvisioningState; + readonly systemData?: SystemData; } /** @@ -819,7 +919,7 @@ export interface DataConnection { */ kind: "DataConnection"; /** - * Fully qualified resource Id for the resource. Ex - + * 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.** */ @@ -830,8 +930,8 @@ export interface DataConnection { */ readonly name?: string; /** - * The type of the resource. Ex- Microsoft.Compute/virtualMachines or - * Microsoft.Storage/storageAccounts. + * The type of the resource. E.g. "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; @@ -894,7 +994,7 @@ export interface EventHubDataConnection { */ kind: "EventHub"; /** - * Fully qualified resource Id for the resource. Ex - + * 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.** */ @@ -905,8 +1005,8 @@ export interface EventHubDataConnection { */ readonly name?: string; /** - * The type of the resource. Ex- Microsoft.Compute/virtualMachines or - * Microsoft.Storage/storageAccounts. + * The type of the resource. E.g. "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; @@ -949,9 +1049,13 @@ export interface EventHubDataConnection { /** * The provisioned state of the resource. Possible values include: 'Running', 'Creating', * 'Deleting', 'Succeeded', 'Failed', 'Moving' - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provisioningState?: ProvisioningState; + provisioningState?: ProvisioningState; + /** + * The resource ID of a managed identity (system or user assigned) to be used to authenticate + * with event hub. + */ + managedIdentityResourceId?: string; } /** @@ -963,7 +1067,7 @@ export interface IotHubDataConnection { */ kind: "IotHub"; /** - * Fully qualified resource Id for the resource. Ex - + * 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.** */ @@ -974,8 +1078,8 @@ export interface IotHubDataConnection { */ readonly name?: string; /** - * The type of the resource. Ex- Microsoft.Compute/virtualMachines or - * Microsoft.Storage/storageAccounts. + * The type of the resource. E.g. "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; @@ -1018,9 +1122,8 @@ export interface IotHubDataConnection { /** * The provisioned state of the resource. Possible values include: 'Running', 'Creating', * 'Deleting', 'Succeeded', 'Failed', 'Moving' - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provisioningState?: ProvisioningState; + provisioningState?: ProvisioningState; } /** @@ -1032,7 +1135,7 @@ export interface EventGridDataConnection { */ kind: "EventGrid"; /** - * Fully qualified resource Id for the resource. Ex - + * 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.** */ @@ -1043,8 +1146,8 @@ export interface EventGridDataConnection { */ readonly name?: string; /** - * The type of the resource. Ex- Microsoft.Compute/virtualMachines or - * Microsoft.Storage/storageAccounts. + * The type of the resource. E.g. "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; @@ -1093,9 +1196,8 @@ export interface EventGridDataConnection { /** * The provisioned state of the resource. Possible values include: 'Running', 'Creating', * 'Deleting', 'Succeeded', 'Failed', 'Moving' - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provisioningState?: ProvisioningState; + provisioningState?: ProvisioningState; } /** @@ -1154,6 +1256,16 @@ export interface DataConnectionCheckNameRequest { name: string; } +/** + * A script name availability request. + */ +export interface ScriptCheckNameRequest { + /** + * Script name. + */ + name: string; +} + /** * A principal assignment check name availability request. */ @@ -1235,7 +1347,57 @@ export interface Operation { } /** - * The resource model definition for a Azure Resource Manager resource with an etag. + * Operation Result Entity. + */ +export interface OperationResult { + /** + * ID of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Name of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * status of the Operation result. Possible values include: 'Succeeded', 'Canceled', 'Failed', + * 'Running' + */ + status?: Status; + /** + * The operation start time + */ + startTime?: Date; + /** + * The operation end time + */ + endTime?: Date; + /** + * Percentage completed. + */ + percentComplete?: number; + /** + * The kind of the operation. + */ + operationKind?: string; + /** + * The state of the operation. + */ + operationState?: string; + /** + * The code of the error. + */ + code?: string; + /** + * The error message. + */ + message?: string; +} + +/** + * The resource model definition for an Azure Resource Manager resource with an etag. + * @summary Entity Resource */ export interface AzureEntityResource extends Resource { /** @@ -1245,6 +1407,60 @@ export interface AzureEntityResource extends Resource { readonly etag?: string; } +/** + * Optional Parameters. + */ +export interface ClustersCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * The ETag of the cluster. Omit this value to always overwrite the current cluster. Specify the + * last-seen ETag value to prevent accidentally overwriting concurrent changes. + */ + ifMatch?: string; + /** + * Set to '*' to allow a new cluster to be created, but to prevent updating an existing cluster. + * 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 cluster. Omit this value to always overwrite the current cluster. 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 cluster. Omit this value to always overwrite the current cluster. Specify the + * last-seen ETag value to prevent accidentally overwriting concurrent changes. + */ + ifMatch?: string; + /** + * Set to '*' to allow a new cluster to be created, but to prevent updating an existing cluster. + * 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 cluster. Omit this value to always overwrite the current cluster. Specify the + * last-seen ETag value to prevent accidentally overwriting concurrent changes. + */ + ifMatch?: string; +} + /** * An interface representing KustoManagementClientOptions. */ @@ -1324,6 +1540,14 @@ export interface DatabasePrincipalListResult extends Array { export interface DatabasePrincipalAssignmentListResult extends Array { } +/** + * @interface + * The list Kusto database script operation response. + * @extends Array