diff --git a/sdk/kusto/arm-kusto/README.md b/sdk/kusto/arm-kusto/README.md index 8e5edac98482..d18102cbd6fd 100644 --- a/sdk/kusto/arm-kusto/README.md +++ b/sdk/kusto/arm-kusto/README.md @@ -1,11 +1,11 @@ ## Azure KustoManagementClient SDK for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for KustoManagementClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for KustoManagementClient. ### Currently supported environments - [LTS versions of Node.js](https://nodejs.org/about/releases/) -- Latest versions of Safari, Chrome, Edge, and Firefox. +- Latest versions of Safari, Chrome, Edge and Firefox. ### Prerequisites @@ -21,7 +21,6 @@ Install both packages using the below command: ```bash npm install --save @azure/arm-kusto @azure/identity ``` - > **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features. If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options. @@ -37,7 +36,6 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/ In the below samples, we pass the credential and the Azure subscription id to instantiate the client. Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started. - #### nodejs - Authentication, client creation, and get clusters as an example written in JavaScript. ##### Sample code @@ -87,7 +85,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t const credential = new InteractiveBrowserCredential( { clientId: "", - tenantId: "" + tenant: "" }); const client = new Azure.ArmKusto.KustoManagementClient(creds, subscriptionId); const resourceGroupName = "testresourceGroupName"; diff --git a/sdk/kusto/arm-kusto/package.json b/sdk/kusto/arm-kusto/package.json index 53d286751f23..9e0b49ffab74 100644 --- a/sdk/kusto/arm-kusto/package.json +++ b/sdk/kusto/arm-kusto/package.json @@ -27,7 +27,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/kusto/arm-kusto", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/kusto/arm-kusto", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/kusto/arm-kusto/rollup.config.js b/sdk/kusto/arm-kusto/rollup.config.js index 23dfac7c4530..7cdacd3bd768 100644 --- a/sdk/kusto/arm-kusto/rollup.config.js +++ b/sdk/kusto/arm-kusto/rollup.config.js @@ -7,7 +7,10 @@ import sourcemaps from "rollup-plugin-sourcemaps"; */ const config = { input: "./esm/kustoManagementClient.js", - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-kusto.js", format: "umd", @@ -25,7 +28,10 @@ const config = { * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, - plugins: [nodeResolve({ mainFields: ["module", "main"] }), sourcemaps()] + plugins: [ + nodeResolve({ mainFields: ['module', 'main'] }), + sourcemaps() + ] }; export default config; diff --git a/sdk/kusto/arm-kusto/src/kustoManagementClient.ts b/sdk/kusto/arm-kusto/src/kustoManagementClient.ts index 4d4c284db056..7eae6f5a52af 100644 --- a/sdk/kusto/arm-kusto/src/kustoManagementClient.ts +++ b/sdk/kusto/arm-kusto/src/kustoManagementClient.ts @@ -14,14 +14,18 @@ import * as Mappers from "./models/mappers"; import * as operations from "./operations"; import { KustoManagementClientContext } from "./kustoManagementClientContext"; + class KustoManagementClient extends KustoManagementClientContext { // Operation groups clusters: operations.Clusters; clusterPrincipalAssignments: operations.ClusterPrincipalAssignments; databases: operations.Databases; + attachedDatabaseConfigurations: operations.AttachedDatabaseConfigurations; + managedPrivateEndpoints: operations.ManagedPrivateEndpoints; databasePrincipalAssignments: operations.DatabasePrincipalAssignments; scripts: operations.Scripts; - attachedDatabaseConfigurations: operations.AttachedDatabaseConfigurations; + privateEndpointConnections: operations.PrivateEndpointConnections; + privateLinkResources: operations.PrivateLinkResources; dataConnections: operations.DataConnections; operations: operations.Operations; operationsResults: operations.OperationsResults; @@ -38,18 +42,17 @@ class KustoManagementClient extends KustoManagementClientContext { * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor( - credentials: msRest.ServiceClientCredentials | TokenCredential, - subscriptionId: string, - options?: Models.KustoManagementClientOptions - ) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.KustoManagementClientOptions) { super(credentials, subscriptionId, options); this.clusters = new operations.Clusters(this); this.clusterPrincipalAssignments = new operations.ClusterPrincipalAssignments(this); this.databases = new operations.Databases(this); + this.attachedDatabaseConfigurations = new operations.AttachedDatabaseConfigurations(this); + this.managedPrivateEndpoints = new operations.ManagedPrivateEndpoints(this); this.databasePrincipalAssignments = new operations.DatabasePrincipalAssignments(this); this.scripts = new operations.Scripts(this); - this.attachedDatabaseConfigurations = new operations.AttachedDatabaseConfigurations(this); + this.privateEndpointConnections = new operations.PrivateEndpointConnections(this); + this.privateLinkResources = new operations.PrivateLinkResources(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 6298480c1676..bef54f6de00f 100644 --- a/sdk/kusto/arm-kusto/src/kustoManagementClientContext.ts +++ b/sdk/kusto/arm-kusto/src/kustoManagementClientContext.ts @@ -9,8 +9,8 @@ import * as Models from "./models"; import * as msRest from "@azure/ms-rest-js"; -import { TokenCredential } from "@azure/core-auth"; import * as msRestAzure from "@azure/ms-rest-azure-js"; +import { TokenCredential } from "@azure/core-auth"; const packageName = "@azure/arm-kusto"; const packageVersion = "6.2.1"; @@ -32,16 +32,12 @@ export class KustoManagementClientContext extends msRestAzure.AzureServiceClient * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor( - credentials: msRest.ServiceClientCredentials | TokenCredential, - subscriptionId: string, - options?: Models.KustoManagementClientOptions - ) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.KustoManagementClientOptions) { if (credentials == undefined) { - throw new Error("'credentials' cannot be null."); + throw new Error('\'credentials\' cannot be null.'); } if (subscriptionId == undefined) { - throw new Error("'subscriptionId' cannot be null."); + throw new Error('\'subscriptionId\' cannot be null.'); } if (!options) { @@ -54,8 +50,8 @@ export class KustoManagementClientContext extends msRestAzure.AzureServiceClient super(credentials, options); - this.apiVersion = "2021-01-01"; - this.acceptLanguage = "en-US"; + this.apiVersion = '2021-08-27'; + this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; this.requestContentType = "application/json; charset=utf-8"; @@ -65,10 +61,7 @@ export class KustoManagementClientContext extends msRestAzure.AzureServiceClient if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if ( - options.longRunningOperationRetryTimeout !== null && - options.longRunningOperationRetryTimeout !== undefined - ) { + if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } } diff --git a/sdk/kusto/arm-kusto/src/models/attachedDatabaseConfigurationsMappers.ts b/sdk/kusto/arm-kusto/src/models/attachedDatabaseConfigurationsMappers.ts index d2b47f8e42dd..a5cda794ef7e 100644 --- a/sdk/kusto/arm-kusto/src/models/attachedDatabaseConfigurationsMappers.ts +++ b/sdk/kusto/arm-kusto/src/models/attachedDatabaseConfigurationsMappers.ts @@ -8,11 +8,14 @@ export { discriminators, + AcceptedAudiences, AttachedDatabaseConfiguration, AttachedDatabaseConfigurationListResult, + AttachedDatabaseConfigurationsCheckNameRequest, AzureEntityResource, AzureSku, BaseResource, + CheckNameResult, CloudError, Cluster, ClusterPrincipalAssignment, @@ -21,6 +24,8 @@ export { DatabasePrincipalAssignment, DatabaseStatistics, DataConnection, + EndpointDependency, + EndpointDetail, EventGridDataConnection, EventHubDataConnection, Identity, @@ -29,7 +34,13 @@ export { KeyVaultProperties, LanguageExtension, LanguageExtensionsList, + ManagedPrivateEndpoint, OptimizedAutoscale, + OutboundNetworkDependenciesEndpoint, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkServiceConnectionStateProperty, ProxyResource, ReadOnlyFollowingDatabase, ReadWriteDatabase, diff --git a/sdk/kusto/arm-kusto/src/models/clusterPrincipalAssignmentsMappers.ts b/sdk/kusto/arm-kusto/src/models/clusterPrincipalAssignmentsMappers.ts index 3bc71718313c..080e4b41e8bf 100644 --- a/sdk/kusto/arm-kusto/src/models/clusterPrincipalAssignmentsMappers.ts +++ b/sdk/kusto/arm-kusto/src/models/clusterPrincipalAssignmentsMappers.ts @@ -8,6 +8,7 @@ export { discriminators, + AcceptedAudiences, AttachedDatabaseConfiguration, AzureEntityResource, AzureSku, @@ -23,6 +24,8 @@ export { DatabasePrincipalAssignment, DatabaseStatistics, DataConnection, + EndpointDependency, + EndpointDetail, EventGridDataConnection, EventHubDataConnection, Identity, @@ -31,7 +34,13 @@ export { KeyVaultProperties, LanguageExtension, LanguageExtensionsList, + ManagedPrivateEndpoint, OptimizedAutoscale, + OutboundNetworkDependenciesEndpoint, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkServiceConnectionStateProperty, ProxyResource, ReadOnlyFollowingDatabase, ReadWriteDatabase, diff --git a/sdk/kusto/arm-kusto/src/models/clustersMappers.ts b/sdk/kusto/arm-kusto/src/models/clustersMappers.ts index c2523c82a42a..4522e248bcee 100644 --- a/sdk/kusto/arm-kusto/src/models/clustersMappers.ts +++ b/sdk/kusto/arm-kusto/src/models/clustersMappers.ts @@ -8,6 +8,7 @@ export { discriminators, + AcceptedAudiences, AttachedDatabaseConfiguration, AzureCapacity, AzureEntityResource, @@ -26,6 +27,8 @@ export { DatabaseStatistics, DataConnection, DiagnoseVirtualNetworkResult, + EndpointDependency, + EndpointDetail, EventGridDataConnection, EventHubDataConnection, FollowerDatabaseDefinition, @@ -37,7 +40,14 @@ export { LanguageExtension, LanguageExtensionsList, ListResourceSkusResult, + ManagedPrivateEndpoint, OptimizedAutoscale, + OutboundNetworkDependenciesEndpoint, + OutboundNetworkDependenciesEndpointListResult, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkServiceConnectionStateProperty, ProxyResource, ReadOnlyFollowingDatabase, ReadWriteDatabase, diff --git a/sdk/kusto/arm-kusto/src/models/dataConnectionsMappers.ts b/sdk/kusto/arm-kusto/src/models/dataConnectionsMappers.ts index 6a6abdfc6229..daf74a14ce85 100644 --- a/sdk/kusto/arm-kusto/src/models/dataConnectionsMappers.ts +++ b/sdk/kusto/arm-kusto/src/models/dataConnectionsMappers.ts @@ -8,6 +8,7 @@ export { discriminators, + AcceptedAudiences, AttachedDatabaseConfiguration, AzureEntityResource, AzureSku, @@ -26,6 +27,8 @@ export { DataConnectionValidation, DataConnectionValidationListResult, DataConnectionValidationResult, + EndpointDependency, + EndpointDetail, EventGridDataConnection, EventHubDataConnection, Identity, @@ -34,7 +37,13 @@ export { KeyVaultProperties, LanguageExtension, LanguageExtensionsList, + ManagedPrivateEndpoint, OptimizedAutoscale, + OutboundNetworkDependenciesEndpoint, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkServiceConnectionStateProperty, ProxyResource, ReadOnlyFollowingDatabase, ReadWriteDatabase, diff --git a/sdk/kusto/arm-kusto/src/models/databasePrincipalAssignmentsMappers.ts b/sdk/kusto/arm-kusto/src/models/databasePrincipalAssignmentsMappers.ts index c31f64df4dec..c1cdcda4d731 100644 --- a/sdk/kusto/arm-kusto/src/models/databasePrincipalAssignmentsMappers.ts +++ b/sdk/kusto/arm-kusto/src/models/databasePrincipalAssignmentsMappers.ts @@ -8,6 +8,7 @@ export { discriminators, + AcceptedAudiences, AttachedDatabaseConfiguration, AzureEntityResource, AzureSku, @@ -23,6 +24,8 @@ export { DatabasePrincipalAssignmentListResult, DatabaseStatistics, DataConnection, + EndpointDependency, + EndpointDetail, EventGridDataConnection, EventHubDataConnection, Identity, @@ -31,7 +34,13 @@ export { KeyVaultProperties, LanguageExtension, LanguageExtensionsList, + ManagedPrivateEndpoint, OptimizedAutoscale, + OutboundNetworkDependenciesEndpoint, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkServiceConnectionStateProperty, ProxyResource, ReadOnlyFollowingDatabase, ReadWriteDatabase, diff --git a/sdk/kusto/arm-kusto/src/models/databasesMappers.ts b/sdk/kusto/arm-kusto/src/models/databasesMappers.ts index 926fd8c9859e..b0b1e015ffcb 100644 --- a/sdk/kusto/arm-kusto/src/models/databasesMappers.ts +++ b/sdk/kusto/arm-kusto/src/models/databasesMappers.ts @@ -8,6 +8,7 @@ export { discriminators, + AcceptedAudiences, AttachedDatabaseConfiguration, AzureEntityResource, AzureSku, @@ -26,6 +27,8 @@ export { DatabasePrincipalListResult, DatabaseStatistics, DataConnection, + EndpointDependency, + EndpointDetail, EventGridDataConnection, EventHubDataConnection, Identity, @@ -34,7 +37,13 @@ export { KeyVaultProperties, LanguageExtension, LanguageExtensionsList, + ManagedPrivateEndpoint, OptimizedAutoscale, + OutboundNetworkDependenciesEndpoint, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkServiceConnectionStateProperty, ProxyResource, ReadOnlyFollowingDatabase, ReadWriteDatabase, diff --git a/sdk/kusto/arm-kusto/src/models/index.ts b/sdk/kusto/arm-kusto/src/models/index.ts index b46cd739e509..1fb9c2f6ca15 100644 --- a/sdk/kusto/arm-kusto/src/models/index.ts +++ b/sdk/kusto/arm-kusto/src/models/index.ts @@ -68,7 +68,7 @@ export interface KeyVaultProperties { /** * The name of the key vault key. */ - keyName: string; + keyName?: string; /** * The version of the key vault key. */ @@ -76,7 +76,7 @@ export interface KeyVaultProperties { /** * The Uri of the key vault. */ - keyVaultUri: string; + keyVaultUri?: string; /** * The user assigned identity (ARM resource id) that has access to the key. */ @@ -93,6 +93,16 @@ export interface LanguageExtension { languageExtensionName?: LanguageExtensionName; } +/** + * Represents an accepted audience trusted by the cluster. + */ +export interface AcceptedAudiences { + /** + * GUID or valid URL representing an accepted audience. + */ + value?: string; +} + /** * Azure SKU definition. */ @@ -247,6 +257,38 @@ export interface TableLevelSharingProperties { materializedViewsToExclude?: string[]; } +/** + * 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; +} + /** * An interface representing IdentityUserAssignedIdentitiesValue. */ @@ -340,6 +382,10 @@ export interface Cluster extends TrackedResource { * The SKU of the cluster. */ sku: AzureSku; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; /** * The availability zones of the cluster. */ @@ -357,8 +403,9 @@ 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.** */ - provisioningState?: ProvisioningState; + readonly provisioningState?: ProvisioningState; /** * The cluster URI. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -411,10 +458,38 @@ export interface Cluster extends TrackedResource { * A boolean value that indicates if double encryption is enabled. Default value: false. */ enableDoubleEncryption?: boolean; + /** + * Public network access to the cluster is enabled by default. When disabled, only private + * endpoint connection to the cluster is allowed. Possible values include: 'Enabled', 'Disabled'. + * Default value: 'Enabled'. + */ + publicNetworkAccess?: PublicNetworkAccess; + /** + * The list of ips in the format of CIDR allowed to connect to the cluster. + */ + allowedIpRangeList?: string[]; /** * The engine type. Possible values include: 'V2', 'V3'. Default value: 'V3'. */ engineType?: EngineType; + /** + * The cluster's accepted audiences. + */ + acceptedAudiences?: AcceptedAudiences[]; + /** + * A boolean value that indicates if the cluster could be automatically stopped (due to lack of + * data or no activity for many days). Default value: true. + */ + enableAutoStop?: boolean; + /** + * Whether or not to restrict outbound network access. Value is optional but if passed in, must + * be 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled' + */ + restrictOutboundNetworkAccess?: ClusterNetworkAccessFlag; + /** + * List of allowed FQDNs(Fully Qualified Domain Name) for egress from Cluster. + */ + allowedFqdnList?: string[]; /** * 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.** @@ -451,8 +526,9 @@ 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.** */ - provisioningState?: ProvisioningState; + readonly provisioningState?: ProvisioningState; /** * The cluster URI. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -505,10 +581,38 @@ export interface ClusterUpdate extends Resource { * A boolean value that indicates if double encryption is enabled. Default value: false. */ enableDoubleEncryption?: boolean; + /** + * Public network access to the cluster is enabled by default. When disabled, only private + * endpoint connection to the cluster is allowed. Possible values include: 'Enabled', 'Disabled'. + * Default value: 'Enabled'. + */ + publicNetworkAccess?: PublicNetworkAccess; + /** + * The list of ips in the format of CIDR allowed to connect to the cluster. + */ + allowedIpRangeList?: string[]; /** * The engine type. Possible values include: 'V2', 'V3'. Default value: 'V3'. */ engineType?: EngineType; + /** + * The cluster's accepted audiences. + */ + acceptedAudiences?: AcceptedAudiences[]; + /** + * A boolean value that indicates if the cluster could be automatically stopped (due to lack of + * data or no activity for many days). Default value: true. + */ + enableAutoStop?: boolean; + /** + * Whether or not to restrict outbound network access. Value is optional but if passed in, must + * be 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled' + */ + restrictOutboundNetworkAccess?: ClusterNetworkAccessFlag; + /** + * List of allowed FQDNs(Fully Qualified Domain Name) for egress from Cluster. + */ + allowedFqdnList?: string[]; } /** @@ -516,7 +620,8 @@ export interface ClusterUpdate extends Resource { * and a location * @summary Proxy Resource */ -export interface ProxyResource extends Resource {} +export interface ProxyResource extends Resource { +} /** * Class representing an attached database configuration. @@ -529,8 +634,9 @@ 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.** */ - provisioningState?: ProvisioningState; + readonly provisioningState?: ProvisioningState; /** * The name of the database which you would like to attach, use * if you want to follow all * current and future databases. @@ -623,8 +729,9 @@ 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.** */ - provisioningState?: ProvisioningState; + readonly provisioningState?: ProvisioningState; /** * The time the data should be kept before it stops being accessible to queries in TimeSpan. */ @@ -676,8 +783,9 @@ 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.** */ - provisioningState?: ProvisioningState; + readonly 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.** @@ -780,8 +888,9 @@ 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.** */ - provisioningState?: ProvisioningState; + readonly provisioningState?: ProvisioningState; } /** @@ -818,73 +927,210 @@ export interface ClusterPrincipalAssignment 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.** */ - provisioningState?: ProvisioningState; + readonly provisioningState?: ProvisioningState; } /** - * Metadata pertaining to creation and last modification of the resource. + * Class representing a database script. */ -export interface SystemData { +export interface Script extends ProxyResource { /** - * The identity that created the resource. + * The url to the KQL script blob file. */ - createdBy?: string; + scriptUrl: string; /** - * The type of identity that created the resource. Possible values include: 'User', - * 'Application', 'ManagedIdentity', 'Key' + * The SaS token. */ - createdByType?: CreatedByType; + scriptUrlSasToken: string; /** - * The timestamp of resource creation (UTC). + * A unique string. If changed the script will be applied again. */ - createdAt?: Date; + forceUpdateTag?: string; /** - * The identity that last modified the resource. + * Flag that indicates whether to continue if one of the command fails. Default value: false. */ - lastModifiedBy?: string; + continueOnErrors?: boolean; /** - * The type of identity that last modified the resource. Possible values include: 'User', - * 'Application', 'ManagedIdentity', 'Key' + * 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.** */ - lastModifiedByType?: CreatedByType; + readonly provisioningState?: ProvisioningState; /** - * The timestamp of resource last modification (UTC) + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - lastModifiedAt?: Date; + readonly systemData?: SystemData; } /** - * Class representing a database script. + * Class representing a managed private endpoint. */ -export interface Script extends ProxyResource { +export interface ManagedPrivateEndpoint extends ProxyResource { /** - * The url to the KQL script blob file. + * The ARM resource ID of the resource for which the managed private endpoint is created. */ - scriptUrl: string; + privateLinkResourceId: string; /** - * The SaS token. + * The region of the resource to which the managed private endpoint is created. */ - scriptUrlSasToken: string; + privateLinkResourceRegion?: string; /** - * A unique string. If changed the script will be applied again. + * The groupId in which the managed private endpoint is created. */ - forceUpdateTag?: string; + groupId: string; /** - * Flag that indicates whether to continue if one of the command fails. Default value: false. + * The user request message. */ - continueOnErrors?: boolean; + requestMessage?: string; /** * 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.** */ - provisioningState?: ProvisioningState; + readonly provisioningState?: ProvisioningState; /** * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly systemData?: SystemData; } +/** + * Private endpoint which the connection belongs to. + */ +export interface PrivateEndpointProperty { + /** + * Resource id of the private endpoint. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; +} + +/** + * Connection State of the Private Endpoint Connection. + */ +export interface PrivateLinkServiceConnectionStateProperty { + /** + * The private link service connection status. + */ + status?: string; + /** + * The private link service connection description. + */ + description?: string; + /** + * Any action that is required beyond basic workflow (approve/ reject/ disconnect) + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly actionsRequired?: string; +} + +/** + * A private endpoint connection + */ +export interface PrivateEndpointConnection extends ProxyResource { + /** + * Private endpoint which the connection belongs to. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly privateEndpoint?: PrivateEndpointProperty; + /** + * Connection State of the Private Endpoint Connection. + */ + privateLinkServiceConnectionState: PrivateLinkServiceConnectionStateProperty; + /** + * Group id of the private endpoint. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly groupId?: string; + /** + * Provisioning state of the private endpoint. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * A private link resource + */ +export interface PrivateLinkResource extends Resource { + /** + * The private link resource group id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly groupId?: string; + /** + * The private link resource required member names. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly requiredMembers?: string[]; + /** + * The private link resource required zone names. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly requiredZoneNames?: string[]; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * Current TCP connectivity information from the Kusto cluster to a single endpoint. + */ +export interface EndpointDetail { + /** + * The port an endpoint is connected to. + */ + port?: number; +} + +/** + * A domain name that a service is reached at, including details of the current connection status. + */ +export interface EndpointDependency { + /** + * The domain name of the dependency. + */ + domainName?: string; + /** + * The ports used when connecting to DomainName. + */ + endpointDetails?: EndpointDetail[]; +} + +/** + * Endpoints accessed for a common purpose that the Kusto Service Environment requires outbound + * network access to. + */ +export interface OutboundNetworkDependenciesEndpoint extends ProxyResource { + /** + * The type of service accessed by the Kusto Service Environment, e.g., Azure Storage, Azure SQL + * Database, and Azure Active Directory. + */ + category?: string; + /** + * The endpoints that the Kusto Service Environment reaches the service at. + */ + endpoints?: EndpointDependency[]; + /** + * 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; + /** + * 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; +} + /** * A class representing follower database request. */ @@ -907,11 +1153,7 @@ export interface FollowerDatabaseDefinition { /** * Contains the possible cases for DataConnection. */ -export type DataConnectionUnion = - | DataConnection - | EventHubDataConnection - | IotHubDataConnection - | EventGridDataConnection; +export type DataConnectionUnion = DataConnection | EventHubDataConnection | IotHubDataConnection | EventGridDataConnection; /** * Class representing an data connection. @@ -1053,8 +1295,9 @@ 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.** */ - provisioningState?: ProvisioningState; + readonly provisioningState?: ProvisioningState; /** * The resource ID of a managed identity (system or user assigned) to be used to authenticate * with event hub. @@ -1126,8 +1369,9 @@ 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.** */ - provisioningState?: ProvisioningState; + readonly provisioningState?: ProvisioningState; } /** @@ -1200,8 +1444,9 @@ 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.** */ - provisioningState?: ProvisioningState; + readonly provisioningState?: ProvisioningState; } /** @@ -1240,6 +1485,26 @@ export interface CheckNameRequest { type: Type; } +/** + * The result returned from a AttachedDatabaseConfigurations check name availability request. + */ +export interface AttachedDatabaseConfigurationsCheckNameRequest { + /** + * Attached database resource name. + */ + name: string; +} + +/** + * The result returned from a managedPrivateEndpoints check name availability request. + */ +export interface ManagedPrivateEndpointsCheckNameRequest { + /** + * Managed private endpoint resource name. + */ + name: string; +} + /** * A principal assignment check name availability request. */ @@ -1477,85 +1742,133 @@ export interface KustoManagementClientOptions extends AzureServiceClientOptions * The list Kusto database principals operation response. * @extends Array */ -export interface FollowerDatabaseListResult extends Array {} +export interface FollowerDatabaseListResult extends Array { +} /** * @interface * The list Kusto clusters operation response. * @extends Array */ -export interface ClusterListResult extends Array {} +export interface ClusterListResult extends Array { +} /** * @interface * The list of the EngagementFabric SKU descriptions * @extends Array */ -export interface SkuDescriptionList extends Array {} +export interface SkuDescriptionList extends Array { +} /** * @interface * List of available SKUs for a Kusto Cluster. * @extends Array */ -export interface ListResourceSkusResult extends Array {} +export interface ListResourceSkusResult extends Array { +} + +/** + * @interface + * Collection of Outbound Environment Endpoints + * @extends Array + */ +export interface OutboundNetworkDependenciesEndpointListResult extends Array { + /** + * Link to next page of resources. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} /** * @interface * The list of language extension objects. * @extends Array */ -export interface LanguageExtensionsList extends Array {} +export interface LanguageExtensionsList extends Array { +} /** * @interface * The list Kusto cluster principal assignments operation response. * @extends Array */ -export interface ClusterPrincipalAssignmentListResult extends Array {} +export interface ClusterPrincipalAssignmentListResult extends Array { +} /** * @interface * The list Kusto databases operation response. * @extends Array */ -export interface DatabaseListResult extends Array {} +export interface DatabaseListResult extends Array { +} /** * @interface * The list Kusto database principals operation response. * @extends Array */ -export interface DatabasePrincipalListResult extends Array {} +export interface DatabasePrincipalListResult extends Array { +} + +/** + * @interface + * The list attached database configurations operation response. + * @extends Array + */ +export interface AttachedDatabaseConfigurationListResult extends Array { +} + +/** + * @interface + * The list managed private endpoints operation response. + * @extends Array + */ +export interface ManagedPrivateEndpointListResult extends Array { +} /** * @interface * The list Kusto database principal assignments operation response. * @extends Array */ -export interface DatabasePrincipalAssignmentListResult extends Array {} +export interface DatabasePrincipalAssignmentListResult extends Array { +} /** * @interface * The list Kusto database script operation response. * @extends Array