Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR @azure/arm-kusto] App protect cdn 20223 08 01 preview #6043

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions sdk/kusto/arm-kusto/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "95358a2b319539960ec94ca7decd47c28f4fc2d0",
"commit": "97745d08e1b865643a9fe7ba9e7b812dae7f64a3",
"readme": "specification/azure-kusto/resource-manager/readme.md",
"autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\azure-kusto\\resource-manager\\readme.md --use=@autorest/[email protected].5 --generate-sample=true",
"autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/azure-kusto/resource-manager/readme.md --use=@autorest/typescript@^6.0.4",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/[email protected].0",
"use": "@autorest/[email protected].5"
"release_tool": "@azure-tools/[email protected].1",
"use": "@autorest/typescript@^6.0.4"
}
14 changes: 3 additions & 11 deletions sdk/kusto/arm-kusto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"node": ">=14.0.0"
},
"dependencies": {
"@azure/core-lro": "^2.5.3",
"@azure/core-lro": "^2.5.4",
"@azure/abort-controller": "^1.0.0",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.7.0",
Expand Down Expand Up @@ -111,13 +111,5 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/kusto/arm-kusto",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-kusto?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/kusto/arm-kusto"
}
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,7 @@ export class AttachedDatabaseConfigurationsImpl
OperationState<AttachedDatabaseConfigurationsCreateOrUpdateResponse>
>(lro, {
restoreFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs,
resourceLocationConfig: "location"
intervalInMs: options?.updateIntervalInMs
});
await poller.poll();
return poller;
Expand Down Expand Up @@ -339,8 +338,7 @@ export class AttachedDatabaseConfigurationsImpl
});
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
restoreFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs,
resourceLocationConfig: "location"
intervalInMs: options?.updateIntervalInMs
});
await poller.poll();
return poller;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,7 @@ export class ClusterPrincipalAssignmentsImpl
OperationState<ClusterPrincipalAssignmentsCreateOrUpdateResponse>
>(lro, {
restoreFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs,
resourceLocationConfig: "location"
intervalInMs: options?.updateIntervalInMs
});
await poller.poll();
return poller;
Expand Down Expand Up @@ -313,8 +312,7 @@ export class ClusterPrincipalAssignmentsImpl
});
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
restoreFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs,
resourceLocationConfig: "location"
intervalInMs: options?.updateIntervalInMs
});
await poller.poll();
return poller;
Expand Down
30 changes: 10 additions & 20 deletions sdk/kusto/arm-kusto/src/operations/clusters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -578,8 +578,7 @@ export class ClustersImpl implements Clusters {
OperationState<ClustersCreateOrUpdateResponse>
>(lro, {
restoreFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs,
resourceLocationConfig: "location"
intervalInMs: options?.updateIntervalInMs
});
await poller.poll();
return poller;
Expand Down Expand Up @@ -674,8 +673,7 @@ export class ClustersImpl implements Clusters {
OperationState<ClustersUpdateResponse>
>(lro, {
restoreFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs,
resourceLocationConfig: "location"
intervalInMs: options?.updateIntervalInMs
});
await poller.poll();
return poller;
Expand Down Expand Up @@ -760,8 +758,7 @@ export class ClustersImpl implements Clusters {
});
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
restoreFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs,
resourceLocationConfig: "location"
intervalInMs: options?.updateIntervalInMs
});
await poller.poll();
return poller;
Expand Down Expand Up @@ -843,8 +840,7 @@ export class ClustersImpl implements Clusters {
});
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
restoreFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs,
resourceLocationConfig: "location"
intervalInMs: options?.updateIntervalInMs
});
await poller.poll();
return poller;
Expand Down Expand Up @@ -926,8 +922,7 @@ export class ClustersImpl implements Clusters {
});
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
restoreFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs,
resourceLocationConfig: "location"
intervalInMs: options?.updateIntervalInMs
});
await poller.poll();
return poller;
Expand Down Expand Up @@ -1011,8 +1006,7 @@ export class ClustersImpl implements Clusters {
});
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
restoreFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs,
resourceLocationConfig: "location"
intervalInMs: options?.updateIntervalInMs
});
await poller.poll();
return poller;
Expand Down Expand Up @@ -1121,8 +1115,7 @@ export class ClustersImpl implements Clusters {
});
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
restoreFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs,
resourceLocationConfig: "location"
intervalInMs: options?.updateIntervalInMs
});
await poller.poll();
return poller;
Expand Down Expand Up @@ -1215,8 +1208,7 @@ export class ClustersImpl implements Clusters {
OperationState<ClustersDiagnoseVirtualNetworkResponse>
>(lro, {
restoreFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs,
resourceLocationConfig: "location"
intervalInMs: options?.updateIntervalInMs
});
await poller.poll();
return poller;
Expand Down Expand Up @@ -1408,8 +1400,7 @@ export class ClustersImpl implements Clusters {
});
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
restoreFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs,
resourceLocationConfig: "location"
intervalInMs: options?.updateIntervalInMs
});
await poller.poll();
return poller;
Expand Down Expand Up @@ -1501,8 +1492,7 @@ export class ClustersImpl implements Clusters {
});
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
restoreFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs,
resourceLocationConfig: "location"
intervalInMs: options?.updateIntervalInMs
});
await poller.poll();
return poller;
Expand Down
12 changes: 4 additions & 8 deletions sdk/kusto/arm-kusto/src/operations/dataConnections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,7 @@ export class DataConnectionsImpl implements DataConnections {
OperationState<DataConnectionsDataConnectionValidationResponse>
>(lro, {
restoreFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs,
resourceLocationConfig: "location"
intervalInMs: options?.updateIntervalInMs
});
await poller.poll();
return poller;
Expand Down Expand Up @@ -382,8 +381,7 @@ export class DataConnectionsImpl implements DataConnections {
OperationState<DataConnectionsCreateOrUpdateResponse>
>(lro, {
restoreFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs,
resourceLocationConfig: "location"
intervalInMs: options?.updateIntervalInMs
});
await poller.poll();
return poller;
Expand Down Expand Up @@ -495,8 +493,7 @@ export class DataConnectionsImpl implements DataConnections {
OperationState<DataConnectionsUpdateResponse>
>(lro, {
restoreFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs,
resourceLocationConfig: "location"
intervalInMs: options?.updateIntervalInMs
});
await poller.poll();
return poller;
Expand Down Expand Up @@ -597,8 +594,7 @@ export class DataConnectionsImpl implements DataConnections {
});
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
restoreFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs,
resourceLocationConfig: "location"
intervalInMs: options?.updateIntervalInMs
});
await poller.poll();
return poller;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,7 @@ export class DatabasePrincipalAssignmentsImpl
OperationState<DatabasePrincipalAssignmentsCreateOrUpdateResponse>
>(lro, {
restoreFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs,
resourceLocationConfig: "location"
intervalInMs: options?.updateIntervalInMs
});
await poller.poll();
return poller;
Expand Down Expand Up @@ -354,8 +353,7 @@ export class DatabasePrincipalAssignmentsImpl
});
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
restoreFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs,
resourceLocationConfig: "location"
intervalInMs: options?.updateIntervalInMs
});
await poller.poll();
return poller;
Expand Down
9 changes: 3 additions & 6 deletions sdk/kusto/arm-kusto/src/operations/databases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,7 @@ export class DatabasesImpl implements Databases {
OperationState<DatabasesCreateOrUpdateResponse>
>(lro, {
restoreFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs,
resourceLocationConfig: "location"
intervalInMs: options?.updateIntervalInMs
});
await poller.poll();
return poller;
Expand Down Expand Up @@ -453,8 +452,7 @@ export class DatabasesImpl implements Databases {
OperationState<DatabasesUpdateResponse>
>(lro, {
restoreFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs,
resourceLocationConfig: "location"
intervalInMs: options?.updateIntervalInMs
});
await poller.poll();
return poller;
Expand Down Expand Up @@ -544,8 +542,7 @@ export class DatabasesImpl implements Databases {
});
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
restoreFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs,
resourceLocationConfig: "location"
intervalInMs: options?.updateIntervalInMs
});
await poller.poll();
return poller;
Expand Down
9 changes: 3 additions & 6 deletions sdk/kusto/arm-kusto/src/operations/managedPrivateEndpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,7 @@ export class ManagedPrivateEndpointsImpl implements ManagedPrivateEndpoints {
OperationState<ManagedPrivateEndpointsCreateOrUpdateResponse>
>(lro, {
restoreFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs,
resourceLocationConfig: "location"
intervalInMs: options?.updateIntervalInMs
});
await poller.poll();
return poller;
Expand Down Expand Up @@ -342,8 +341,7 @@ export class ManagedPrivateEndpointsImpl implements ManagedPrivateEndpoints {
OperationState<ManagedPrivateEndpointsUpdateResponse>
>(lro, {
restoreFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs,
resourceLocationConfig: "location"
intervalInMs: options?.updateIntervalInMs
});
await poller.poll();
return poller;
Expand Down Expand Up @@ -438,8 +436,7 @@ export class ManagedPrivateEndpointsImpl implements ManagedPrivateEndpoints {
});
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
restoreFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs,
resourceLocationConfig: "location"
intervalInMs: options?.updateIntervalInMs
});
await poller.poll();
return poller;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,7 @@ export class PrivateEndpointConnectionsImpl
OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>
>(lro, {
restoreFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs,
resourceLocationConfig: "location"
intervalInMs: options?.updateIntervalInMs
});
await poller.poll();
return poller;
Expand Down Expand Up @@ -313,8 +312,7 @@ export class PrivateEndpointConnectionsImpl
});
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
restoreFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs,
resourceLocationConfig: "location"
intervalInMs: options?.updateIntervalInMs
});
await poller.poll();
return poller;
Expand Down
9 changes: 3 additions & 6 deletions sdk/kusto/arm-kusto/src/operations/scripts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,7 @@ export class ScriptsImpl implements Scripts {
OperationState<ScriptsCreateOrUpdateResponse>
>(lro, {
restoreFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs,
resourceLocationConfig: "location"
intervalInMs: options?.updateIntervalInMs
});
await poller.poll();
return poller;
Expand Down Expand Up @@ -352,8 +351,7 @@ export class ScriptsImpl implements Scripts {
OperationState<ScriptsUpdateResponse>
>(lro, {
restoreFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs,
resourceLocationConfig: "location"
intervalInMs: options?.updateIntervalInMs
});
await poller.poll();
return poller;
Expand Down Expand Up @@ -454,8 +452,7 @@ export class ScriptsImpl implements Scripts {
});
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
restoreFrom: options?.resumeFrom,
intervalInMs: options?.updateIntervalInMs,
resourceLocationConfig: "location"
intervalInMs: options?.updateIntervalInMs
});
await poller.poll();
return poller;
Expand Down
43 changes: 43 additions & 0 deletions sdk/kusto/arm-kusto/test/sampleTest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/*
* 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 {
Recorder,
RecorderStartOptions,
env
} from "@azure-tools/test-recorder";
import { assert } from "chai";
import { Context } from "mocha";

const replaceableVariables: Record<string, string> = {
AZURE_CLIENT_ID: "azure_client_id",
AZURE_CLIENT_SECRET: "azure_client_secret",
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
SUBSCRIPTION_ID: "azure_subscription_id"
};

const recorderOptions: RecorderStartOptions = {
envSetupForPlayback: replaceableVariables
};

describe("My test", () => {
let recorder: Recorder;

beforeEach(async function(this: Context) {
recorder = new Recorder(this.currentTest);
await recorder.start(recorderOptions);
});

afterEach(async function() {
await recorder.stop();
});

it("sample test", async function() {
console.log("Hi, I'm a test!");
});
});
Loading