Skip to content

Commit ffb22c4

Browse files
authored
arm-kusto-release (Azure#17468)
1 parent 1e75176 commit ffb22c4

32 files changed

+4068
-2477
lines changed

sdk/kusto/arm-kusto/README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
## Azure KustoManagementClient SDK for JavaScript
22

3-
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for KustoManagementClient.
3+
This package contains an isomorphic SDK (runs both in node.js and in browsers) for KustoManagementClient.
44

55
### Currently supported environments
66

77
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
8-
- Latest versions of Safari, Chrome, Edge, and Firefox.
8+
- Latest versions of Safari, Chrome, Edge and Firefox.
99

1010
### Prerequisites
1111

@@ -21,7 +21,6 @@ Install both packages using the below command:
2121
```bash
2222
npm install --save @azure/arm-kusto @azure/identity
2323
```
24-
2524
> **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.
2625
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.
2726

@@ -37,7 +36,6 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/
3736

3837
In the below samples, we pass the credential and the Azure subscription id to instantiate the client.
3938
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.
40-
4139
#### nodejs - Authentication, client creation, and get clusters as an example written in JavaScript.
4240

4341
##### Sample code
@@ -87,7 +85,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t
8785
const credential = new InteractiveBrowserCredential(
8886
{
8987
clientId: "<client id for your Azure AD app>",
90-
tenantId: "<optional tenant for your organization>"
88+
tenant: "<optional tenant for your organization>"
9189
});
9290
const client = new Azure.ArmKusto.KustoManagementClient(creds, subscriptionId);
9391
const resourceGroupName = "testresourceGroupName";

sdk/kusto/arm-kusto/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@azure/arm-kusto",
33
"author": "Microsoft Corporation",
44
"description": "KustoManagementClient Library with typescript type definitions for node.js and browser.",
5-
"version": "6.2.1",
5+
"version": "6.3.0",
66
"dependencies": {
77
"@azure/ms-rest-azure-js": "^2.1.0",
88
"@azure/ms-rest-js": "^2.2.0",

sdk/kusto/arm-kusto/rollup.config.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ import sourcemaps from "rollup-plugin-sourcemaps";
77
*/
88
const config = {
99
input: "./esm/kustoManagementClient.js",
10-
external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"],
10+
external: [
11+
"@azure/ms-rest-js",
12+
"@azure/ms-rest-azure-js"
13+
],
1114
output: {
1215
file: "./dist/arm-kusto.js",
1316
format: "umd",
@@ -25,7 +28,10 @@ const config = {
2528
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
2629
*/`
2730
},
28-
plugins: [nodeResolve({ mainFields: ["module", "main"] }), sourcemaps()]
31+
plugins: [
32+
nodeResolve({ mainFields: ['module', 'main'] }),
33+
sourcemaps()
34+
]
2935
};
3036

3137
export default config;

sdk/kusto/arm-kusto/src/kustoManagementClient.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,18 @@ import * as Mappers from "./models/mappers";
1414
import * as operations from "./operations";
1515
import { KustoManagementClientContext } from "./kustoManagementClientContext";
1616

17+
1718
class KustoManagementClient extends KustoManagementClientContext {
1819
// Operation groups
1920
clusters: operations.Clusters;
2021
clusterPrincipalAssignments: operations.ClusterPrincipalAssignments;
2122
databases: operations.Databases;
23+
attachedDatabaseConfigurations: operations.AttachedDatabaseConfigurations;
24+
managedPrivateEndpoints: operations.ManagedPrivateEndpoints;
2225
databasePrincipalAssignments: operations.DatabasePrincipalAssignments;
2326
scripts: operations.Scripts;
24-
attachedDatabaseConfigurations: operations.AttachedDatabaseConfigurations;
27+
privateEndpointConnections: operations.PrivateEndpointConnections;
28+
privateLinkResources: operations.PrivateLinkResources;
2529
dataConnections: operations.DataConnections;
2630
operations: operations.Operations;
2731
operationsResults: operations.OperationsResults;
@@ -38,18 +42,17 @@ class KustoManagementClient extends KustoManagementClientContext {
3842
* subscription. The subscription ID forms part of the URI for every service call.
3943
* @param [options] The parameter options
4044
*/
41-
constructor(
42-
credentials: msRest.ServiceClientCredentials | TokenCredential,
43-
subscriptionId: string,
44-
options?: Models.KustoManagementClientOptions
45-
) {
45+
constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.KustoManagementClientOptions) {
4646
super(credentials, subscriptionId, options);
4747
this.clusters = new operations.Clusters(this);
4848
this.clusterPrincipalAssignments = new operations.ClusterPrincipalAssignments(this);
4949
this.databases = new operations.Databases(this);
50+
this.attachedDatabaseConfigurations = new operations.AttachedDatabaseConfigurations(this);
51+
this.managedPrivateEndpoints = new operations.ManagedPrivateEndpoints(this);
5052
this.databasePrincipalAssignments = new operations.DatabasePrincipalAssignments(this);
5153
this.scripts = new operations.Scripts(this);
52-
this.attachedDatabaseConfigurations = new operations.AttachedDatabaseConfigurations(this);
54+
this.privateEndpointConnections = new operations.PrivateEndpointConnections(this);
55+
this.privateLinkResources = new operations.PrivateLinkResources(this);
5356
this.dataConnections = new operations.DataConnections(this);
5457
this.operations = new operations.Operations(this);
5558
this.operationsResults = new operations.OperationsResults(this);

sdk/kusto/arm-kusto/src/kustoManagementClientContext.ts

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010
import * as Models from "./models";
1111
import * as msRest from "@azure/ms-rest-js";
12-
import { TokenCredential } from "@azure/core-auth";
1312
import * as msRestAzure from "@azure/ms-rest-azure-js";
13+
import { TokenCredential } from "@azure/core-auth";
1414

1515
const packageName = "@azure/arm-kusto";
16-
const packageVersion = "6.2.1";
16+
const packageVersion = "6.3.0";
1717

1818
export class KustoManagementClientContext extends msRestAzure.AzureServiceClient {
1919
credentials: msRest.ServiceClientCredentials | TokenCredential;
@@ -32,16 +32,12 @@ export class KustoManagementClientContext extends msRestAzure.AzureServiceClient
3232
* subscription. The subscription ID forms part of the URI for every service call.
3333
* @param [options] The parameter options
3434
*/
35-
constructor(
36-
credentials: msRest.ServiceClientCredentials | TokenCredential,
37-
subscriptionId: string,
38-
options?: Models.KustoManagementClientOptions
39-
) {
35+
constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.KustoManagementClientOptions) {
4036
if (credentials == undefined) {
41-
throw new Error("'credentials' cannot be null.");
37+
throw new Error('\'credentials\' cannot be null.');
4238
}
4339
if (subscriptionId == undefined) {
44-
throw new Error("'subscriptionId' cannot be null.");
40+
throw new Error('\'subscriptionId\' cannot be null.');
4541
}
4642

4743
if (!options) {
@@ -54,8 +50,8 @@ export class KustoManagementClientContext extends msRestAzure.AzureServiceClient
5450

5551
super(credentials, options);
5652

57-
this.apiVersion = "2021-01-01";
58-
this.acceptLanguage = "en-US";
53+
this.apiVersion = '2021-08-27';
54+
this.acceptLanguage = 'en-US';
5955
this.longRunningOperationRetryTimeout = 30;
6056
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
6157
this.requestContentType = "application/json; charset=utf-8";
@@ -65,10 +61,7 @@ export class KustoManagementClientContext extends msRestAzure.AzureServiceClient
6561
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
6662
this.acceptLanguage = options.acceptLanguage;
6763
}
68-
if (
69-
options.longRunningOperationRetryTimeout !== null &&
70-
options.longRunningOperationRetryTimeout !== undefined
71-
) {
64+
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
7265
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
7366
}
7467
}

sdk/kusto/arm-kusto/src/models/attachedDatabaseConfigurationsMappers.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@
88

99
export {
1010
discriminators,
11+
AcceptedAudiences,
1112
AttachedDatabaseConfiguration,
1213
AttachedDatabaseConfigurationListResult,
14+
AttachedDatabaseConfigurationsCheckNameRequest,
1315
AzureEntityResource,
1416
AzureSku,
1517
BaseResource,
18+
CheckNameResult,
1619
CloudError,
1720
Cluster,
1821
ClusterPrincipalAssignment,
@@ -21,6 +24,8 @@ export {
2124
DatabasePrincipalAssignment,
2225
DatabaseStatistics,
2326
DataConnection,
27+
EndpointDependency,
28+
EndpointDetail,
2429
EventGridDataConnection,
2530
EventHubDataConnection,
2631
Identity,
@@ -29,7 +34,13 @@ export {
2934
KeyVaultProperties,
3035
LanguageExtension,
3136
LanguageExtensionsList,
37+
ManagedPrivateEndpoint,
3238
OptimizedAutoscale,
39+
OutboundNetworkDependenciesEndpoint,
40+
PrivateEndpointConnection,
41+
PrivateEndpointProperty,
42+
PrivateLinkResource,
43+
PrivateLinkServiceConnectionStateProperty,
3344
ProxyResource,
3445
ReadOnlyFollowingDatabase,
3546
ReadWriteDatabase,

sdk/kusto/arm-kusto/src/models/clusterPrincipalAssignmentsMappers.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
export {
1010
discriminators,
11+
AcceptedAudiences,
1112
AttachedDatabaseConfiguration,
1213
AzureEntityResource,
1314
AzureSku,
@@ -23,6 +24,8 @@ export {
2324
DatabasePrincipalAssignment,
2425
DatabaseStatistics,
2526
DataConnection,
27+
EndpointDependency,
28+
EndpointDetail,
2629
EventGridDataConnection,
2730
EventHubDataConnection,
2831
Identity,
@@ -31,7 +34,13 @@ export {
3134
KeyVaultProperties,
3235
LanguageExtension,
3336
LanguageExtensionsList,
37+
ManagedPrivateEndpoint,
3438
OptimizedAutoscale,
39+
OutboundNetworkDependenciesEndpoint,
40+
PrivateEndpointConnection,
41+
PrivateEndpointProperty,
42+
PrivateLinkResource,
43+
PrivateLinkServiceConnectionStateProperty,
3544
ProxyResource,
3645
ReadOnlyFollowingDatabase,
3746
ReadWriteDatabase,

sdk/kusto/arm-kusto/src/models/clustersMappers.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
export {
1010
discriminators,
11+
AcceptedAudiences,
1112
AttachedDatabaseConfiguration,
1213
AzureCapacity,
1314
AzureEntityResource,
@@ -26,6 +27,8 @@ export {
2627
DatabaseStatistics,
2728
DataConnection,
2829
DiagnoseVirtualNetworkResult,
30+
EndpointDependency,
31+
EndpointDetail,
2932
EventGridDataConnection,
3033
EventHubDataConnection,
3134
FollowerDatabaseDefinition,
@@ -37,7 +40,14 @@ export {
3740
LanguageExtension,
3841
LanguageExtensionsList,
3942
ListResourceSkusResult,
43+
ManagedPrivateEndpoint,
4044
OptimizedAutoscale,
45+
OutboundNetworkDependenciesEndpoint,
46+
OutboundNetworkDependenciesEndpointListResult,
47+
PrivateEndpointConnection,
48+
PrivateEndpointProperty,
49+
PrivateLinkResource,
50+
PrivateLinkServiceConnectionStateProperty,
4151
ProxyResource,
4252
ReadOnlyFollowingDatabase,
4353
ReadWriteDatabase,

sdk/kusto/arm-kusto/src/models/dataConnectionsMappers.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
export {
1010
discriminators,
11+
AcceptedAudiences,
1112
AttachedDatabaseConfiguration,
1213
AzureEntityResource,
1314
AzureSku,
@@ -26,6 +27,8 @@ export {
2627
DataConnectionValidation,
2728
DataConnectionValidationListResult,
2829
DataConnectionValidationResult,
30+
EndpointDependency,
31+
EndpointDetail,
2932
EventGridDataConnection,
3033
EventHubDataConnection,
3134
Identity,
@@ -34,7 +37,13 @@ export {
3437
KeyVaultProperties,
3538
LanguageExtension,
3639
LanguageExtensionsList,
40+
ManagedPrivateEndpoint,
3741
OptimizedAutoscale,
42+
OutboundNetworkDependenciesEndpoint,
43+
PrivateEndpointConnection,
44+
PrivateEndpointProperty,
45+
PrivateLinkResource,
46+
PrivateLinkServiceConnectionStateProperty,
3847
ProxyResource,
3948
ReadOnlyFollowingDatabase,
4049
ReadWriteDatabase,

sdk/kusto/arm-kusto/src/models/databasePrincipalAssignmentsMappers.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
export {
1010
discriminators,
11+
AcceptedAudiences,
1112
AttachedDatabaseConfiguration,
1213
AzureEntityResource,
1314
AzureSku,
@@ -23,6 +24,8 @@ export {
2324
DatabasePrincipalAssignmentListResult,
2425
DatabaseStatistics,
2526
DataConnection,
27+
EndpointDependency,
28+
EndpointDetail,
2629
EventGridDataConnection,
2730
EventHubDataConnection,
2831
Identity,
@@ -31,7 +34,13 @@ export {
3134
KeyVaultProperties,
3235
LanguageExtension,
3336
LanguageExtensionsList,
37+
ManagedPrivateEndpoint,
3438
OptimizedAutoscale,
39+
OutboundNetworkDependenciesEndpoint,
40+
PrivateEndpointConnection,
41+
PrivateEndpointProperty,
42+
PrivateLinkResource,
43+
PrivateLinkServiceConnectionStateProperty,
3544
ProxyResource,
3645
ReadOnlyFollowingDatabase,
3746
ReadWriteDatabase,

0 commit comments

Comments
 (0)