@azure/arm-compute
Advanced tools
Comparing version 17.0.0-alpha.20211111.1 to 17.0.0-alpha.20211117.1
@@ -1,2 +0,4 @@ | ||
export {}; | ||
export declare const testPollingOptions: { | ||
updateIntervalInMs: number | undefined; | ||
}; | ||
//# sourceMappingURL=compute_examples.d.ts.map |
@@ -9,3 +9,3 @@ /* | ||
import { __asyncValues, __awaiter } from "tslib"; | ||
import { env, record } from "@azure-tools/test-recorder"; | ||
import { env, record, isPlaybackMode } from "@azure-tools/test-recorder"; | ||
import * as assert from "assert"; | ||
@@ -27,2 +27,5 @@ import { ClientSecretCredential } from "@azure/identity"; | ||
}; | ||
export const testPollingOptions = { | ||
updateIntervalInMs: isPlaybackMode() ? 0 : undefined, | ||
}; | ||
describe("Compute test", () => { | ||
@@ -71,7 +74,7 @@ let recorder; | ||
}; | ||
const virtualNetworks_create_info = yield network_client.virtualNetworks.beginCreateOrUpdateAndWait(resourceGroupName, network_name, parameter); | ||
const virtualNetworks_create_info = yield network_client.virtualNetworks.beginCreateOrUpdateAndWait(resourceGroupName, network_name, parameter, testPollingOptions); | ||
const subnet_parameter = { | ||
addressPrefix: "10.0.0.0/24", | ||
}; | ||
const subnet__create_info = yield network_client.subnets.beginCreateOrUpdateAndWait(resourceGroupName, network_name, subnet_name, subnet_parameter); | ||
const subnet__create_info = yield network_client.subnets.beginCreateOrUpdateAndWait(resourceGroupName, network_name, subnet_name, subnet_parameter, testPollingOptions); | ||
}); | ||
@@ -100,3 +103,3 @@ } | ||
}; | ||
const nic_info = yield network_client.networkInterfaces.beginCreateOrUpdateAndWait(group_name, nic_name, parameter); | ||
const nic_info = yield network_client.networkInterfaces.beginCreateOrUpdateAndWait(group_name, nic_name, parameter, testPollingOptions); | ||
}); | ||
@@ -229,3 +232,3 @@ } | ||
} | ||
}); | ||
}, testPollingOptions); | ||
assert.equal(res.name, virtual_machine_name); | ||
@@ -277,3 +280,3 @@ }); | ||
} | ||
}); | ||
}, testPollingOptions); | ||
assert.equal(res.type, "Microsoft.Compute/virtualMachines"); | ||
@@ -285,3 +288,3 @@ }); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const res = yield client.virtualMachines.beginDeleteAndWait(resourceGroupName, virtual_machine_name); | ||
const res = yield client.virtualMachines.beginDeleteAndWait(resourceGroupName, virtual_machine_name, testPollingOptions); | ||
const resArray = new Array(); | ||
@@ -288,0 +291,0 @@ try { |
@@ -6,3 +6,3 @@ { | ||
"description": "A generated SDK for ComputeManagementClient.", | ||
"version": "17.0.0-alpha.20211111.1", | ||
"version": "17.0.0-alpha.20211117.1", | ||
"engines": { | ||
@@ -9,0 +9,0 @@ "node": ">=12.0.0" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11691395
164773